svn commit: trunk/buildroot: scripts
Author: ninevoltz
Date: 2008-03-06 09:52:37 -0800 (Thu, 06 Mar 2008) New Revision: 21176
Log:
some buildroot helper scripts
Added:
trunk/buildroot/scripts/
trunk/buildroot/scripts/add_new_package.wizard
trunk/buildroot/scripts/build-ext3-img
trunk/buildroot/scripts/create_ipkgs
Changeset:
Added: trunk/buildroot/scripts/add_new_package.wizard
===================================================================
buildroot/scripts/add_new_package.wizard +94 -0
@@ -0,0 +1,94 @@ +#!/bin/sh + +echo "**** Autotools Add New Package Wizard ****" +echo " This script will generate files to add a" +echo " new package to buildroot." +echo + +echo "What is the name of the package?" +read PACKAGE_NAME + +echo "What is the version number?" +read VERSION_NUM + +echo "What is the web address of the tarball?" +read DOWNLOAD_LOC + +echo "Enter any known dependencies, separated" +echo "by spaces, or just press enter." +read EXTRA_DEPS + +echo "Enter a description of the package." +read DESCRIPTION + +echo "Does autoreconf need to be run first? (y/n)" +read ANSWER + +if [ "$ANSWER" = "y" ]; then + RECONF="YES" +else + RECONF="NO" +fi + +echo "Does it need to be installed to the staging dir?" +echo "Say yes, if other packages depend on it." +echo "(If not sure, just say yes. It will only use more" +echo "space on your hard drive.)" +read ANSWER + +if [ "$ANSWER" = "y" ]; then + STAGING="YES" +else + STAGING="NO" +fi + +echo "Enter any configure script options." +read CONFIG_OPTIONS + +URL=${DOWNLOAD_LOC%/*} +TARBALL=${DOWNLOAD_LOC##*/} +EXTENSION=${TARBALL##*.tar.} +NAME_UPPER=`echo ${PACKAGE_NAME} | tr [a-z] [A-Z]` +NAME_UPPER=${NAME_UPPER//-/_} + +mkdir ../package/${PACKAGE_NAME} + +cat > ../package/${PACKAGE_NAME}/${PACKAGE_NAME}.mk <<EOF +############################################################# +# +# ${PACKAGE_NAME} +# +############################################################# +${NAME_UPPER}_VERSION = ${VERSION_NUM} +${NAME_UPPER}_SOURCE = ${PACKAGE_NAME}-\$(${NAME_UPPER}_VERSION).tar.${EXTENSION} +${NAME_UPPER}_SITE = ${URL} +${NAME_UPPER}_AUTORECONF = ${RECONF} +${NAME_UPPER}_INSTALL_STAGING = ${STAGING} +${NAME_UPPER}_INSTALL_TARGET = YES + +${NAME_UPPER}_CONF_OPT = ${CONFIG_OPTIONS} + +${NAME_UPPER}_DEPENDENCIES = uclibc ${EXTRA_DEPS} + +\$(eval \$(call AUTOTARGETS,package,${PACKAGE_NAME})) + +EOF + +cat > ../package/${PACKAGE_NAME}/Config.in <<EOF +config BR2_PACKAGE_${NAME_UPPER} + bool "${PACKAGE_NAME}" + default n + help + ${DESCRIPTION} + + ${URL} +EOF + +echo "Just add: source \"package/${PACKAGE_NAME}/Config.in\"" +echo "to the file package/Config.in in an appropriate" +echo "location." +echo +echo "You are now ready to build ${PACKAGE_NAME}" +echo "Just run make menuconfig and select your new" +echo "package, then run make." +
Property changes on: trunk/buildroot/scripts/add_new_package.wizard
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/buildroot/scripts/build-ext3-img
===================================================================
buildroot/scripts/build-ext3-img +152 -0
152 lines not on this page · raw message
Property changes on: trunk/buildroot/scripts/build-ext3-img
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/buildroot/scripts/create_ipkgs
===================================================================
buildroot/scripts/create_ipkgs +82 -0
82 lines not on this page · raw message
Property changes on: trunk/buildroot/scripts/create_ipkgs
___________________________________________________________________
Name: svn:executable
+ *
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"ninevoltz" == ninevoltz <[email protected]> writes:
Hi,
ninevoltz> Author: ninevoltz
ninevoltz> Date: 2008-03-06 09:52:37 -0800 (Thu, 06 Mar 2008) ninevoltz> New Revision: 21176
ninevoltz> Log:
ninevoltz> some buildroot helper scripts
ninevoltz> Added:
ninevoltz> trunk/buildroot/scripts/ ninevoltz> trunk/buildroot/scripts/add_new_package.wizard ninevoltz> trunk/buildroot/scripts/build-ext3-img ninevoltz> trunk/buildroot/scripts/create_ipkgs
Adding something in docs/ about this would be nice.
Signature · 1 line
Bye, Peter Korsgaard
buildroot/scripts/build-ext3-img
Quoted 18 lines · ninevoltz at uclibc.org
Author: ninevoltz
Date: 2008-03-06 09:52:37 -0800 (Thu, 06 Mar 2008) New Revision: 21176Log:
some buildroot helper scriptsAdded:
trunk/buildroot/scripts/
trunk/buildroot/scripts/add_new_package.wizard
trunk/buildroot/scripts/build-ext3-img
trunk/buildroot/scripts/create_ipkgsAdded: trunk/buildroot/scripts/build-ext3-img
===================================================================buildroot/scripts/build-ext3-img +0
-0
Why isn't this just a normal target? Or an option to the current ext2 target?
Hamish
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>