Commit Graph

266 Commits

Author SHA1 Message Date
Sam Dolt b1f6bf3983 feat(linux-coreos): introduce the CoreOS kernel
The linux-coreos kernel is based on the linux-yocto kernel with
additional in-tree kernel metadata. By default, ktype is set
to coreos so that CoreOS kernel policies are used to configure
the kernel in addition to machine specific configuration
options.

BREAKING CHANGE: Default kernel provider is now linux-coreos
2023-11-21 15:49:18 +01:00
Sam Dolt 254fa52313 fix(packagegroup-coreos-cockpit): remove removed cockpit-tuned package 2023-11-21 15:49:18 +01:00
Sam Dolt 98fd6ff175 feat(meta-efibootguard): update to latest CoreOS master branch
The CoreOS efibootguard patch was updated as meta-efibooguard
use now more strict compiler flag
2023-11-21 15:49:18 +01:00
Sam Dolt 0b23292657 feat(linux-yocto): use 6.5 kernel by default
OE-Core master provide kernel 6.1 and 6.5 as of now, so this add
support for those and remove the kirkstone 5.15 kernel.

Machine that use the linux-yocto kernel use the v6.5 by default.

For the beaglebone machine, the device tree files was moved
between 6.1 and 6.5 so building 6.1 will not work out of the
box.
2023-11-21 15:49:18 +01:00
Sam Dolt 650ded6aea fix(u-boot): update u-boot bbappend to u-boot OE-Core version 2023-11-21 15:49:18 +01:00
Sam Dolt c7291625af fix(coreos-image-swupdate): adapt the class to OE new image naming scheme
Now the coreos-image-swupdate class and the related sw-description
file use the IMAGE_LINK_NAME variable to retrieve the name of the
image instead of hardcoding each components that form the image
filename.

This fix an issue with OE-Core master, as a .rootfs suffix was
added
2023-11-21 15:49:18 +01:00
Sam Dolt 761ff86d88 fix(coreos_metadata_scm.bbclass): fix function to work with OE Master
Function to handle git were moved from the metadata_scm class to
a python library in OE. This convert the coreos_metadata_scm class
to use thoses function as the old one are not available anymore
2023-11-21 15:49:18 +01:00
Sam Dolt 02d512b09f feat: update bitbake to latest master 2023-11-21 15:49:18 +01:00
Sam Dolt 5ede4efb33 fix: remove SERIAL_CONSOLES_CHECK from all machines configuration
This variable was removed in OE-Core 4.3 Nanbield::

     no longer necessary because all consoles listed in
     SERIAL_CONSOLES are checked for their existence before a getty
     is started.
2023-11-21 15:49:18 +01:00
Sam Dolt 76cda32940 fix(templates): move templates directory under meta-belden-coreos
OpenEmbedded now include a checks that the template directory is
inside a subdirectory of the conf/templates directory of a layer.

This prevent the build from failing with "Error: TEMPLATECONF
value (which is coreos/templates) must point to
meta-some-layer/conf/templates/template-name" when sourcing
coreos-init-buildenv with OE-Core Master.
2023-11-21 15:49:18 +01:00
Sam Dolt 62d9a20759 feat(meta-belden-marvell-bsp)!: layer is removed
meta-belden-marvell-bsp is removed as it's not compatible with OE-Core
master. Support for cn913x based machine will be readded at a later
stage with a linux-coreos based kernel instead of a linux-netmodule
kernel

BREAKING CHANGE: cn9130-cf-pro and cn9131-bldn-mbv are removed
2023-11-21 15:49:11 +01:00
Sam Dolt e7e08bd27a feat: upgrade all external layers to their master branch 2023-11-13 15:33:47 +01:00
Patrick Vogelaar 50381ef6ff Pull request #134: feat: add common developer keys for signed firmware
Merge in ICO/coreos from add_common_dev_key_handling to master

* commit 'f04afe073a7c5e15f9fad8ac81f2d8ef36aafee1':
  feat: add common developer keys for signed firmware
2023-11-08 16:09:11 +01:00
Patrick Vogelaar f04afe073a feat: add common developer keys for signed firmware
To make images compatible with each other for development a comon set of keys
will be used. The keys are located on k-stufen.

* add script to download and extract keys
* adjustments to coreos-init-build-env script
* adjustments to check_files_exist function
2023-11-08 15:33:04 +01:00
Patrick Vogelaar ea134d867e Pull request #130: refactor(eagle40-03): rename MACHINE from eagle40_04 to eagle40-03
Merge in ICO/coreos from rename_eagle40_03 to master

* commit '3bf28622c1b2207e752b6e0b9725b4d27fa328a0':
  refactor(eagle40-03): rename MACHINE from eagle40_03 to eagle40-03
2023-10-25 10:34:28 +02:00
Patrick Vogelaar 3bf28622c1 refactor(eagle40-03): rename MACHINE from eagle40_03 to eagle40-03 2023-10-24 15:34:40 +02:00
Samuel Dolt 3eeedd8412 Pull request #129: feat(swupdate): add signature support
Merge in ICO/coreos from feat/signed-swu to master

