diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | classes/sota.bbclass | 7 | ||||
-rw-r--r-- | classes/sota_am335x-evm-wifi.bbclass | 18 | ||||
-rw-r--r-- | conf/distro/poky-sota-systemd.conf | 1 | ||||
-rw-r--r-- | conf/distro/poky-sota.conf | 2 | ||||
-rw-r--r-- | conf/include/bblayers/sota_am335x-evm.inc | 2 |
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 @@ | |||
1 | python __anonymous() { | 1 | python __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 | ||
6 | OVERRIDES .= "${@bb.utils.contains('DISTRO_FEATURES', 'sota', ':sota', '', d)}" | ||
7 | |||
10 | IMAGE_INSTALL_append_sota = " ostree os-release" | 8 | IMAGE_INSTALL_append_sota = " ostree os-release" |
11 | IMAGE_CLASSES += " image_types_ostree image_types_ota" | 9 | IMAGE_CLASSES += " image_types_ostree image_types_ota" |
12 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush otaimg wic', ' ', d)}" | 10 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush otaimg wic', ' ', d)}" |
@@ -27,5 +25,6 @@ SOTA_MACHINE_rarpberrypi3 ?= "raspberrypi" | |||
27 | SOTA_MACHINE_porter ?= "porter" | 25 | SOTA_MACHINE_porter ?= "porter" |
28 | SOTA_MACHINE_intel-corei7-64 ?= "minnowboard" | 26 | SOTA_MACHINE_intel-corei7-64 ?= "minnowboard" |
29 | SOTA_MACHINE_qemux86-64 ?= "qemux86-64" | 27 | SOTA_MACHINE_qemux86-64 ?= "qemux86-64" |
28 | SOTA_MACHINE_am335x-evm ?= "am335x-evm-wifi" | ||
30 | 29 | ||
31 | inherit sota_${SOTA_MACHINE} | 30 | inherit 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 @@ | |||
1 | IMAGE_CLASSES += "image_types_uboot" | ||
2 | |||
3 | KERNEL_IMAGETYPE_sota = "uImage" | ||
4 | |||
5 | OSTREE_BOOTLOADER ?= "u-boot" | ||
6 | |||
7 | EXTRA_IMAGEDEPENDS_append_sota = " acer-bootfiles" | ||
8 | IMAGE_BOOT_FILES_sota = "bootfiles/*" | ||
9 | OSTREE_KERNEL_ARGS ?= "ramdisk_size=16384 root=/dev/ram0 rw rootfstype=ext4 rootwait rootdelay=2 ostree_root=/dev/mmcblk0p2 console=ttyO0,115200n8l" | ||
10 | |||
11 | IMAGE_INSTALL_append_sota = " uim iw wl18xx-calibrator wlconf wl18xx-fw hostapd wpa-supplicant" | ||
12 | IMAGE_INSTALL_remove_sota = " connman connman-client" | ||
13 | |||
14 | PREFERRED_VERSION_linux-ti-staging_sota = "4.4.54+gitAUTOINC+ecd4eada6f" | ||
15 | |||
16 | KERNEL_EXTRA_ARGS_append_sota = " LOADADDR=${UBOOT_ENTRYPOINT}" | ||
17 | |||
18 | VIRTUAL-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" | |||
13 | INHERIT_prepend = " sota" | 13 | INHERIT_prepend = " sota" |
14 | IMAGE_INSTALL_append = " connman connman-client rvi-sota-client" | 14 | IMAGE_INSTALL_append = " connman connman-client rvi-sota-client" |
15 | 15 | ||
16 | # Prelinking increases the size of downloads and causes build errors | ||
16 | USER_CLASSES_remove = "image-prelink" | 17 | USER_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 | ||
10 | INHERIT += " sota" | 10 | INHERIT += " sota" |
11 | IMAGE_INSTALL_append = " connman connman-client" | 11 | IMAGE_INSTALL_append = " connman connman-client" |
12 | |||
13 | # Prelinking increases the size of downloads and causes build errors | ||
12 | USER_CLASSES_remove = "image-prelink" | 14 | USER_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 | |||
2 | BBLAYERS += " ${METADIR}/meta-ti " | ||