Merge branch 'master' of git://repo.or.cz/buildroot
[buildroot.git] / project / project.mk
blob8ee165914fb0af520c7953160ffbe879005900ef
1 PROJECT_FILE:=$(LOCAL)/$(PROJECT)/$(PROJECT).config
4 .PHONY: saveconfig getconfig
6 target-host-info: $(TARGET_DIR)/etc/issue $(TARGET_DIR)/etc/hostname
8 $(TARGET_DIR)/etc/issue: .config
9 mkdir -p $(TARGET_DIR)/etc
10 echo "" > $(TARGET_DIR)/etc/issue
11 echo "" >> $(TARGET_DIR)/etc/issue
12 echo "$(BANNER)" >> $(TARGET_DIR)/etc/issue
14 $(TARGET_DIR)/etc/hostname: .config
15 mkdir -p $(TARGET_DIR)/etc
16 echo "$(TARGET_HOSTNAME)" > $(TARGET_DIR)/etc/hostname
18 saveconfig: $(CONFIG)/conf
19 mkdir -p $(LOCAL)/$(PROJECT)
20 -cp .config $(PROJECT_FILE)
21 if [ -f $(LINUX26_DIR)/.config ]; then \
22 cp $(LINUX26_DIR)/.config \
23 $(LOCAL)/$(PROJECT)/linux-$(LINUX26_VERSION).config; \
24 $(SED) '/BR2_PACKAGE_LINUX_KCONFIG/d' $(PROJECT_FILE); \
25 echo "BR2_PACKAGE_LINUX_KCONFIG:=$(LOCAL)/$(PROJECT)/linux-$(LINUX26_VERSION).config" >> $(PROJECT_FILE); \
27 if [ -f $(BUSYBOX_DIR)/.config ]; then \
28 cp $(BUSYBOX_DIR)/.config \
29 $(LOCAL)/$(PROJECT)/busybox-$(BUSYBOX_VERSION).config; \
30 $(SED) '/BR2_PACKAGE_BUSYBOX_CONFIG/d' $(PROJECT_FILE); \
31 echo "BR2_PACKAGE_BUSYBOX_CONFIG:=$(LOCAL)/$(PROJECT)/busybox-$(BUSYBOX_VERSION).config" >> $(PROJECT_FILE); \
33 if [ -f $(UCLIBC_DIR)/.config ]; then \
34 cp $(UCLIBC_DIR)/.config \
35 $(LOCAL)/$(PROJECT)/uclibc-$(UCLIBC_VER).config; \
36 $(SED) '/BR2_UCLIBC_CONFIG/d' $(PROJECT_FILE); \
37 echo "BR2_UCLIBC_CONFIG:=$(LOCAL)/$(PROJECT)/uclibc-$(UCLIBC_VER).config" >> $(PROJECT_FILE); \
39 if [ -f $(UBOOT_DIR)/include/configs/$(PROJECT).h ]; then \
40 mkdir -p $(LOCAL)/$(PROJECT)/u-boot; \
41 cp $(UBOOT_DIR)/include/configs/$(PROJECT).h \
42 $(LOCAL)/$(PROJECT)/u-boot/$(PROJECT).h; \
45 getconfig: $(CONFIG)/conf
46 -cp $(LOCAL)/$(PROJECT)/$(PROJECT).config .config
48 vendor-dbg:
49 @echo VENDOR_SITE=$(BR2_VENDOR_SITE)
50 @echo VENDOR_SUFFIX=$(BR2_VENDOR_SUFFIX)
51 @echo VENDOR_BINUTILS_RELEASE=$(BR2_VENDOR_BINUTILS_RELEASE)
52 @echo VENDOR_GCC_RELEASE=$(BR2_VENDOR_GCC_RELEASE)
53 @echo VENDOR_UCLIBC_RELEASE=$(BR2_VENDOR_UCLIBC_RELEASE)
54 @echo VENDOR_GDB_RELEASE=$(BR2_VENDOR_GDB_RELEASE)
55 @echo VENDOR_PATCH_DIR=$(BR2_VENDOR_PATCH_DIR)