Changeset 26e7d6d in mainline for boot/Makefile


Ignore:
Timestamp:
2011-09-19T16:31:00Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a347a11
Parents:
3842a955 (diff), 086290d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile

    r3842a955 r26e7d6d  
    5050        $(MKFAT) 1048576 $(DIST_PATH) $@
    5151endif
     52ifeq ($(RDFMT),ext2fs)
     53        $(MKEXT2) 1048576 $(DIST_PATH) $@
     54endif
    5255
    5356build_dist: clean_dist
     
    5861                cp "$$file" "$(DIST_PATH)/lib/" ; \
    5962        done
     63ifeq ($(CONFIG_DEVEL_FILES), y)
     64        mkdir "$(DIST_PATH)/inc/c/"
     65        cp -r -L "$(USPACE_PATH)/lib/c/include/." "$(DIST_PATH)/inc/c/"
     66        cat "$(USPACE_PATH)/lib/c/arch/$(UARCH)/_link.ld" | sed 's/^STARTUP(.*)$$//g' > "$(DIST_PATH)/inc/_link.ld"
     67endif
    6068        for file in $(RD_APPS) ; do \
    6169                cp "$$file" "$(DIST_PATH)/app/" ; \
     
    6573        done
    6674        for drv in $(RD_DRVS) ; do \
    67                 mkdir -p "$(DIST_PATH)/$(DRVS_PATH)/$$drv" ; \
    68                 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv/$$drv" "$(DIST_PATH)/$(DRVS_PATH)/$$drv/$$drv" ; \
    69                 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv/$$drv.ma" "$(DIST_PATH)/$(DRVS_PATH)/$$drv/$$drv.ma" ; \
     75                drv_dir="`dirname "$$drv"`" ; \
     76                drv_name="`basename "$$drv"`" ; \
     77                mkdir -p "$(DIST_PATH)/$(DRVS_PATH)/$$drv_name" ; \
     78                cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv_dir/$$drv_name/$$drv_name" "$(DIST_PATH)/$(DRVS_PATH)/$$drv_name/" ; \
     79                cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv_dir/$$drv_name/$$drv_name.ma" "$(DIST_PATH)/$(DRVS_PATH)/$$drv_name/" ; \
    7080        done
    7181        for file in $(RD_DRV_CFG) ; do \
    72                 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$file" "$(DIST_PATH)/$(DRVS_PATH)/$$file" ; \
     82                file_dir="`dirname "$$file"`" ; \
     83                file_name="`basename "$$file"`" ; \
     84                cp "$(USPACE_PATH)/$(DRVS_PATH)/$$file_dir/$$file_name/$$file_name.dev" "$(DIST_PATH)/$(DRVS_PATH)/$$file_name/" ; \
    7385        done
    74        
     86
    7587clean: clean_dist
    7688        $(MAKE) -f $(BUILD) clean PRECHECK=$(PRECHECK)
     
    8799        rm -rf $(USPACE_PATH)/dist/drv/*
    88100        rm -f $(USPACE_PATH)/dist/lib/*
     101        rm -rf $(USPACE_PATH)/dist/inc/*
    89102        rm -f $(USPACE_PATH)/dist/app/*
    90103        rm -f $(USPACE_PATH)/dist/cfg/net/*
Note: See TracChangeset for help on using the changeset viewer.