From 063f2122aa29b758693f9e295f58a76d64d643d6 Mon Sep 17 00:00:00 2001 From: Nik Mohamad Aizuddin Date: Mon, 5 Jun 2023 20:27:12 +0800 Subject: [PATCH] feat(yocto): add netplan networking --- .../wpa-supplicant/wpa-supplicant_%.bbappend | 5 +++++ .../meta-user/recipes-images/images/ros-image-core.bbappend | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 project/yocto/layers/meta-user/recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend diff --git a/project/yocto/layers/meta-user/recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend b/project/yocto/layers/meta-user/recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend new file mode 100644 index 0000000..5cdf3f2 --- /dev/null +++ b/project/yocto/layers/meta-user/recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend @@ -0,0 +1,5 @@ +do_install:append() { + # Netplan expects wpa_supplicant to be in "/sbin/" instead of "/usr/sbin/" + mkdir -p ${D}/sbin + ln -s /usr/sbin/wpa_supplicant ${D}/sbin/wpa_supplicant +} diff --git a/project/yocto/layers/meta-user/recipes-images/images/ros-image-core.bbappend b/project/yocto/layers/meta-user/recipes-images/images/ros-image-core.bbappend index 3ddc728..105281f 100644 --- a/project/yocto/layers/meta-user/recipes-images/images/ros-image-core.bbappend +++ b/project/yocto/layers/meta-user/recipes-images/images/ros-image-core.bbappend @@ -79,8 +79,14 @@ USER_APPS = " \ ros2-helloworld-python \ " +NETWORKING = " \ + netplan \ + wpa-supplicant \ +" + IMAGE_INSTALL:append = " \ ${ROS_SYSROOT_BUILD_DEPENDENCIES} \ + ${NETWORKING} \ python3-argcomplete \ glibc-utils \ localedef \