Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. include ../rules.mk
  5. include $(TOPDIR)/mk/linux.mk
  6. include ${TOPDIR}/mk/kernel-vars.mk
  7. include ${TOPDIR}/mk/buildhlp.mk
  8. $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION)/.patched:
  9. $(TRACE) kernel-patch
  10. $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \
  11. $(TOPDIR)/target/linux/patches/$(KERNEL_VERSION) *.patch $(MAKE_TRACE)
  12. $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \
  13. $(TOPDIR)/target/$(ARCH)/$(ADK_TARGET_SYSTEM)/patches/$(KERNEL_VERSION) *.patch $(MAKE_TRACE)
  14. ifeq ($(ADK_KERNEL_ADDON_GRSEC),y)
  15. $(TRACE) grsec-kernel-patch
  16. $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \
  17. $(TOPDIR)/target/linux/patches/$(KERNEL_VERSION) *.grsec $(MAKE_TRACE)
  18. endif
  19. ifeq ($(ADK_KERNEL_ADDON_MPTCP),y)
  20. $(TRACE) mptcp-kernel-patch
  21. $(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) \
  22. $(TOPDIR)/target/linux/patches/$(KERNEL_VERSION) *.mptcp $(MAKE_TRACE)
  23. endif
  24. touch $@
  25. $(WRKBUILD)/.headers: $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION)/.patched
  26. ${KERNEL_MAKE_ENV} $(MAKE) -C $(WRKBUILD) ${KERNEL_MAKE_OPTS} headers_check
  27. ${KERNEL_MAKE_ENV} $(MAKE) -C $(WRKBUILD) ${KERNEL_MAKE_OPTS} \
  28. INSTALL_HDR_PATH=$(STAGING_TARGET_DIR)/usr \
  29. headers_install
  30. @-find $(STAGING_TARGET_DIR)/usr/include -name .install -delete
  31. @-find $(STAGING_TARGET_DIR)/usr/include -name ..install.cmd -delete
  32. touch $@
  33. include ${TOPDIR}/mk/toolchain.mk