aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/meta/meta-toolchain.bb
AgeCommit message (Expand)Author
2014-01-02Update after toplevel LICENSE file checksum changeRichard Purdie
2014-01-02Replace one-line DESCRIPTION with SUMMARYPaul Eggleton
2012-12-07image/populate_sdk: Simplify imagetest inclusion and drop dummy class fileRichard Purdie
@media only all and (prefers-color-scheme: dark) { .highlight .hll { background-color: #49483e } .highlight .c { color: #75715e } /* Comment */ .highlight .err { color: #960050; background-color: #1e0010 } /* Error */ .highlight .k { color: #66d9ef } /* Keyword */ .highlight .l { color: #ae81ff } /* Literal */ .highlight .n { color: #f8f8f2 } /* Name */ .highlight .o { color: #f92672 } /* Operator */ .highlight .p { color: #f8f8f2 } /* Punctuation */ .highlight .ch { color: #75715e } /* Comment.Hashbang */ .highlight .cm { color: #75715e } /* Comment.Multiline */ .highlight .cp { color: #75715e } /* Comment.Preproc */ .highlight .cpf { color: #75715e } /* Comment.PreprocFile */ .highlight .c1 { color: #75715e } /* Comment.Single */ .highlight .cs { color: #75715e } /* Comment.Special */ .highlight .gd { color: #f92672 } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gi { color: #a6e22e } /* Generic.Inserted */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #75715e } /* Generic.Subheading */ .highlight .kc { color: #66d9ef } /*
2011-08-04environment files: Added and unified version related variables.Lianhao Lu
2011-05-04qemuimagetest: Enable toolchain automation tests in qemuimagetestJiajun Xu
2011-04-20Replace POKYBASE with COREBASERichard Purdie
2011-03-18toolchain-scripts.bbclass: Added --sysroot to CPPFLAGS.Lianhao Lu
2011-03-05toolchain-script.bbclass: Added --sysroot to LDFLAGS.Lianhao Lu
2011-02-17recipe-core/meta/meta-toolchain.bb: Set correct value for CONFIG_SITE.Lianhao Lu
2011-02-01populate_sdk.bbclass/meta-toolchain: Made populate_sdk task more genericLianhao Lu
2011-01-26meta-toolchain: Fix tar commandRichard Purdie
2011-01-26meta-toolchain: Use --owner and --group options instead of using pseudo's ove...Richard Purdie
2010-12-25meta-toolchain Add LIC_FILES_CHKSUMRichard Purdie
2010-12-24rootfs_ipk: The most recent opkg errors upon file overwrite. Until we fix pac...Richard Purdie
2010-12-10task-cross-canadian: Ensure it reflects TARGET_ARCH in PNRichard Purdie
2010-12-10cross-canadian: pkg name includes target archLianhao Lu
2010-11-22Meta: Recipe ReogranizationSaul Wold
span> dictionary instead (necessary for /etc/shadow and /etc/gshadow). If not, a new mapping is created on the fly and returned. """ new_mapping = {} with open(filename, 'rb+') as f: lines = f.readlines() # No explicit error checking for the sake of simplicity. /etc # files are assumed to be well-formed, causing exceptions if # not. for line in lines: entries = line.split(b':') name = entries[0] if mapping is None: id = int(entries[2]) else: id = mapping[name] new_mapping[name] = id # Sort by numeric id first, with entire line as secondary key # (just in case that there is more than one entry for the same id). lines.sort(key=lambda line: (new_mapping[line.split(b':')[0]], line)) # We overwrite the entire file, i.e. no truncate() necessary. f.seek(0) f.write(b''.join(lines)) return new_mapping def remove_backup(filename): """ Removes the backup file for files like /etc/passwd. """ backup_filename = filename + '-' if os.path.exists(backup_filename): os.unlink(backup_filename) def sort_passwd(sysconfdir): """ Sorts passwd and group files in a rootfs /etc directory by ID. Backup files are sometimes are inconsistent and then cannot be sorted (YOCTO #11043), and more importantly, are not needed in the initial rootfs, so they get deleted. """ for main, shadow in (('passwd', 'shadow'), ('group', 'gshadow')): filename = os.path.join(sysconfdir, main) remove_backup(filename) if os.path.exists(filename): mapping = sort_file(filename, None) filename = os.path.join(sysconfdir, shadow) remove_backup(filename) if os.path.exists(filename): sort_file(filename, mapping)