2019-04-01 17:25:41 +00:00
|
|
|
#
|
2020-11-20 18:46:35 +00:00
|
|
|
# Copyright (C) 2017-2019 Tomasz Maciej Nowak <tmn505@gmail.com>
|
2019-04-01 17:25:41 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2020-11-25 16:10:03 +00:00
|
|
|
PKG_VERSION := 2020.04
|
2021-10-02 17:03:32 +00:00
|
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
2019-04-01 17:25:41 +00:00
|
|
|
|
2020-11-25 16:10:03 +00:00
|
|
|
PKG_HASH := fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372
|
2019-04-01 17:25:41 +00:00
|
|
|
|
2020-11-20 18:46:35 +00:00
|
|
|
PKG_MAINTAINER := Tomasz Maciej Nowak <tmn505@gmail.com>
|
2019-04-01 17:25:41 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/u-boot.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define U-Boot/Default
|
|
|
|
BUILD_TARGET := tegra
|
|
|
|
HIDDEN := y
|
|
|
|
endef
|
|
|
|
|
|
|
|
define U-Boot/trimslice
|
|
|
|
NAME := CompuLab TrimSlice
|
2019-05-01 17:43:54 +00:00
|
|
|
BUILD_DEVICES := compulab_trimslice
|
2019-04-01 17:25:41 +00:00
|
|
|
UBOOT_IMAGE := trimslice-mmc.img trimslice-spi.img
|
|
|
|
SOC := tegra20
|
|
|
|
VENDOR := compulab
|
|
|
|
endef
|
|
|
|
|
|
|
|
UBOOT_TARGETS := trimslice
|
|
|
|
|
|
|
|
define Build/bct-image
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/u-boot-dtb-tegra.bin $(PKG_BUILD_DIR)/u-boot.bin
|
|
|
|
$(foreach bct,$(basename $(UBOOT_IMAGE)), \
|
|
|
|
cd $(PKG_BUILD_DIR); \
|
|
|
|
cbootimage -s $(SOC) -gbct \
|
|
|
|
$(STAGING_DIR_HOST)/share/cbootimage-configs/$(SOC)/$(VENDOR)/$(VARIANT)/$(bct).bct.cfg \
|
|
|
|
$(bct).bct; \
|
|
|
|
cbootimage -s $(SOC) \
|
|
|
|
$(STAGING_DIR_HOST)/share/cbootimage-configs/$(SOC)/$(VENDOR)/$(VARIANT)/$(bct).img.cfg \
|
|
|
|
$(PKG_BUILD_DIR)/$(bct).img; \
|
|
|
|
rm -f $(bct).bct; \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
sed '/select BINMAN/d' -i $(PKG_BUILD_DIR)/arch/arm/mach-tegra/Kconfig
|
|
|
|
$(call Build/Configure/U-Boot)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/U-Boot)
|
|
|
|
$(call Build/bct-image)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
|
|
|
$(foreach img,$(UBOOT_IMAGE), \
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/$(img) $(STAGING_DIR_IMAGE)/;)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage/U-Boot))
|