summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/insane.bbclass65
-rw-r--r--meta/packages/linux/files/1300-fix-gcc-4.3-false-modulo-optimization.patch.patch48
-rw-r--r--meta/packages/linux/files/sumversion-fix.patch16
-rw-r--r--meta/packages/linux/linux-mx31.inc2
-rw-r--r--meta/packages/linux/linux-mx31_2.6.19.2.bb3
-rw-r--r--meta/packages/linux/linux-mx31_2.6.22.6.bb3
-rw-r--r--meta/packages/linux/linux-nokia800.inc2
-rw-r--r--meta/packages/linux/linux-nokia800_2.6.18-osso40.bb5
-rw-r--r--meta/packages/linux/linux-nokia800_2.6.21-osso71.bb9
-rw-r--r--meta/packages/linux/linux-rp_2.6.23.bb3
-rw-r--r--meta/packages/linux/linux_2.6.23.bb5
-rw-r--r--meta/packages/zlib/zlib_1.2.3.bb2
-rwxr-xr-xscripts/poky-env-internal2
13 files changed, 150 insertions, 15 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 6d82e4df88..0c9bde349c 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -266,6 +266,68 @@ def package_qa_check_buildpaths(path, name, d):
266 sane = package_qa_handle_error(9, error_msg, name, path, d) 266 sane = package_qa_handle_error(9, error_msg, name, path, d)
267 return sane 267 return sane
268 268
269def package_qa_check_license(workdir, d):
270 """
271 Check for changes in the license files
272 """
273 import tempfile
274 sane = True
275
276 lic_files = bb.data.getVar('LIC_FILES_CHKSUM', d, True)
277
278 if not lic_files:
279 # just throw a warning now. Once licensing data in entered for enough of the recipes,
280 # this will be converted into error and False will be returned.
281 bb.warn(" Recipe (.bb) file does not have license file information (LIC_FILES_CHKSUM)")
282 return True
283
284 srcdir = bb.data.getVar('S', d, True)
285
286 for url in lic_files.split():
287 (type, host, path, user, pswd, parm) = bb.decodeurl(url)
288 srclicfile = os.path.join(srcdir, path)
289
290 if 'md5' not in parm:
291 bb.error("md5 checksum is not specified for ", url)
292 return False
293 beginline, endline = 0, 0
294 if 'beginline' in parm:
295 beginline = int(parm['beginline'])
296 if 'endline' in parm:
297 endline = int(parm['endline'])
298
299 if (not beginline) and (not endline):
300 md5chksum = bb.utils.md5_file(srclicfile)
301 else:
302 fi = open(srclicfile, 'r')
303 fo = tempfile.NamedTemporaryFile(mode='wb', prefix='poky.', suffix='.tmp', delete=False)
304 tmplicfile = fo.name;
305 lineno = 0
306 linesout = 0
307 for line in fi:
308 lineno += 1
309 if (lineno >= beginline):
310 if ((lineno <= endline) or not endline):
311 fo.write(line)
312 linesout += 1
313 else:
314 break
315 fo.flush()
316 fo.close()
317 fi.close()
318 md5chksum = bb.utils.md5_file(tmplicfile)
319 os.unlink(tmplicfile)
320
321 if parm['md5'] == md5chksum:
322 bb.note ("md5 checksum matched for ", url)
323 else:
324 bb.error ("md5 data is not matching for ", url)
325 bb.note ("The new md5 checksum is ", md5chksum)
326 bb.note ("Check if the license information has changed, and if it has update the .bb file with correct license")
327 return False
328
329 return sane
330
269def package_qa_check_staged(path,d): 331def package_qa_check_staged(path,d):
270 """ 332 """
271 Check staged la and pc files for sanity 333 Check staged la and pc files for sanity
@@ -385,7 +447,8 @@ python do_package_qa () {
385 if not package_qa_check_rdepends(package, workdir, d): 447 if not package_qa_check_rdepends(package, workdir, d):
386 rdepends_sane = False 448 rdepends_sane = False
387 449
388 if not walk_sane or not rdepends_sane: 450
451 if not walk_sane or not rdepends_sane or not package_qa_check_license(workdir, d):
389 bb.fatal("QA run found fatal errors. Please consider fixing them.") 452 bb.fatal("QA run found fatal errors. Please consider fixing them.")
390 bb.note("DONE with PACKAGE QA") 453 bb.note("DONE with PACKAGE QA")
391} 454}
diff --git a/meta/packages/linux/files/1300-fix-gcc-4.3-false-modulo-optimization.patch.patch b/meta/packages/linux/files/1300-fix-gcc-4.3-false-modulo-optimization.patch.patch
new file mode 100644
index 0000000000..3ff0c07c18
--- /dev/null
+++ b/meta/packages/linux/files/1300-fix-gcc-4.3-false-modulo-optimization.patch.patch
@@ -0,0 +1,48 @@
1From f5b973489beb1a1239dfad53e3ad6e36ff7ee958 Mon Sep 17 00:00:00 2001
2From: Segher Boessenkool <segher@kernel.crashing.org>
3Date: Thu, 9 Oct 2008 21:18:27 +0100
4Subject: [PATCH] fix-gcc-4.3-false-modulo-optimization.patch
5
6I tried to compile the current stable kernel
7(a2ef813d2f439a3e9f377d33a2e5baad098afb7e)
8and get the following errors:
9
10kernel/built-in.o: In function `timespec_add_ns':
11/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:174:
12undefined reference to `__aeabi_uldivmod'
13/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:179:
14undefined reference to `__aeabi_uldivmod'
15/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:174:
16undefined reference to `__aeabi_uldivmod'
17/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:179:
18undefined reference to `__aeabi_uldivmod'
19
20applying the following patch solved the problem:
21--------
22Prevent gcc-4.3 form "optimizing" the while loop into a costly modulo operation.
23Patch found at http://lkml.org/lkml/2008/2/22/464.
24
25Reported-by: Sven Rebhan <odinshorse@googlemail.com>
26Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
27---
28 include/linux/time.h | 4 ++++
29 1 files changed, 4 insertions(+), 0 deletions(-)
30
31diff --git a/include/linux/time.h b/include/linux/time.h
32index b04136d..3e8fd9e 100644
33--- a/include/linux/time.h
34+++ b/include/linux/time.h
35@@ -173,6 +173,10 @@ static inline void timespec_add_ns(struct timespec *a, u64 ns)
36 {
37 ns += a->tv_nsec;
38 while(unlikely(ns >= NSEC_PER_SEC)) {
39+ /* The following asm() prevents the compiler from
40+ * optimising this loop into a modulo operation. */
41+ asm("" : "+r"(ns));
42+
43 ns -= NSEC_PER_SEC;
44 a->tv_sec++;
45 }
46--
471.5.6.5
48
diff --git a/meta/packages/linux/files/sumversion-fix.patch b/meta/packages/linux/files/sumversion-fix.patch
new file mode 100644
index 0000000000..8158d9d5f8
--- /dev/null
+++ b/meta/packages/linux/files/sumversion-fix.patch
@@ -0,0 +1,16 @@
1Fix compilation of the sumversion "script"
2
3http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=226169
4
5Index: linux-2.6.21/scripts/mod/sumversion.c
6===================================================================
7--- linux-2.6.21.orig/scripts/mod/sumversion.c 2007-04-26 04:08:32.000000000 +0100
8+++ linux-2.6.21/scripts/mod/sumversion.c 2010-05-13 14:41:31.777882280 +0100
9@@ -7,6 +7,7 @@
10 #include <ctype.h>
11 #include <errno.h>
12 #include <string.h>
13+#include <limits.h>
14 #include "modpost.h"
15
16 /*
diff --git a/meta/packages/linux/linux-mx31.inc b/meta/packages/linux/linux-mx31.inc
index 7df02c9b20..0f83ac7a4c 100644
--- a/meta/packages/linux/linux-mx31.inc
+++ b/meta/packages/linux/linux-mx31.inc
@@ -2,7 +2,7 @@ SECTION = "kernel"
2DESCRIPTION = "Linux kernel for imx31 devices" 2DESCRIPTION = "Linux kernel for imx31 devices"
3LICENSE = "GPL" 3LICENSE = "GPL"
4 4
5KERNEL_OUTPUT = "arch/${ARCH}/boot/compressed/${KERNEL_IMAGETYPE}" 5KERNEL_OUTPUT = "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"
6 6
7inherit kernel 7inherit kernel
8 8
diff --git a/meta/packages/linux/linux-mx31_2.6.19.2.bb b/meta/packages/linux/linux-mx31_2.6.19.2.bb
index 8394bc417a..56d111e2f2 100644
--- a/meta/packages/linux/linux-mx31_2.6.19.2.bb
+++ b/meta/packages/linux/linux-mx31_2.6.19.2.bb
@@ -1,10 +1,11 @@
1require linux-mx31.inc 1require linux-mx31.inc
2 2
3PR = "r7" 3PR = "r8"
4 4
5FILESDIR = "${WORKDIR}" 5FILESDIR = "${WORKDIR}"
6 6
7SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.19.2.tar.bz2 \ 7SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.19.2.tar.bz2 \
8 file://sumversion-fix.patch;patch=1 \
8 file://defconfig-mx31litekit \ 9 file://defconfig-mx31litekit \
9 file://defconfig-mx31ads \ 10 file://defconfig-mx31ads \
10 file://defconfig-mx31phy \ 11 file://defconfig-mx31phy \
diff --git a/meta/packages/linux/linux-mx31_2.6.22.6.bb b/meta/packages/linux/linux-mx31_2.6.22.6.bb
index 299e406532..d19a02fa09 100644
--- a/meta/packages/linux/linux-mx31_2.6.22.6.bb
+++ b/meta/packages/linux/linux-mx31_2.6.22.6.bb
@@ -1,10 +1,11 @@
1require linux-mx31.inc 1require linux-mx31.inc
2PR = "r4" 2PR = "r5"
3 3
4FILESDIR = "${WORKDIR}" 4FILESDIR = "${WORKDIR}"
5 5
6SRC_URI = " \ 6SRC_URI = " \
7 ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.22.6.tar.bz2 \ 7 ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.22.6.tar.bz2 \
8 file://1300-fix-gcc-4.3-false-modulo-optimization.patch.patch;patch=1 \
8 file://defconfig-mx31ads \ 9 file://defconfig-mx31ads \
9 file://defconfig-mx31phy \ 10 file://defconfig-mx31phy \
10 " 11 "
diff --git a/meta/packages/linux/linux-nokia800.inc b/meta/packages/linux/linux-nokia800.inc
index d373e4c907..a9505fab5d 100644
--- a/meta/packages/linux/linux-nokia800.inc
+++ b/meta/packages/linux/linux-nokia800.inc
@@ -2,7 +2,7 @@ SECTION = "kernel"
2DESCRIPTION = "Linux kernel for Nokia 770/800" 2DESCRIPTION = "Linux kernel for Nokia 770/800"
3LICENSE = "GPL" 3LICENSE = "GPL"
4 4
5KERNEL_OUTPUT = "arch/${ARCH}/boot/compressed/${KERNEL_IMAGETYPE}" 5KERNEL_OUTPUT = "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"
6KERNEL_CCSUFFIX = "-3.4.4+csl-arm-2005q3-2" 6KERNEL_CCSUFFIX = "-3.4.4+csl-arm-2005q3-2"
7 7
8inherit kernel 8inherit kernel
diff --git a/meta/packages/linux/linux-nokia800_2.6.18-osso40.bb b/meta/packages/linux/linux-nokia800_2.6.18-osso40.bb
index 13c2e8f4af..f987ab321a 100644
--- a/meta/packages/linux/linux-nokia800_2.6.18-osso40.bb
+++ b/meta/packages/linux/linux-nokia800_2.6.18-osso40.bb
@@ -1,6 +1,6 @@
1require linux-nokia800.inc 1require linux-nokia800.inc
2 2
3PR = "r6" 3PR = "r7"
4SRC_URI = "http://repository.maemo.org/pool/maemo3.1/free/source/kernel-source-rx-34_2.6.18.orig.tar.gz \ 4SRC_URI = "http://repository.maemo.org/pool/maemo3.1/free/source/kernel-source-rx-34_2.6.18.orig.tar.gz \
5 http://repository.maemo.org/pool/maemo3.1/free/source/kernel-source-rx-34_2.6.18-osso40.diff.gz;patch=1 \ 5 http://repository.maemo.org/pool/maemo3.1/free/source/kernel-source-rx-34_2.6.18-osso40.diff.gz;patch=1 \
6 ${RPSRC}/lzo_kernel-r0.patch;patch=1 \ 6 ${RPSRC}/lzo_kernel-r0.patch;patch=1 \
@@ -9,7 +9,8 @@ SRC_URI = "http://repository.maemo.org/pool/maemo3.1/free/source/kernel-source-r
9 ${RPSRC}/lzo_jffs2_lzomode-r0.patch;patch=1 \ 9 ${RPSRC}/lzo_jffs2_lzomode-r0.patch;patch=1 \
10 ${RPSRC}/lzo_jffs2_sysfs-r0.patch;patch=1 \ 10 ${RPSRC}/lzo_jffs2_sysfs-r0.patch;patch=1 \
11 file://fix_oprofile.patch;patch=1 \ 11 file://fix_oprofile.patch;patch=1 \
12 file://defconfig" 12 file://sumversion-fix.patch;patch=1 \
13 file://defconfig"
13 14
14SRC_URI_append_nokia770 = " file://nokia770_nand_fix.patch;patch=1" 15SRC_URI_append_nokia770 = " file://nokia770_nand_fix.patch;patch=1"
15 16
diff --git a/meta/packages/linux/linux-nokia800_2.6.21-osso71.bb b/meta/packages/linux/linux-nokia800_2.6.21-osso71.bb
index aca6440875..b64c697c9b 100644
--- a/meta/packages/linux/linux-nokia800_2.6.21-osso71.bb
+++ b/meta/packages/linux/linux-nokia800_2.6.21-osso71.bb
@@ -1,13 +1,14 @@
1require linux-nokia800.inc 1require linux-nokia800.inc
2PR = "r4" 2PR = "r5"
3 3
4DEFAULT_PREFERENCE_nokia770 = "-1" 4DEFAULT_PREFERENCE_nokia770 = "-1"
5 5
6SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.21.tar.bz2 \ 6SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.21.tar.bz2 \
7 http://repository.maemo.org/pool/os2008/free/source/k/kernel-source-rx-34/kernel-source-rx-34_2.6.21.0-osso71.diff.gz;patch=1 \ 7 http://repository.maemo.org/pool/os2008/free/source/k/kernel-source-rx-34/kernel-source-rx-34_2.6.21.0-osso71.diff.gz;patch=1 \
8 http://www.rpsys.net/openzaurus/patches/archive/input_power-r7.patch;patch=1 \ 8 http://www.rpsys.net/openzaurus/patches/archive/input_power-r7.patch;patch=1 \
9 file://suspend-button.patch;patch=1 \ 9 file://suspend-button.patch;patch=1 \
10 file://defconfig" 10 file://sumversion-fix.patch;patch=1 \
11 file://defconfig"
11 12
12S = "${WORKDIR}/linux-2.6.21" 13S = "${WORKDIR}/linux-2.6.21"
13 14
diff --git a/meta/packages/linux/linux-rp_2.6.23.bb b/meta/packages/linux/linux-rp_2.6.23.bb
index 2293eea80e..0c67fd4ea6 100644
--- a/meta/packages/linux/linux-rp_2.6.23.bb
+++ b/meta/packages/linux/linux-rp_2.6.23.bb
@@ -1,6 +1,6 @@
1require linux-rp.inc 1require linux-rp.inc
2 2
3PR = "r35" 3PR = "r36"
4 4
5# Handy URLs 5# Handy URLs
6# git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git;protocol=git;tag=ef7d1b244fa6c94fb76d5f787b8629df64ea4046 6# git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git;protocol=git;tag=ef7d1b244fa6c94fb76d5f787b8629df64ea4046
@@ -60,6 +60,7 @@ SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2 \
60 file://htcuni.patch;patch=1 \ 60 file://htcuni.patch;patch=1 \
61 file://binutils-buildid-arm.patch;patch=1 \ 61 file://binutils-buildid-arm.patch;patch=1 \
62 file://versatile-armv6.patch;patch=1 \ 62 file://versatile-armv6.patch;patch=1 \
63 file://1300-fix-gcc-4.3-false-modulo-optimization.patch.patch;patch=1 \
63 file://defconfig-c7x0 \ 64 file://defconfig-c7x0 \
64 file://defconfig-hx2000 \ 65 file://defconfig-hx2000 \
65 file://defconfig-collie \ 66 file://defconfig-collie \
diff --git a/meta/packages/linux/linux_2.6.23.bb b/meta/packages/linux/linux_2.6.23.bb
index a517defd0f..5d5c21b9d3 100644
--- a/meta/packages/linux/linux_2.6.23.bb
+++ b/meta/packages/linux/linux_2.6.23.bb
@@ -7,10 +7,11 @@ DEFAULT_PREFERENCE_em-x270 = "1"
7DEFAULT_PREFERENCE_mpc8313e-rdb = "1" 7DEFAULT_PREFERENCE_mpc8313e-rdb = "1"
8DEFAULT_PREFERENCE_mpc8323e-rdb = "1" 8DEFAULT_PREFERENCE_mpc8323e-rdb = "1"
9 9
10PR = "r6" 10PR = "r7"
11 11
12SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2 \ 12SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2 \
13 file://binutils-buildid-arm.patch;patch=1 \ 13 file://binutils-buildid-arm.patch;patch=1 \
14 file://1300-fix-gcc-4.3-false-modulo-optimization.patch.patch;patch=1 \
14 file://defconfig \ 15 file://defconfig \
15 " 16 "
16 17
diff --git a/meta/packages/zlib/zlib_1.2.3.bb b/meta/packages/zlib/zlib_1.2.3.bb
index 97d0be5d5e..c58d5f2d25 100644
--- a/meta/packages/zlib/zlib_1.2.3.bb
+++ b/meta/packages/zlib/zlib_1.2.3.bb
@@ -3,6 +3,8 @@ SECTION = "libs"
3PRIORITY = "required" 3PRIORITY = "required"
4HOMEPAGE = "http://www.gzip.org/zlib/" 4HOMEPAGE = "http://www.gzip.org/zlib/"
5LICENSE = "zlib" 5LICENSE = "zlib"
6LIC_FILES_CHKSUM = "file://README;md5=ae764cfda68da96df20af9fbf9fe49bd \
7 file://zlib.h;beginline=1;endline=30;md5=6ab03f03a5ee92d06b809797d4d5586d "
6PR = "r7" 8PR = "r7"
7 9
8SRC_URI = "http://www.zlib.net/zlib-1.2.3.tar.bz2 \ 10SRC_URI = "http://www.zlib.net/zlib-1.2.3.tar.bz2 \
diff --git a/scripts/poky-env-internal b/scripts/poky-env-internal
index 7ffd25f91f..c91811d59c 100755
--- a/scripts/poky-env-internal
+++ b/scripts/poky-env-internal
@@ -53,7 +53,7 @@ do
53 if [ -e $OEROOT/$repo/poky-extra-environment ]; then 53 if [ -e $OEROOT/$repo/poky-extra-environment ]; then
54 . $OEROOT/$repo/poky-extra-environment 54 . $OEROOT/$repo/poky-extra-environment
55 fi 55 fi
56 #BBPATH=" $BBPATH $OEROOT/$repo" 56 BBPATH=" $BBPATH $OEROOT/$repo"
57done 57done
58 58
59BBPATH="$BBPATH $HOME/.oe $HOME/.poky $BUILDDIR" 59BBPATH="$BBPATH $HOME/.oe $HOME/.poky $BUILDDIR"