diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2023-04-10 09:13:24 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-04-11 09:19:31 -0500 |
| commit | 467c544c295f1e9b1891e41e353cee821107cf46 (patch) | |
| tree | 5832ba0cfc170ce69dcf353883d0fe9fa2c4d008 /meta-xilinx-core/recipes-kernel | |
| parent | fd2a9248827b83e07f3b5cd109399cfde4f91e3b (diff) | |
| download | meta-xilinx-467c544c295f1e9b1891e41e353cee821107cf46.tar.gz | |
linux-xlnx: Add special systemd configuration for microblaze
While systemd is not recommended for use on microblaze, it does work.
However, additional configuration items are requried in this case. So
enable the minimum options, as defined from the systemd README file.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/recipes-kernel')
3 files changed, 53 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-kernel/linux/linux-microblaze.inc b/meta-xilinx-core/recipes-kernel/linux/linux-microblaze.inc index a24fd93c..a2f15adb 100644 --- a/meta-xilinx-core/recipes-kernel/linux/linux-microblaze.inc +++ b/meta-xilinx-core/recipes-kernel/linux/linux-microblaze.inc | |||
| @@ -2,6 +2,8 @@ SRC_URI += " \ | |||
| 2 | file://microblaze_generic.cfg \ | 2 | file://microblaze_generic.cfg \ |
| 3 | " | 3 | " |
| 4 | 4 | ||
| 5 | KERNEL_FEATURES:append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' features/microblaze-systemd/microblaze-systemd.scc', '', d)}" | ||
| 6 | |||
| 5 | # MicroBlaze is a uImage target, but its not called 'uImage' instead it is called 'linux.bin.ub' | 7 | # MicroBlaze is a uImage target, but its not called 'uImage' instead it is called 'linux.bin.ub' |
| 6 | python () { | 8 | python () { |
| 7 | if d.getVar('KERNEL_IMAGETYPE', True).endswith('.ub'): | 9 | if d.getVar('KERNEL_IMAGETYPE', True).endswith('.ub'): |
diff --git a/meta-xilinx-core/recipes-kernel/linux/linux-xlnx/linux-xlnx-kmeta/features/microblaze-systemd/microblaze-systemd.cfg b/meta-xilinx-core/recipes-kernel/linux/linux-xlnx/linux-xlnx-kmeta/features/microblaze-systemd/microblaze-systemd.cfg new file mode 100644 index 00000000..0aebbf91 --- /dev/null +++ b/meta-xilinx-core/recipes-kernel/linux/linux-xlnx/linux-xlnx-kmeta/features/microblaze-systemd/microblaze-systemd.cfg | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | # SPDX-License-Identifier: MIT | ||
| 2 | |||
| 3 | #........................................................................ | ||
| 4 | #WARNING | ||
| 5 | # | ||
| 6 | # This file is a kernel configuration fragment, and not a full kernel | ||
| 7 | # configuration file. The final kernel configuration is made up of | ||
| 8 | # an assembly of processed fragments, each of which is designed to | ||
| 9 | # capture a specific part of the final configuration (e.g. platform | ||
| 10 | # configuration, feature configuration, and board specific hardware | ||
| 11 | # configuration). For more information on kernel configuration, please | ||
| 12 | # refer the product documentation. | ||
| 13 | # | ||
| 14 | #........................................................................ | ||
| 15 | |||
| 16 | # Based on the systemd README file kernel requirements | ||
| 17 | # Many of these are not enabled on microblaze by default to conserve | ||
| 18 | # memory. | ||
| 19 | |||
| 20 | # Kernel Config Options | ||
| 21 | CONFIG_DEVTMPFS=y | ||
| 22 | CONFIG_CGROUPS=y | ||
| 23 | CONFIG_INOTIFY_USER=y | ||
| 24 | CONFIG_SIGNALFD=y | ||
| 25 | CONFIG_TIMERFD=y | ||
| 26 | CONFIG_EPOLL=y | ||
| 27 | CONFIG_UNIX=y | ||
| 28 | CONFIG_SYSFS=y | ||
| 29 | CONFIG_PROC_FS=y | ||
| 30 | CONFIG_FHANDLE=y | ||
| 31 | |||
| 32 | # Kernel crypto/hash API | ||
| 33 | CONFIG_CRYPTO_USER_API_HASH=y | ||
| 34 | CONFIG_CRYPTO_HMAC=y | ||
| 35 | CONFIG_CRYPTO_SHA256=y | ||
| 36 | |||
| 37 | # udev will fail to work with the legacy sysfs layout: | ||
| 38 | # CONFIG_SYSFS_DEPRECATED is not set | ||
| 39 | |||
| 40 | # Legacy hotplug slows down the system and confuses udev: | ||
| 41 | CONFIG_UEVENT_HELPER_PATH="" | ||
| 42 | |||
| 43 | #Userspace firmware loading is not supported and should be disabled in | ||
| 44 | #the kernel: | ||
| 45 | # CONFIG_FW_LOADER_USER_HELPER is not set | ||
diff --git a/meta-xilinx-core/recipes-kernel/linux/linux-xlnx/linux-xlnx-kmeta/features/microblaze-systemd/microblaze-systemd.scc b/meta-xilinx-core/recipes-kernel/linux/linux-xlnx/linux-xlnx-kmeta/features/microblaze-systemd/microblaze-systemd.scc new file mode 100644 index 00000000..2a38f446 --- /dev/null +++ b/meta-xilinx-core/recipes-kernel/linux/linux-xlnx/linux-xlnx-kmeta/features/microblaze-systemd/microblaze-systemd.scc | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # SPDX-License-Identifier: MIT | ||
| 2 | define KFEATURE_DESCRIPTION "Enable systemd on microblaze systems" | ||
| 3 | define KFEATURE_COMPATIBILITY all | ||
| 4 | |||
| 5 | kconf non-hardware microblaze-systemd.cfg | ||
| 6 | |||
