diff options
author | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2008-11-02 03:08:27 +0100 |
---|---|---|
committer | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2008-11-02 03:09:08 +0100 |
commit | 64fa2c456c32a9db1e482d7971dcd3923762d527 (patch) | |
tree | 52d7b1f96d84df2fe0507053705cd19bfb9ce0ba | |
parent | 022ea88c96a720959968c3d5cf1ea844120c464b (diff) |
qi: new recipe. Qi is the next-generation bootloader for Openmoko devices.
-rw-r--r-- | conf/distro/include/sane-srcrevs.inc | 1 | ||||
-rw-r--r-- | packages/qi/qi.inc | 46 | ||||
-rw-r--r-- | packages/qi/qi_git.bb | 7 |
3 files changed, 54 insertions, 0 deletions
diff --git a/conf/distro/include/sane-srcrevs.inc b/conf/distro/include/sane-srcrevs.inc index 2013c87272..3e0af7eb2f 100644 --- a/conf/distro/include/sane-srcrevs.inc +++ b/conf/distro/include/sane-srcrevs.inc @@ -184,6 +184,7 @@ QEMUSRCREV = "4242" SRCREV_pn-qemu-native ?= "${QEMUSRCREV}" SRCREV_pn-qemu-sdk ?= "${QEMUSRCREV}" SRCREV_pn-qemu ?= "${QEMUSRCREV}" +SRCREV_pn-qi ?= "ed52486b43dca91891305b9e832c8366a2742798" SRCREV_pn-remoko = "115" SRCREV_pn-remoko-server = "115" SRCREV_pn-s3c24xx-gpio ?= "4130" diff --git a/packages/qi/qi.inc b/packages/qi/qi.inc new file mode 100644 index 0000000000..ce28508fec --- /dev/null +++ b/packages/qi/qi.inc @@ -0,0 +1,46 @@ +DESCRIPTION = "Qi bootloader w/ Openmoko GTA02 and GTA03 support" +LICENSE = "GPL" +SECTION = "bootloader" +PROVIDES = "virtual/bootloader" +LOCALVERSION = "gitr${SRCREV}" +PV = "0.0.0+${LOCALVERSION}" + +EXTRA_OEMAKE = "" +PARALLEL_MAKE = "" +BUILD_BRANCH ?= "master" + +QI_MACHINES = "s3c2442 s3c6410" + +do_configure() { + echo >config.mk + #sed -i s,@,, Makefile +} + +do_compile () { + gccv=`${CC} -dumpversion` + for mach in ${QI_MACHINES} + do + ${MAKE} clean + ${MAKE} CPU=$mach \ + HOSTCC="${BUILD_CC}" \ + COMPILER_LIB_PATH="${CROSS_DIR}/lib/gcc/${TARGET_SYS}/$gccv/" \ + BUILD_BRANCH="master" \ + BUILD_HEAD="${LOCALVERSION}" + cp -f image/qi-$mach* ${S} + done +} + +do_deploy () { + install -d ${DEPLOY_DIR_IMAGE} + for mach in ${QI_MACHINES} + do + cat qi-$mach-${BUILD_BRANCH}_${LOCALVERSION} >> qi-$mach-${BUILD_BRANCH}_${LOCALVERSION}.udfu + install -m 0644 qi-$mach-${BUILD_BRANCH}_${LOCALVERSION}.udfu ${DEPLOY_DIR_IMAGE}/qi-$mach-${BUILD_BRANCH}-${PV}-${PR}.bin + ln -sf ${DEPLOY_DIR_IMAGE}/qi-${mach}-${PV}-${PR}.bin ${DEPLOY_DIR_IMAGE}/qi-${mach}-${BUILD_BRANCH}-latest.bin + done +} + +do_deploy[dirs] = "${S}" +addtask deploy before do_package after do_install +addtask quilt before do_patch after do_unpack +addtask svnrev before do_patch after do_quilt diff --git a/packages/qi/qi_git.bb b/packages/qi/qi_git.bb new file mode 100644 index 0000000000..37bf9af11f --- /dev/null +++ b/packages/qi/qi_git.bb @@ -0,0 +1,7 @@ +require qi.inc +BUILD_BRANCH = "master" +PR = "r0" + +SRC_URI = "git://git.openmoko.org/git/qi.git;protocol=git;branch=${BUILD_BRANCH}" +S = "${WORKDIR}/git" + |