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
|
# -p stops errors if the directory already exists
|
||||||
mkdir -p source
|
mkdir -p source
|
||||||
|
|
||||||
|
@ -16,8 +16,9 @@ wget -c $DOWNLOAD_URL
|
|||||||
rm -rf ../work/kernel
|
rm -rf ../work/kernel
|
||||||
mkdir ../work/kernel
|
mkdir ../work/kernel
|
||||||
|
|
||||||
# Extract kernel to folder 'kernel'
|
# Extract kernel to folder 'work/kernel'
|
||||||
# Full path will be something like 'kernel\linux-3.16.1'
|
# Full path will be something like 'work/kernel/linux-3.16.1'
|
||||||
tar -xvf $ARCHIVE_FILE -C ../work/kernel
|
tar -xvf $ARCHIVE_FILE -C ../work/kernel
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
cd work/kernel
|
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 *)
|
cd $(ls -d *)
|
||||||
|
|
||||||
# Cleans up the kernel sources, including configuration files
|
# 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
|
make bzImage
|
||||||
|
|
||||||
cd ../../..
|
cd ../../..
|
||||||
|
|
||||||
|
@ -17,7 +17,8 @@ rm -rf ../work/busybox
|
|||||||
mkdir ../work/busybox
|
mkdir ../work/busybox
|
||||||
|
|
||||||
# Extract busybox to folder '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
|
tar -xvf $ARCHIVE_FILE -C ../work/busybox
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
cd work/busybox
|
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 *)
|
cd $(ls -d *)
|
||||||
|
|
||||||
# Remove previously generated artefacts
|
# Remove previously generated artefacts
|
||||||
@ -23,3 +23,4 @@ make busybox
|
|||||||
make install
|
make install
|
||||||
|
|
||||||
cd ../../..
|
cd ../../..
|
||||||
|
|
||||||
|
@ -77,3 +77,4 @@ chmod +r src/*.sh
|
|||||||
chmod +r src/.config
|
chmod +r src/.config
|
||||||
|
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
|
@ -9,3 +9,4 @@ cd rootfs
|
|||||||
find . | cpio -H newc -o | gzip > ../rootfs.cpio.gz
|
find . | cpio -H newc -o | gzip > ../rootfs.cpio.gz
|
||||||
|
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
|
@ -9,3 +9,4 @@ make isoimage FDINITRD=../../rootfs.cpio.gz
|
|||||||
cp arch/x86/boot/image.iso ../../../minimal_linux_live.iso
|
cp arch/x86/boot/image.iso ../../../minimal_linux_live.iso
|
||||||
|
|
||||||
cd ../../..
|
cd ../../..
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user