Makefile.target 1.2 KB

1234567891011121314151617181920
  1. # code adjusted from openwrt/include/kernel-defaults.mk
  2. override define Kernel/Configure
  3. $(LINUX_CONF_CMD) > $(LINUX_DIR)/.config.target
  4. # copy CONFIG_KERNEL_* settings over to .config.target
  5. awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' $(BOARD_BUILDDIR)/config-allmods >> $(LINUX_DIR)/.config.target
  6. echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> $(LINUX_DIR)/.config.target
  7. echo "# CONFIG_KALLSYMS_ALL is not set" >> $(LINUX_DIR)/.config.target
  8. echo "# CONFIG_KALLSYMS_UNCOMPRESSED is not set" >> $(LINUX_DIR)/.config.target
  9. echo "# CONFIG_KPROBES is not set" >> $(LINUX_DIR)/.config.target
  10. $(SCRIPT_DIR)/metadata.pl kconfig $(TMP_DIR)/.packageinfo $(BOARD_BUILDDIR)/config-allmods > $(LINUX_DIR)/.config.override
  11. $(SCRIPT_DIR)/kconfig.pl 'm+' '+' $(LINUX_DIR)/.config.target /dev/null $(LINUX_DIR)/.config.override > $(LINUX_DIR)/.config
  12. $(call Kernel/SetNoInitramfs)
  13. rm -rf $(KERNEL_BUILD_DIR)/modules
  14. $(_SINGLE) [ -d $(LINUX_DIR)/user_headers ] || $(MAKE) $(KERNEL_MAKEOPTS) INSTALL_HDR_PATH=$(LINUX_DIR)/user_headers headers_install
  15. cp $(GLUONDIR)/targets/$(GLUON_TARGET)/vermagic $(LINUX_DIR)/.vermagic
  16. endef
  17. # The Makefile included here is $(TOPDIR)/target/linux/$(BOARD)/Makefile
  18. include Makefile