diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:29:32 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:29:32 +0200 |
commit | 6b4c82f4657bdb56e6b7a56651d6d4bb91a35b8f (patch) | |
tree | 814ad3da280833de03535ca04cf5068da1d31822 /meta-eca-bsp | |
download | meta-eca-daisy-enea.tar.gz |
initial commit for Enea Linux 4.0daisy-enea
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta-eca-bsp')
11 files changed, 143 insertions, 0 deletions
diff --git a/meta-eca-bsp/conf/layer.conf b/meta-eca-bsp/conf/layer.conf new file mode 100644 index 0000000..6328a44 --- /dev/null +++ b/meta-eca-bsp/conf/layer.conf | |||
@@ -0,0 +1,13 @@ | |||
1 | # We have a conf and classes directory, add to BBPATH | ||
2 | BBPATH .= ":${LAYERDIR}" | ||
3 | |||
4 | # We have recipes-* directories, add to BBFILES | ||
5 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ | ||
6 | ${LAYERDIR}/recipes-*/*/*.bbappend" | ||
7 | |||
8 | # Clanton has own kernel recipe | ||
9 | BBFILES_clanton += "${LAYERDIR}/recipes-*/*/clanton/*.bbappend" | ||
10 | |||
11 | BBFILE_COLLECTIONS += "ecabsp" | ||
12 | BBFILE_PATTERN_ecabsp = "^${LAYERDIR}/" | ||
13 | BBFILE_PRIORITY_ecabsp = "5" | ||
diff --git a/meta-eca-bsp/recipes-eca/grub-conf/eca-grub-conf_1.0.bb b/meta-eca-bsp/recipes-eca/grub-conf/eca-grub-conf_1.0.bb new file mode 100644 index 0000000..47df56e --- /dev/null +++ b/meta-eca-bsp/recipes-eca/grub-conf/eca-grub-conf_1.0.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | DESCRIPTION = "grub.conf" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
4 | |||
5 | GRUB_CONF = "grub.conf" | ||
6 | GRUB_PATH = "boot/grub/" | ||
7 | SRC_URI = "file://${GRUB_CONF}" | ||
8 | |||
9 | do_grub() { | ||
10 | install -d ${DEPLOY_DIR_IMAGE}/${GRUB_PATH} | ||
11 | install -m 0755 ${WORKDIR}/${GRUB_CONF} ${DEPLOY_DIR_IMAGE}/${GRUB_PATH}/${GRUB_CONF} | ||
12 | } | ||
13 | |||
14 | do_grub[nostamp] = "1" | ||
15 | |||
16 | addtask grub before do_build after do_compile | ||
diff --git a/meta-eca-bsp/recipes-eca/grub-conf/files/grub.conf b/meta-eca-bsp/recipes-eca/grub-conf/files/grub.conf new file mode 100644 index 0000000..cfb1f54 --- /dev/null +++ b/meta-eca-bsp/recipes-eca/grub-conf/files/grub.conf | |||
@@ -0,0 +1,10 @@ | |||
1 | default 0 | ||
2 | timeout 3 | ||
3 | |||
4 | color white/blue white/cyan | ||
5 | |||
6 | title ECA for Clanton | ||
7 | root (hd0,0) | ||
8 | kernel /bzImage root=/dev/ram0 console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x8010f000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5 | ||
9 | initrd /core-image-minimal-initramfs-clanton.cpio.gz | ||
10 | |||
diff --git a/meta-eca-bsp/recipes-eca/images/core-image-minimal-initramfs.bbappend b/meta-eca-bsp/recipes-eca/images/core-image-minimal-initramfs.bbappend new file mode 100644 index 0000000..48a2f5b --- /dev/null +++ b/meta-eca-bsp/recipes-eca/images/core-image-minimal-initramfs.bbappend | |||
@@ -0,0 +1,4 @@ | |||
1 | IMAGE_INSTALL_clanton = "initramfs-live-boot busybox base-passwd udev" | ||
2 | IMAGE_INSTALL_clanton += "kernel-module-usb-storage" | ||
3 | IMAGE_INSTALL_clanton += "kernel-module-ehci-hcd kernel-module-ehci-pci kernel-module-ohci-hcd" | ||
4 | IMAGE_INSTALL_clanton += "kernel-module-stmmac" | ||
diff --git a/meta-eca-bsp/recipes-eca/images/eca-image.bbappend b/meta-eca-bsp/recipes-eca/images/eca-image.bbappend new file mode 100644 index 0000000..65c5838 --- /dev/null +++ b/meta-eca-bsp/recipes-eca/images/eca-image.bbappend | |||
@@ -0,0 +1,10 @@ | |||
1 | |||
2 | IMAGE_FSTYPES_clanton = "ext3 live" | ||
3 | |||
4 | NOISO_clanton = "1" | ||
5 | NOHDD_clanton = "1" | ||
6 | |||
7 | EXTRA_IMAGEDEPENDS_clanton = "eca-grub-conf" | ||
8 | |||
9 | # root fs name should be rootfs.img as initrd expects to find that | ||
10 | IMAGE_POSTPROCESS_COMMAND_clanton += "rm -f rootfs.img; ln -s ${IMAGE_LINK_NAME}.ext3 rootfs.img; " | ||
diff --git a/meta-eca-bsp/recipes-eca/packagegroups/packagegroup-eca.bbappend b/meta-eca-bsp/recipes-eca/packagegroups/packagegroup-eca.bbappend new file mode 100644 index 0000000..7fae0cc --- /dev/null +++ b/meta-eca-bsp/recipes-eca/packagegroups/packagegroup-eca.bbappend | |||
@@ -0,0 +1,23 @@ | |||
1 | def get_depends_qemu(bb, d, dep): | ||
2 | val = (bb.data.getVar("MACHINEOVERRIDES", d) or "") | ||
3 | if val.find("qemuall"): | ||
4 | return "" | ||
5 | else: | ||
6 | return dep | ||
7 | |||
8 | IWLWIFI := "\ | ||
9 | ${@get_depends_qemu(bb, d, 'linux-firmware-iwlwifi-licence')} \ | ||
10 | ${@get_depends_qemu(bb, d, 'linux-firmware-iwlwifi-6000g2a-5')} \ | ||
11 | ${@get_depends_qemu(bb, d, 'linux-firmware-iwlwifi-6000g2b-6')} \ | ||
12 | " | ||
13 | |||
14 | # Add iwlwifi firmware for Intel devices but not for qemu images because | ||
15 | # user probably does not have Intel layer defined there | ||
16 | RDEPENDS_packagegroup-eca_append_x86 += "\ | ||
17 | ${IWLWIFI} \ | ||
18 | " | ||
19 | |||
20 | # network configuration for connman if running qemu | ||
21 | RDEPENDS_packagegroup-eca_append_qemuall += "\ | ||
22 | connman-conf \ | ||
23 | " | ||
diff --git a/meta-eca-bsp/recipes-kernel/linux/clanton/linux-yocto-clanton_3.8.bbappend b/meta-eca-bsp/recipes-kernel/linux/clanton/linux-yocto-clanton_3.8.bbappend new file mode 100644 index 0000000..8cff3f2 --- /dev/null +++ b/meta-eca-bsp/recipes-kernel/linux/clanton/linux-yocto-clanton_3.8.bbappend | |||
@@ -0,0 +1,28 @@ | |||
1 | # find defconfig path | ||
2 | FILESEXTRAPATHS := "${THISDIR}/../../../meta-eca/recipes-kernel/linux/linux-yocto" | ||
3 | |||
4 | SRC_URI += " \ | ||
5 | file://wlan-atheros.cfg \ | ||
6 | file://wlan-ralink.cfg \ | ||
7 | file://wlan-realtek.cfg \ | ||
8 | file://wlan-broadcom.cfg \ | ||
9 | file://wlan-zydas.cfg \ | ||
10 | file://wlan-marwel.cfg \ | ||
11 | file://wlan-ti.cfg \ | ||
12 | file://wlan-intel.cfg \ | ||
13 | file://bluetooth.cfg \ | ||
14 | file://nokia-phonet.cfg \ | ||
15 | file://usb-serial.cfg \ | ||
16 | file://tun-device.cfg \ | ||
17 | file://l2tp.cfg \ | ||
18 | file://rfkill.cfg \ | ||
19 | file://mac80211.cfg \ | ||
20 | file://nfc.cfg \ | ||
21 | file://high-speed-mobile-devices.cfg \ | ||
22 | file://usb-eth-gadget.cfg \ | ||
23 | file://usb-net.cfg \ | ||
24 | file://ipv6.cfg \ | ||
25 | file://nfacct.cfg \ | ||
26 | file://bridge.cfg \ | ||
27 | file://netfilter-small-3.8.cfg \ | ||
28 | " | ||
diff --git a/meta-eca-bsp/recipes-kernel/linux/linux-mainline/netfilter.cfg b/meta-eca-bsp/recipes-kernel/linux/linux-mainline/netfilter.cfg new file mode 100644 index 0000000..552c937 --- /dev/null +++ b/meta-eca-bsp/recipes-kernel/linux/linux-mainline/netfilter.cfg | |||
@@ -0,0 +1,13 @@ | |||
1 | CONFIG_NF_CONNTRACK=m | ||
2 | CONFIG_NF_CONNTRACK_PROCFS=y | ||
3 | CONFIG_NF_NAT=m | ||
4 | CONFIG_NF_NAT_NEEDED=y | ||
5 | CONFIG_NF_DEFRAG_IPV4=m | ||
6 | CONFIG_NF_CONNTRACK_IPV4=m | ||
7 | CONFIG_NF_CONNTRACK_PROC_COMPAT=y | ||
8 | CONFIG_NF_NAT_IPV4=m | ||
9 | CONFIG_IP_NF_TARGET_MASQUERADE=m | ||
10 | CONFIG_NF_CONNTRACK_MARK=y | ||
11 | CONFIG_NETFILTER_XT_CONNMARK=m | ||
12 | CONFIG_NETFILTER_XT_TARGET_CONNMARK=m | ||
13 | CONFIG_NETFILTER_XT_MATCH_CONNMARK=m | ||
diff --git a/meta-eca-bsp/recipes-kernel/linux/linux-mainline_3.8.bbappend b/meta-eca-bsp/recipes-kernel/linux/linux-mainline_3.8.bbappend new file mode 100644 index 0000000..429ed34 --- /dev/null +++ b/meta-eca-bsp/recipes-kernel/linux/linux-mainline_3.8.bbappend | |||
@@ -0,0 +1,14 @@ | |||
1 | # find defconfig path | ||
2 | FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" | ||
3 | |||
4 | # netfilter stuff is missing from beaglebone kernel | ||
5 | SRC_URI_append_beaglebone += "file://netfilter.cfg" | ||
6 | |||
7 | do_configure_append_beaglebone () { | ||
8 | for i in ${S}/../*.cfg; do | ||
9 | echo "Adding ${i} to ${S}/.config" | ||
10 | cat ${i} >> ${S}/.config | ||
11 | done | ||
12 | |||
13 | yes '' | oe_runmake oldconfig | ||
14 | } | ||
diff --git a/meta-eca-bsp/recipes-kernel/linux/linux-yocto/beagle_qemu.cfg b/meta-eca-bsp/recipes-kernel/linux/linux-yocto/beagle_qemu.cfg new file mode 100644 index 0000000..0ace211 --- /dev/null +++ b/meta-eca-bsp/recipes-kernel/linux/linux-yocto/beagle_qemu.cfg | |||
@@ -0,0 +1,5 @@ | |||
1 | CONFIG_PANEL_GENERIC_DPI=y | ||
2 | |||
3 | CONFIG_USB_OHCI_HCD=y | ||
4 | CONFIG_USB_OHCI_HCD_OMAP3=y | ||
5 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
diff --git a/meta-eca-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend b/meta-eca-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend new file mode 100644 index 0000000..5bde90b --- /dev/null +++ b/meta-eca-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend | |||
@@ -0,0 +1,7 @@ | |||
1 | # find defconfig path | ||
2 | FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" | ||
3 | |||
4 | # Kernel configs | ||
5 | SRC_URI_append_beagleboard = " \ | ||
6 | file://beagle_qemu.cfg \ | ||
7 | " | ||