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
|
|
|
|
echo "# CONFIG_KPROBES is not set" >> $(LINUX_DIR)/.config.target
|
|
|
|
$(SCRIPT_DIR)/metadata.pl kconfig $(TMP_DIR)/.packageinfo $(BOARD_BUILDDIR)/config-allmods > $(LINUX_DIR)/.config.override
|
|
|
|
$(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-03-16 12:49:25 +00:00
|
|
|
cp $(GLUONDIR)/targets/$(GLUON_TARGET)/vermagic $(LINUX_DIR)/.vermagic
|
2013-02-17 23:39:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
# The Makefile included here is $(TOPDIR)/target/linux/$(BOARD)/Makefile
|
|
|
|
include Makefile
|