1
0

Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 $(ADK_TOPDIR)/rules.mk
  4. include ../rules.mk
  5. include $(ADK_TOPDIR)/mk/waldux-ver.mk
  6. include $(ADK_TOPDIR)/mk/waldux.mk
  7. include $(ADK_TOPDIR)/mk/buildhlp.mk
  8. LINUX_DIR=${WRKBUILD}
  9. include $(ADK_TOPDIR)/mk/kernel-vars.mk
  10. $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/$(ADK_TARGET_OS)-$(KERNEL_FILE_VER)/.patched:
  11. ifeq ($(ADK_TARGET_SYSTEM_PCENGINES_APU),y)
  12. ifeq ($(ADK_KERNEL_ROOT_NFS),y)
  13. cd $(DL_DIR) && wget http://distfiles.openadk.org/realtek-firmware-1.1.tar.xz
  14. tar xf $(DL_DIR)/realtek-firmware-1.1.tar.xz \
  15. --strip-components=2 -C $(WRKSRC)/firmware realtek-firmware-1.1
  16. endif
  17. endif
  18. ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
  19. tar xf $(ADK_TOPDIR)/target/xtensa/overlay/xtensa_$(ADK_TARGET_CPU_TYPE).tar \
  20. --strip-components=1 -C $(WRKSRC) linux
  21. endif
  22. touch $@
  23. $(WRKBUILD)/.configured: $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/$(ADK_TARGET_OS)-$(KERNEL_FILE_VER)/.patched
  24. $(KERNEL_MAKE_ENV) $(MAKE) -C "${LINUX_DIR}" $(KERNEL_MAKE_OPTS) \
  25. INSTALL_HDR_PATH=$(STAGING_TARGET_DIR)/usr \
  26. headers_install
  27. ifeq ($(ADK_TARGET_ARCH_CRIS),y)
  28. ifeq ($(ADK_TARGET_CPU_ARCH),crisv32)
  29. cd $(STAGING_TARGET_DIR)/usr/include && ln -sf arch-v32/arch arch
  30. else
  31. cd $(STAGING_TARGET_DIR)/usr/include && ln -sf arch-v10/arch arch
  32. endif
  33. endif
  34. @-find $(STAGING_TARGET_DIR)/usr/include -name .install -delete
  35. @-find $(STAGING_TARGET_DIR)/usr/include -name ..install.cmd -delete
  36. touch $@
  37. include ${ADK_TOPDIR}/mk/toolchain.mk