Skip to contentSkip to conversation

Resturctured Linux folder so that it can find patches.

PATCH In review Noor, Ahsan 2 participants 3 messages Dec 12, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Resturctured Linux folder so that it can find patches.

From: Noor Ahsan <[email protected]>

* In latest upstream yocto FILESPATH variable has been changed. That is why linux recipe fails to build saying it was not able to fins patches. Restructured linux recipe folder so that it can find patches.
* linux-qoriq-sdk-header recipe was also using same patches, so creates a symbolic link of linux-qoriq-sdk. This folder now contains the patches.

---
 ...Undef-before-redefining-__attribute_const.patch |   28 -------------
 ...-build-dependencies-for-c-files-requiring.patch |   44 --------------------
 recipes-kernel/linux/linux-qoriq-sdk-headers       |    1 +
 ...Undef-before-redefining-__attribute_const.patch |   28 +++++++++++++
 ...-build-dependencies-for-c-files-requiring.patch |   44 ++++++++++++++++++++
 5 files changed, 73 insertions(+), 72 deletions(-)
recipes-kernel/linux/0001-compiler.h-Undef-before-redefining-__attribute_const.patch deleted +0 -28
deleted file mode 100644
index 597fd3b..0000000
@@ -1,28 +0,0 @@
-From 6f92ab6de9d8daeb575949bbbcbc7bcdcebc60af Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem at gmail.com>
-Date: Thu, 5 Jan 2012 11:42:35 -0800
-Subject: [PATCH] compiler.h: Undef before redefining __attribute_const__
-
-This is required to avoid warnings like
-util/include/linux/compiler.h:8:0: error: "__attribute_const__" redefined [-Werror]
-
-Signed-off-by: Khem Raj <raj.khem at gmail.com>
----
- tools/perf/util/include/linux/compiler.h |    4 +++-
- 1 files changed, 3 insertions(+), 1 deletions(-)
-
---- a/tools/perf/util/include/linux/compiler.h
-+++ b/tools/perf/util/include/linux/compiler.h
-@@ -4,9 +4,11 @@
- #ifndef __always_inline
- #define __always_inline	inline
- #endif
-+#undef __user
- #define __user
-+#undef __attribute_const__
- #define __attribute_const__
--
-+#undef __used
- #define __used		__attribute__((__unused__))
- 
- #endif
recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch deleted +0 -44

44 lines not on this page · raw message

recipes-kernel/linux/linux-qoriq-sdk-headers new file +1 -0
new file mode 120000
index 0000000..4e8677b
@@ -0,0 +1 @@
+linux-qoriq-sdk
\ No newline at end of file
recipes-kernel/linux/linux-qoriq-sdk/0001-compiler.h-Undef-before-redefining-__attribute_const.patch new file +28 -0
new file mode 100644
index 0000000..597fd3b
@@ -0,0 +1,28 @@
+From 6f92ab6de9d8daeb575949bbbcbc7bcdcebc60af Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem at gmail.com>
+Date: Thu, 5 Jan 2012 11:42:35 -0800
+Subject: [PATCH] compiler.h: Undef before redefining __attribute_const__
+
+This is required to avoid warnings like
+util/include/linux/compiler.h:8:0: error: "__attribute_const__" redefined [-Werror]
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+---
+ tools/perf/util/include/linux/compiler.h |    4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+--- a/tools/perf/util/include/linux/compiler.h
++++ b/tools/perf/util/include/linux/compiler.h
+@@ -4,9 +4,11 @@
+ #ifndef __always_inline
+ #define __always_inline	inline
+ #endif
++#undef __user
+ #define __user
++#undef __attribute_const__
+ #define __attribute_const__
+-
++#undef __used
+ #define __used		__attribute__((__unused__))
+ 
+ #endif
recipes-kernel/linux/linux-qoriq-sdk/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

Does http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-ppc/commit/?h=master-next&id=88c9c66b588346143a2277f119f78bb2e82e3db3 fix this issue?

It is applied in master-next branch and will be synced to master after successful build.

Best Regards,

Zhenhua

Quoted 237 lines

-----Original Message-----
From: [email protected] [mailto:meta-freescale- [email protected]] On Behalf Of Noor, Ahsan
Sent: Wednesday, December 12, 2012 7:06 PM
To: [email protected]
Subject: [meta-freescale] [meta-fsl-ppc][PATCH] Resturctured Linux folder so that it can find patches.

