From 1e4c08546aa0423639db9c629b18a17e4f6c5431 Mon Sep 17 00:00:00 2001 From: Phillip Tennen Date: Sun, 24 Mar 2024 22:24:52 +0000 Subject: [PATCH] [Newlib] Attempt to provide an errno symbol --- .github/workflows/main.yml | 2 +- scripts/newlib.patch | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 597661dd2..457ce6d53 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,7 @@ jobs: x86_64-toolchain axle-sysroot scripts/mkinitrd/target - key: libc-and-toolchain + key: libc-and-toolchain-cachebuster - name: Build libc and toolchain shell: bash diff --git a/scripts/newlib.patch b/scripts/newlib.patch index 365340a32..531f88b6e 100644 --- a/scripts/newlib.patch +++ b/scripts/newlib.patch @@ -119,6 +119,10 @@ index 0000000..c2926ca +#include +#include + ++// Ref: https://sourceware.org/newlib/libc.html#Stubs ++#undef errno ++extern int errno; ++ +#include "syscalls.h" + +// amc syscalls