Skip to contentSkip to conversation

image-mklibs.bbclass: Add powerpc64 arch support

PATCH Superseded Kumar Gala 2 participants 3 messages Aug 3, 2011 – Aug 4, 2011

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH v2 1/1 image-mklibs.bbclass: Add powerpc64 arch support

powerp64 dynamic loader is 'ld64.so.1'.

---
* Use correct name of ppc64 dynamic loader
* user ${baselib} so if we are /lib or /lib64 things work

 meta/classes/image-mklibs.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/classes/image-mklibs.bbclass +3 -0
index 9f5a4ea..83f609c 100644
@@ -19,6 +19,9 @@ mklibs_optimize_image_doit() {
 		powerpc | mips | microblaze )
 			dynamic_loader="/lib/ld.so.1"
 			;;
+		powerpc64)
+			dynamic_loader="/${baselib}/ld64.so.1"
+			;;
 		x86_64)
 			dynamic_loader="/lib/ld-linux-x86-64.so.2"
 			;;
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 15 lines · Kumar Gala

powerp64 dynamic loader is 'ld64.so.1'.

---
* Use correct name of ppc64 dynamic loader
* user ${baselib} so if we are /lib or /lib64 things work

 meta/classes/image-mklibs.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/classes/image-mklibs.bbclass +0 -0
index 9f5a4ea..83f609c 100644

meta/classes/image-mklibs.bbclass mklibs_optimize_image_doit() { · line 27

Quoted 9 lines
meta/classes/image-mklibs.bbclass +3 -0
@@ -19,6 +19,9 @@ mklibs_optimize_image_doit() {
 		powerpc | mips | microblaze )
 			dynamic_loader="/lib/ld.so.1"
 			;;
+		powerpc64)
+			dynamic_loader="/${baselib}/ld64.so.1"
+			;;
 		x86_64)
 			dynamic_loader="/lib/ld-linux-x86-64.so.2"
 			;;

Can we use ${base_libdir} there please?

${baselib} is really intended only for use to build the other expressions.

We should probably use ${base_libdir} elsewhere in this file too. I also suspect prelinking of a multilib image may need work :/.

Cheers,

Richard

author
#2 lore raw
Quoted 28 lines · Richard Purdie
Quoted 15 lines · Kumar Gala

powerp64 dynamic loader is 'ld64.so.1'.

---
* Use correct name of ppc64 dynamic loader
* user ${baselib} so if we are /lib or /lib64 things work

meta/classes/image-mklibs.bbclass | 3 +++

1 files changed, 3 insertions(+), 0 deletions(-)
meta/classes/image-mklibs.bbclass +0 -0
index 9f5a4ea..83f609c 100644

meta/classes/image-mklibs.bbclass mklibs_optimize_image_doit() { · line 27

Quoted 9 lines
meta/classes/image-mklibs.bbclass +3 -0
@@ -19,6 +19,9 @@ mklibs_optimize_image_doit() {
 		powerpc | mips | microblaze )
 			dynamic_loader="/lib/ld.so.1"
 			;;
+		powerpc64)
+			dynamic_loader="/${baselib}/ld64.so.1"
+			;;
 		x86_64)
 			dynamic_loader="/lib/ld-linux-x86-64.so.2"
 			;;

Can we use ${base_libdir} there please?

Quoted 5 lines

${baselib} is really intended only for use to build the other expressions.

We should probably use ${base_libdir} elsewhere in this file too. I also suspect prelinking of a multilib image may need work :/.

Sent a fixed patch for powerpc64 and a new patch to change everyone else.

- k