Makefile 950 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Copyright (C) 2016 Ben Whitten <[email protected]>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_VERSION:=2016.05
  9. PKG_RELEASE:=1
  10. PKG_HASH:=87d02275615aaf0cd007b54cbe9fbadceef2bee7c79e6c323ea1ae8956dcb171
  11. include $(INCLUDE_DIR)/u-boot.mk
  12. include $(INCLUDE_DIR)/package.mk
  13. define U-Boot/Default
  14. BUILD_TARGET:=at91
  15. BUILD_SUBTARGET:=legacy
  16. UBOOT_IMAGE:=u-boot.bin boot.bin
  17. endef
  18. define U-Boot/at91sam9m10g45ek_nandflash
  19. NAME:=AT91SAM9M10G45-EK board (NandFlash)
  20. endef
  21. define U-Boot/at91sam9x5ek_nandflash
  22. NAME:=AT91SAM9X5-EK board (NandFlash)
  23. endef
  24. UBOOT_TARGETS := \
  25. at91sam9m10g45ek_nandflash \
  26. at91sam9x5ek_nandflash
  27. define Build/Compile
  28. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  29. CROSS_COMPILE=$(TARGET_CROSS) \
  30. KCFLAGS="$(filter-out -fstack-protector, $(TARGET_CFLAGS))"
  31. endef
  32. $(eval $(call BuildPackage/U-Boot))