2 # Copyright (C) 2017-2019 Tomasz Maciej Nowak <tmn505@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
12 PKG_HASH
:= 18a853fe39fad7ad03a90cc2d4275aeaed6da69735defac3492b80508843dd4a
14 PKG_MAINTAINER
:= Tomasz Maciej Nowak
<tmn505@gmail.com
>
16 UBOOT_USE_INTREE_DTC
:=1
18 include $(INCLUDE_DIR
)/u-boot.mk
19 include $(INCLUDE_DIR
)/package.mk
23 BUILD_SUBTARGET
:= generic
27 define U-Boot
/trimslice
28 NAME
:= CompuLab TrimSlice
29 BUILD_DEVICES
:= compulab_trimslice
30 UBOOT_IMAGE
:= trimslice-mmc.img trimslice-spi.img
35 UBOOT_TARGETS
:= trimslice
37 define Build
/bct-image
38 $(CP
) $(PKG_BUILD_DIR
)/u-boot-dtb-tegra.bin
$(PKG_BUILD_DIR
)/u-boot.bin
39 $(foreach bct
,$(basename $(UBOOT_IMAGE
)), \
40 cd
$(PKG_BUILD_DIR
); \
41 cbootimage
-s
$(SOC
) -gbct \
42 $(STAGING_DIR_HOST
)/share
/cbootimage-configs
/$(SOC
)/$(VENDOR
)/$(VARIANT
)/$(bct
).bct.cfg \
44 cbootimage
-s
$(SOC
) \
45 $(STAGING_DIR_HOST
)/share
/cbootimage-configs
/$(SOC
)/$(VENDOR
)/$(VARIANT
)/$(bct
).img.cfg \
46 $(PKG_BUILD_DIR
)/$(bct
).img
; \
52 $(call Build
/Compile
/U-Boot
)
53 $(call Build
/bct-image
)
56 define Build
/InstallDev
57 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)
58 $(foreach img
,$(UBOOT_IMAGE
), \
59 $(CP
) $(PKG_BUILD_DIR
)/$(img
) $(STAGING_DIR_IMAGE
)/;)
62 $(eval
$(call BuildPackage
/U-Boot
))