gitlab-ci
This commit is contained in:
1 parent
02db81b6d9
commit
51c05f855a
8 files changed
+51
-51
No files matched your search
+7
-7
@@ -3,9 +3,9 @@
|
||||
#------------ glibc ----------------------------------------
|
||||
glibc() {
|
||||
printf "$UGREEN** Building glibc\n$RESET"
|
||||
mkdir -p $build/glibc &>> $fulllogfile
|
||||
mkdir -p $build/glibc &>> $fulllogfile >> $(tty)
|
||||
cd $build/glibc
|
||||
tar -xvf $root/downloads/glibc-2.39.tar.xz &>> $fulllogfile
|
||||
tar -xvf $root/downloads/glibc-2.39.tar.xz &>> $fulllogfile >> $(tty)
|
||||
check $? "Extract glibc"
|
||||
cd glibc-2.39
|
||||
mkdir build
|
||||
@@ -17,15 +17,15 @@ glibc() {
|
||||
--enable-kernel=4.19 \
|
||||
--enable-stack-protector=strong \
|
||||
--disable-nscd \
|
||||
libc_cv_slibdir=/usr/lib &>> $fulllogfile
|
||||
libc_cv_slibdir=/usr/lib &>> $fulllogfile >> $(tty)
|
||||
check $? "Configure glibc"
|
||||
make $makeflags &>> $fulllogfile
|
||||
make $makeflags &>> $fulllogfile >> $(tty)
|
||||
check $? "Build glibc"
|
||||
make DESTDIR=$rootfspath install &>> $fulllogfile
|
||||
make DESTDIR=$rootfspath install &>> $fulllogfile >> $(tty)
|
||||
check $? "Install glibc to rootfs"
|
||||
cd $rootfspath
|
||||
find -name \*.a -delete &>> $fulllogfile
|
||||
strip --strip-unneeded $rootfspath/usr/lib/* $rootfspath/usr/bin/* &>> $fulllogfile
|
||||
find -name \*.a -delete &>> $fulllogfile >> $(tty)
|
||||
strip --strip-unneeded $rootfspath/usr/lib/* $rootfspath/usr/bin/* &>> $fulllogfile >> $(tty)
|
||||
chroot $rootfspath /bin/sh -c "mkdir -p /usr/lib/locale;localedef -i C -f UTF-8 C.UTF-8;localedef -i en_US -f UTF-8 en_US.UTF-8;localedef -i ru_RU -f UTF-8 ru_RU-UTF-8;"
|
||||
cd $root
|
||||
check $? "Build and install glibc"
|
||||
|
||||
Reference in new issue
Block a user