summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2017-05-05 14:52:31 +0200
committerAnton Gerasimov <anton@advancedtelematic.com>2017-05-05 14:52:31 +0200
commitf3b1df60bff83941e112d0f0594e497822efb6cc (patch)
tree99b911e0f56e98d49ad86049b3199c1306e12ffa
parent9e9caee2ffcc549aaa0b852558e79518ebcc8c92 (diff)
downloadmeta-updater-f3b1df60bff83941e112d0f0594e497822efb6cc.tar.gz
Add support for am335x-evm based board with WiFi
-rw-r--r--classes/sota.bbclass5
-rw-r--r--classes/sota_am335x-evm-wifi.bbclass17
-rw-r--r--conf/distro/poky-sota-systemd.conf3
-rw-r--r--conf/distro/poky-sota.conf3
-rw-r--r--conf/include/bblayers/sota_am335x-evm.inc2
5 files changed, 27 insertions, 3 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass
index 0697932..a1a5028 100644
--- a/classes/sota.bbclass
+++ b/classes/sota.bbclass
@@ -21,13 +21,12 @@ OSTREE_BRANCHNAME ?= "ota-${MACHINE}"
21OSTREE_OSNAME ?= "poky" 21OSTREE_OSNAME ?= "poky"
22OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" 22OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image"
23 23
24# Prelinking increases the size of downloads and causes build errors
25USER_CLASSES_remove = "image-prelink"
26
27SOTA_MACHINE ?= "none" 24SOTA_MACHINE ?= "none"
28SOTA_MACHINE_raspberrypi = "raspberrypi" 25SOTA_MACHINE_raspberrypi = "raspberrypi"
29SOTA_MACHINE_raspberrypi3 = "raspberrypi" 26SOTA_MACHINE_raspberrypi3 = "raspberrypi"
30SOTA_MACHINE_porter = "porter" 27SOTA_MACHINE_porter = "porter"
31SOTA_MACHINE_intel-corei7-64 = "minnowboard" 28SOTA_MACHINE_intel-corei7-64 = "minnowboard"
32SOTA_MACHINE_qemux86-64 = "qemux86-64" 29SOTA_MACHINE_qemux86-64 = "qemux86-64"
30SOTA_MACHINE_qemux86-64 = "qemux86-64"
31SOTA_MACHINE_am335x-evm = "am335x-evm-wifi"
33inherit sota_${SOTA_MACHINE} 32inherit sota_${SOTA_MACHINE}
diff --git a/classes/sota_am335x-evm-wifi.bbclass b/classes/sota_am335x-evm-wifi.bbclass
new file mode 100644
index 0000000..24d0832
--- /dev/null
+++ b/classes/sota_am335x-evm-wifi.bbclass
@@ -0,0 +1,17 @@
1IMAGE_CLASSES += "image_types_uboot"
2
3KERNEL_IMAGETYPE_sota = "uImage"
4
5OSTREE_BOOTLOADER ?= "u-boot"
6
7EXTRA_IMAGEDEPENDS_append_sota = " acer-bootfiles"
8IMAGE_BOOT_FILES_sota = "bootfiles/*"
9OSTREE_KERNEL_ARGS ?= "ramdisk_size=16384 root=/dev/ram0 rw rootfstype=ext4 rootwait rootdelay=2 ostree_root=/dev/mmcblk0p2 console=ttyO0,115200n8l"
10
11IMAGE_INSTALL_append_sota = " uim iw wl18xx-calibrator wlconf wl18xx-fw hostapd wpa-supplicant connman"
12
13PREFERRED_VERSION_linux-ti-staging_sota = "4.4.54+gitAUTOINC+ecd4eada6f"
14
15KERNEL_EXTRA_ARGS_append_sota = " LOADADDR=${UBOOT_ENTRYPOINT}"
16
17VIRTUAL-RUNTIME_net_manager_sota = "systemd"
diff --git a/conf/distro/poky-sota-systemd.conf b/conf/distro/poky-sota-systemd.conf
index e6f43f7..3a50d66 100644
--- a/conf/distro/poky-sota-systemd.conf
+++ b/conf/distro/poky-sota-systemd.conf
@@ -10,3 +10,6 @@ VIRTUAL-RUNTIME_init_manager = "systemd"
10 10
11INHERIT += " sota" 11INHERIT += " sota"
12IMAGE_INSTALL_append = " connman connman-client rvi-sota-client" 12IMAGE_INSTALL_append = " connman connman-client rvi-sota-client"
13
14# Prelinking increases the size of downloads and causes build errors
15USER_CLASSES_remove = "image-prelink"
diff --git a/conf/distro/poky-sota.conf b/conf/distro/poky-sota.conf
index 6972a94..d6d2a1e 100644
--- a/conf/distro/poky-sota.conf
+++ b/conf/distro/poky-sota.conf
@@ -7,3 +7,6 @@ DISTRO_CODENAME = "sota"
7 7
8INHERIT += " sota" 8INHERIT += " sota"
9IMAGE_INSTALL_append = " connman connman-client" 9IMAGE_INSTALL_append = " connman connman-client"
10
11# Prelinking increases the size of downloads and causes build errors
12USER_CLASSES_remove = "image-prelink"
diff --git a/conf/include/bblayers/sota_am335x-evm.inc b/conf/include/bblayers/sota_am335x-evm.inc
new file mode 100644
index 0000000..f2d485d
--- /dev/null
+++ b/conf/include/bblayers/sota_am335x-evm.inc
@@ -0,0 +1,2 @@
1
2BBLAYERS += " ${METADIR}/meta-ti "