Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # Copyright (C) 2012-2013 OpenWrt.org
  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. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_VERSION:=2017.01
  10. PKG_RELEASE:=2
  11. PKG_HASH:=6c425175f93a4bcf2ec9faf5658ef279633dbd7856a293d95bd1ff516528ecf2
  12. include $(INCLUDE_DIR)/u-boot.mk
  13. include $(INCLUDE_DIR)/package.mk
  14. define U-Boot/Default
  15. BUILD_TARGET:=omap
  16. UBOOT_IMAGE:=u-boot.img MLO
  17. UENV:=default
  18. endef
  19. define U-Boot/omap4_panda
  20. NAME:=Pandaboard
  21. BUILD_DEVICES:=omap4-panda
  22. endef
  23. define U-Boot/am335x_boneblack
  24. NAME:=TI AM335x BeagleBone Black
  25. BUILD_DEVICES:=am335x-boneblack
  26. endef
  27. define U-Boot/am335x_evm
  28. NAME:=AM335x EVM
  29. BUILD_DEVICES:=am335x-evm
  30. endef
  31. define U-Boot/omap3_overo
  32. NAME:=Gumstix Overo
  33. endef
  34. define U-Boot/omap3_beagle
  35. NAME:=BeagleBoard
  36. BUILD_DEVICES:=omap3-beagle
  37. endef
  38. UBOOT_TARGETS:=omap4_panda am335x_evm omap3_overo omap3_beagle am335x_boneblack
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)
  41. $(CP) $(patsubst %,$(PKG_BUILD_DIR)/%,$(UBOOT_IMAGE)) $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)/
  42. $(CP) ./files/uEnv-$(UENV).txt $(STAGING_DIR_IMAGE)/$(BUILD_DEVICES)/uEnv.txt
  43. endef
  44. $(eval $(call BuildPackage/U-Boot))