diff options
author | Juergen Beisert <j.beisert@pengutronix.de> | 2006-09-26 09:46:10 +0000 |
---|---|---|
committer | Juergen Beisert <j.beisert@pengutronix.de> | 2006-09-26 09:46:10 +0000 |
commit | 6e498e202d28edfd8e4ba567251353fecb71da95 (patch) | |
tree | 0250c97164a9c40ba2457346fde895f2fa89d3a2 | |
parent | e9e9cd604aa81c20ea418736e0321d951daeb5d9 (diff) | |
download | ptxdist-6e498e202d28edfd8e4ba567251353fecb71da95.tar.gz ptxdist-6e498e202d28edfd8e4ba567251353fecb71da95.tar.xz |
supports new kernel_driver packet template
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6061 33e552b5-05e3-0310-8538-816dae2090ed
-rwxr-xr-x | bin/ptxdist | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index e259ebf98..af33b1a6d 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -173,14 +173,14 @@ check_deps() { # # Most install stages think that some standard directories are there, so -# they are created here. +# they are created here. # check_dirs() { local ptxconf_prefix ptxconf_gnu_target testfile if [ -z "$PREFIX" ]; then ptxconf_prefix=$(. ptxconfig && echo ${PTXCONF_PREFIX}) - else + else ptxconf_prefix=$PREFIX fi @@ -227,7 +227,7 @@ check_dirs() { ptxconf_gnu_target=$(. ptxconfig && echo ${PTXCONF_GNU_TARGET}) # And now we learn something new about shell: brace expansion. - # It saves 16 characters compared to what NORMAL people would write + # It saves 16 characters compared to what NORMAL people would write # here... unfortunately it discovers a bug in vim's syntax high- # lighting :) Thanks to Martin Neitzel who inspired this...(rsc) # it's even possible to do it shorter (mkl) @@ -272,7 +272,7 @@ Setup and Project Actions: boardsetup setup per-board preferences projects show available projects - clone <from> <to> create a new project, cloned from <from>. + clone <from> <to> create a new project, cloned from <from>. menuconfig configure the root filesystem oldconfig run 'make oldconfig' on ptxconfig file @@ -406,11 +406,11 @@ newpacket () { template prefix packet_filename packet_name packet PACKET filename case $1 in - host|target|cross|source) + host|target|cross|source|kernel_driver) ;; *) echo echo "${PROMPT}error: illegal packet type: $1" - echo "must be one of host, target, cross, source" + echo "must be one of host, target, cross, source, kernel_driver" echo exit 1 ;; esac @@ -447,6 +447,10 @@ newpacket () { template=template-src prefix= ;; + kernel_driver) + template=template-driver + prefix= + ;; esac packet_filename="${packet_name}" @@ -460,10 +464,10 @@ newpacket () { year=`date +%Y` filename="${prefix}${packet_filename}.make" - + if [ -f "${filename}" ]; then echo - echo -n "${PROMPT}warning: ${filename} does already exist, overwrite? " + echo -n "${PROMPT}warning: ${filename} does already exist, overwrite? [y/n]" read overwrite if [ "$overwrite" != "y" ]; then echo "${PROMPT}aborted." |