Skip to content

Commit e942062

Browse files
Merge pull request #4 from OnionIoT/feature/setup-default-env
write default environment to u-boot-env flash partition if no environment vars set
2 parents 4de19b9 + a0f5ff9 commit e942062

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ build_uboot() {
5858

5959
echo "Building U-Boot for $TARGET_DEVICE"
6060
make ${TARGET_DEVICE}_defconfig
61-
make ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_CROSS_COMPILE}
61+
eval "make ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_CROSS_COMPILE} ${COMPILE_FLAGS}"
6262
if [ $? -ne 0 ]; then
6363
echo "Build failed"
6464
exit 1

profile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#!/bin/sh
22

33
REPO="https://github.com/OnionIoT/u-boot"
4-
COMMIT="5f87035d7d82fdc72ba872308bf9f4998f2e57f5"
4+
COMMIT="317613c4c42e882f310265d8a9e9e0c1dcb80085"
55
UBOOT_RELEASE="v2025.04"
66

77
TARGET_DEVICE="onion-omega2p"
88
TARGET_ARCH="mips"
99
TARGET_CROSS_COMPILE="mipsel-linux-gnu-"
10-
11-
10+
COMPILE_FLAGS='KCFLAGS="-Os -pipe -fno-caller-saves"'

0 commit comments

Comments
 (0)