* commit '27f3b6657a5aedfd76deedee568e480f9117bd47':
  feat(swupdate): add signature support
2023-10-16 14:09:10 +02:00
Patrick Vogelaar 9148fc12da Pull request #127: feat(eagle40_03): integrate EAGLE40-03
Merge in ICO/coreos from add_eagle40_03_board to master

* commit 'c17db5dbd5acc8853ced4e971334674c27e1bee1':
  feat(eagle40_03): integrate EAGLE40-03
2023-10-16 10:00:21 +02:00
Samuel Dolt 27f3b6657a feat(swupdate): add signature support
BREAKING CHANGE: Unsigned .swu file will now be rejected by swupdate
2023-10-16 09:42:59 +02:00
Samuel Dolt 00b61e52c6 Pull request #128: feat(vm-x64): add Microsoft Hyper-V support
Merge in ICO/coreos from feat/ms-hyperv to master

* commit '5e0d938b9c3729c49564818a6f0318a704026c48':
  feat(vm-x64): add Microsoft Hyper-V suport
2023-10-13 14:15:38 +02:00
Samuel Dolt 5e0d938b9c feat(vm-x64): add Microsoft Hyper-V suport 2023-10-13 12:04:13 +02:00
Patrick Vogelaar c17db5dbd5 feat(eagle40_03): integrate EAGLE40-03
* add basic config for EAGLE40.03
* purely based on uefi -> no uboot

NOTE: The board only boots so far. No in depth testing has been done yet.
2023-10-13 11:56:51 +02:00
Patrick Vogelaar 8703fd2efd Pull request #126: refactor(partitions.inc): use variable for kernel in wks file
Merge in ICO/coreos from add_variable_for_kernel_in_wks_file to master

* commit 'afa1a784c1637ad2965f93061794f10577e992a2':
  refactor(partitions.inc): use variable for kernel in wks file
2023-10-04 15:13:10 +02:00
Patrick Vogelaar afa1a784c1 refactor(partitions.inc): use variable for kernel in wks file 2023-09-27 22:47:23 +02:00
Uli Stein f0e6da1c10 Pull request #125: Feature/k3s
Merge in ICO/coreos from feature/k3s to master

* commit 'af33b55ec07b3d78cd5e2e2ea2e677b226a441a3':
  feat(k3s): image that installs the k3s-agent
  feat(linux-yocto_5.15): add kernel config for k3s
2023-09-15 14:38:18 +02:00
Uli Stein af33b55ec0 feat(k3s): image that installs the k3s-agent
the changed image is
layers/meta-belden-coreos-demo/recipes-core/image/cores-image-demo-k3s
k3s is a orchestration tool and a slimed down version of kubernetes
k3s agent is a tool to control pods
the commands come a k3s server in a cluster
2023-09-15 11:46:10 +02:00
Uli Stein 77a25e9c7b feat(linux-yocto_5.15): add kernel config for k3s
disable oabi compatibility it to solve seccomp conflict
enable seccomp filter
secccomp filter is needed for k3s to pawn pods
2023-09-15 11:46:10 +02:00
Samuel Dolt 99b84ba10c Pull request #124: docs(secure-boot): add a secure boot concept to the doc
Merge in ICO/coreos from docs/secure-boot to master

* commit 'e89a0c5195e9e2dc86eda1a44820e1709950183c':
  docs(secure-boot): add a secure boot concept to the doc
2023-08-25 16:04:38 +02:00
Samuel Dolt e89a0c5195 docs(secure-boot): add a secure boot concept to the doc 2023-08-18 16:40:15 +02:00
Samuel Dolt db27468370 Pull request #123: docs(bats): add info on how to use bats
Merge in ICO/coreos from docs/bats to master

* commit '9337a5d7d2b4c1bc3fbe222eb2cdf6a97f22d5df':
  docs(bats): add info on how to use bats
2023-08-18 11:21:02 +02:00
Samuel Dolt 9337a5d7d2 docs(bats): add info on how to use bats 2023-08-18 10:32:22 +02:00
Samuel Dolt 91cff2b07a Pull request #122: feat(bats): upgrade bats to 1.10
Merge in ICO/coreos from feat/bats to master

* commit '53b2d1e3ee3e9d8d15407221353e4445d2f25287':
  feat(bats): upgrade bats to 1.10
2023-08-17 14:47:15 +02:00
Samuel Dolt 53b2d1e3ee feat(bats): upgrade bats to 1.10
Common library bats-assert, bats-file and bats-support are
now available as well
2023-08-16 14:45:33 +02:00
Samuel Dolt 2b3406e5b5 Pull request #118: feat(belden-coreos): reworked distro settings
Merge in ICO/coreos from feat/distro-rework to master

* commit '0d5e631162d90ab724fd1f03ec294fd171cac3cf':
  feat(belden-coreos): reworked distro settings
2023-08-14 10:22:06 +02:00
Patrick Vogelaar fdd1f19102 Pull request #116: Automated submodule update
Merge in ICO/coreos from update_subomdules_2023-08-07_13-04 to master

* commit '1af92365f1529824940df6935f4c05d65a298e03':
  fix(3rd-party): automatic update of CoreOS submodules
2023-08-08 07:19:29 +02:00
Samuel Dolt 0d5e631162 feat(belden-coreos): reworked distro settings
Now the distro settings is splitted into two config smaller config
file. PACKAGECONFIG for the system package is set to include a
reduced set of features by default.

Some EFI related feature are now dependant of the EFI DISTRO_
and MACHINE_FEATURES.
2023-08-07 15:32:53 +02:00
Patrick Vogelaar 1af92365f1 fix(3rd-party): automatic update of CoreOS submodules 2023-08-07 13:04:18 +00:00
Patrick Vogelaar ed7ae90d86 Pull request #110: fix(u-boot-tools): add uboot-efivar fot FILES
Merge in ICO/coreos from fix_populate_sdk_build to master

* commit '18d38f9010f7e973246cfef9d36c2b0637ba8f8a':
  fix(u-boot-tools): add uboot-efivar fot FILES
2023-08-02 13:40:43 +02:00
Samuel Dolt 0f498e388e Pull request #112: fix(coreos-keygen): add error-handling
Merge in ICO/coreos from fix/generate-keys to master

* commit '2416462807dc6da18da2847b887f76d16a1797fe':
  fix(coreos-keygen): add error-handling
2023-08-02 11:33:26 +02:00
Samuel Dolt 2416462807 fix(coreos-keygen): add error-handling
Now the coreos-keygen report on stderr if a needed tools is missing
and can generate only the missing keys if not all the keys are
present
2023-07-28 11:21:30 +02:00
Patrick Vogelaar 81434b7790 Pull request #111: Automated submodule update
Merge in ICO/coreos from update_subomdules_2023-07-26_14-19 to master

* commit 'cd2e89697943020b9f7f87218fa4fb6de53c280b':
  fix(3rd-party): automatic update of CoreOS submodules
2023-07-26 20:53:01 +02:00
Patrick Vogelaar cd2e896979 fix(3rd-party): automatic update of CoreOS submodules 2023-07-26 14:19:07 +00:00
Patrick Vogelaar 18d38f9010 fix(u-boot-tools): add uboot-efivar fot FILES
Without this fix the build breaks for -c populate_sdk.
2023-07-26 14:56:28 +02:00
Samuel Dolt 0001e685fa Pull request #107: feat(efibootguard): single image with automatic partition switch
Merge in ICO/coreos from feat/single-uki to master

* commit '04e0adf97af475345f14d25de03985be599e4965':
  feat(efibootguard): single image with automatic partition switch
2023-07-05 10:36:36 +02:00
Samuel Dolt 04e0adf97a feat(efibootguard): single image with automatic partition switch
Now a single unified kernel image is built using a new CoreOS
specific functionality added in the efibootguard UKI stub to
automatically insert root=PARTLABEL=rootfs0 (or rootfs1) in the
kernel command line

BREAKING CHANGE: coreos-image-uki.bbclass now only generate a
single kernel image named kernel-${MACHINE}.efi
2023-06-27 14:20:37 +02:00
Samuel Dolt 64caa389bf Pull request #97: Feat/coreos emmc instaler
Merge in ICO/coreos from feat/coreos-emmc-instaler to master

* commit '6bf03fbec2a57b68f49e8fca9ad755ac6c816d47':
  feat(coreos-installer): add coreos-installer and emmc support
  feat(vscode): add more recommended extention
2023-06-22 10:54:24 +02:00
Patrick Vogelaar 05c0907569 Pull request #99: Automated submodule update
Merge in ICO/coreos from update_subomdules_2023-06-19_10-44 to master

* commit '8c73a56d98c8c78b6ca26c370f77130e32cd676c':
  fix(3rd-party): automatic update of CoreOS submodules
2023-06-22 10:27:14 +02:00
Samuel Dolt 6bf03fbec2 feat(coreos-installer): add coreos-installer and emmc support
Now coreos-installer can be used with Beaglebone and cn9130-cf-pro
to install CoreOS into the emmc instead of booting only on the
SDCard
2023-06-21 15:32:08 +02:00
Samuel Dolt 29209c6d83 feat(vscode): add more recommended extention 2023-06-21 09:56:58 +02:00
Uli Stein 35e4cc615e Pull request #101: docs(quick-build): change sbsign to sbsigntool, because the debian packet manager can not find sbsign
Merge in ICO/coreos from doc/quickBuildUpdate to master

* commit '1819c3be3c3039a8abd289d49a8b1ecba229e3e2':
  docs(quick-build): change sbsign to sbsigntool, because the debian packet manager can not find sbsign
2023-06-20 11:41:06 +02:00