Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
From 33f6391e6e87dfd8906899de7e765a48bd51144b Mon Sep 17 00:00:00 2001
|
||||
From: Andrew Bradford <andrew.bradford@konsulko.com>
|
||||
Date: Mon, 22 Jun 2026 14:48:15 -0400
|
||||
Subject: [PATCH] cdo: Fix incompatible-pointer-types in
|
||||
cdoseq_load_cdo_from_buffer
|
||||
|
||||
GCC 14 promotes -Wincompatible-pointer-types to a hard error, so the
|
||||
build fails with:
|
||||
|
||||
utils/src/cdo-load.c:140:14: error: assignment to 'char *' from incompatible pointer type 'uint32_t *' {aka 'unsigned int *'} [-Wincompatible-pointer-types]
|
||||
140 | data = raw->data;
|
||||
| ^
|
||||
make: *** [Makefile:81: build/obj/cdo-load.o] Error 1
|
||||
|
||||
The function parameter data is char *, but raw->data (struct CdoRawInfo)
|
||||
is uint32_t *. The sibling function cdoseq_load_cdo avoids this because
|
||||
its local data is void *, which accepts any pointer without a cast.
|
||||
|
||||
Add an explicit (char *) cast.
|
||||
|
||||
Signed-off-by: Andrew Bradford <andrew.bradford@konsulko.com>
|
||||
|
||||
Upstream: https://github.com/Xilinx/bootgen/pull/47
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
utils/src/cdo-load.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/utils/src/cdo-load.c b/utils/src/cdo-load.c
|
||||
index cb0ff49..96a479a 100755
|
||||
--- a/utils/src/cdo-load.c
|
||||
+++ b/utils/src/cdo-load.c
|
||||
@@ -137,7 +137,7 @@ CdoSequence * cdoseq_load_cdo_from_buffer(char * data, size_t size) {
|
||||
if (data == NULL) goto done;
|
||||
raw = cdoraw_decode(data, size);
|
||||
if (raw != NULL) {
|
||||
- data = raw->data;
|
||||
+ data = (char *)raw->data;
|
||||
size = raw->size;
|
||||
}
|
||||
if (is_cdo_data(data, size)) {
|
||||
--
|
||||
2.47.3
|
||||
|
||||
11
package/bootgen/Config.in.host
Normal file
11
package/bootgen/Config.in.host
Normal file
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_HOST_BOOTGEN
|
||||
bool "host bootgen"
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5 # C++14
|
||||
help
|
||||
bootgen is a tool to generate a boot.bin firmware
|
||||
for Xilinx versal, zynqmp and zynq product families.
|
||||
|
||||
Additional secure boot features are supported beyond
|
||||
what is included with u-boot mkimage.
|
||||
|
||||
https://github.com/Xilinx/bootgen
|
||||
3
package/bootgen/bootgen.hash
Normal file
3
package/bootgen/bootgen.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 23529d4922efd79d201d6b4a3cdaefe5cc9384b55dd56ef916a56f2a0ed7340c bootgen-xilinx_v2026.1.tar.gz
|
||||
sha256 36e278ff2cc9ef95154a923bf4a9450414f358779045ae4f863c8d77fb18dbdb LICENSE
|
||||
25
package/bootgen/bootgen.mk
Normal file
25
package/bootgen/bootgen.mk
Normal file
@@ -0,0 +1,25 @@
|
||||
################################################################################
|
||||
#
|
||||
# bootgen
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BOOTGEN_VERSION = xilinx_v2026.1
|
||||
BOOTGEN_SITE = $(call github,Xilinx,bootgen,$(BOOTGEN_VERSION))
|
||||
HOST_BOOTGEN_DEPENDENCIES = host-openssl host-pkgconf
|
||||
BOOTGEN_LICENSE = Apache-2.0
|
||||
BOOTGEN_LICENSE_FILES = LICENSE
|
||||
|
||||
define HOST_BOOTGEN_BUILD_CMDS
|
||||
$(MAKE) $(HOST_CONFIGURE_OPTS) \
|
||||
LIBS="`$(HOST_MAKE_ENV) $(PKG_CONFIG_HOST_BINARY) --libs libssl libcrypto`" \
|
||||
INCLUDE_USER="`$(HOST_MAKE_ENV) $(PKG_CONFIG_HOST_BINARY) --cflags libssl libcrypto`" \
|
||||
CXXFLAGS="$(HOST_CXXFLAGS) -std=c++14" \
|
||||
-C $(@D)
|
||||
endef
|
||||
|
||||
define HOST_BOOTGEN_INSTALL_CMDS
|
||||
$(INSTALL) -m 0755 -D $(@D)/build/bin/bootgen $(HOST_DIR)/bin/bootgen
|
||||
endef
|
||||
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user