2007-09-12 06:34:16 +02:00
|
|
|
PROJECT_FILE:=$(LOCAL)/$(PROJECT)/$(PROJECT).config
|
2007-08-14 09:45:01 +02:00
|
|
|
|
2007-09-12 06:34:16 +02:00
|
|
|
|
2007-09-19 22:13:08 +02:00
|
|
|
.PHONY: target-host-info saveconfig getconfig
|
2007-08-14 09:45:01 +02:00
|
|
|
|
2008-03-31 21:50:05 +02:00
|
|
|
target-host-info: $(TARGET_DIR)/etc/issue $(TARGET_DIR)/etc/hostname $(TARGET_DIR)/etc/br-version
|
2007-08-14 09:45:01 +02:00
|
|
|
|
2007-08-22 14:35:41 +02:00
|
|
|
$(TARGET_DIR)/etc/issue: .config
|
2007-08-14 09:45:01 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/etc
|
2008-03-31 21:50:05 +02:00
|
|
|
echo "" > $@
|
|
|
|
echo "" >> $@
|
|
|
|
echo "$(BANNER)" >> $@
|
2007-08-14 09:45:01 +02:00
|
|
|
|
2007-08-22 14:35:41 +02:00
|
|
|
$(TARGET_DIR)/etc/hostname: .config
|
2007-08-14 09:45:01 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/etc
|
2008-03-31 21:50:05 +02:00
|
|
|
echo "$(TARGET_HOSTNAME)" > $@
|
|
|
|
|
|
|
|
$(TARGET_DIR)/etc/br-version: .config
|
|
|
|
mkdir -p $(TARGET_DIR)/etc
|
|
|
|
echo $(BR2_VERSION)$(shell $(TOPDIR)/scripts/setlocalversion) >$@
|
2007-09-12 06:34:16 +02:00
|
|
|
|
|
|
|
saveconfig: $(CONFIG)/conf
|
|
|
|
mkdir -p $(LOCAL)/$(PROJECT)
|
|
|
|
-cp .config $(PROJECT_FILE)
|
2007-09-19 22:13:08 +02:00
|
|
|
if [ -f $(LINUX26_DIR)/.config ]; then \
|
|
|
|
cp $(LINUX26_DIR)/.config \
|
|
|
|
$(LOCAL)/$(PROJECT)/linux-$(LINUX26_VERSION).config; \
|
|
|
|
$(SED) '/BR2_PACKAGE_LINUX_KCONFIG/d' $(PROJECT_FILE); \
|
2007-10-30 21:14:12 +01:00
|
|
|
echo "BR2_PACKAGE_LINUX_KCONFIG=\"$(LOCAL)/$(PROJECT)/linux-$(LINUX26_VERSION).config\"" >> $(PROJECT_FILE); \
|
2009-01-07 00:38:33 +01:00
|
|
|
$(SED) '/BR2_BOARD_PATH/d' $(PROJECT_FILE); \
|
|
|
|
echo "BR2_BOARD_PATH=\"$(LOCAL)/$(PROJECT)\"" >> $(PROJECT_FILE); \
|
2007-09-12 06:34:16 +02:00
|
|
|
fi
|
2007-09-19 22:13:08 +02:00
|
|
|
if [ -f $(BUSYBOX_DIR)/.config ]; then \
|
|
|
|
cp $(BUSYBOX_DIR)/.config \
|
|
|
|
$(LOCAL)/$(PROJECT)/busybox-$(BUSYBOX_VERSION).config; \
|
|
|
|
$(SED) '/BR2_PACKAGE_BUSYBOX_CONFIG/d' $(PROJECT_FILE); \
|
2007-10-30 21:14:12 +01:00
|
|
|
echo "BR2_PACKAGE_BUSYBOX_CONFIG=\"$(LOCAL)/$(PROJECT)/busybox-$(BUSYBOX_VERSION).config\"" >> $(PROJECT_FILE); \
|
2007-09-12 06:34:16 +02:00
|
|
|
fi
|
2007-09-19 22:13:08 +02:00
|
|
|
if [ -f $(UCLIBC_DIR)/.config ]; then \
|
|
|
|
cp $(UCLIBC_DIR)/.config \
|
|
|
|
$(LOCAL)/$(PROJECT)/uclibc-$(UCLIBC_VER).config; \
|
|
|
|
$(SED) '/BR2_UCLIBC_CONFIG/d' $(PROJECT_FILE); \
|
2007-10-30 21:14:12 +01:00
|
|
|
echo "BR2_UCLIBC_CONFIG=\"$(LOCAL)/$(PROJECT)/uclibc-$(UCLIBC_VER).config\"" >> $(PROJECT_FILE); \
|
2007-09-12 06:34:16 +02:00
|
|
|
fi
|
2007-09-19 22:13:08 +02:00
|
|
|
if [ -f $(UBOOT_DIR)/include/configs/$(PROJECT).h ]; then \
|
2007-09-23 12:16:58 +02:00
|
|
|
mkdir -p $(LOCAL)/$(PROJECT)/u-boot; \
|
2007-09-19 22:13:08 +02:00
|
|
|
cp $(UBOOT_DIR)/include/configs/$(PROJECT).h \
|
|
|
|
$(LOCAL)/$(PROJECT)/u-boot/$(PROJECT).h; \
|
2007-09-12 06:34:16 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
getconfig: $(CONFIG)/conf
|
2007-09-19 22:13:08 +02:00
|
|
|
-cp $(LOCAL)/$(PROJECT)/$(PROJECT).config .config
|
2007-09-17 15:17:13 +02:00
|
|
|
|
|
|
|
vendor-dbg:
|
|
|
|
@echo VENDOR_SITE=$(BR2_VENDOR_SITE)
|
|
|
|
@echo VENDOR_SUFFIX=$(BR2_VENDOR_SUFFIX)
|
|
|
|
@echo VENDOR_BINUTILS_RELEASE=$(BR2_VENDOR_BINUTILS_RELEASE)
|
|
|
|
@echo VENDOR_GCC_RELEASE=$(BR2_VENDOR_GCC_RELEASE)
|
|
|
|
@echo VENDOR_UCLIBC_RELEASE=$(BR2_VENDOR_UCLIBC_RELEASE)
|
|
|
|
@echo VENDOR_GDB_RELEASE=$(BR2_VENDOR_GDB_RELEASE)
|
|
|
|
@echo VENDOR_PATCH_DIR=$(BR2_VENDOR_PATCH_DIR)
|