From: Noor Ahsan <[email protected]>

* In latest upstream yocto FILESPATH variable has been changed. That is why linux recipe fails to build saying it was not able to fins patches. Restructured linux recipe folder so that it can find patches.
* linux-qoriq-sdk-header recipe was also using same patches, so creates a symbolic link of linux-qoriq-sdk. This folder now contains the patches.

---
 ...Undef-before-redefining-__attribute_const.patch |   28 -------------
 ...-build-dependencies-for-c-files-requiring.patch |   44 --------------
------
 recipes-kernel/linux/linux-qoriq-sdk-headers       |    1 +
 ...Undef-before-redefining-__attribute_const.patch |   28 +++++++++++++
 ...-build-dependencies-for-c-files-requiring.patch |   44
++++++++++++++++++++
 5 files changed, 73 insertions(+), 72 deletions(-)
(quoted diff) +0 -0

redefining-__attribute_const.patch b/recipes-kernel/linux/0001- compiler.h-Undef-before-redefining-__attribute_const.patch deleted file mode 100644
index 597fd3b..0000000
--- a/recipes-kernel/linux/0001-compiler.h-Undef-before-redefining- __attribute_const.patch
+++ /dev/null

recipes-kernel/linux/0001-compiler.h-Undef-before-redefining-__attribute_const.patch deleted +0 -7
@@ -1,28 +0,0 @@
-From 6f92ab6de9d8daeb575949bbbcbc7bcdcebc60af Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem at gmail.com>
-Date: Thu, 5 Jan 2012 11:42:35 -0800
-Subject: [PATCH] compiler.h: Undef before redefining __attribute_const__
-
-This is required to avoid warnings like
-util/include/linux/compiler.h:8:0: error: "__attribute_const__"

redefined [-Werror]

recipes-kernel/linux/0001-compiler.h-Undef-before-redefining-__attribute_const.patch deleted +0 -21
-
-Signed-off-by: Khem Raj <raj.khem at gmail.com>
----
- tools/perf/util/include/linux/compiler.h |    4 +++-
- 1 files changed, 3 insertions(+), 1 deletions(-)
-
---- a/tools/perf/util/include/linux/compiler.h
-+++ b/tools/perf/util/include/linux/compiler.h
-@@ -4,9 +4,11 @@
- #ifndef __always_inline
- #define __always_inline	inline
- #endif
-+#undef __user
- #define __user
-+#undef __attribute_const__
- #define __attribute_const__
--
-+#undef __used
- #define __used		__attribute__((__unused__))
-
- #endif
(quoted diff) +0 -0

for-c-files-requiring.patch b/recipes-kernel/linux/0001-powerpc-Fix- build-dependencies-for-c-files-requiring.patch
deleted file mode 100644
index d3464fb..0000000
--- a/recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c- files-requiring.patch
+++ /dev/null

recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch deleted +0 -8
@@ -1,44 +0,0 @@
-Upstream-Status: Pending
-
-From 2e7ffea0c0c09c6d9219d604e0351423f43844f4 Mon Sep 17 00:00:00 2001
-From: Matthew McClintock <[email protected]>
-Date: Thu, 6 Sep 2012 13:45:21 -0500
-Subject: powerpc: Fix build dependencies for c files requiring libfdt.h
-
-Several files in obj-plat depend on libfdt header file. Sometimes -when

building one can see the following issue. This patch adds -libfdt as dependency to those object files

recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch deleted +0 -23
-
-| In file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0:
-| arch/powerpc/boot/libfdt.h:854:1: error: unterminated comment In file
-| included from arch/powerpc/boot/treeboot-iss4xx.c:33:0:
-| arch/powerpc/boot/libfdt.h:1:0: error: unterminated #ifndef
-|   BOOTCC  arch/powerpc/boot/inffast.o
-| make[1]: *** [arch/powerpc/boot/treeboot-iss4xx.o] Error 1
-| make[1]: *** Waiting for unfinished jobs....
-|   BOOTCC  arch/powerpc/boot/inflate.o
-| make: *** [uImage] Error 2
-| ERROR: oe_runmake failed
-| ERROR: Function failed: do_compile (see
-| /srv/home/pokybuild/yocto-autobuilder/yocto-slave/p1022ds/build/build
-| /tmp/work/p1022ds-poky-linux-gnuspe/linux-qoriq-sdk-3.0.34-r5/temp/lo
-| g.do_compile.2167 for further information)
-NOTE: recipe linux-qoriq-sdk-3.0.34-r5: task do_compile: Failed
-
-Signed-off-by: Matthew McClintock <[email protected]>
----
- arch/powerpc/boot/Makefile |    1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile -

