Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #
  2. # Copyright (C) 2017-2019 Tomasz Maciej Nowak <[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 := 2025.04
  9. PKG_RELEASE:=1
  10. PKG_HASH := 439d3bef296effd54130be6a731c5b118be7fddd7fcc663ccbc5fb18294d8718
  11. PKG_MAINTAINER := Tomasz Maciej Nowak <[email protected]>
  12. UBOOT_USE_INTREE_DTC:=1
  13. include $(INCLUDE_DIR)/u-boot.mk
  14. include $(INCLUDE_DIR)/package.mk
  15. define U-Boot/Default
  16. BUILD_TARGET := tegra
  17. BUILD_SUBTARGET := generic
  18. HIDDEN := y
  19. endef
  20. define U-Boot/trimslice
  21. NAME := CompuLab TrimSlice
  22. BUILD_DEVICES := compulab_trimslice
  23. UBOOT_IMAGE := trimslice-mmc.img trimslice-spi.img
  24. SOC := tegra20
  25. VENDOR := compulab
  26. endef
  27. UBOOT_TARGETS := trimslice
  28. UBOOT_CUSTOMIZE_CONFIG := --disable TOOLS_MKEFICAPSULE
  29. define Build/bct-image
  30. $(CP) $(PKG_BUILD_DIR)/u-boot-dtb-tegra.bin $(PKG_BUILD_DIR)/u-boot.bin
  31. $(foreach bct,$(basename $(UBOOT_IMAGE)), \
  32. cd $(PKG_BUILD_DIR); \
  33. cbootimage -s $(SOC) -gbct \
  34. $(STAGING_DIR_HOST)/share/cbootimage-configs/$(SOC)/$(VENDOR)/$(VARIANT)/$(bct).bct.cfg \
  35. $(bct).bct; \
  36. cbootimage -s $(SOC) \
  37. $(STAGING_DIR_HOST)/share/cbootimage-configs/$(SOC)/$(VENDOR)/$(VARIANT)/$(bct).img.cfg \
  38. $(PKG_BUILD_DIR)/$(bct).img; \
  39. rm -f $(bct).bct; \
  40. )
  41. endef
  42. define Build/Compile
  43. $(call Build/Compile/U-Boot)
  44. $(call Build/bct-image)
  45. endef
  46. define Build/InstallDev
  47. $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
  48. $(foreach img,$(UBOOT_IMAGE), \
  49. $(CP) $(PKG_BUILD_DIR)/$(img) $(STAGING_DIR_IMAGE)/;)
  50. endef
  51. $(eval $(call BuildPackage/U-Boot))