diff options
Diffstat (limited to 'distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/kernel')
3 files changed, 259 insertions, 0 deletions
diff --git a/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/kernel/files/vexpress/defconfig b/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/kernel/files/vexpress/defconfig new file mode 100644 index 0000000..2344d27 --- /dev/null +++ b/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/kernel/files/vexpress/defconfig @@ -0,0 +1,151 @@ +# CONFIG_LOCALVERSION_AUTO is not set +CONFIG_SYSVIPC=y +CONFIG_IKCONFIG=y +CONFIG_IKCONFIG_PROC=y +CONFIG_LOG_BUF_SHIFT=14 +CONFIG_CGROUPS=y +CONFIG_CPUSETS=y +# CONFIG_UTS_NS is not set +# CONFIG_IPC_NS is not set +# CONFIG_PID_NS is not set +# CONFIG_NET_NS is not set +CONFIG_BLK_DEV_INITRD=y +CONFIG_PROFILING=y +CONFIG_OPROFILE=y +CONFIG_MODULES=y +CONFIG_MODULE_UNLOAD=y +# CONFIG_BLK_DEV_BSG is not set +# CONFIG_IOSCHED_DEADLINE is not set +# CONFIG_IOSCHED_CFQ is not set +CONFIG_ARCH_VEXPRESS=y +CONFIG_ARCH_VEXPRESS_DCSCB=y +CONFIG_ARCH_VEXPRESS_TC2_PM=y +CONFIG_SMP=y +CONFIG_HAVE_ARM_ARCH_TIMER=y +CONFIG_MCPM=y +CONFIG_VMSPLIT_2G=y +CONFIG_NR_CPUS=8 +CONFIG_ARM_PSCI=y +CONFIG_AEABI=y +CONFIG_CMA=y +CONFIG_ZBOOT_ROM_TEXT=0x0 +CONFIG_ZBOOT_ROM_BSS=0x0 +CONFIG_CMDLINE="console=ttyAMA0" +CONFIG_CPU_IDLE=y +CONFIG_VFP=y +CONFIG_NEON=y +# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set +CONFIG_NET=y +CONFIG_PACKET=y +CONFIG_UNIX=y +CONFIG_INET=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y +# CONFIG_INET_LRO is not set +# CONFIG_IPV6 is not set +# CONFIG_WIRELESS is not set +CONFIG_NET_9P=y +CONFIG_NET_9P_VIRTIO=y +CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" +CONFIG_DEVTMPFS=y +CONFIG_MTD=y +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_BLOCK=y +CONFIG_MTD_CFI=y +CONFIG_MTD_CFI_INTELEXT=y +CONFIG_MTD_CFI_AMDSTD=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_PHYSMAP_OF=y +CONFIG_MTD_PLATRAM=y +CONFIG_MTD_UBI=y +CONFIG_VIRTIO_BLK=y +# CONFIG_SCSI_PROC_FS is not set +CONFIG_BLK_DEV_SD=y +CONFIG_SCSI_VIRTIO=y +CONFIG_ATA=y +# CONFIG_SATA_PMP is not set +CONFIG_NETDEVICES=y +CONFIG_VIRTIO_NET=y +CONFIG_SMC91X=y +CONFIG_SMSC911X=y +# CONFIG_WLAN is not set +CONFIG_INPUT_EVDEV=y +# CONFIG_SERIO_SERPORT is not set +CONFIG_SERIO_AMBAKMI=y +CONFIG_LEGACY_PTY_COUNT=16 +CONFIG_SERIAL_AMBA_PL011=y +CONFIG_SERIAL_AMBA_PL011_CONSOLE=y +CONFIG_VIRTIO_CONSOLE=y +CONFIG_HW_RANDOM=y +CONFIG_HW_RANDOM_VIRTIO=y +CONFIG_I2C=y +CONFIG_I2C_VERSATILE=y +CONFIG_SENSORS_VEXPRESS=y +CONFIG_REGULATOR_VEXPRESS=y +CONFIG_FB=y +CONFIG_FB_ARMCLCD=y +CONFIG_FRAMEBUFFER_CONSOLE=y +CONFIG_LOGO=y +# CONFIG_LOGO_LINUX_MONO is not set +# CONFIG_LOGO_LINUX_VGA16 is not set +CONFIG_SOUND=y +CONFIG_SND=y +CONFIG_SND_MIXER_OSS=y +CONFIG_SND_PCM_OSS=y +# CONFIG_SND_DRIVERS is not set +CONFIG_SND_ARMAACI=y +CONFIG_HID_DRAGONRISE=y +CONFIG_HID_GYRATION=y +CONFIG_HID_TWINHAN=y +CONFIG_HID_NTRIG=y +CONFIG_HID_PANTHERLORD=y +CONFIG_HID_PETALYNX=y +CONFIG_HID_SAMSUNG=y +CONFIG_HID_SONY=y +CONFIG_HID_SUNPLUS=y +CONFIG_HID_GREENASIA=y +CONFIG_HID_SMARTJOYPLUS=y +CONFIG_HID_TOPSEED=y +CONFIG_HID_THRUSTMASTER=y +CONFIG_HID_ZEROPLUS=y +CONFIG_USB=y +CONFIG_USB_ANNOUNCE_NEW_DEVICES=y +CONFIG_USB_MON=y +CONFIG_USB_STORAGE=y +CONFIG_USB_ISP1760=y +CONFIG_MMC=y +CONFIG_MMC_ARMMMCI=y +CONFIG_NEW_LEDS=y +CONFIG_LEDS_CLASS=y +CONFIG_LEDS_GPIO=y +CONFIG_LEDS_TRIGGERS=y +CONFIG_LEDS_TRIGGER_HEARTBEAT=y +CONFIG_LEDS_TRIGGER_CPU=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_PL031=y +CONFIG_VIRTIO_BALLOON=y +CONFIG_VIRTIO_MMIO=y +CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y +CONFIG_EXT2_FS=y +CONFIG_EXT3_FS=y +CONFIG_VFAT_FS=y +CONFIG_TMPFS=y +CONFIG_JFFS2_FS=y +CONFIG_UBIFS_FS=y +CONFIG_CRAMFS=y +CONFIG_SQUASHFS=y +CONFIG_SQUASHFS_LZO=y +CONFIG_NFS_FS=y +CONFIG_ROOT_NFS=y +CONFIG_9P_FS=y +CONFIG_NLS_CODEPAGE_437=y +CONFIG_NLS_ISO8859_1=y +CONFIG_DEBUG_INFO=y +CONFIG_DEBUG_FS=y +CONFIG_MAGIC_SYSRQ=y +CONFIG_DEBUG_KERNEL=y +CONFIG_DETECT_HUNG_TASK=y +# CONFIG_SCHED_DEBUG is not set +CONFIG_DEBUG_USER=y +# CONFIG_CRYPTO_HW is not set diff --git a/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/kernel/linux-basic_4.11.1.bb b/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/kernel/linux-basic_4.11.1.bb new file mode 100644 index 0000000..f02c964 --- /dev/null +++ b/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/kernel/linux-basic_4.11.1.bb @@ -0,0 +1,60 @@ +# use the kernel class (poky/meta/kernel.bbclass) +inherit kernel + +KERNEL_IMAGETYPE = "zImage" + +# license information/checksum +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" + +# specify kernel source (named as "upstream" for later reference) +# SRC_URI = "git://git.yoctoproject.org/linux-yocto-4.4.git;name=upstream" + +# provide git reference for the exact commit +# - references must be used with git if no network available +# - reference for "v4.4" tag discovered with: git show-ref v4.4 +#SRCREV_upstream = "b5be40b90dbaa6bd337f3b77de361bfc0723468b" + +# by default for the git protocol, the repository is checked out into +# ${WORKDIR}/git, so bitbake must look there for the source code +# (the "destsuffix" SRC_URI option defaults to "git/" for git) +#S = "${WORKDIR}/git" + +SRC_URI = "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz" + +# checksums for the downloaded file +SRC_URI[md5sum] = "9a75a70346aff3be6147e2478a581c18" +SRC_URI[sha256sum] = "7e46f9e216907942b0b07f2bb59708dc33501d4e2a0938164396386ebd21e608" + +# the https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.11.1.tar.xz extracts +# into a directory called linux-4.11.1 set this as source directory +S = "${WORKDIR}/linux-4.11.1" + +# specify kernel config (automatically searched in ./files/${MACHINE}/) +SRC_URI += "file://defconfig" + +# set a weak default for our DTB variable +# (this ensures that DTB definitely has a value and because of +# how we named the dummy value, will generate a useful message +# if DTB is not specified in some .conf somehwere) +DTB ??= "no-devicetree-specified.dtb" + +# create a compile function for the device tree +# - DTB is a variable we created +build_dtb () { + oe_runmake -f ${B}/Makefile ${DTB} +} +# ...and have it called after the compile task is finished +do_compile[postfuncs] += "build_dtb" + +# create a deploy function for the device tree +# - ${B} is set to the kernel build directory (set in kernel.bbclass) +# - ${ARCH} is set to the kernel architecture (set in kernel-arch.bbclass) +# - anything copied to ${DEPLOYDIR} will also appear as a deployed file +# (for example: tmp/deploy/images/vexpress/myfile) +deploy_dtb () { + install -D -m 0644 ${B}/arch/${ARCH}/boot/dts/${DTB} \ + ${DEPLOYDIR}/devicetree-${DTB} +} +# ...and have it called after the deploy task is finished +do_deploy[postfuncs] += "deploy_dtb" diff --git a/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/kernel/linux-basic_4.4.bb b/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/kernel/linux-basic_4.4.bb new file mode 100644 index 0000000..7301b6e --- /dev/null +++ b/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/kernel/linux-basic_4.4.bb @@ -0,0 +1,48 @@ +# use the kernel class (poky/meta/kernel.bbclass) +inherit kernel + +# license information/checksum +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" + +# specify kernel source (named as "upstream" for later reference) +SRC_URI = "git://git.yoctoproject.org/linux-yocto-4.4.git;name=upstream" + +# specify kernel config (automatically searched in ./files/${MACHINE}/) +SRC_URI += "file://defconfig" + +# provide git reference for the exact commit +# - references must be used with git if no network available +# - reference for "v4.4" tag discovered with: git show-ref v4.4 +SRCREV_upstream = "b5be40b90dbaa6bd337f3b77de361bfc0723468b" + +# by default for the git protocol, the repository is checked out into +# ${WORKDIR}/git, so bitbake must look there for the source code +# (the "destsuffix" SRC_URI option defaults to "git/" for git) +S = "${WORKDIR}/git" + +# set a weak default for our DTB variable +# (this ensures that DTB definitely has a value and because of +# how we named the dummy value, will generate a useful message +# if DTB is not specified in some .conf somehwere) +DTB ??= "no-devicetree-specified.dtb" + +# create a compile function for the device tree +# - DTB is a variable we created +# build_dtb () { +# oe_runmake ${DTB} +#} +# ...and have it called after the compile task is finished +do_compile[postfuncs] += "build_dtb" + +# create a deploy function for the device tree +# - ${B} is set to the kernel build directory (set in kernel.bbclass) +# - ${ARCH} is set to the kernel architecture (set in kernel-arch.bbclass) +# - anything copied to ${DEPLOYDIR} will also appear as a deployed file +# (for example: tmp/deploy/images/vexpress/myfile) +deploy_dtb () { + install -D -m 0644 ${B}/arch/${ARCH}/boot/dts/${DTB} \ + ${DEPLOYDIR}/devicetree-${DTB} +} +# ...and have it called after the deploy task is finished +do_deploy[postfuncs] += "deploy_dtb" |