index b7d8333..6a15c96 100644
---- a/arch/powerpc/boot/Makefile
-+++ b/arch/powerpc/boot/Makefile
-@@ -107,6 +107,7 @@ src-boot := $(addprefix $(obj)/, $(src-boot))
- obj-boot := $(addsuffix .o, $(basename $(src-boot)))
- obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src- wlib))))
- obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src- plat))))
-+obj-plat: $(libfdt)

recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch deleted +0 -3
-
- quiet_cmd_copy_zlib = COPY    $@
-       cmd_copy_zlib = sed "s@__used@@;s@<linux/\([^>]*\).*@\"\1\"@" $< >

$@
---
-1.7.9.7

(quoted diff) +0 -1
-
recipes- renamed from recipes-kernel/linux/linux-qoriq-sdk-headers +0 -0

kernel/linux/linux-qoriq-sdk-headers
new file mode 120000
index 0000000..4e8677b

recipes-kernel/linux/linux-qoriq-sdk-headers new file +1 -0
@@ -0,0 +1 @@
+linux-qoriq-sdk
\ No newline at end of file
(quoted diff) +0 -0

before-redefining-__attribute_const.patch b/recipes-kernel/linux/linux- qoriq-sdk/0001-compiler.h-Undef-before-redefining-__attribute_const.patch new file mode 100644
index 0000000..597fd3b

recipes-kernel/linux/linux-qoriq-sdk/0001-compiler.h-Undef-before- new file +31 -0
+++ redefining-__attribute_const.patch
@@ -0,0 +1,28 @@
+From 6f92ab6de9d8daeb575949bbbcbc7bcdcebc60af Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem at gmail.com>
+Date: Thu, 5 Jan 2012 11:42:35 -0800
+Subject: [PATCH] compiler.h: Undef before redefining
+__attribute_const__
+
+This is required to avoid warnings like
+util/include/linux/compiler.h:8:0: error: "__attribute_const__"
+redefined [-Werror]
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+---
+ tools/perf/util/include/linux/compiler.h |    4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+--- a/tools/perf/util/include/linux/compiler.h
++++ b/tools/perf/util/include/linux/compiler.h
+@@ -4,9 +4,11 @@
+ #ifndef __always_inline
+ #define __always_inline	inline
+ #endif
++#undef __user
+ #define __user
++#undef __attribute_const__
+ #define __attribute_const__
+-
++#undef __used
+ #define __used		__attribute__((__unused__))
+
+ #endif
(quoted diff) +0 -0

dependencies-for-c-files-requiring.patch b/recipes-kernel/linux/linux- qoriq-sdk/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch new file mode 100644
index 0000000..d3464fb

