added sed toolchain build

This commit is contained in:
ag-tsotetsi
2026-02-20 12:51:13 +02:00
parent 82b54c031d
commit 0d19582f7d

View File

@@ -83,6 +83,9 @@ MAKE_URL=https://mirror.ufs.ac.za/gnu/make/make-$MAKE_VERSION.tar.gz
PATCH_VERSION=2.8 PATCH_VERSION=2.8
PATCH_URL=https://mirror.ufs.ac.za/gnu/patch/patch-$PATCH_VERSION.tar.xz PATCH_URL=https://mirror.ufs.ac.za/gnu/patch/patch-$PATCH_VERSION.tar.xz
SED_VERSION=4.9
SED_URL=https://mirror.ufs.ac.za/gnu/sed/sed-$SED_VERSION.tar.xz
if [ ! -d "$SYSROOT" ]; then if [ ! -d "$SYSROOT" ]; then
mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run} mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run}
mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include} mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include}
@@ -461,6 +464,21 @@ toolchain_patch() {
cd "$SOURCES" && rm -rf patch-$PATCH_VERSION cd "$SOURCES" && rm -rf patch-$PATCH_VERSION
} }
toolchain_sed() {
fetch $SED_URL
cd "$SOURCES" && tar xf sed-$SED_VERSION.tar.xz && cd sed-$SED_VERSION
./configure \
--prefix=/usr \
--host=$TARGET \
--build=$(build-aux/config.guess)
make && make DESTDIR="$SYSROOT" install
cd "$SOURCES" && rm -rf sed-$SED_VERSION
}
#bootstrap_binutils #bootstrap_binutils
#bootstap_gcc #bootstap_gcc
#bootstap_linux #bootstap_linux
@@ -477,4 +495,5 @@ toolchain_patch() {
#toolchain_grep #toolchain_grep
#toolchain_gzip #toolchain_gzip
#toolchain_make #toolchain_make
toolchain_patch #toolchain_patch
toolchain_sed