Skip to contentSkip to conversation

Initialize PACKAGE_EXTRA_ARCHS if not done in tune files.

PATCH Khem Raj 2 participants 2 messages Aug 9, 2009

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

hi

Building for titan machine I was hitting this error. Found out that PACKAGE_EXTRA_ARCHS is not defined in tune-sh4.inc
Would it be ok if we initialize it conditionally to empty string in conf/bitbake.conf

File "/home/kraj/work/oe/bitbake/lib/bb/data_smart.py", line 70, in
python_sub

    s = eval(code)

                              File "<string>", line 1
    " ".join( [ ( "/etc/opkg/%s-feed.conf" % feed ) for feed in "all

${PACKAGE_EXTRA_ARCHS

                 ^

SyntaxError: EOL while scanning string literal

Something like below. Does anybody sees any issues doing this ?

conf/bitbake.conf +1 -0
@@ -107,6 +107,7 @@ EXEEXT = "${HOST_EXEEXT}"
 
 BASE_PACKAGE_ARCH = "${HOST_ARCH}"
 PACKAGE_ARCH = "${BASE_PACKAGE_ARCH}"
+PACKAGE_EXTRA_ARCHS ?= ""
 MACHINE_ARCH = "${@[bb.data.getVar('HOST_ARCH', d, 1),

bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))]}"
PACKAGE_ARCHS = "all any noarch ${TARGET_ARCH} ${PACKAGE_EXTRA_ARCHS}
${MACHINE}"

#1 lore raw

Dnia niedziela, 9 sierpnia 2009 o 11:13:33 Khem Raj napisał(a):

Quoted 9 lines
conf/bitbake.conf +1 -0
@@ -107,6 +107,7 @@ EXEEXT = "${HOST_EXEEXT}"
 
 BASE_PACKAGE_ARCH = "${HOST_ARCH}"
 PACKAGE_ARCH = "${BASE_PACKAGE_ARCH}"
+PACKAGE_EXTRA_ARCHS ?= ""
 MACHINE_ARCH = "${@[bb.data.getVar('HOST_ARCH', d, 1),
 bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d,
Quoted 3 lines

1))]}"
PACKAGE_ARCHS = "all any noarch ${TARGET_ARCH}
${PACKAGE_EXTRA_ARCHS} ${MACHINE}"

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz