Minor structural updates.
This commit is contained in:
parent
b7334f1656
commit
b0abfba526
@ -5,3 +5,4 @@ mkdir work
|
||||
|
||||
# -p stops errors if the directory already exists
|
||||
mkdir -p source
|
||||
|
||||
|
@ -16,8 +16,9 @@ wget -c $DOWNLOAD_URL
|
||||
rm -rf ../work/kernel
|
||||
mkdir ../work/kernel
|
||||
|
||||
# Extract kernel to folder 'kernel'
|
||||
# Full path will be something like 'kernel\linux-3.16.1'
|
||||
# Extract kernel to folder 'work/kernel'
|
||||
# Full path will be something like 'work/kernel/linux-3.16.1'
|
||||
tar -xvf $ARCHIVE_FILE -C ../work/kernel
|
||||
|
||||
cd ..
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
cd work/kernel
|
||||
|
||||
# Change to the first directory ls finds, e.g. 'linux-3.16.1'
|
||||
# Change to the first directory ls finds, e.g. 'linux-3.18.6'
|
||||
cd $(ls -d *)
|
||||
|
||||
# Cleans up the kernel sources, including configuration files
|
||||
@ -20,3 +20,4 @@ sed -i "s/.*CONFIG_DEFAULT_HOSTNAME.*/CONFIG_DEFAULT_HOSTNAME=\"minimal\"/" .con
|
||||
make bzImage
|
||||
|
||||
cd ../../..
|
||||
|
||||
|
@ -17,7 +17,8 @@ rm -rf ../work/busybox
|
||||
mkdir ../work/busybox
|
||||
|
||||
# Extract busybox to folder 'busybox'
|
||||
# Full path will be something like 'busybox\busybox-1.22.1'
|
||||
# Full path will be something like 'work/busybox/busybox-1.23.1'
|
||||
tar -xvf $ARCHIVE_FILE -C ../work/busybox
|
||||
|
||||
cd ..
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
cd work/busybox
|
||||
|
||||
# Change to the first directory ls finds, e.g. 'busybox-1.22.1'
|
||||
# Change to the first directory ls finds, e.g. 'busybox-1.23.1'
|
||||
cd $(ls -d *)
|
||||
|
||||
# Remove previously generated artefacts
|
||||
@ -23,3 +23,4 @@ make busybox
|
||||
make install
|
||||
|
||||
cd ../../..
|
||||
|
||||
|
@ -77,3 +77,4 @@ chmod +r src/*.sh
|
||||
chmod +r src/.config
|
||||
|
||||
cd ../..
|
||||
|
||||
|
@ -9,3 +9,4 @@ cd rootfs
|
||||
find . | cpio -H newc -o | gzip > ../rootfs.cpio.gz
|
||||
|
||||
cd ../..
|
||||
|
||||
|
@ -9,3 +9,4 @@ make isoimage FDINITRD=../../rootfs.cpio.gz
|
||||
cp arch/x86/boot/image.iso ../../../minimal_linux_live.iso
|
||||
|
||||
cd ../../..
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user