recipes-kernel/linux/linux-qoriq-sdk/0001-powerpc-Fix-build-depend new file +50 -1
+++ encies-for-c-files-requiring.patch
@@ -0,0 +1,44 @@
+Upstream-Status: Pending
+
+From 2e7ffea0c0c09c6d9219d604e0351423f43844f4 Mon Sep 17 00:00:00 2001
+From: Matthew McClintock <[email protected]>
+Date: Thu, 6 Sep 2012 13:45:21 -0500
+Subject: powerpc: Fix build dependencies for c files requiring libfdt.h
+
+Several files in obj-plat depend on libfdt header file. Sometimes when
+building one can see the following issue. This patch adds libfdt as
+dependency to those object files
+
+| In file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0:
+| arch/powerpc/boot/libfdt.h:854:1: error: unterminated comment In file
+| included from arch/powerpc/boot/treeboot-iss4xx.c:33:0:
+| arch/powerpc/boot/libfdt.h:1:0: error: unterminated #ifndef
+|   BOOTCC  arch/powerpc/boot/inffast.o
+| make[1]: *** [arch/powerpc/boot/treeboot-iss4xx.o] Error 1
+| make[1]: *** Waiting for unfinished jobs....
+|   BOOTCC  arch/powerpc/boot/inflate.o
+| make: *** [uImage] Error 2
+| ERROR: oe_runmake failed
+| ERROR: Function failed: do_compile (see
+| /srv/home/pokybuild/yocto-autobuilder/yocto-slave/p1022ds/build/build
+| /tmp/work/p1022ds-poky-linux-gnuspe/linux-qoriq-sdk-3.0.34-r5/temp/lo
+| g.do_compile.2167 for further information)
+NOTE: recipe linux-qoriq-sdk-3.0.34-r5: task do_compile: Failed
+
+Signed-off-by: Matthew McClintock <[email protected]>
+---
+ arch/powerpc/boot/Makefile |    1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
+index b7d8333..6a15c96 100644
+--- a/arch/powerpc/boot/Makefile
++++ b/arch/powerpc/boot/Makefile
+@@ -107,6 +107,7 @@ src-boot := $(addprefix $(obj)/, $(src-boot))
+obj-boot := $(addsuffix .o, $(basename $(src-boot)))  obj-wlib :=
+$(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib))))
+obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/,
+$(src-plat))))
++obj-plat: $(libfdt)
+
+ quiet_cmd_copy_zlib = COPY    $@
+       cmd_copy_zlib = sed "s@__used@@;s@<linux/\([^>]*\).*@\"\1\"@" $<
+> $@
+--
+1.7.9.7
+
--

1.7.9.5

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

#2 lore raw

Hello,

Thanks. Yes this is the same patch. I am sending another patch based on my patch. That patch adds some missing header file in kernel sources related to perf.

Regards,
Noor

-----Original Message-----
From: Luo, Zhenhua - Freescale
Sent: Wednesday, December 12, 2012 4:14 PM
To: Ahsan, Noor
Cc: [email protected]
Subject: RE: [meta-freescale] [meta-fsl-ppc][PATCH] Resturctured Linux folder so that it can find patches.

Does http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-ppc/commit/?h=master-next&id=88c9c66b588346143a2277f119f78bb2e82e3db3 fix this issue?

It is applied in master-next branch and will be synced to master after successful build.

Best Regards,

Zhenhua

Quoted 254 lines

-----Original Message-----
From: [email protected] [mailto:meta-freescale- [email protected]] On Behalf Of Noor, Ahsan
Sent: Wednesday, December 12, 2012 7:06 PM
To: [email protected]
Subject: [meta-freescale] [meta-fsl-ppc][PATCH] Resturctured Linux folder so that it can find patches.

From: Noor Ahsan <[email protected]>

* In latest upstream yocto FILESPATH variable has been changed.
That is why linux recipe fails to build saying it was not able to fins patches. Restructured linux recipe folder so that it can find patches.
* linux-qoriq-sdk-header recipe was also using same patches, so creates a symbolic link of linux-qoriq-sdk. This folder now contains the patches.

---
 ...Undef-before-redefining-__attribute_const.patch |   28 -------------
 ...-build-dependencies-for-c-files-requiring.patch |   44 --------------
------
 recipes-kernel/linux/linux-qoriq-sdk-headers       |    1 +
 ...Undef-before-redefining-__attribute_const.patch |   28 +++++++++++++
 ...-build-dependencies-for-c-files-requiring.patch |   44
++++++++++++++++++++
 5 files changed, 73 insertions(+), 72 deletions(-)
(quoted diff) +0 -0

redefining-__attribute_const.patch b/recipes-kernel/linux/0001- compiler.h-Undef-before-redefining-__attribute_const.patch deleted file mode 100644
index 597fd3b..0000000
--- a/recipes-kernel/linux/0001-compiler.h-Undef-before-redefining- __attribute_const.patch
+++ /dev/null

(quoted diff) +0 -1
@@ -1,28 +0,0 @@
-From 6f92ab6de9d8daeb575949bbbcbc7bcdcebc60af Mon Sep 17 00:00:00 

2001

recipes-kernel/linux/0001-compiler.h-Undef-before-redefining-__attribute_const.patch deleted +0 -3
-From: Khem Raj <raj.khem at gmail.com>
-Date: Thu, 5 Jan 2012 11:42:35 -0800
-Subject: [PATCH] compiler.h: Undef before redefining 

__attribute_const__

recipes-kernel/linux/0001-compiler.h-Undef-before-redefining-__attribute_const.patch deleted +0 -3
-
-This is required to avoid warnings like
-util/include/linux/compiler.h:8:0: error: "__attribute_const__"

