Host default environment doesn't provide/require gnutls headers needed
for building mkeficapsule tools, and as tegra target doesn't require EFI
capability, disable the build of mentioned tool.
Fixes: 92cd360aac
("uboot-tegra: bump version to 2025.04")
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250713125126.215092-1-tmn505@terefe.re/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
64 lines
1.6 KiB
Makefile
64 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2017-2019 Tomasz Maciej Nowak <tmn505@gmail.com>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_VERSION := 2025.04
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_HASH := 439d3bef296effd54130be6a731c5b118be7fddd7fcc663ccbc5fb18294d8718
|
|
|
|
PKG_MAINTAINER := Tomasz Maciej Nowak <tmn505@gmail.com>
|
|
|
|
UBOOT_USE_INTREE_DTC:=1
|
|
|
|
include $(INCLUDE_DIR)/u-boot.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define U-Boot/Default
|
|
BUILD_TARGET := tegra
|
|
BUILD_SUBTARGET := generic
|
|
HIDDEN := y
|
|
endef
|
|
|
|
define U-Boot/trimslice
|
|
NAME := CompuLab TrimSlice
|
|
BUILD_DEVICES := compulab_trimslice
|
|
UBOOT_IMAGE := trimslice-mmc.img trimslice-spi.img
|
|
SOC := tegra20
|
|
VENDOR := compulab
|
|
endef
|
|
|
|
UBOOT_TARGETS := trimslice
|
|
|
|
UBOOT_CUSTOMIZE_CONFIG := --disable TOOLS_MKEFICAPSULE
|
|
|
|
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/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))
|