summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--classes/sota.bbclass7
-rw-r--r--classes/sota_am335x-evm-wifi.bbclass18
-rw-r--r--conf/distro/poky-sota-systemd.conf1
-rw-r--r--conf/distro/poky-sota.conf2
-rw-r--r--conf/include/bblayers/sota_am335x-evm.inc2
6 files changed, 27 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bee8a64
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
__pycache__
diff --git a/classes/sota.bbclass b/classes/sota.bbclass
index ab9611a..6fbba26 100644
--- a/classes/sota.bbclass
+++ b/classes/sota.bbclass
@@ -1,12 +1,10 @@
1python __anonymous() { 1python __anonymous() {
2 if bb.utils.contains('DISTRO_FEATURES', 'sota', True, False, d): 2 if bb.utils.contains('DISTRO_FEATURES', 'sota', True, False, d):
3 d.appendVar("OVERRIDES", ":sota")
4 #d.appendVar("IMAGE_INSTALL", " ostree os-release")
5
6 d.appendVarFlag("do_image_wic", "depends", " %s:do_image_otaimg" % d.getVar("IMAGE_BASENAME", True)) 3 d.appendVarFlag("do_image_wic", "depends", " %s:do_image_otaimg" % d.getVar("IMAGE_BASENAME", True))
7 #d.appendVar("EXTRA_IMAGEDEPENDS", " parted-native mtools-native dosfstools-native")
8} 4}
9 5
6OVERRIDES .= "${@bb.utils.contains('DISTRO_FEATURES', 'sota', ':sota', '', d)}"
7
10IMAGE_INSTALL_append_sota = " ostree os-release" 8IMAGE_INSTALL_append_sota = " ostree os-release"
11IMAGE_CLASSES += " image_types_ostree image_types_ota" 9IMAGE_CLASSES += " image_types_ostree image_types_ota"
12IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush otaimg wic', ' ', d)}" 10IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush otaimg wic', ' ', d)}"
@@ -27,5 +25,6 @@ SOTA_MACHINE_rarpberrypi3 ?= "raspberrypi"
27SOTA_MACHINE_porter ?= "porter" 25SOTA_MACHINE_porter ?= "porter"
28SOTA_MACHINE_intel-corei7-64 ?= "minnowboard" 26SOTA_MACHINE_intel-corei7-64 ?= "minnowboard"
29SOTA_MACHINE_qemux86-64 ?= "qemux86-64" 27SOTA_MACHINE_qemux86-64 ?= "qemux86-64"
28SOTA_MACHINE_am335x-evm ?= "am335x-evm-wifi"
30 29
31inherit sota_${SOTA_MACHINE} 30inherit 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..821e8fb
--- /dev/null
+++ b/classes/sota_am335x-evm-wifi.bbclass
@@ -0,0 +1,18 @@
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"
12IMAGE_INSTALL_remove_sota = " connman connman-client"
13
14PREFERRED_VERSION_linux-ti-staging_sota = "4.4.54+gitAUTOINC+ecd4eada6f"
15
16KERNEL_EXTRA_ARGS_append_sota = " LOADADDR=${UBOOT_ENTRYPOINT}"
17
18VIRTUAL-RUNTIME_net_manager_sota = "systemd"
diff --git a/conf/distro/poky-sota-systemd.conf b/conf/distro/poky-sota-systemd.conf
index 78ca1e5..62b682a 100644
--- a/conf/distro/poky-sota-systemd.conf
+++ b/conf/distro/poky-sota-systemd.conf
@@ -13,4 +13,5 @@ VIRTUAL-RUNTIME_init_manager = "systemd"
13INHERIT_prepend = " sota" 13INHERIT_prepend = " sota"
14IMAGE_INSTALL_append = " connman connman-client rvi-sota-client" 14IMAGE_INSTALL_append = " connman connman-client rvi-sota-client"
15 15
16# Prelinking increases the size of downloads and causes build errors
16USER_CLASSES_remove = "image-prelink" 17USER_CLASSES_remove = "image-prelink"
diff --git a/conf/distro/poky-sota.conf b/conf/distro/poky-sota.conf
index c56695e..c52395d 100644
--- a/conf/distro/poky-sota.conf
+++ b/conf/distro/poky-sota.conf
@@ -9,4 +9,6 @@ DISTRO_CODENAME = "sota"
9 9
10INHERIT += " sota" 10INHERIT += " sota"
11IMAGE_INSTALL_append = " connman connman-client" 11IMAGE_INSTALL_append = " connman connman-client"
12
13# Prelinking increases the size of downloads and causes build errors
12USER_CLASSES_remove = "image-prelink" 14USER_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 "