redefined [-Werror]

recipes-kernel/linux/0001-compiler.h-Undef-before-redefining-__attribute_const.patch deleted +0 -21
-
-Signed-off-by: Khem Raj <raj.khem at gmail.com>
----
- tools/perf/util/include/linux/compiler.h |    4 +++-
- 1 files changed, 3 insertions(+), 1 deletions(-)
-
---- a/tools/perf/util/include/linux/compiler.h
-+++ b/tools/perf/util/include/linux/compiler.h
-@@ -4,9 +4,11 @@
- #ifndef __always_inline
- #define __always_inline	inline
- #endif
-+#undef __user
- #define __user
-+#undef __attribute_const__
- #define __attribute_const__
--
-+#undef __used
- #define __used		__attribute__((__unused__))
-
- #endif
(quoted diff) +0 -0

for-c-files-requiring.patch b/recipes-kernel/linux/0001-powerpc-Fix- build-dependencies-for-c-files-requiring.patch
deleted file mode 100644
index d3464fb..0000000
--- a/recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c- files-requiring.patch
+++ /dev/null

recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch deleted +0 -3
@@ -1,44 +0,0 @@
-Upstream-Status: Pending
-
-From 2e7ffea0c0c09c6d9219d604e0351423f43844f4 Mon Sep 17 00:00:00 

2001

recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch deleted +0 -3
-From: Matthew McClintock <[email protected]>
-Date: Thu, 6 Sep 2012 13:45:21 -0500
-Subject: powerpc: Fix build dependencies for c files requiring 

libfdt.h

recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch deleted +0 -35
-
-Several files in obj-plat depend on libfdt header file. Sometimes 
-when building one can see the following issue. This patch adds 
-libfdt as dependency to those object files
-
-| In file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0:
-| arch/powerpc/boot/libfdt.h:854:1: error: unterminated comment In 
-| file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0:
-| arch/powerpc/boot/libfdt.h:1:0: error: unterminated #ifndef
-|   BOOTCC  arch/powerpc/boot/inffast.o
-| make[1]: *** [arch/powerpc/boot/treeboot-iss4xx.o] Error 1
-| make[1]: *** Waiting for unfinished jobs....
-|   BOOTCC  arch/powerpc/boot/inflate.o
-| make: *** [uImage] Error 2
-| ERROR: oe_runmake failed
-| ERROR: Function failed: do_compile (see 
-| /srv/home/pokybuild/yocto-autobuilder/yocto-slave/p1022ds/build/bui
-| ld 
-| /tmp/work/p1022ds-poky-linux-gnuspe/linux-qoriq-sdk-3.0.34-r5/temp/
-| lo
-| g.do_compile.2167 for further information)
-NOTE: recipe linux-qoriq-sdk-3.0.34-r5: task do_compile: Failed
-
-Signed-off-by: Matthew McClintock <[email protected]>
----
- arch/powerpc/boot/Makefile |    1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile 
- index b7d8333..6a15c96 100644
---- a/arch/powerpc/boot/Makefile
-+++ b/arch/powerpc/boot/Makefile
-@@ -107,6 +107,7 @@ src-boot := $(addprefix $(obj)/, $(src-boot))
- obj-boot := $(addsuffix .o, $(basename $(src-boot)))
- obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-

wlib))))
- obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src- plat))))
-+obj-plat: $(libfdt)

recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch deleted +0 -3
-
- quiet_cmd_copy_zlib = COPY    $@
-       cmd_copy_zlib = sed "s@__used@@;s@<linux/\([^>]*\).*@\"\1\"@" $< >

$@
---
-1.7.9.7

(quoted diff) +0 -1
-
recipes- renamed from recipes-kernel/linux/linux-qoriq-sdk-headers +0 -0

kernel/linux/linux-qoriq-sdk-headers
new file mode 120000
index 0000000..4e8677b

recipes-kernel/linux/linux-qoriq-sdk-headers new file +1 -0
@@ -0,0 +1 @@
+linux-qoriq-sdk
\ No newline at end of file
(quoted diff) +0 -0

