Skip to content

Commit

Permalink
update build .sh pixelc-linux#3
Browse files Browse the repository at this point in the history
  • Loading branch information
da-moon committed Apr 27, 2020
1 parent 40ae61e commit 5aa8ee2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ export ARCH=aarch64
export RFS_WIFI_SSID="$WIFI_SSID"
export RFS_WIFI_PASSWORD="$WIFI_PASSWORD"
assert_not_empty "DISTRO" "$DISTRO" "distro name must be set"
assert_not_empty "TOP" "$TOP" "TOP must be set"
assert_not_empty "SYSROOT" "$SYSROOT" "SYSROOT must be set"
readonly SYSROOT="$(pwd)/out/$DISTRO/rootfs"
local -r sysroot_dir="$(dirname "$SYSROOT")"
log_info "creating parent directory $sysroot_dir"
mkdir -p "$sysroot_dir"
log_info "distro is set to $DISTRO"
log_info "top is set to $TOP"
log_info "SYSROOT is set to $SYSROOT"
if [[ ! -d "$(pwd)/$SYSROOT" ]]; then
log_warn "SYSROOT directory $(pwd)/$SYSROOT not found. creating ..."
mkdir -p "$(pwd)/$SYSROOT"
if [[ ! -d "$SYSROOT" ]]; then
log_warn "SYSROOT directory $SYSROOT not found. creating ..."
mkdir -p "$SYSROOT"
fi
if [[ ! -d "$(pwd)/distros/$DISTRO" ]]; then
log_error "directory $(pwd)/distros/$DISTRO not found!";
Expand Down
1 change: 1 addition & 0 deletions distros/debian/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function setup_bcm4354(){
local -r target="$SYSROOT/lib/firmware/brcm/BCM4354.hcd"
local -r dir="$(dirname "$target")"
log_info "creating parent directory $dir"
mkdir -p "$dir"
local -r url="https://github.com/denysvitali/linux-smaug/blob/v4.17-rc3/firmware/bcm4354.hcd?raw=true"
log_info "downloading $url"
wget -O "$target" "$url"
Expand Down

0 comments on commit 5aa8ee2

Please sign in to comment.