diff options
| author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2014-01-13 10:16:43 +0200 | 
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-11 11:50:26 +0000 | 
| commit | d950ef40a3eae4b54cc62828e66d84a62d78c447 (patch) | |
| tree | 3c3d9ae302690799bf1197740d2bdf0243b76ed6 /meta/classes/image.bbclass | |
| parent | 0650e1f2354cdb6f925040d9d07e2c785274a592 (diff) | |
| download | openembedded-core-d950ef40a3eae4b54cc62828e66d84a62d78c447.tar.gz openembedded-core-d950ef40a3eae4b54cc62828e66d84a62d78c447.tar.bz2 openembedded-core-d950ef40a3eae4b54cc62828e66d84a62d78c447.zip | |
Cleanup image,rootfs_ipk,package_ipk bbclass files
This commit cleans up the functions that were ported to python.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Diffstat (limited to 'meta/classes/image.bbclass')
| -rw-r--r-- | meta/classes/image.bbclass | 38 | 
1 files changed, 0 insertions, 38 deletions
| diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 0b35c719fd..ffe05c9040 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -287,44 +287,6 @@ MULTILIBRE_ALLOW_REP =. "${base_bindir}|${base_sbindir}|${bindir}|${sbindir}|${l  MULTILIB_CHECK_FILE = "${WORKDIR}/multilib_check.py"  MULTILIB_TEMP_ROOTFS = "${WORKDIR}/multilib" -multilib_generate_python_file() { -  cat >${MULTILIB_CHECK_FILE} <<EOF -import sys, os, os.path -import re,filecmp - -allow_rep=re.compile(re.sub("\|$","","${MULTILIBRE_ALLOW_REP}")) -error_prompt="Multilib check error:" - -files={} -dirs=raw_input() -for dir in dirs.split(): -  for root, subfolders, subfiles in os.walk(dir): -    for file in subfiles: -      item=os.path.join(root,file) -      key=str(os.path.join("/",os.path.relpath(item,dir))) - -      valid=True; -      if key in files: -        #check whether the file is allow to replace -        if allow_rep.match(key): -          valid=True -        else: -          if not filecmp.cmp(files[key],item): -             valid=False -             print("%s duplicate files %s %s is not the same\n" % (error_prompt, item, files[key])) -             sys.exit(1) - -      #pass the check, add to list -      if valid: -        files[key]=item -EOF -} - -multilib_sanity_check() { -  multilib_generate_python_file -  echo $@ | python ${MULTILIB_CHECK_FILE} -} -  # This function is intended to disallow empty root password if 'debug-tweaks' is not in IMAGE_FEATURES.  zap_empty_root_password () {  	if [ -e ${IMAGE_ROOTFS}/etc/shadow ]; then | 
