diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-08-14 07:45:01 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-08-14 07:45:01 +0000 |
commit | f958d89724e5db98943e28c2dda45a86f27e6401 (patch) | |
tree | 063c1812c12079c9b79405cf8fc078768f7debf8 | |
parent | 74cda1e49b8c0d3ee6d6069452cfc74ab8f9a536 (diff) | |
download | buildroot-novena-f958d89724e5db98943e28c2dda45a86f27e6401.tar.gz buildroot-novena-f958d89724e5db98943e28c2dda45a86f27e6401.zip |
Move project related info from main Makefile to project dir
-rw-r--r-- | Makefile | 26 | ||||
-rw-r--r-- | project/Makefile.in | 6 | ||||
-rw-r--r-- | project/project.mk | 14 |
3 files changed, 26 insertions, 20 deletions
@@ -162,14 +162,7 @@ BASE_TARGETS:=uclibc endif TARGETS:= - -PROJECT:=$(strip $(subst ",,$(BR2_PROJECT))) -#")) -TARGET_HOSTNAME:=$(strip $(subst ",,$(BR2_HOSTNAME))) -#")) -BANNER:=$(strip $(subst ",,$(BR2_BANNER))) -#")) - +include project/Makefile.in include toolchain/Makefile.in include package/Makefile.in @@ -185,6 +178,8 @@ all: world # In this section, we need .config include .config.cmd +include project/*.mk + # We also need the various per-package makefiles, which also add # each selected package to TARGETS if that package was selected # in the .config file. @@ -213,11 +208,13 @@ $(TARGETS): $(BASE_TARGETS) dirs: $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \ $(BINARIES_DIR) $(PROJECT_BUILD_DIR) + $(BASE_TARGETS): dirs + world: dependencies dirs target-host-info $(BASE_TARGETS) $(TARGETS) -.PHONY: all world dirs clean dirclean distclean source target-host-info \ +.PHONY: all world dirs clean dirclean distclean source \ $(BASE_TARGETS) $(TARGETS) \ $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \ $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \ @@ -258,17 +255,6 @@ $(PROJECT_BUILD_DIR)/.root: $(TARGET_DIR) fi; touch $@ -target-host-info: $(TARGET_DIR)/etc/issue $(TARGET_DIR)/etc/hostname - -$(TARGET_DIR)/etc/issue: .config - mkdir -p $(TARGET_DIR)/etc - echo "" > $(TARGET_DIR)/etc/issue - echo "" >> $(TARGET_DIR)/etc/issue - echo "$(BANNER)" >> $(TARGET_DIR)/etc/issue - -$(TARGET_DIR)/etc/hostname: .config - mkdir -p $(TARGET_DIR)/etc - echo "$(TARGET_HOSTNAME)" > $(TARGET_DIR)/etc/hostname source: $(TARGETS_SOURCE) $(HOST_SOURCE) diff --git a/project/Makefile.in b/project/Makefile.in new file mode 100644 index 000000000..b90f31267 --- /dev/null +++ b/project/Makefile.in @@ -0,0 +1,6 @@ +PROJECT:=$(strip $(subst ",,$(BR2_PROJECT))) +#")) +TARGET_HOSTNAME:=$(strip $(subst ",,$(BR2_HOSTNAME))) +#")) +BANNER:=$(strip $(subst ",,$(BR2_BANNER))) +#")) diff --git a/project/project.mk b/project/project.mk new file mode 100644 index 000000000..b33f90181 --- /dev/null +++ b/project/project.mk @@ -0,0 +1,14 @@ + +.PHONY: target-host-info + +target-host-info: $(TARGET_DIR)/etc/issue $(TARGET_DIR)/etc/hostname + +$(TARGET_DIR)/etc/issue: .config + mkdir -p $(TARGET_DIR)/etc + echo "" > $(TARGET_DIR)/etc/issue + echo "" >> $(TARGET_DIR)/etc/issue + echo "$(BANNER)" >> $(TARGET_DIR)/etc/issue + +$(TARGET_DIR)/etc/hostname: .config + mkdir -p $(TARGET_DIR)/etc + echo "$(TARGET_HOSTNAME)" > $(TARGET_DIR)/etc/hostname |