Update env.sh

This commit is contained in:
superconvert 2022-07-27 13:06:23 +08:00 committed by GitHub
parent 2d2a2a1237
commit c98b7828c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
env.sh
View File

@ -1,4 +1,11 @@
#!/bin/sh
rm work/kernel_install/ work/glibc_install/ work/busybox_install/ -rf
apt -y install gcc g++ make gawk bison libelf-dev
if [ -f "/usr/bin/apt" ]; then
apt -y install gcc g++ make gawk bison libelf-dev
fi
if [ -f "/usr/bin/yum" ]; then
yum -y install gcc gcc-c++ make gawk bison elfutils-libelf
fi