Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
62
package/boot/uboot-tegra/Makefile
Normal file
62
package/boot/uboot-tegra/Makefile
Normal file
@@ -0,0 +1,62 @@
|
||||
#
|
||||
# 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 := 2024.04
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_HASH := 18a853fe39fad7ad03a90cc2d4275aeaed6da69735defac3492b80508843dd4a
|
||||
|
||||
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
|
||||
|
||||
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))
|
||||
Reference in New Issue
Block a user