mirror of
https://bitbucket.org/gwenhael/cubietruck-slackware.git
synced 2024-12-26 21:58:20 +01:00
added --clean
This commit is contained in:
parent
19ad9a920a
commit
260beb23b4
2 changed files with 19 additions and 8 deletions
10
TODO.org
10
TODO.org
|
@ -1,11 +1,11 @@
|
||||||
# --- TODO
|
# --- TODO
|
||||||
|
|
||||||
* TODO [#A] try kernel.org kernel
|
* TODO [#B] try kernel.org kernel
|
||||||
* TODO [#A] add --clean
|
* TODO [#C] build rootfs from slackwarearm-current
|
||||||
* TODO [#B] build rootfs from slackwarearm-current
|
|
||||||
ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-devtools/minirootfs/scripts/
|
ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-devtools/minirootfs/scripts/
|
||||||
* TODO [#B] compile out-of-tree
|
* TODO [#C] compile out-of-tree
|
||||||
* TODO [#B] switch userland to hard-float binaries
|
* TODO [#C] switch userland to hard-float binaries
|
||||||
|
* DONE add --clean
|
||||||
* DONE package the kernel in a real slackware package
|
* DONE package the kernel in a real slackware package
|
||||||
* DONE offer pre-built binaries
|
* DONE offer pre-built binaries
|
||||||
* DONE configure by passing --parameters
|
* DONE configure by passing --parameters
|
||||||
|
|
15
build.sh
15
build.sh
|
@ -25,10 +25,22 @@ PACKAGE_BINARIES=false
|
||||||
|
|
||||||
BINARIES_DIR=$CWD/binaries
|
BINARIES_DIR=$CWD/binaries
|
||||||
|
|
||||||
|
function cleanall() {
|
||||||
|
for i in u-boot-sunxi sunxi-tools linux-sunxi; do
|
||||||
|
( cd $DEST/$i
|
||||||
|
make clean CROSS_COMPILE=$CROSS_COMPILE )
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# commandline arguments processing
|
# commandline arguments processing
|
||||||
while [ "x$1" != "x" ]
|
while [ "x$1" != "x" ]
|
||||||
do
|
do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
--clean )
|
||||||
|
shift
|
||||||
|
cleanall
|
||||||
|
exit -1
|
||||||
|
;;
|
||||||
-c | --compile )
|
-c | --compile )
|
||||||
shift
|
shift
|
||||||
COMPILE="true"
|
COMPILE="true"
|
||||||
|
@ -89,6 +101,7 @@ do
|
||||||
-h | --help )
|
-h | --help )
|
||||||
echo -e "Usage: run as root: $0 <options>"
|
echo -e "Usage: run as root: $0 <options>"
|
||||||
echo -e "Options:"
|
echo -e "Options:"
|
||||||
|
echo -e "\t--clean"
|
||||||
echo -e "\t-c | --compile"
|
echo -e "\t-c | --compile"
|
||||||
echo -e "\t-dc | --dont-compile (default)"
|
echo -e "\t-dc | --dont-compile (default)"
|
||||||
echo -e "\t-d | --display [\"HDMI\"|\"VGA\"] (default: $CUBIETRUCK_DISPLAY)"
|
echo -e "\t-d | --display [\"HDMI\"|\"VGA\"] (default: $CUBIETRUCK_DISPLAY)"
|
||||||
|
@ -112,8 +125,6 @@ done
|
||||||
# --- Script --------------------------------------------------------------------
|
# --- Script --------------------------------------------------------------------
|
||||||
mkdir -p $DEST
|
mkdir -p $DEST
|
||||||
|
|
||||||
echo "Building Cubietruck-Slackware in $DEST from $CWD"
|
|
||||||
|
|
||||||
if [ "$COMPILE" = "true" ]; then
|
if [ "$COMPILE" = "true" ]; then
|
||||||
mkdir -p $BINARIES_DIR
|
mkdir -p $BINARIES_DIR
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue