diff options
| author | Patrick Vacek <patrickvacek@gmail.com> | 2020-06-30 09:51:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-30 09:51:48 +0200 |
| commit | ef2bf0c17073fe5a486a36c1c9ec3fc0039fe86d (patch) | |
| tree | 718c2ecd4cafa46edd46e37afb82dedbdb78738a /recipes-sota | |
| parent | 1739961a0a52c10e2839a99ff67f619128bff921 (diff) | |
| parent | b712720da6d82e2a4b43f89c380cd33e2ddce86d (diff) | |
| download | meta-updater-ef2bf0c17073fe5a486a36c1c9ec3fc0039fe86d.tar.gz | |
Merge pull request #740 from liuming50/cherry-pick-several-patches-from-master-to-zeus
Cherry pick several patches from master to zeus
Diffstat (limited to 'recipes-sota')
| -rw-r--r-- | recipes-sota/aktualizr/files/aktualizr.service | 3 | ||||
| -rw-r--r-- | recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb | 53 |
2 files changed, 55 insertions, 1 deletions
diff --git a/recipes-sota/aktualizr/files/aktualizr.service b/recipes-sota/aktualizr/files/aktualizr.service index 3d807a1..ae5d23a 100644 --- a/recipes-sota/aktualizr/files/aktualizr.service +++ b/recipes-sota/aktualizr/files/aktualizr.service | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | [Unit] | 1 | [Unit] |
| 2 | Description=Aktualizr SOTA Client | 2 | Description=Aktualizr SOTA Client |
| 3 | After=network-online.target nss-lookup.target | 3 | After=network-online.target nss-lookup.target boot-complete.target |
| 4 | Requires=boot-complete.target | ||
| 4 | Wants=network-online.target | 5 | Wants=network-online.target |
| 5 | 6 | ||
| 6 | [Service] | 7 | [Service] |
diff --git a/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb b/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb new file mode 100644 index 0000000..9139c7f --- /dev/null +++ b/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | SUMMARY = "Ostree linux kernel, devicetrees and initramfs packager" | ||
| 2 | DESCRIPTION = "Ostree linux kernel, devicetrees and initramfs packager" | ||
| 3 | SECTION = "kernel" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | ||
| 6 | |||
| 7 | # Whilst not a module, this ensures we don't get multilib extended (which would make no sense) | ||
| 8 | inherit module-base kernel-artifact-names | ||
| 9 | |||
| 10 | PACKAGES = "ostree-kernel ostree-initramfs ostree-devicetrees" | ||
| 11 | |||
| 12 | ALLOW_EMPTY_ostree-initramfs = "1" | ||
| 13 | ALLOW_EMPTY_ostree-devicetrees = "1" | ||
| 14 | |||
| 15 | FILES_ostree-kernel = "${nonarch_base_libdir}/modules/*/vmlinuz" | ||
| 16 | FILES_ostree-initramfs = "${nonarch_base_libdir}/modules/*/initramfs.img" | ||
| 17 | FILES_ostree-devicetrees = "${nonarch_base_libdir}/modules/*/dtb/*" | ||
| 18 | |||
| 19 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 20 | |||
| 21 | KERNEL_BUILD_ROOT = "${nonarch_base_libdir}/modules/" | ||
| 22 | |||
| 23 | # There's nothing to do here, except install the artifacts where we can package them | ||
| 24 | do_fetch[noexec] = "1" | ||
| 25 | do_unpack[noexec] = "1" | ||
| 26 | do_patch[noexec] = "1" | ||
| 27 | do_configure[noexec] = "1" | ||
| 28 | do_compile[noexec] = "1" | ||
| 29 | deltask do_populate_sysroot | ||
| 30 | |||
| 31 | do_install() { | ||
| 32 | kerneldir=${D}${KERNEL_BUILD_ROOT}${KERNEL_VERSION} | ||
| 33 | install -d $kerneldir | ||
| 34 | |||
| 35 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL} $kerneldir/vmlinuz | ||
| 36 | |||
| 37 | if [ "${KERNEL_IMAGETYPE}" != "fitImage" ]; then | ||
| 38 | if [ -n "${INITRAMFS_IMAGE}" ]; then | ||
| 39 | cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.${INITRAMFS_FSTYPES} $kerneldir/initramfs.img | ||
| 40 | fi | ||
| 41 | |||
| 42 | if [ ${@ oe.types.boolean('${OSTREE_DEPLOY_DEVICETREE}')} = True ] && [ -n "${OSTREE_DEVICETREE}" ]; then | ||
| 43 | mkdir -p $kerneldir/dtb | ||
| 44 | for dts_file in ${KERNEL_DEVICETREE}; do | ||
| 45 | dts_file_basename=$(basename $dts_file) | ||
| 46 | cp ${DEPLOY_DIR_IMAGE}/$dts_file_basename $kerneldir/dtb/$dts_file_basename | ||
| 47 | done | ||
| 48 | fi | ||
| 49 | fi | ||
| 50 | } | ||
| 51 | do_install[vardepsexclude] = "KERNEL_VERSION" | ||
| 52 | INITRAMFS_IMAGE ?= "" | ||
| 53 | do_install[depends] = "virtual/kernel:do_deploy ${@['${INITRAMFS_IMAGE}:do_image_complete', ''][d.getVar('INITRAMFS_IMAGE') == '']}" | ||
