Changeset 4646710 in mainline for boot/Makefile


Ignore:
Timestamp:
2017-06-07T15:39:23Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
239e32b8
Parents:
22299ed
Message:

replace objcopy with mkarray.py
(objcopy is notoriously problematic due to the uncontrolable way how it generates the object files, with what flags, etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile

    r22299ed r4646710  
    2727#
    2828
    29 .PHONY: all build_dist build_comps clean_dist clean
     29.PHONY: all build_dist clean_dist clean
    3030
    3131include Makefile.common
    3232
    33 all: $(VERSION_DEF) $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(PREBUILD)
     33all: $(VERSION_DEF) $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(PREBUILD) build_dist
    3434        $(MAKE) -r -f $(BUILD) PRECHECK=$(PRECHECK)
    3535ifneq ($(POSTBUILD),)
    3636        $(MAKE) -r -f $(POSTBUILD) PRECHECK=$(PRECHECK)
    37 endif
    38 
    39 build_comps: $(COMPONENTS) $(LINK).in
    40         $(PACK) $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) arch/$(KARCH) $(COMPONENTS)
    41 
    42 $(INITRD).img: build_dist
    43 ifeq ($(RDFMT),tmpfs)
    44         $(MKTMPFS) $(DIST_PATH) $@
    45 endif
    46 ifeq ($(RDFMT),fat)
    47         $(MKFAT) 1048576 $(DIST_PATH) $@
    48 endif
    49 ifeq ($(RDFMT),ext4fs)
    50         $(MKEXT4) 1048576 $(DIST_PATH) $@
    5137endif
    5238
     
    132118        $(MAKE) -r -f $(POSTBUILD) clean PRECHECK=$(PRECHECK)
    133119endif
    134         rm -fr $(SANDBOX)
    135120        rm -f $(POST_OUTPUT) $(BOOT_OUTPUT) $(DEPEND) $(DEPEND_PREV) arch/*/include/common.h
    136121        find generic/src/ arch/*/src/ genarch/src/ -name '*.o' -follow -exec rm \{\} \;
    137122
    138123clean_dist:
    139         rm -f $(INITRD).img $(COMPS_H) $(COMPS_C) $(LINK) $(LINK).comp *.co
     124        rm -f $(INITRD).img $(COMPS).s $(COMPS).h $(COMPS)_desc.c $(COMPS).o $(COMPS)_desc.o $(COMPS).zip $(LINK)
    140125        find $(USPACE_PATH)/dist -mindepth 1 -maxdepth 1 -type f -exec rm \{\} \;
    141126        rm -f $(USPACE_PATH)/dist/srv/*
Note: See TracChangeset for help on using the changeset viewer.