From ba720f508ea2650e7e4c1da9c582ae4d1529724b Mon Sep 17 00:00:00 2001 From: Stelios Koroneos Date: Tue, 21 Aug 2007 13:27:03 +0000 Subject: classes/xilinx-bsp.bbclass : Add a class to handle xilinx kernel requirments --- classes/xilinx-bsp.bbclass | 53 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 classes/xilinx-bsp.bbclass (limited to 'classes') diff --git a/classes/xilinx-bsp.bbclass b/classes/xilinx-bsp.bbclass new file mode 100644 index 0000000000..fd09946061 --- /dev/null +++ b/classes/xilinx-bsp.bbclass @@ -0,0 +1,53 @@ +# Copyright (C) 2007, Stelios Koroneos - Digital OPSiS, All Rights Reserved +# Released under the MIT license (see packages/COPYING) +# +#This class handles all the intricasies of getting the required files from the +#ISE/EDK/project to the kernel and prepare the kernel for compilation. +#The Xilinx EDK supports 2 different architectures : PowerPC (ppc 405) and Microblaze +#Only the PowerPC BSP has been tested so far +#For this to work correctly you need to add XILINX_BSP_PATH and XILINX_BOARD to your +#local.conf +#XILINX_BSP_PATH should have the complete path to your project dir +#XILINX_BOARD should have the board type i.e ML403 +# +#Currently supported boards +#Xilinx ML403 +#More to come soon ;) + +do_configure_prepend() { + + +#first check that the XILINX_BSP_PATH and XILINX_BOARD have been defined in local.conf +if [ -z "${XILINX_BSP_PATH}" ]; then + oefatal "XILINX_BSP_PATH not defined ! Exiting..." + exit 1 + +else + if [ -z "${XILINX_BOARD}" ]; then + oefatal "XILINX_BOARD not defined ! Exiting" + exit 1 + fi + +fi +#now depending on the board type and arch do what is nessesary + +case "${XILINX_BOARD}" in + ML403) + oenote "ML403 board setup" + cp -a ${XILINX_BSP_PATH}/ppc405_0/libsrc/linux_2_6_v1_00_a/linux/arch/ppc/platforms/4xx/xparameters/xparameters_ml40x.h \ + ${S}/arch/ppc/platforms/4xx/xparameters/xparameters_ml403.h + ;; + + * ) + oefatal "! Unknow Xilinx board ! Exiting..." + exit 1 + ;; +esac + + +} + + + + + -- cgit v1.2.3 From aaaac4c545623d8818de2d3fa71d9d63b717c575 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Tue, 21 Aug 2007 15:08:10 +0000 Subject: classes/distutils.bbclass: remove easy-install.pth, since this ends up in every package and Python 2.5 seems to be able to import .egg packages even without it --- classes/distutils.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'classes') diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass index 9f699bc7f0..8a34594a70 100644 --- a/classes/distutils.bbclass +++ b/classes/distutils.bbclass @@ -42,6 +42,7 @@ distutils_do_install() { done fi + rm -f ${D}${libdir}/${PYTHON_DIR}/site-packages/easy-install.pth } EXPORT_FUNCTIONS do_compile do_install -- cgit v1.2.3 From caa3f3523c30f1c3e333c9866e290b97f3536c6d Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 21 Aug 2007 21:42:40 +0000 Subject: fic-gta01.conf: Drop EXTRA_IMAGEDEPENDS on sjf2410-linux-native to let the OpenMoko build work on big endian machines. We do not need sjf2410 anymore atm. --- classes/openmoko2.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes') diff --git a/classes/openmoko2.bbclass b/classes/openmoko2.bbclass index 872dd4915c..ef734e4311 100644 --- a/classes/openmoko2.bbclass +++ b/classes/openmoko2.bbclass @@ -29,5 +29,5 @@ S = "${WORKDIR}/${PN}" FILES_${PN} += "${datadir}/icons" -# SVNREV = "r${SRCREV}" -SVNREV = "${SRCDATE}" +SVNREV = "r${SRCREV}" +#SVNREV = "${SRCDATE}" -- cgit v1.2.3 From 02660bf2a86ce4fbc3ecedaa0e836572702be013 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 21 Aug 2007 21:43:07 +0000 Subject: disapproval of revision 'badf9d8b62f79360108e71d3657a6dd7abe98d03' --- classes/openmoko2.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes') diff --git a/classes/openmoko2.bbclass b/classes/openmoko2.bbclass index ef734e4311..872dd4915c 100644 --- a/classes/openmoko2.bbclass +++ b/classes/openmoko2.bbclass @@ -29,5 +29,5 @@ S = "${WORKDIR}/${PN}" FILES_${PN} += "${datadir}/icons" -SVNREV = "r${SRCREV}" -#SVNREV = "${SRCDATE}" +# SVNREV = "r${SRCREV}" +SVNREV = "${SRCDATE}" -- cgit v1.2.3 From 1ad1eead848e02c6eea27c34e869126d81cb6355 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Wed, 22 Aug 2007 13:47:30 +0000 Subject: distutils.bbclass: always install staging directory before calling python --- classes/distutils.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass index 8a34594a70..c07a9911cd 100644 --- a/classes/distutils.bbclass +++ b/classes/distutils.bbclass @@ -13,7 +13,8 @@ distutils_stage_headers() { } distutils_stage_all() { - PYTHONPATH=${STAGING_INCDIR}/../${PYTHON_DIR}/site-packages \ + install -d ${STAGING_INCDIR}/../${PYTHON_DIR}/site-packages + PYTHONPATH=${STAGING_INCDIR}/../${PYTHON_DIR}/site-packages \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ ${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${STAGING_INCDIR}/.. --install-data=${STAGING_INCDIR}/../share || \ oefatal "python setup.py install (stage) execution failed." -- cgit v1.2.3 From 24aa0782880ea230c41957aedb9517583af31406 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 22 Aug 2007 15:15:51 +0000 Subject: image/rootfs_ipk: Remove uneeded mkdir calls --- classes/image.bbclass | 1 - classes/rootfs_ipk.bbclass | 1 - 2 files changed, 2 deletions(-) (limited to 'classes') diff --git a/classes/image.bbclass b/classes/image.bbclass index 248ccab60b..aa0c73adb7 100644 --- a/classes/image.bbclass +++ b/classes/image.bbclass @@ -71,7 +71,6 @@ fakeroot do_rootfs () { rm -rf ${IMAGE_ROOTFS} if [ "${USE_DEVFS}" != "1" ]; then - mkdir -p ${IMAGE_ROOTFS}/dev for devtable in ${@get_devtable_list(d)}; do makedevs -r ${IMAGE_ROOTFS} -D $devtable done diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass index 75c85e8f3d..53b0162eac 100644 --- a/classes/rootfs_ipk.bbclass +++ b/classes/rootfs_ipk.bbclass @@ -37,7 +37,6 @@ fakeroot rootfs_ipk_do_rootfs () { rootfs_ipk_do_indexes - mkdir -p ${IMAGE_ROOTFS}/dev mkdir -p ${T} #Add deploy/ipk as well for backward compat -- cgit v1.2.3 From 681a42f0f9ed259fa6d1747f9282044d5b799ef4 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 22 Aug 2007 16:14:59 +0000 Subject: image.bbclass: Add the mkdir back in a different form. This proves nobody uses USE_DEVFS and we should consider removing it, --- classes/image.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'classes') diff --git a/classes/image.bbclass b/classes/image.bbclass index aa0c73adb7..91e63262cd 100644 --- a/classes/image.bbclass +++ b/classes/image.bbclass @@ -69,6 +69,7 @@ do_build[nostamp] = "1" fakeroot do_rootfs () { set -x rm -rf ${IMAGE_ROOTFS} + mkdir -p ${IMAGE_ROOTFS} if [ "${USE_DEVFS}" != "1" ]; then for devtable in ${@get_devtable_list(d)}; do -- cgit v1.2.3 From 8f4ca08c42769081860c4f89d41d079fad9681c8 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 23 Aug 2007 08:28:07 +0000 Subject: seppuku.bbclass: add more debugging and keep attaching buildlogs for known bugs --- classes/seppuku.bbclass | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'classes') diff --git a/classes/seppuku.bbclass b/classes/seppuku.bbclass index 7241ae3e7a..101f621303 100644 --- a/classes/seppuku.bbclass +++ b/classes/seppuku.bbclass @@ -335,16 +335,23 @@ python seppuku_eventhandler() { (bug_open, bug_number) = seppuku_find_bug_report(debug_file, opener, query, product, component, bugname) print >> debug_file, "Bug is open: %s and bug number: %s" % (bug_open, bug_number) - # The bug is present and still open, no need to attach an error log + # The bug is present and still open, attach an error log if bug_number and bug_open: print >> debug_file, "The bug is known as '%s'" % bug_number + if file: + if not seppuku_create_attachment(debug_file, poster, attach, product, component, bug_number, text, file): + print >> debug_file, "Failed to attach the build log for bug #%s" % bug_number + else: + print >> debug_file, "Created an attachment for '%s' '%s' '%s'" % (product, component, bug_number) + else: + print >> debug_file, "Not trying to create an attachment for bug #%s" % bug_number return NotHandled if bug_number and not bug_open: if not seppuku_reopen_bug(poster, reopen, product, component, bug_number, bugname, text): - print >> debug_file, "Failed to reopen the bug report" + print >> debug_file, "Failed to reopen the bug #%s" % bug_number else: - print >> debug_file, "Reopened the bug report" + print >> debug_file, "Reopened the bug #%s" % bug_number else: bug_number = seppuku_file_bug(poster, newbug, product, component, bugname, text) if not bug_number: @@ -354,11 +361,11 @@ python seppuku_eventhandler() { if bug_number and file: if not seppuku_create_attachment(debug_file, poster, attach, product, component, bug_number, text, file): - print >> debug_file, "Failed to attach the build log" + print >> debug_file, "Failed to attach the build log for bug #%" % bug_number else: print >> debug_file, "Created an attachment for '%s' '%s' '%s'" % (product, component, bug_number) else: - print >> debug_file, "Not trying to create an attachment" + print >> debug_file, "Not trying to create an attachment for bug #%" % bug_number return NotHandled } -- cgit v1.2.3