Changeset c47e1a8 in mainline for boot/Makefile
- Timestamp:
- 2010-05-21T07:50:04Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d51ee2b
- Parents:
- cf8cc36 (diff), 15b592b (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
rcf8cc36 rc47e1a8 27 27 # 28 28 29 ## Include configuration 30 # 29 .PHONY: all build_dist build_comps clean_dist clean 31 30 32 -include ../Makefile.config 33 -include ../config.defs 31 include Makefile.common 34 32 35 ## Paths 36 # 33 all: $(VERSION_DEF) $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(PREBUILD) 34 $(MAKE) -f $(BUILD) PRECHECK=$(PRECHECK) 35 ifneq ($(POSTBUILD),) 36 $(MAKE) -f $(POSTBUILD) PRECHECK=$(PRECHECK) 37 endif 37 38 38 BASE = .. 39 KERNELDIR = $(BASE)/kernel 40 USPACEDIR = $(BASE)/uspace 39 build_comps: $(COMPONENTS) $(LINK).in 40 $(PACK) $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) arch/$(KARCH) $(COMPONENTS) 41 41 42 .PHONY: all build clean generic_clean 42 $(INITRD).img: $(INITRD).fs 43 $(MKHORD) $(PAGE_SIZE) $< $@ 43 44 44 all: ../Makefile.config ../config.h ../config.defs build 45 $(INITRD).fs: build_dist 46 ifeq ($(RDFMT),tmpfs) 47 $(MKTMPFS) $(DIST_PATH) $@ 48 endif 49 ifeq ($(RDFMT),fat) 50 $(MKFAT) $(DIST_PATH) $@ 51 endif 45 52 46 -include arch/$(BARCH)/Makefile.inc 53 build_dist: clean_dist 54 for file in $(RD_SRVS) ; do \ 55 cp "$$file" "$(DIST_PATH)/srv/" ; \ 56 done 57 for file in $(RD_APPS) ; do \ 58 cp "$$file" "$(DIST_PATH)/app/" ; \ 59 done 60 for file in $(NET_CFG) ; do \ 61 cp "$$file" "$(DIST_PATH)/cfg/net/" ; \ 62 done 63 for drv in $(RD_DRVS) ; do \ 64 mkdir -p "$(DIST_PATH)/$(DRVS_PATH)/$$drv" ; \ 65 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv/$$drv" "$(DIST_PATH)/$(DRVS_PATH)/$$drv/$$drv" ; \ 66 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv/$$drv.ma" "$(DIST_PATH)/$(DRVS_PATH)/$$drv/$$drv.ma" ; \ 67 done 68 for file in $(RD_DRV_CFG) ; do \ 69 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$file" "$(DIST_PATH)/$(DRVS_PATH)/$$file" ; \ 70 done 71 72 clean: clean_dist 73 $(MAKE) -f $(BUILD) clean PRECHECK=$(PRECHECK) 74 ifneq ($(POSTBUILD),) 75 $(MAKE) -f $(POSTBUILD) clean PRECHECK=$(PRECHECK) 76 endif 77 rm -fr $(SANDBOX) 78 rm -f $(POST_OUTPUT) $(BOOT_OUTPUT) $(DEPEND) $(DEPEND_PREV) arch/*/include/common.h 79 find generic/src/ arch/*/src/ genarch/src/ -name '*.o' -follow -exec rm \{\} \; 47 80 48 generic_clean: 49 rm -f generic/*.o genarch/*.o 81 clean_dist: 82 rm -f $(INITRD).fs $(INITRD).img $(COMPS_H) $(COMPS_C) $(LINK) *.co 83 rm -f -r "$(DIST_PATH)/$(DRVS_PATH)" 84 rm -f $(USPACE_PATH)/dist/srv/* 85 rm -f $(USPACE_PATH)/dist/app/* 86 rm -f $(USPACE_PATH)/dist/cfg/net/*
Note:
See TracChangeset
for help on using the changeset viewer.