Multilib: add sanity check script
Hi Richard,
This pull request is to add sanity check for multilib, please help to review and pull.
Thanks,
Dongxiao
The following changes since commit 644ad4bf1e30fcee4b9d5abb819046d1f2193d27:
documentation/bsp-guide/bsp.xml: Yocto term paring (2012-07-02 16:47:45 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib dxu4/multilib-check
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/multilib-check
Dongxiao Xu (1):
scripts/multilib-check: Check for multilib build results
scripts/multilib-check | 117 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 117 insertions(+), 0 deletions(-) create mode 100755 scripts/multilib-check
Signature · 1 line
1.7.4.1
PATCH 1/1 scripts/multilib-check: Check for multilib build results
This script is used to check whether the multilib build for a certain recipe outcomes the right files/directories.
The usage for the script is:
$ source oe-init-build-env $ multilib-check recipeA recipeB ...
or
$ source oe-init-build-env $ multilib-check world
This fixes [YOCTO #2038]
--- scripts/multilib-check | 117 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 117 insertions(+), 0 deletions(-) create mode 100755 scripts/multilib-check
scripts/multilib-check new file +117 -0
@@ -0,0 +1,117 @@ +#!/usr/bin/env python + +import os +import os.path +import sys + +# AAA: BBB +# AAA is the multilib prefix, BBB is its DEFAULTTUNE. +multilib_arch_tune = {"lib32": "x86", "lib64": "x86-64"} + +# The machine we now support is x86 and x86-64. +machine = "qemux86" + +def usage(): + print("Usage: multilib-check recipe_name1 recipe_name2 ... \n \ + or multilib-check world") + +def generate_multilib_config(): + os.system("cp -f conf/local.conf conf/local.conf.orig") + f = open("conf/local.conf", "a") + f.write('require conf/multilib.conf\n') + multilibs = "" + for i in multilib_arch_tune.keys(): + f.write('DEFAULTTUNE_virtclass-multilib-%s="%s"\n' % (i, multilib_arch_tune[i])) + multilibs += "multilib:%s " % i + f.write('MULTILIBS="%s"\n' % multilibs.strip()) + f.close() + +def restore_original_config(): + os.system("mv -f conf/local.conf.orig conf/local.conf") + +def build_recipe(mach, recipe_name): + print("INFO: Building %s ..." % recipe_name) + return os.system("MACHINE=%s bitbake %s &> /dev/null" % (mach, recipe_name)) + +def get_variable(mach, recipe_name, variable): + return os.popen('bitbake -e %s | grep "^%s="' % (recipe_name, variable)).readline().split("%s=" % variable)[1].strip("\"\n") + +# Check if dir2 contains the same set of files as in dir1. +def compare_folders(dir1, dir2): + if not os.path.exists(dir1): + return + for i in os.listdir(dir1): + path_normal = os.path.join(dir1, i) + path_multilib = os.path.join(dir2, i) + + if not os.path.exists(path_multilib): + print("ERROR: %s exists while %s doesn't" % (path_normal, path_multilib)) + continue + + if os.path.isdir(path_normal): + if not os.path.isdir(path_multilib): + print("ERROR: %s is a directory while %s is a file" % (path_normal, path_multilib)) + continue + compare_folders(path_normal, path_multilib) + else: + if not os.path.isfile(path_multilib): + print("ERROR: %s is a file while %s is a directory" % (path_normal, path_multilib)) + +def multilib_sanity_check(rootdir_normal, baselib_normal, rootdir_multilib, baselib_multilib): + compare_folders(rootdir_normal+"/usr/"+baselib_normal, rootdir_multilib+"/usr/"+baselib_multilib) + compare_folders(rootdir_normal+"/"+baselib_normal, rootdir_multilib+"/"+baselib_multilib) + +# Use bitbake -s to get the recipe list, for example "world" +def get_recipe_list(name): + begin = False + recipe_list = [] + fd = os.popen('bitbake -s %s' % name) + for i in fd: + if i.startswith("============"): + begin = True + continue + if begin and i.strip("\n"): + recipe_name = i.split()[0].strip() + if "native" in recipe_name: + continue + else: + recipe_list.append(recipe_name) + + return recipe_list + +def main(): + if len(sys.argv) <= 1: + usage() + exit(1) + elif len(sys.argv) == 2 and sys.argv[1] == "world": + recipe_list = get_recipe_list("world") + else: + recipe_list = sys.argv[1:] + + mach = machine + generate_multilib_config() + try: + for i in range(0, len(recipe_list)): + print("INFO: checking for recipe %s ..." % recipe_list[i]) + ret = build_recipe(mach, recipe_list[i]) + if ret: + print("ERROR: Build %s failed" % recipe_list[i]) + continue + rootdir_normal = get_variable(mach, recipe_list[i], "WORKDIR") + "/image" + baselib_normal = get_variable(mach, recipe_list[i], "baselib") + + for j in multilib_arch_tune.keys(): + ret = build_recipe(mach, j + "-" + recipe_list[i]) + if ret: + print("ERROR: Build %s failed" % (j + "-" + recipe_list[i])) + continue + rootdir_multilib = get_variable(mach, j + "-" + recipe_list[i], "WORKDIR") + "/image" + baselib_multilib = get_variable(mach, j + "-" + recipe_list[i], "baselib") + + multilib_sanity_check(rootdir_normal, baselib_normal, rootdir_multilib, baselib_multilib) + except Exception as e: + print "ERROR: %s" % e + finally: + restore_original_config() + +main()
Signature · 1 line
1.7.4.1
Re: [PATCH 1/1] scripts/multilib-check: Check for multilib build results
Quoted 5 lines · Dongxiao Xu
This script is used to check whether the multilib build for a certain recipe outcomes the right files/directories.
The usage for the script is:
Quoted 8 lines
$ source oe-init-build-env $ multilib-check recipeA recipeB ...or
$ source oe-init-build-env $ multilib-check world
Is there a reason that this is an external script rather than a default test as part of insane.bbclass.
Maybe you have been in touch with RP about this?
Also I think this should be part of oe-core, not in poky only.
Thanks
Sau!
Quoted 131 lines
This fixes [YOCTO #2038]
Signed-off-by Dongxiao Xu<[email protected]>--- scripts/multilib-check | 117 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 117 insertions(+), 0 deletions(-)create mode 100755
scripts/multilib-checkscripts/multilib-check new file +117
-0@@ -0,0 +1,117 @@ +#!/usr/bin/env python + +import os +import os.path +import sys + +# AAA: BBB +# AAA is the multilib prefix, BBB is its DEFAULTTUNE. +multilib_arch_tune = {"lib32": "x86", "lib64": "x86-64"} + +# The machine we now support is x86 and x86-64. +machine = "qemux86" + +def usage(): + print("Usage: multilib-check recipe_name1 recipe_name2 ... \n \ + or multilib-check world") + +def generate_multilib_config(): + os.system("cp -f conf/local.conf conf/local.conf.orig") + f = open("conf/local.conf", "a") + f.write('require conf/multilib.conf\n') + multilibs = "" + for i in multilib_arch_tune.keys(): + f.write('DEFAULTTUNE_virtclass-multilib-%s="%s"\n' % (i, multilib_arch_tune[i])) + multilibs += "multilib:%s " % i + f.write('MULTILIBS="%s"\n' % multilibs.strip()) + f.close() + +def restore_original_config(): + os.system("mv -f conf/local.conf.orig conf/local.conf") + +def build_recipe(mach, recipe_name): + print("INFO: Building %s ..." % recipe_name) + return os.system("MACHINE=%s bitbake %s&> /dev/null" % (mach, recipe_name)) + +def get_variable(mach, recipe_name, variable): + return os.popen('bitbake -e %s | grep "^%s="' % (recipe_name, variable)).readline().split("%s=" % variable)[1].strip("\"\n") + +# Check if dir2 contains the same set of files as in dir1. +def compare_folders(dir1, dir2): + if not os.path.exists(dir1): + return + for i in os.listdir(dir1): + path_normal = os.path.join(dir1, i) + path_multilib = os.path.join(dir2, i) + + if not os.path.exists(path_multilib): + print("ERROR: %s exists while %s doesn't" % (path_normal, path_multilib)) + continue + + if os.path.isdir(path_normal): + if not os.path.isdir(path_multilib): + print("ERROR: %s is a directory while %s is a file" % (path_normal, path_multilib)) + continue + compare_folders(path_normal, path_multilib) + else: + if not os.path.isfile(path_multilib): + print("ERROR: %s is a file while %s is a directory" % (path_normal, path_multilib)) + +def multilib_sanity_check(rootdir_normal, baselib_normal, rootdir_multilib, baselib_multilib): + compare_folders(rootdir_normal+"/usr/"+baselib_normal, rootdir_multilib+"/usr/"+baselib_multilib) + compare_folders(rootdir_normal+"/"+baselib_normal, rootdir_multilib+"/"+baselib_multilib) + +# Use bitbake -s to get the recipe list, for example "world" +def get_recipe_list(name): + begin = False + recipe_list = [] + fd = os.popen('bitbake -s %s' % name) + for i in fd: + if i.startswith("============"): + begin = True + continue + if begin and i.strip("\n"): + recipe_name = i.split()[0].strip() + if "native" in recipe_name: + continue + else: + recipe_list.append(recipe_name) + + return recipe_list + +def main(): + if len(sys.argv)<= 1: + usage() + exit(1) + elif len(sys.argv) == 2 and sys.argv[1] == "world": + recipe_list = get_recipe_list("world") + else: + recipe_list = sys.argv[1:] + + mach = machine + generate_multilib_config() + try: + for i in range(0, len(recipe_list)): + print("INFO: checking for recipe %s ..." % recipe_list[i]) + ret = build_recipe(mach, recipe_list[i]) + if ret: + print("ERROR: Build %s failed" % recipe_list[i]) + continue + rootdir_normal = get_variable(mach, recipe_list[i], "WORKDIR") + "/image" + baselib_normal = get_variable(mach, recipe_list[i], "baselib") + + for j in multilib_arch_tune.keys(): + ret = build_recipe(mach, j + "-" + recipe_list[i]) + if ret: + print("ERROR: Build %s failed" % (j + "-" + recipe_list[i])) + continue + rootdir_multilib = get_variable(mach, j + "-" + recipe_list[i], "WORKDIR") + "/image" + baselib_multilib = get_variable(mach, j + "-" + recipe_list[i], "baselib") + + multilib_sanity_check(rootdir_normal, baselib_normal, rootdir_multilib, baselib_multilib) + except Exception as e: + print "ERROR: %s" % e + finally: + restore_original_config() + +main()
Re: [PATCH 1/1] scripts/multilib-check: Check for multilib build results
Quoted 17 lines
-----Original Message-----
From: Saul Wold [mailto:[email protected]]
Sent: Tuesday, July 03, 2012 6:41 AM
To: Xu, Dongxiao
Cc: [email protected]
Subject: Re: [poky] [PATCH 1/1]scripts/multilib-check: Check for multilib build resultsQuoted 8 lines · Dongxiao Xu
This script is used to check whether the multilib build for a certain recipe outcomes the right files/directories.
The usage for the script is:
$ source oe-init-build-env $ multilib-check recipeA recipeB ...
Quoted 7 lines
Quoted 5 lines
or
$ source oe-init-build-env $ multilib-check worldIs there a reason that this is an external script rather than a default test as part of insane.bbclass.
The method in my script is based on the comparison between a normal build "WORKDIR/image" and a multilib build "WORKDIR/image", and this is not easy to achieve in insane.bbclass. Or do you have other ideas on how to perform this check? Suggestions are welcome. :-)
Another thought for adding it as a separate script is that, we don't need to run this script for each build, only recipe owner or multilib feature owner may need this script to check whether certain recipe is multilib enabled or not.
Quoted 2 lines
Maybe you have been in touch with RP about this?
No, we haven't discussed it before, this is the first draft.
Quoted 2 lines
Also I think this should be part of oe-core, not in poky only.
If we do it in a separate script, where we should put for OE-Core?
Thanks,
Dongxiao
Quoted 151 lines
Thanks
Sau!
Quoted 5 lines
This fixes [YOCTO #2038]
Signed-off-by Dongxiao Xu<[email protected]>--- scripts/multilib-check | 117++++++++++++++++++++++++++++++++++++++++++++++++
Quoted 22 lines
1 files changed, 117 insertions(+), 0 deletions(-)create mode 100755
scripts/multilib-checkscripts/multilib-check new file renamed from scripts/multilib-check +0
-0mode 100755 index 0000000..69a5dd3
scripts/multilib-check new file +14
-0@@ -0,0 +1,117 @@ +#!/usr/bin/env python + +import os +import os.path +import sys + +# AAA: BBB +# AAA is the multilib prefix, BBB is its DEFAULTTUNE. +multilib_arch_tune = {"lib32": "x86", "lib64": "x86-64"} + +# The machine we now support is x86 and x86-64. +machine = "qemux86" + +def usage():scripts/multilib-check line 24
Quoted 10 lines
scripts/multilib-check new file +10
-0+ print("Usage: multilib-check recipe_name1 recipe_name2 ... \n \ + or multilib-check world") + +def generate_multilib_config(): + os.system("cp -f conf/local.conf conf/local.conf.orig") + f = open("conf/local.conf", "a") + f.write('require conf/multilib.conf\n') + multilibs = "" + for i in multilib_arch_tune.keys(): + f.write('DEFAULTTUNE_virtclass-multilib-%s="%s"\n' % (i,multilib_arch_tune[i]))
Quoted 16 lines
scripts/multilib-check new file +16
-0+ multilibs += "multilib:%s " % i + f.write('MULTILIBS="%s"\n' % multilibs.strip()) + f.close() + +def restore_original_config(): + os.system("mv -f conf/local.conf.orig conf/local.conf") + +def build_recipe(mach, recipe_name): + print("INFO: Building %s ..." % recipe_name) + return os.system("MACHINE=%s bitbake %s&> /dev/null" % (mach, +recipe_name)) + +def get_variable(mach, recipe_name, variable): + return os.popen('bitbake -e %s | grep "^%s="' % (recipe_name, +variable)).readline().split("%s=" % variable)[1].strip("\"\n") +scripts/multilib-check
Quoted 10 lines
scripts/multilib-check new file +10
-0+# Check if dir2 contains the same set of files as in dir1. +def compare_folders(dir1, dir2): + if not os.path.exists(dir1): + return + for i in os.listdir(dir1): + path_normal = os.path.join(dir1, i) + path_multilib = os.path.join(dir2, i) + + if not os.path.exists(path_multilib): + print("ERROR: %s exists while %s doesn't" % (path_normal,
path_multilib))scripts/multilib-check
Quoted 5 lines
scripts/multilib-check new file +5
-0+ continue + + if os.path.isdir(path_normal): + if not os.path.isdir(path_multilib): + print("ERROR: %s is a directory while %s is a file" %(
path_normal,path_multilib))scripts/multilib-check
Quoted 8 lines
scripts/multilib-check new file +8
-0+ continue + compare_folders(path_normal, path_multilib) + else: + if not os.path.isfile(path_multilib): + print("ERROR: %s is a file while %s is a directory" % + (path_normal, path_multilib)) + +def multilib_sanity_check(rootdir_normal, baselib_normal, rootdir_multilib,
baselib_multilib):scripts/multilib-check line 64
Quoted 1 line
scripts/multilib-check new file +1
-0+ compare_folders(rootdir_normal+"/usr/"+baselib_normal,rootdir_multilib+"/usr/"+baselib_multilib)
Quoted 30 lines
scripts/multilib-check new file +30
-0+ compare_folders(rootdir_normal+"/"+baselib_normal, +rootdir_multilib+"/"+baselib_multilib) + +# Use bitbake -s to get the recipe list, for example "world" +def get_recipe_list(name): + begin = False + recipe_list = [] + fd = os.popen('bitbake -s %s' % name) + for i in fd: + if i.startswith("============"): + begin = True + continue + if begin and i.strip("\n"): + recipe_name = i.split()[0].strip() + if "native" in recipe_name: + continue + else: + recipe_list.append(recipe_name) + + return recipe_list + +def main(): + if len(sys.argv)<= 1: + usage() + exit(1) + elif len(sys.argv) == 2 and sys.argv[1] == "world": + recipe_list = get_recipe_list("world") + else: + recipe_list = sys.argv[1:] +scripts/multilib-check
Quoted 10 lines
scripts/multilib-check new file +10
-0+ mach = machine + generate_multilib_config() + try: + for i in range(0, len(recipe_list)): + print("INFO: checking for recipe %s ..." % recipe_list[i]) + ret = build_recipe(mach, recipe_list[i]) + if ret: + print("ERROR: Build %s failed" % recipe_list[i]) + continue + rootdir_normal = get_variable(mach, recipe_list[i],"WORKDIR") + "/image"
scripts/multilib-check
Quoted 7 lines
scripts/multilib-check new file +7
-0+ baselib_normal = get_variable(mach, recipe_list[i], + "baselib") + + for j in multilib_arch_tune.keys(): + ret = build_recipe(mach, j + "-" + recipe_list[i]) + if ret: + print("ERROR: Build %s failed" % (j + "-" +recipe_list[i]))
scripts/multilib-check line 113
Quoted 2 lines
scripts/multilib-check new file +2
-0+ continue + rootdir_multilib = get_variable(mach, j + "-" +recipe_list[i], "WORKDIR") + "/image"
scripts/multilib-check line 117
Quoted 4 lines
scripts/multilib-check new file +4
-0+ baselib_multilib = get_variable(mach, j + "-" + + recipe_list[i], "baselib") + + multilib_sanity_check(rootdir_normal, baselib_normal,
rootdir_multilib,baselib_multilib)Quoted 6 lines
scripts/multilib-check new file +6
-0+ except Exception as e: + print "ERROR: %s" % e + finally: + restore_original_config() + +main()
Re: [PATCH 1/1] scripts/multilib-check: Check for multilib build results
Hi Richard,
Do you have specific comment on this one?
Thanks,
Dongxiao
Quoted 216 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Xu, Dongxiao
Sent: Tuesday, July 03, 2012 6:50 AM
To: Saul Wold
Cc: [email protected]
Subject: Re: [poky] [PATCH 1/1]scripts/multilib-check: Check for multilib build resultsQuoted 17 lines
-----Original Message-----
From: Saul Wold [mailto:[email protected]]
Sent: Tuesday, July 03, 2012 6:41 AM
To: Xu, Dongxiao
Cc: [email protected]
Subject: Re: [poky] [PATCH 1/1]scripts/multilib-check: Check for multilib build resultsQuoted 8 lines · Dongxiao Xu
This script is used to check whether the multilib build for a certain recipe outcomes the right files/directories.
The usage for the script is:
$ source oe-init-build-env $ multilib-check recipeA recipeB ...Quoted 7 lines
Quoted 5 lines
or
$ source oe-init-build-env $ multilib-check worldIs there a reason that this is an external script rather than a default test as part of insane.bbclass.
The method in my script is based on the comparison between a normal build "WORKDIR/image" and a multilib build "WORKDIR/image", and this is not easy to achieve in insane.bbclass.
Or do you have other ideas on how to perform this check? Suggestions are welcome. :-)Another thought for adding it as a separate script is that, we don't need to run this script for each build, only recipe owner or multilib feature owner may need this script to check whether certain recipe is multilib enabled or not.
Quoted 2 lines
Maybe you have been in touch with RP about this?
No, we haven't discussed it before, this is the first draft.
Quoted 2 lines
Also I think this should be part of oe-core, not in poky only.
If we do it in a separate script, where we should put for OE-Core?
Thanks,
DongxiaoQuoted 148 lines
Thanks
Sau!
Quoted 5 lines
This fixes [YOCTO #2038]
Signed-off-by Dongxiao Xu<[email protected]>--- scripts/multilib-check | 117++++++++++++++++++++++++++++++++++++++++++++++++
Quoted 22 lines
1 files changed, 117 insertions(+), 0 deletions(-)create mode 100755
scripts/multilib-checkscripts/multilib-check new renamed from scripts/multilib-check +0
-0file mode 100755 index 0000000..69a5dd3
scripts/multilib-check new file +14
-0@@ -0,0 +1,117 @@ +#!/usr/bin/env python + +import os +import os.path +import sys + +# AAA: BBB +# AAA is the multilib prefix, BBB is its DEFAULTTUNE. +multilib_arch_tune = {"lib32": "x86", "lib64": "x86-64"} + +# The machine we now support is x86 and x86-64. +machine = "qemux86" + +def usage():scripts/multilib-check line 24
Quoted 10 lines
scripts/multilib-check new file +10
-0+ print("Usage: multilib-check recipe_name1 recipe_name2 ... \n \ + or multilib-check world") + +def generate_multilib_config(): + os.system("cp -f conf/local.conf conf/local.conf.orig") + f = open("conf/local.conf", "a") + f.write('require conf/multilib.conf\n') + multilibs = "" + for i in multilib_arch_tune.keys(): + f.write('DEFAULTTUNE_virtclass-multilib-%s="%s"\n' % (i,multilib_arch_tune[i]))
Quoted 17 lines
scripts/multilib-check new file +17
-0+ multilibs += "multilib:%s " % i + f.write('MULTILIBS="%s"\n' % multilibs.strip()) + f.close() + +def restore_original_config(): + os.system("mv -f conf/local.conf.orig conf/local.conf") + +def build_recipe(mach, recipe_name): + print("INFO: Building %s ..." % recipe_name) + return os.system("MACHINE=%s bitbake %s&> /dev/null" % (mach, +recipe_name)) + +def get_variable(mach, recipe_name, variable): + return os.popen('bitbake -e %s | grep "^%s="' % (recipe_name, +variable)).readline().split("%s=" % variable)[1].strip("\"\n") + +# Check if dir2 contains the same set of files as in dir1.scripts/multilib-check
Quoted 10 lines
scripts/multilib-check new file +10
-0+def compare_folders(dir1, dir2): + if not os.path.exists(dir1): + return + for i in os.listdir(dir1): + path_normal = os.path.join(dir1, i) + path_multilib = os.path.join(dir2, i) + + if not os.path.exists(path_multilib): + print("ERROR: %s exists while %s doesn't" % + (path_normal,
path_multilib))scripts/multilib-check
Quoted 6 lines
scripts/multilib-check new file +6
-0+ continue + + if os.path.isdir(path_normal): + if not os.path.isdir(path_multilib): + print("ERROR: %s is a directory while %s is a file" + %(
path_normal,path_multilib))scripts/multilib-check
Quoted 9 lines
scripts/multilib-check new file +9
-0+ continue + compare_folders(path_normal, path_multilib) + else: + if not os.path.isfile(path_multilib): + print("ERROR: %s is a file while %s is a directory" + % (path_normal, path_multilib)) + +def multilib_sanity_check(rootdir_normal, baselib_normal, +rootdir_multilib,
baselib_multilib):scripts/multilib-check line 67
Quoted 1 line
scripts/multilib-check new file +1
-0+ compare_folders(rootdir_normal+"/usr/"+baselib_normal,rootdir_multilib+"/usr/"+baselib_multilib)
Quoted 30 lines
scripts/multilib-check new file +30
-0+ compare_folders(rootdir_normal+"/"+baselib_normal, +rootdir_multilib+"/"+baselib_multilib) + +# Use bitbake -s to get the recipe list, for example "world" +def get_recipe_list(name): + begin = False + recipe_list = [] + fd = os.popen('bitbake -s %s' % name) + for i in fd: + if i.startswith("============"): + begin = True + continue + if begin and i.strip("\n"): + recipe_name = i.split()[0].strip() + if "native" in recipe_name: + continue + else: + recipe_list.append(recipe_name) + + return recipe_list + +def main(): + if len(sys.argv)<= 1: + usage() + exit(1) + elif len(sys.argv) == 2 and sys.argv[1] == "world": + recipe_list = get_recipe_list("world") + else: + recipe_list = sys.argv[1:] +scripts/multilib-check
Quoted 10 lines
scripts/multilib-check new file +10
-0+ mach = machine + generate_multilib_config() + try: + for i in range(0, len(recipe_list)): + print("INFO: checking for recipe %s ..." % recipe_list[i]) + ret = build_recipe(mach, recipe_list[i]) + if ret: + print("ERROR: Build %s failed" % recipe_list[i]) + continue + rootdir_normal = get_variable(mach, recipe_list[i],"WORKDIR") + "/image"
scripts/multilib-check
Quoted 7 lines
scripts/multilib-check new file +7
-0+ baselib_normal = get_variable(mach, recipe_list[i], + "baselib") + + for j in multilib_arch_tune.keys(): + ret = build_recipe(mach, j + "-" + recipe_list[i]) + if ret: + print("ERROR: Build %s failed" % (j + "-" +recipe_list[i]))
scripts/multilib-check line 116
Quoted 2 lines
scripts/multilib-check new file +2
-0+ continue + rootdir_multilib = get_variable(mach, j + "-" +recipe_list[i], "WORKDIR") + "/image"
scripts/multilib-check
Quoted 5 lines
scripts/multilib-check new file +5
-0+ baselib_multilib = get_variable(mach, j + "-" + + recipe_list[i], "baselib") + + multilib_sanity_check(rootdir_normal, + baselib_normal,Quoted 7 lines
rootdir_multilib,baselib_multilib)scripts/multilib-check line 117
Quoted 6 lines
scripts/multilib-check new file +6
-0+ except Exception as e: + print "ERROR: %s" % e + finally: + restore_original_config() + +main()_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Do you have any comment on this one?
Thanks,
Dongxiao
Quoted 40 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dongxiao Xu
Sent: Tuesday, July 03, 2012 6:09 AM
To: [email protected]
Subject: [poky] [PATCH 0/1][PULL] Multilib: add sanity check scriptHi Richard,
This pull request is to add sanity check for multilib, please help to review and pull.
Thanks,
DongxiaoThe following changes since commit
644ad4bf1e30fcee4b9d5abb819046d1f2193d27:
documentation/bsp-guide/bsp.xml: Yocto term paring (2012-07-02 16:47:45
+0100)are available in the git repository at:
git://git.pokylinux.org/poky-contribdxu4/multilib-check
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/multilib-checkDongxiao Xu (1):
scripts/multilib-check: Check for multilib build resultsscripts/multilib-check | 117 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 117 insertions(+), 0 deletions(-) create mode 100755
scripts/multilib-check--
1.7.4.1_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky