mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
Switch from the RobertCNelson GitHub mirror to the official TI git repository and update to version 0x192 (latest release). The previous installation method used sysfs to load the firmware, which was specific to old downstream Beaglebone or TI kernels. The mainline wkup_m3_ipc driver now expects am335x-pm-firmware.elf and *-scale-data.bin files to be installed in /lib/firmware, making the sysfs init script obsolete. Changes: - Switch repository from github.com/RobertCNelson to git.ti.com - Update version from 11107db (v05.00.00.02) to fb484c5 (v0x192) - Refresh all patches to apply cleanly on new version - Install .elf and scale-data files instead of .bin - Remove obsolete S93-am335x-pm-firmware-load init script - Update .checkpackageignore to reflect changes Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com> [Julien: update .checkpackageignore to fix check-package errors] Signed-off-by: Julien Olivain <ju.o@free.fr>
45 lines
1.6 KiB
Diff
45 lines
1.6 KiB
Diff
From bce00a9036fb0fc4d7735cd2c386b4932b915d97 Mon Sep 17 00:00:00 2001
|
|
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
Date: Tue, 16 Dec 2025 15:09:15 +0100
|
|
Subject: [PATCH] Makefile: add -fno-builtin
|
|
|
|
Build with gcc 10 fails on:
|
|
|
|
/srv/storage/autobuild/run/instance-2/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: src/foundation/startup.o: in function `reset_handler':
|
|
/srv/storage/autobuild/run/instance-2/output-1/build/am33x-cm3-11107db2f1e9e58ee75d4fe9cc38423c9a6e4365/src/foundation/startup.c:177: undefined reference to `memcpy'
|
|
|
|
This is due to the fact that gcc 10 replaces the following statement by
|
|
a memcpy call:
|
|
|
|
*puldest++ = *pulsrc++;
|
|
|
|
To fix this build failure, add -fno-builtin
|
|
|
|
Fixes:
|
|
- http://autobuild.buildroot.org/results/a991e6efa012df518ff1bb35017ad2c96c8feedc
|
|
|
|
Upstream: N/A Buildroot specific
|
|
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
|
|
---
|
|
Makefile | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index 9146a8b6a7da..b4869c494593 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -17,7 +17,7 @@ CFLAGS =-march=armv7-m -mcpu=cortex-m3 -mthumb -nostdlib -ffreestanding -Wall -W
|
|
-Werror-implicit-function-declaration -Wstrict-prototypes \
|
|
-Wdeclaration-after-statement -fno-delete-null-pointer-checks \
|
|
-Wempty-body -fno-strict-overflow -fno-stack-protector \
|
|
- -fno-pie -g -I$(INCLUDES) -O2 -MD
|
|
+ -fno-pie -fno-builtin -g -I$(INCLUDES) -O2 -MD
|
|
LDFLAGS =-nostartfiles -fno-exceptions -Tfirmware.ld
|
|
|
|
EXECUTABLE=am335x-pm-firmware.elf
|
|
--
|
|
2.43.0
|
|
|