Makefile 886 B

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