diff options
author | cajun-rat <p@beta16.co.uk> | 2017-04-04 14:45:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-04 14:45:31 +0200 |
commit | 610469510ec9dbac95fc415f71abdcb55e0fc18b (patch) | |
tree | bd18751638ce99904dcd68ad2eba6e6db7851f41 /conf | |
parent | feb5a6a1da2faf088d6c5d3e3eeb07471074f0bf (diff) | |
parent | 82a3c13a0b0c9979fa0812143d619748aa89c85d (diff) | |
download | meta-updater-610469510ec9dbac95fc415f71abdcb55e0fc18b.tar.gz |
Merge pull request #40 from advancedtelematic/feat/syncagl
Synchronize with AGL's meta-sota progress
Diffstat (limited to 'conf')
-rw-r--r-- | conf/distro/sota.conf.inc | 51 | ||||
-rw-r--r-- | conf/include/bblayers/sota.inc | 5 | ||||
-rw-r--r-- | conf/include/bblayers/sota_minnowboard.inc | 2 | ||||
-rw-r--r-- | conf/include/bblayers/sota_porter.inc | 2 | ||||
-rw-r--r-- | conf/include/bblayers/sota_qemux86-64.inc | 2 | ||||
-rw-r--r-- | conf/include/bblayers/sota_raspberrypi.inc | 2 | ||||
-rw-r--r-- | conf/include/local/sota_minnowboard.inc | 6 | ||||
-rw-r--r-- | conf/include/local/sota_porter.inc | 11 | ||||
-rw-r--r-- | conf/include/local/sota_qemux86-64.inc | 12 | ||||
-rw-r--r-- | conf/include/local/sota_raspberrypi.inc | 16 |
10 files changed, 73 insertions, 36 deletions
diff --git a/conf/distro/sota.conf.inc b/conf/distro/sota.conf.inc index 23e5a43..55e9cac 100644 --- a/conf/distro/sota.conf.inc +++ b/conf/distro/sota.conf.inc | |||
@@ -1,8 +1,20 @@ | |||
1 | IMAGE_INSTALL_append = " ostree rvi-sota-client" | 1 | DISTRO_FEATURES_append = " sota" |
2 | OVERRIDES .= ":sota" | ||
3 | |||
4 | IMAGE_INSTALL_append = " ostree os-release" | ||
2 | 5 | ||
3 | # live image for OSTree-enabled systems | 6 | # live image for OSTree-enabled systems |
4 | IMAGE_CLASSES_append = " image_types_ostree image_types_ota" | 7 | IMAGE_CLASSES += "image_types_ostree image_types_ota" |
5 | IMAGE_FSTYPES += "ostreepush otaimg" | 8 | IMAGE_FSTYPES += "ostreepush otaimg wic" |
9 | WKS_FILE = "sdimage-sota.wks" | ||
10 | do_image_wic[depends] += "${IMAGE_BASENAME}:do_image_otaimg" | ||
11 | |||
12 | # No working WKS for Raspberry Pi yet | ||
13 | IMAGE_FSTYPES_remove_raspberrypi3 = "wic" | ||
14 | IMAGE_FSTYPES_remove_raspberrypi2 = "wic" | ||
15 | |||
16 | # QEMU emulation uses plain otaimg, no wic needed | ||
17 | IMAGE_FSTYPES_remove_qemux86-64 = "wic" | ||
6 | 18 | ||
7 | # Please redefine OSTREE_REPO in order to have a persistent OSTree repo | 19 | # Please redefine OSTREE_REPO in order to have a persistent OSTree repo |
8 | OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" | 20 | OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" |
@@ -10,36 +22,3 @@ OSTREE_BRANCHNAME ?= "ota-${MACHINE}" | |||
10 | OSTREE_OSNAME ?= "poky" | 22 | OSTREE_OSNAME ?= "poky" |
11 | OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" | 23 | OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" |
12 | 24 | ||
13 | # Platform-specific configurations | ||
14 | |||
15 | ## RaspberryPi | ||
16 | IMAGE_CLASSES_append_raspberrypi2 = " image_types_uboot sdcard_image-rpi-ota" | ||
17 | IMAGE_CLASSES_append_raspberrypi3 = " image_types_uboot sdcard_image-rpi-ota" | ||
18 | IMAGE_FSTYPES += "${@'rpi-sdimg-ota' if d.getVar('MACHINE', True).startswith('raspberrypi') else ''}" | ||
19 | IMAGE_FSTYPES_remove = "rpi-sdimg" | ||
20 | |||
21 | KERNEL_IMAGETYPE_raspberrypi2 = "uImage" | ||
22 | KERNEL_IMAGETYPE_raspberrypi3 = "uImage" | ||
23 | |||
24 | UBOOT_MACHINE_raspberrypi2 = "rpi_2_defconfig" | ||
25 | UBOOT_MACHINE_raspberrypi3 = "rpi_3_32b_defconfig" | ||
26 | PREFERRED_PROVIDER_virtual/bootloader_raspberrypi2 = "u-boot" | ||
27 | PREFERRED_PROVIDER_virtual/bootloader_raspberrypi3 = "u-boot" | ||
28 | |||
29 | # Some BSPs (e.g. meta-raspberrypi) use this variable to turn debug on/off | ||
30 | DISTRO_TYPE ?= "${@bb.utils.contains("IMAGE_FEATURES", "debug-tweaks", "debug", "release",d)}" | ||
31 | |||
32 | ## Minnowboard | ||
33 | PREFERRED_PROVIDER_virtual/bootloader_intel-corei7-64 = "u-boot-ota" | ||
34 | UBOOT_MACHINE_intel-corei7-64 = "minnowmax_defconfig" | ||
35 | IMAGE_CLASSES_append_intel-corei7-64 = " sdcard_image-minnowboard-ota" | ||
36 | IMAGE_FSTYPES += "${@'minnowboard-sdimg-ota' if d.getVar('MACHINE', True).startswith('intel-corei7-64') else ''}" | ||
37 | |||
38 | ## QEMU | ||
39 | PREFERRED_PROVIDER_virtual/bootloader_qemux86 = "u-boot-ota" | ||
40 | UBOOT_MACHINE_qemux86 = "qemu-x86_defconfig" | ||
41 | PREFERRED_PROVIDER_virtual/bootloader_qemux86-64= "u-boot-ota" | ||
42 | UBOOT_MACHINE_qemux86-64 = "qemu-x86_defconfig" | ||
43 | |||
44 | DISTROOVERRIDES_append = ":sota" | ||
45 | DISTRO_FEATURES_append = " sota" | ||
diff --git a/conf/include/bblayers/sota.inc b/conf/include/bblayers/sota.inc new file mode 100644 index 0000000..97edecb --- /dev/null +++ b/conf/include/bblayers/sota.inc | |||
@@ -0,0 +1,5 @@ | |||
1 | |||
2 | BBLAYERS += "${METADIR}/meta-updater" | ||
3 | BBLAYERS += "${METADIR}/meta-openembedded/meta-filesystems" | ||
4 | BBLAYERS += "${METADIR}/meta-openembedded/meta-oe" | ||
5 | BBLAYERS += "${METADIR}/meta-rust" | ||
diff --git a/conf/include/bblayers/sota_minnowboard.inc b/conf/include/bblayers/sota_minnowboard.inc new file mode 100644 index 0000000..1771e6c --- /dev/null +++ b/conf/include/bblayers/sota_minnowboard.inc | |||
@@ -0,0 +1,2 @@ | |||
1 | |||
2 | BBLAYERS += " ${METADIR}/meta-updater-minnowboard ${METADIR}/meta-intel " | ||
diff --git a/conf/include/bblayers/sota_porter.inc b/conf/include/bblayers/sota_porter.inc new file mode 100644 index 0000000..a0888d5 --- /dev/null +++ b/conf/include/bblayers/sota_porter.inc | |||
@@ -0,0 +1,2 @@ | |||
1 | |||
2 | BBLAYERS += " ${METADIR}/meta-updater-porter ${METADIR}/meta-renesas " | ||
diff --git a/conf/include/bblayers/sota_qemux86-64.inc b/conf/include/bblayers/sota_qemux86-64.inc new file mode 100644 index 0000000..22ace81 --- /dev/null +++ b/conf/include/bblayers/sota_qemux86-64.inc | |||
@@ -0,0 +1,2 @@ | |||
1 | |||
2 | BBLAYERS += " ${METADIR}/meta-updater-qemux86-64 " | ||
diff --git a/conf/include/bblayers/sota_raspberrypi.inc b/conf/include/bblayers/sota_raspberrypi.inc new file mode 100644 index 0000000..11ede20 --- /dev/null +++ b/conf/include/bblayers/sota_raspberrypi.inc | |||
@@ -0,0 +1,2 @@ | |||
1 | |||
2 | BBLAYERS += " ${METADIR}/meta-updater-raspberrypi ${METADIR}/meta-raspberrypi " | ||
diff --git a/conf/include/local/sota_minnowboard.inc b/conf/include/local/sota_minnowboard.inc new file mode 100644 index 0000000..b3702a2 --- /dev/null +++ b/conf/include/local/sota_minnowboard.inc | |||
@@ -0,0 +1,6 @@ | |||
1 | MACHINE = "intel-corei7-64" | ||
2 | |||
3 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ota" | ||
4 | UBOOT_MACHINE = "minnowmax_defconfig" | ||
5 | IMAGE_CLASSES_append = " sdcard_image-minnowboard-ota" | ||
6 | IMAGE_FSTYPES += "minnowboard-sdimg-ota" | ||
diff --git a/conf/include/local/sota_porter.inc b/conf/include/local/sota_porter.inc new file mode 100644 index 0000000..e079e4d --- /dev/null +++ b/conf/include/local/sota_porter.inc | |||
@@ -0,0 +1,11 @@ | |||
1 | MACHINE = "porter" | ||
2 | |||
3 | # Commit united image to OSTree, not just uImage | ||
4 | OSTREE_KERNEL = "uImage+dtb" | ||
5 | |||
6 | IMAGE_CLASSES_append = " image_types_uboot " | ||
7 | IMAGE_BOOT_FILES = "porter-bootfiles/*" | ||
8 | |||
9 | OSTREE_BOOTLOADER ?= "u-boot" | ||
10 | UBOOT_MACHINE = "porter_vin_config" | ||
11 | |||
diff --git a/conf/include/local/sota_qemux86-64.inc b/conf/include/local/sota_qemux86-64.inc new file mode 100644 index 0000000..b72c29d --- /dev/null +++ b/conf/include/local/sota_qemux86-64.inc | |||
@@ -0,0 +1,12 @@ | |||
1 | MACHINE = "qemux86-64" | ||
2 | |||
3 | PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "5.4%" | ||
4 | PREFERRED_VERSION_libgcc ?= "5.4%" | ||
5 | PREFERRED_VERSION_gcc-runtime ?= "5.4%" | ||
6 | |||
7 | # U-Boot support for SOTA | ||
8 | PREFERRED_PROVIDER_virtual/bootloader_sota = "u-boot-ota" | ||
9 | UBOOT_MACHINE = "qemu-x86_defconfig" | ||
10 | OSTREE_BOOTLOADER ?= "u-boot" | ||
11 | |||
12 | OSTREE_KERNEL_ARGS ?= "ramdisk_size=16384 rw rootfstype=ext4 rootwait rootdelay=2 ostree_root=/dev/hda" | ||
diff --git a/conf/include/local/sota_raspberrypi.inc b/conf/include/local/sota_raspberrypi.inc new file mode 100644 index 0000000..51919f0 --- /dev/null +++ b/conf/include/local/sota_raspberrypi.inc | |||
@@ -0,0 +1,16 @@ | |||
1 | MACHINE ?= "raspberrypi3" | ||
2 | |||
3 | # normal image class is sdcard_image-rpi-gdp, for sota it is image_types_uboot & sdcard_image-rpi-ota | ||
4 | IMAGE_CLASSES += "image_types_uboot sdcard_image-rpi-ota" | ||
5 | |||
6 | # normal image is rpi-sdimg, for sota it is rpi-sdimg-ota | ||
7 | IMAGE_FSTYPES += "rpi-sdimg-ota" | ||
8 | ### both rpi-sdimg and rpi-sdimg-ota broken | ||
9 | IMAGE_FSTYPES += "ext4.xz ext4.bmap tar.xz" | ||
10 | |||
11 | KERNEL_IMAGETYPE_sota = "uImage" | ||
12 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" | ||
13 | UBOOT_MACHINE_raspberrypi2 = "rpi_2_defconfig" | ||
14 | UBOOT_MACHINE_raspberrypi3 = "rpi_3_32b_defconfig" | ||
15 | |||
16 | OSTREE_BOOTLOADER ?= "u-boot" | ||