a/recipes-kernel/linux/linux-qoriq-sdk/0001-compiler.h-Undef- before-redefining-__attribute_const.patch b/recipes-kernel/linux/linux- qoriq-sdk/0001-compiler.h-Undef-before-redefining-__attribute_const.pa tch
new file mode 100644
index 0000000..597fd3b

recipes-kernel/linux/linux-qoriq-sdk/0001-compiler.h-Undef-befor new file +32 -0
+++ e- redefining-__attribute_const.patch
@@ -0,0 +1,28 @@
+From 6f92ab6de9d8daeb575949bbbcbc7bcdcebc60af Mon Sep 17 00:00:00 
+2001
+From: Khem Raj <raj.khem at gmail.com>
+Date: Thu, 5 Jan 2012 11:42:35 -0800
+Subject: [PATCH] compiler.h: Undef before redefining 
+__attribute_const__
+
+This is required to avoid warnings like
+util/include/linux/compiler.h:8:0: error: "__attribute_const__"
+redefined [-Werror]
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+---
+ tools/perf/util/include/linux/compiler.h |    4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+--- a/tools/perf/util/include/linux/compiler.h
++++ b/tools/perf/util/include/linux/compiler.h
+@@ -4,9 +4,11 @@
+ #ifndef __always_inline
+ #define __always_inline	inline
+ #endif
++#undef __user
+ #define __user
++#undef __attribute_const__
+ #define __attribute_const__
+-
++#undef __used
+ #define __used		__attribute__((__unused__))
+
+ #endif
(quoted diff) +0 -0

a/recipes-kernel/linux/linux-qoriq-sdk/0001-powerpc-Fix-build- dependencies-for-c-files-requiring.patch b/recipes-kernel/linux/linux- qoriq-sdk/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.pa tch
new file mode 100644
index 0000000..d3464fb

recipes-kernel/linux/linux-qoriq-sdk/0001-powerpc-Fix-build-depe new file +55 -1
+++ nd encies-for-c-files-requiring.patch
@@ -0,0 +1,44 @@
+Upstream-Status: Pending
+
+From 2e7ffea0c0c09c6d9219d604e0351423f43844f4 Mon Sep 17 00:00:00 
+2001
+From: Matthew McClintock <[email protected]>
+Date: Thu, 6 Sep 2012 13:45:21 -0500
+Subject: powerpc: Fix build dependencies for c files requiring 
+libfdt.h
+
+Several files in obj-plat depend on libfdt header file. Sometimes 
+when building one can see the following issue. This patch adds libfdt 
+as dependency to those object files
+
+| In file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0:
+| arch/powerpc/boot/libfdt.h:854:1: error: unterminated comment In 
+| file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0:
+| arch/powerpc/boot/libfdt.h:1:0: error: unterminated #ifndef
+|   BOOTCC  arch/powerpc/boot/inffast.o
+| make[1]: *** [arch/powerpc/boot/treeboot-iss4xx.o] Error 1
+| make[1]: *** Waiting for unfinished jobs....
+|   BOOTCC  arch/powerpc/boot/inflate.o
+| make: *** [uImage] Error 2
+| ERROR: oe_runmake failed
+| ERROR: Function failed: do_compile (see 
+| /srv/home/pokybuild/yocto-autobuilder/yocto-slave/p1022ds/build/bui
+| ld 
+| /tmp/work/p1022ds-poky-linux-gnuspe/linux-qoriq-sdk-3.0.34-r5/temp/
+| lo
+| g.do_compile.2167 for further information)
+NOTE: recipe linux-qoriq-sdk-3.0.34-r5: task do_compile: Failed
+
+Signed-off-by: Matthew McClintock <[email protected]>
+---
+ arch/powerpc/boot/Makefile |    1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile 
+index b7d8333..6a15c96 100644
+--- a/arch/powerpc/boot/Makefile
++++ b/arch/powerpc/boot/Makefile
+@@ -107,6 +107,7 @@ src-boot := $(addprefix $(obj)/, $(src-boot)) 
+obj-boot := $(addsuffix .o, $(basename $(src-boot)))  obj-wlib := 
+$(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib)))) 
+obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/,
+$(src-plat))))
++obj-plat: $(libfdt)
+
+ quiet_cmd_copy_zlib = COPY    $@
+       cmd_copy_zlib = sed "s@__used@@;s@<linux/\([^>]*\).*@\"\1\"@" 
+ $<
+> $@
+--
+1.7.9.7
+
--

1.7.9.5

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale