Changeset 5203e256 in mainline for boot/Makefile


Ignore:
Timestamp:
2011-06-20T19:54:22Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a40dea3
Parents:
73d288c
Message:

keep the drivers source tree tidy by using logical subdirectories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile

    r73d288c r5203e256  
    6565        done
    6666        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" ; \
     67                drv_dir="`dirname "$$drv"`" ; \
     68                drv_name="`basename "$$drv"`" ; \
     69                mkdir -p "$(DIST_PATH)/$(DRVS_PATH)/$$drv_name" ; \
     70                cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv_dir/$$drv_name/$$drv_name" "$(DIST_PATH)/$(DRVS_PATH)/$$drv_name/" ; \
     71                cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv_dir/$$drv_name/$$drv_name.ma" "$(DIST_PATH)/$(DRVS_PATH)/$$drv_name/" ; \
    7072        done
    7173        for file in $(RD_DRV_CFG) ; do \
    72                 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$file" "$(DIST_PATH)/$(DRVS_PATH)/$$file" ; \
     74                file_dir="`dirname "$$file"`" ; \
     75                file_name="`basename "$$file"`" ; \
     76                cp "$(USPACE_PATH)/$(DRVS_PATH)/$$file_dir/$$file_name/$$file_name.dev" "$(DIST_PATH)/$(DRVS_PATH)/$$file_name/" ; \
    7377        done
    7478       
Note: See TracChangeset for help on using the changeset viewer.