moved sysroot to work/sysroot
this temporarily breaks everything
This commit is contained in:
parent
c4705052d6
commit
80ab1432d0
@ -1,53 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
echo "*** PREPARE GLIBC BEGIN ***"
|
|
||||||
|
|
||||||
SRC_DIR=$(pwd)
|
|
||||||
|
|
||||||
# Save the kernel installation directory.
|
|
||||||
KERNEL_INSTALLED=$(pwd)/work/kernel/kernel_installed
|
|
||||||
|
|
||||||
cd work/glibc
|
|
||||||
|
|
||||||
echo "Preparing glibc. This may take a while..."
|
|
||||||
|
|
||||||
rm -rf glibc_prepared
|
|
||||||
cp -r glibc_installed glibc_prepared
|
|
||||||
|
|
||||||
cd glibc_prepared
|
|
||||||
|
|
||||||
# Create custom 'usr' area and link it with some of the kernel header directories.
|
|
||||||
# BusyBox compilation process uses these linked directories. The following
|
|
||||||
# directories are affected:
|
|
||||||
#
|
|
||||||
# usr (glibc)
|
|
||||||
# |
|
|
||||||
# +--include (glibc)
|
|
||||||
# | |
|
|
||||||
# | +--asm (kernel)
|
|
||||||
# | |
|
|
||||||
# | +--asm-generic (kernel)
|
|
||||||
# | |
|
|
||||||
# | +--linux (kernel)
|
|
||||||
# | |
|
|
||||||
# | +--mtd (kernel)
|
|
||||||
# |
|
|
||||||
# +--lib (glibc)
|
|
||||||
|
|
||||||
mkdir -p usr
|
|
||||||
cd usr
|
|
||||||
|
|
||||||
ln -s ../include include
|
|
||||||
ln -s ../lib lib
|
|
||||||
|
|
||||||
cd ../include
|
|
||||||
|
|
||||||
ln -s $KERNEL_INSTALLED/include/linux linux
|
|
||||||
ln -s $KERNEL_INSTALLED/include/asm asm
|
|
||||||
ln -s $KERNEL_INSTALLED/include/asm-generic asm-generic
|
|
||||||
ln -s $KERNEL_INSTALLED/include/mtd mtd
|
|
||||||
|
|
||||||
cd $SRC_DIR
|
|
||||||
|
|
||||||
echo "*** PREPARE GLIBC END ***"
|
|
||||||
|
|
47
src/05_prepare_sysroot.sh
Executable file
47
src/05_prepare_sysroot.sh
Executable file
@ -0,0 +1,47 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "*** PREPARE SYSROOT BEGIN ***"
|
||||||
|
|
||||||
|
SRC_DIR=$(pwd)
|
||||||
|
|
||||||
|
cd work
|
||||||
|
|
||||||
|
echo "Cleaning existing sysroot. This may take a while..."
|
||||||
|
rm -rf sysroot
|
||||||
|
|
||||||
|
echo "Preparing glibc. This may take a while..."
|
||||||
|
cp -r glibc/glibc_installed sysroot
|
||||||
|
cd sysroot
|
||||||
|
|
||||||
|
# Create custom 'usr' area and link it with some of the kernel header directories.
|
||||||
|
# BusyBox compilation process uses these linked directories. The following
|
||||||
|
# directories are affected:
|
||||||
|
#
|
||||||
|
# usr (glibc)
|
||||||
|
# |
|
||||||
|
# +--include (glibc)
|
||||||
|
# | |
|
||||||
|
# | +--asm (kernel)
|
||||||
|
# | |
|
||||||
|
# | +--asm-generic (kernel)
|
||||||
|
# | |
|
||||||
|
# | +--linux (kernel)
|
||||||
|
# | |
|
||||||
|
# | +--mtd (kernel)
|
||||||
|
# |
|
||||||
|
# +--lib (glibc)
|
||||||
|
|
||||||
|
mkdir -p usr
|
||||||
|
|
||||||
|
ln -s ../include usr/include
|
||||||
|
ln -s ../lib usr/lib
|
||||||
|
|
||||||
|
ln -s ../../kernel/kernel_installed/include/linux include/linux
|
||||||
|
ln -s ../../kernel/kernel_installed/include/asm include/asm
|
||||||
|
ln -s ../../kernel/kernel_installed/include/asm-generic include/asm-generic
|
||||||
|
ln -s ../../kernel/kernel_installed/include/mtd include/mtd
|
||||||
|
|
||||||
|
cd $SRC_DIR
|
||||||
|
|
||||||
|
echo "*** PREPARE SYSROOT END ***"
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user