added sed toolchain build
This commit is contained in:
21
build.sh
21
build.sh
@@ -83,6 +83,9 @@ MAKE_URL=https://mirror.ufs.ac.za/gnu/make/make-$MAKE_VERSION.tar.gz
|
||||
PATCH_VERSION=2.8
|
||||
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
|
||||
mkdir -p "$SYSROOT"/{etc,cross,sources,usr,dev,proc,sys,run}
|
||||
mkdir -p "$SYSROOT"/usr/{bin,sbin,lib,include}
|
||||
@@ -461,6 +464,21 @@ toolchain_patch() {
|
||||
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
|
||||
#bootstap_gcc
|
||||
#bootstap_linux
|
||||
@@ -477,4 +495,5 @@ toolchain_patch() {
|
||||
#toolchain_grep
|
||||
#toolchain_gzip
|
||||
#toolchain_make
|
||||
toolchain_patch
|
||||
#toolchain_patch
|
||||
toolchain_sed
|
||||
Reference in New Issue
Block a user