Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (53 sloc) 2.3 KB
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
PV = "${DISTRO_VERSION}"
PR = "r12"
PE = "2"
SRC_URI = "file://lsb_release"
PACKAGES = "${PN}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
def get_layers(bb, d):
layers = (d.getVar("BBLAYERS", 1) or "").split()
layers_branch_rev = ["%-17s = \"%s:%s\"" % (os.path.basename(i), \
base_get_metadata_git_branch(i, None).strip().strip('()'), \
base_get_metadata_git_revision(i, None)) \
for i in layers]
i = len(layers_branch_rev)-1
p1 = layers_branch_rev[i].find("=")
s1= layers_branch_rev[i][p1:]
while i > 0:
p2 = layers_branch_rev[i-1].find("=")
s2= layers_branch_rev[i-1][p2:]
if s1 == s2:
layers_branch_rev[i-1] = layers_branch_rev[i-1][0:p2]
i -= 1
else:
i -= 1
p1 = layers_branch_rev[i].find("=")
s1= layers_branch_rev[i][p1:]
layertext = "Configured Openembedded layers:\n%s\n" % '\n'.join(layers_branch_rev)
layertext = layertext.replace('<','')
layertext = layertext.replace('>','')
return layertext
do_install() {
install -d ${D}${sysconfdir}
echo "Angstrom ${DISTRO_VERSION} (Core edition)" > ${D}${sysconfdir}/angstrom-version
echo "Built from branch: ${METADATA_BRANCH}" >> ${D}${sysconfdir}/angstrom-version
echo "Revision: ${METADATA_REVISION}" >> ${D}${sysconfdir}/angstrom-version
echo "Target system: ${TARGET_SYS}" >> ${D}${sysconfdir}/angstrom-version
echo "${@get_layers(bb, d)}" > ${D}${sysconfdir}/angstrom-build-info
echo "VERSION=\"${DISTRO_VERSION}\"" > ${D}${sysconfdir}/os-release
echo "VERSION_ID=\"${DISTRO_VERSION}\"" > ${D}${sysconfdir}/os-release
echo "NAME=\"Angstrom\"" >> ${D}${sysconfdir}/os-release
echo "ID=\"angstrom\"" >> ${D}${sysconfdir}/os-release
echo "PRETTY_NAME=\"The Ångström Distribution ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/os-release
echo "ANSI_COLOR=\"1;35\"" >> ${D}${sysconfdir}/os-release
echo "HOME_URL=\"http://www.angstrom-distribution.org\"" >> ${D}${sysconfdir}/os-release
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/lsb_release ${D}${bindir}/
}
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
RPROVIDES_${PN} = "os-release"
RREPLACES_${PN} = "os-release"
RCONFLICTS_${PN} = "os-release"
You can’t perform that action at this time.