Skip to content

Instantly share code, notes, and snippets.

@jomag jomag/linux-amun
Last active Sep 14, 2016

Embed
What would you like to do?
Build Configuration:
BB_VERSION = "1.30.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Debian-8.5"
TARGET_SYS = "arm-oe-linux-gnueabi"
MACHINE = "amun-bbg"
DISTRO = "griffin"
DISTRO_VERSION = "0.0.1"
TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa8"
TARGET_FPU = "hard"
meta = "krogoth:aad7166704021d82ad3a5ec468552f8f10360d41"
meta-python
meta-networking
meta-oe = "krogoth:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-bbb = "krogoth:2469336b70fda4d66fd47e6aa0056790b154b446"
meta-amun-bsp = "krogoth:0beec2674c9ad6fc66335104f0aeb252daef5767"
meta-griffin = "krogoth:d3b0063a72ee59eb6e71e10b1c5e17e373bcc876"
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: griffin-dev-image-1.0-r0 do_rootfs: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:license_create_manifest(d)
0003:
File: '/home/jonatan/griffin/layers/poky/meta/classes/license.bbclass', lineno: 48, function: license_create_manifest
0044: pkg_dic = {}
0045: for pkg in sorted(image_list_installed_packages(d)):
0046: pkg_info = os.path.join(d.getVar('PKGDATA_DIR', True),
0047: 'runtime-reverse', pkg)
*** 0048: pkg_name = os.path.basename(os.readlink(pkg_info))
0049:
0050: pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
0051: if not "LICENSE" in pkg_dic[pkg_name].keys():
0052: pkg_lic_name = "LICENSE_" + pkg_name
Exception: OSError: [Errno 2] No such file or directory: '/home/jonatan/griffin/build/tmp-glibc/sysroots/amun-bbg/pkgdata/runtime-reverse/kernel-4.6.7-amun-bbg'
ERROR: griffin-dev-image-1.0-r0 do_rootfs: Function failed: license_create_manifest
ERROR: Logfile of failure stored in: /home/jonatan/griffin/build/tmp-glibc/work/amun_bbg-oe-linux-gnueabi/griffin-dev-image/1.0-r0/temp/log.do_rootfs.8862
ERROR: Task 9 (/home/jonatan/griffin/layers/meta-griffin/recipes-core/images/griffin-dev-image.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2752 tasks of which 2751 didn't need to be rerun and 1 failed.
No currently running tasks (2292 of 2756)
Summary: 1 task failed:
/home/jonatan/griffin/layers/meta-griffin/recipes-core/images/griffin-dev-image.bb, do_rootfs
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
require recipes-kernel/linux/linux-yocto.inc
KERNEL_IMAGETYPE = "zImage"
COMPATIBLE_MACHINE = "amun-bbg"
# Copied from meta-bbb
RDEPENDS_kernel-base += "kernel-devicetree"
KERNEL_DEVICETREE="amun-bbgw.dtb"
SRC_URI = " \
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;branch=linux-4.6.y;tag=v4.6.7; \
file://defconfig \
file://amun-bbgw.dts \
file://am335x-bonegreen-wl1835.dtsi \
file://amun-bbgw-spi0.dtsi \
"
LINUX_VERSION = "4.6.7"
LINUX_VERSION_EXTENSION = "-amun-bbg"
PR = "r3"
PV = "${LINUX_VERSION}+git${SRCPV}"
do_compile_prepend() {
cp ${WORKDIR}/*.dts ${S}/arch/${ARCH}/boot/dts/
cp ${WORKDIR}/*.dtsi ${S}/arch/${ARCH}/boot/dts/
}
# U-boot has a fixed default configuration to use am335x-boneblack.dtb.
# It can be overridden using uEnv.txt. But we've taken another approach:
# As part of the install task we link the dtb to am335x-boneblack.dtb.
FILES_kernel-devicetree += "/boot/am335x-boneblack.dtb"
do_install_append() {
ln -s /boot/${KERNEL_DEVICETREE} ${D}/boot/am335x-boneblack.dtb
}
require recipes-kernel/linux/linux-yocto.inc
KERNEL_IMAGETYPE = "zImage"
COMPATIBLE_MACHINE = "amun-bbg"
# Copied from meta-bbb
RDEPENDS_kernel-base += "kernel-devicetree"
KERNEL_DEVICETREE="amun-bbgw.dtb"
# The nobranch=1 means that the sha sum is not checked for the branch.
# We need this because we checkout a tag rather than a branch.
SRC_URI = " \
git://github.com/beagleboard/linux;branch=4.4;tag=4.4.9-ti-rt-r25;nobranch=1 \
file://defconfig \
file://amun-bbgw.dts \
file://am335x-bonegreen-wl1835.dtsi \
file://amun-bbgw-spi0.dtsi \
"
LINUX_VERSION = "4.4.9"
LINUX_VERSION_EXTENSION = "-amun-ti-bbg"
PR = "r3"
PV = "${LINUX_VERSION}+git${SRCPV}"
do_compile_prepend() {
cp ${WORKDIR}/*.dts ${S}/arch/${ARCH}/boot/dts/
cp ${WORKDIR}/*.dtsi ${S}/arch/${ARCH}/boot/dts/
}
# U-boot has a fixed default configuration to use am335x-boneblack.dtb.
# It can be overridden using uEnv.txt. But we've taken another approach:
# As part of the install task we link the dtb to am335x-boneblack.dtb.
FILES_kernel-devicetree += "/boot/am335x-boneblack.dtb"
do_install_append() {
ln -s /boot/${KERNEL_DEVICETREE} ${D}/boot/am335x-boneblack.dtb
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.