Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (C) 2016 Jiang Yutang <[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_NAME:=uboot-layerscape-32bit
  9. PKG_VERSION:=v1.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_MIRROR_HASH:=a29edbeddde4b3007ac349c2a5ee434719049ac4753e459dbb1bab21e1c585da
  13. PKG_SOURCE_URL:=https://github.com/fsl-jyt/uboot-ls-32b.git
  14. PKG_SOURCE_VERSION:=6476195551ea83193afd06d0c441483c04729c8d
  15. PKG_LICENSE:=GPL-2.0 GPL-2.0+
  16. PKG_LICENSE_FILES:=Licenses/README
  17. PKG_MAINTAINER:=Jiang Yutang <[email protected]>
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/kernel.mk
  20. define Package/uboot-layerscape-32b
  21. SECTION:=boot
  22. CATEGORY:=Boot Loaders
  23. DEPENDS:=@TARGET_layerscape_32b
  24. TITLE:=32-bit U-Boot for Layerscape boards
  25. DEFAULT:=y
  26. HIDDEN:=1
  27. endef
  28. define Build/Configure
  29. endef
  30. define Build/Compile
  31. endef
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
  34. $(CP) $(PKG_BUILD_DIR)/ls1043ardb-uboot.bin $(STAGING_DIR_IMAGE)/ls1043ardb-32b-uboot.bin
  35. $(CP) $(PKG_BUILD_DIR)/ls1046ardb-uboot.bin $(STAGING_DIR_IMAGE)/ls1046ardb-32b-uboot.bin
  36. $(CP) $(PKG_BUILD_DIR)/ls1012ardb-uboot.bin.swap $(STAGING_DIR_IMAGE)/ls1012ardb-32b-uboot.bin
  37. endef
  38. $(eval $(call BuildPackage,uboot-layerscape-32b))