-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attempt to simplify entrypoint.sh for docker container build. related…
- Loading branch information
jhpoelen
committed
Nov 8, 2017
1 parent
53353ec
commit aa98e2b
Showing
2 changed files
with
8 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,7 @@ | ||
#!/bin/bash | ||
ARCH=ar71xx | ||
time ./build $ARCH | ||
time ./build_extender-node $ARCH | ||
|
||
# this is part is an attempt at generalizing, took too long to test | ||
build="build" | ||
architecture=$1 | ||
directory="ar71xx" | ||
if [ -z "$architecture" ] | ||
then | ||
architecture="ar71xx" | ||
elif [ "$architecture" = "ar71xx.extender-node" ] | ||
then | ||
build="build_extender-node" | ||
directory="ar71xx.extender-node" | ||
fi | ||
#end of generalization attempt | ||
|
||
# this is the current method which is hardcoded, but works | ||
time ./build ar71xx | ||
time ./build_extender-node ar71xx | ||
mkdir -p ./firmware_images | ||
read -p "Check for home node images" | ||
cp -r ./built_firmware/builder.ar71xx/bin/ar71xx/ /firmware_images | ||
read -p "Check for extender node images" | ||
cp -r ./built_firmware/builder.ar71xx.extender-node/bin/ /firmware_images | ||
cp -r ./built_firmware /firmware_images |