Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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/buildhlp.mk
  7. $(WRKBUILD)/.headers:
  8. $(MAKE) -C $(WRKBUILD) HOSTCC=$(HOSTCC) ARCH=$(ARCH) V=1 \
  9. INSTALL_HDR_PATH=$(STAGING_TARGET_DIR)/usr \
  10. headers_install
  11. $(MAKE) -C $(WRKBUILD) HOSTCC=$(HOSTCC) ARCH=$(ARCH) V=1 \
  12. INSTALL_HDR_PATH=$(TOOLCHAIN_SYSROOT)/usr \
  13. headers_install
  14. $(MAKE) -C $(WRKBUILD) HOSTCC=$(HOSTCC) ARCH=$(ARCH) V=1 \
  15. INSTALL_HDR_PATH=$(LINUX_HEADER_DIR) \
  16. headers_install
  17. # cryptodev.h from ocf-linux-20080917
  18. mkdir -p ${STAGING_TARGET_DIR}/usr/include/crypto
  19. cp files/cryptodev.h ${STAGING_TARGET_DIR}/usr/include/crypto/
  20. ifeq ($(ARCH),cris)
  21. ifeq ($(CPU_ARCH),crisv32)
  22. cd $(STAGING_TARGET_DIR)/usr/include && ln -sf arch-v32/arch arch
  23. cd $(TOOLCHAIN_SYSROOT)/usr/include && ln -sf arch-v32/arch arch
  24. else
  25. cd $(STAGING_TARGET_DIR)/usr/include && ln -sf arch-v10/arch arch
  26. cd $(TOOLCHAIN_SYSROOT)/usr/include && ln -sf arch-v10/arch arch
  27. endif
  28. endif
  29. touch $@
  30. include ${TOPDIR}/mk/toolchain.mk