Changeset fa024ce in mainline for boot/arch/sparc64/Makefile.inc


Ignore:
Timestamp:
2009-02-12T20:12:08Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
98a4e76
Parents:
fcd7053
Message:

simplify configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/Makefile.inc

    rfcd7053 rfa024ce  
    2929TMP = distroot
    3030
    31 ifeq ($(CONFIG_AOUT_ISOFS_B),n)
    32         SILO_PACKAGE=silo.patched.tar.gz
    33 endif
    34 
    3531ifeq ($(CONFIG_AOUT_ISOFS_B),y)
    36         SILO_PACKAGE=silo.tar.gz
     32        SILO_PACKAGE = silo.tar.gz
     33else
     34        SILO_PACKAGE = silo.patched.tar.gz
    3735endif
    3836
    3937build: $(BASE)/image.iso
    4038
    41 ifeq ($(CONFIG_RD_EXTERNAL),y)
    42 SILO_CONF_FILTER = cat
    43 else
    44 SILO_CONF_FILTER = grep -v initrd
    45 endif
    46 
    47 $(BASE)/image.iso: depend arch/$(ARCH)/loader/image.boot
     39$(BASE)/image.iso: depend arch/$(BARCH)/loader/image.boot
    4840        mkdir -p $(TMP)/boot
    4941        mkdir -p $(TMP)/HelenOS
    50         cat arch/$(ARCH)/silo/$(SILO_PACKAGE) | (cd $(TMP)/boot; tar xvfz -)
    51         cp arch/$(ARCH)/silo/README arch/$(ARCH)/silo/COPYING $(TMP)/boot
    52         cat arch/$(ARCH)/silo/silo.conf | $(SILO_CONF_FILTER) >$(TMP)/boot/silo.conf
    53         cp arch/$(ARCH)/loader/image.boot $(TMP)/HelenOS/image.boot
     42        cat arch/$(BARCH)/silo/$(SILO_PACKAGE) | (cd $(TMP)/boot; tar xvfz -)
     43        cp arch/$(BARCH)/silo/README arch/$(BARCH)/silo/COPYING $(TMP)/boot
     44ifeq ($(CONFIG_RD_EXTERNAL),y)
     45        cp arch/$(BARCH)/silo/silo.conf $(TMP)/boot/silo.conf
     46else
     47        cat arch/$(BARCH)/silo/silo.conf | grep -v initrd > $(TMP)/boot/silo.conf
     48endif
     49        cp arch/$(BARCH)/loader/image.boot $(TMP)/HelenOS/image.boot
    5450        gzip -f $(TMP)/HelenOS/image.boot
    5551ifeq ($(CONFIG_RD_EXTERNAL),y)
    56         cp arch/$(ARCH)/loader/initrd.img $(TMP)/HelenOS/initrd.img
     52        cp arch/$(BARCH)/loader/initrd.img $(TMP)/HelenOS/initrd.img
    5753endif
    5854        mkisofs -f -G $(TMP)/boot/isofs.b -B ... -r -o $(BASE)/image.iso $(TMP)/
    5955
    6056depend:
    61         -rm arch/$(ARCH)/loader/image.boot
     57        -rm arch/$(BARCH)/loader/image.boot
    6258
    63 arch/$(ARCH)/loader/image.boot:
    64         $(MAKE) -C arch/$(ARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) "DEFS=$(DEFS)"
     59arch/$(BARCH)/loader/image.boot:
     60        $(MAKE) -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)
    6561
    6662clean: generic_clean
    67         $(MAKE) -C arch/$(ARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)
     63        $(MAKE) -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)
    6864        -rm -fr $(TMP)
    6965        -rm -f $(BASE)/image.iso
Note: See TracChangeset for help on using the changeset viewer.