Skip to content

Commit

Permalink
Faster builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rickgaiser committed Feb 23, 2017
1 parent c88be83 commit ad31d72
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build-kernelloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source "config/config.cfg"
# Make kernelloader
#
cd ${KERNELLOADER_DIR}
make clean || exit -1
# make clean || exit -1
make || exit -1
cp loader/kloader.elf ../${USB_BOOT_DIR}/BOOT/KLOADER.ELF || exit -1
cd ..
Expand Down
11 changes: 8 additions & 3 deletions usb-stick/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ for arg; do
done

# Zero out the block device (for better compression)
dd if=/dev/zero of=$DEVICE bs=1M count=$STICK_SIZE_MB
#dd if=/dev/zero of=$DEVICE bs=1M count=$STICK_SIZE_MB

sleep 1

Expand Down Expand Up @@ -82,6 +82,11 @@ mkdir tmp
mount "$DEVICE"3 tmp
cd tmp

# Make sure there is a /boot directory to mount the BOOT partition
if [ ! -d ../root-overlay/boot ]; then
mkdir ../root-overlay/boot || exit -1
fi

# buildroot
cp -R ../../buildroot/output/target/* .
cp -R ../root-overlay/* .
Expand All @@ -99,6 +104,6 @@ umount tmp
rm -rf tmp

# Create distributable image
dd if=$DEVICE of=$RELEASE.img bs=1M count=$STICK_SIZE_MB
gzip -k $RELEASE.img
#dd if=$DEVICE of=$RELEASE.img bs=1M count=$STICK_SIZE_MB
#gzip -k $RELEASE.img

0 comments on commit ad31d72

Please sign in to comment.