mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
build: add devel option to store build config in firmware
Store config.seed in firmware /etc/build.config Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
This commit is contained in:
parent
3ceb0fa7c5
commit
01337ba472
@ -67,6 +67,12 @@ menu "Global build settings"
|
|||||||
This removes all ipkg/opkg status data files from the target directory
|
This removes all ipkg/opkg status data files from the target directory
|
||||||
before building the root filesystem.
|
before building the root filesystem.
|
||||||
|
|
||||||
|
config INCLUDE_CONFIG
|
||||||
|
bool "Include build configuration in firmware" if DEVEL
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
If enabled, config.seed will be stored in /etc/build.config of firmware.
|
||||||
|
|
||||||
config COLLECT_KERNEL_DEBUG
|
config COLLECT_KERNEL_DEBUG
|
||||||
bool
|
bool
|
||||||
prompt "Collect kernel debug information"
|
prompt "Collect kernel debug information"
|
||||||
|
@ -168,6 +168,10 @@ define Package/base-files/install
|
|||||||
echo "$$$${conffile##$(1)}" >> $(1)/CONTROL/conffiles; \
|
echo "$$$${conffile##$(1)}" >> $(1)/CONTROL/conffiles; \
|
||||||
fi \
|
fi \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
$(if $(CONFIG_INCLUDE_CONFIG), \
|
||||||
|
echo -e "# Build configuration for board $(BOARD)/$(SUBTARGET)/$(PROFILE)\n" >$(1)/etc/build.config; \
|
||||||
|
cat $(BIN_DIR)/config.seed >>$(1)/etc/build.config)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifneq ($(DUMP),1)
|
ifneq ($(DUMP),1)
|
||||||
|
Loading…
Reference in New Issue
Block a user