2015-03-20 00:34:02 +00:00
|
|
|
# code adjusted from openwrt/include/kernel-defaults.mk
|
|
|
|
|
2013-02-17 23:39:44 +00:00
|
|
|
override define Kernel/Configure
|
2015-03-20 00:34:02 +00:00
|
|
|
$(LINUX_CONF_CMD) > $(LINUX_DIR)/.config.target
|
|
|
|
# copy CONFIG_KERNEL_* settings over to .config.target
|
|
|
|
awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' $(BOARD_BUILDDIR)/config-allmods >> $(LINUX_DIR)/.config.target
|
|
|
|
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> $(LINUX_DIR)/.config.target
|
|
|
|
echo "# CONFIG_KALLSYMS_ALL is not set" >> $(LINUX_DIR)/.config.target
|
|
|
|
echo "# CONFIG_KALLSYMS_UNCOMPRESSED is not set" >> $(LINUX_DIR)/.config.target
|
2015-05-21 23:09:19 +00:00
|
|
|
$(SCRIPT_DIR)/metadata.pl kconfig $(TMP_DIR)/.packageinfo $(BOARD_BUILDDIR)/config-allmods $(KERNEL_PATCHVER) > $(LINUX_DIR)/.config.override
|
2015-03-20 00:34:02 +00:00
|
|
|
$(SCRIPT_DIR)/kconfig.pl 'm+' '+' $(LINUX_DIR)/.config.target /dev/null $(LINUX_DIR)/.config.override > $(LINUX_DIR)/.config
|
|
|
|
$(call Kernel/SetNoInitramfs)
|
|
|
|
rm -rf $(KERNEL_BUILD_DIR)/modules
|
|
|
|
$(_SINGLE) [ -d $(LINUX_DIR)/user_headers ] || $(MAKE) $(KERNEL_MAKEOPTS) INSTALL_HDR_PATH=$(LINUX_DIR)/user_headers headers_install
|
2015-10-12 22:57:10 +00:00
|
|
|
$(SH_FUNC) grep '=[ym]' $(LINUX_DIR)/.config | LC_ALL=C sort | md5s > $(LINUX_DIR)/.vermagic
|
2013-02-17 23:39:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
# The Makefile included here is $(TOPDIR)/target/linux/$(BOARD)/Makefile
|
|
|
|
include Makefile
|