Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Refactor build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MilkyDeveloper committed Oct 30, 2021
1 parent 46350ca commit 784f421
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions kernel/build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

read -p "What kernel version would you like?"
read -p "What kernel version would you like? "

echo "Cloning the $REPLY kernel with --depth 1"
echo "Cloning kernel $REPLY with --depth 1"
git clone --branch chromeos-$REPLY --depth 1 https://chromium.googlesource.com/chromiumos/third_party/kernel.git
cd kernel

Expand Down Expand Up @@ -33,10 +33,10 @@ futility --debug vbutil_kernel \
--arch x86_64 --version 1 \
--keyblock /usr/share/vboot/devkeys/kernel.keyblock \
--signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk \
--bootloader kernel.flags \
--config kernel.flags \
--vmlinuz bzImage \
--pack bzImage.signed
--bootloader ../kernel.flags \
--config ../kernel.flags \
--vmlinuz ../bzImage \
--pack ../bzImage.signed
echo "Signed bzImage created\!" # Shell expansion weirdness

mkdir mod
Expand Down
1 change: 0 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

# Exit if the user did not specify the desktop
echo $1
[[ -n "$1" ]] || { echo "No desktop specified"; exit; }
[[ -n "$2" ]] || { echo "No distro specified, using Ubuntu"; set -- $1 "ubuntu"; }

Expand Down

0 comments on commit 784f421

Please sign in to comment.