Bitbake add patch to patch

I would like add uap0 to NetworkInterfaceBlacklist
in connman main.conf
in bitbake image

oryginal patch set this new value

NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,ve-,vb-,usb,rndis

I created patch and bbappend over devtool

devtool modify connman
devtool update-recipe -a ../../meta-xyz connman
devtool reset connman

and set new value

NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,ve-,vb-,usb,rndis,uap0

connman_1.41.bbappend

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SRC_URI += "file://0001-add-uap0.patch"

0001-add-uap0.patch

From 7ddd502ddcc84928bda3422e6f8c36a155b49873 Mon Sep 17 00:00:00 2001
From: m <m@m>
Date: Mon, 4 Dec 2023 13:14:37 +0100
Subject: [PATCH] add uap0

---
 src/main.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.conf b/src/main.conf
index 435d266..d13ade0 100644
--- a/src/main.conf
+++ b/src/main.conf
@@ -67,7 +67,7 @@ BackgroundScanning = false
 # not be handled by ConnMan, if their first characters
 # match any of the list entries. Default value is
 # vmnet,vboxnet,virbr,ifb,ve-,vb-.
-NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,ve-,vb-,usb,rndis
+NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,ve-,vb-,usb,rndis,uap0

 # Allow ConnMan to change the system hostname. This can
 # happen for example if we receive DHCP hostname option.

But after try build image I have patch error

bitbake patch in wrong order first my patch then oryginal patch

how to change order for patch ?
I rename file to 1001-add-uap0.patch but
this didn’t solve the problem

How to patch in order:

0001-Adjust-main-configuration.patch
0001-add-uap0.patch

Hello @MariusM,

Thanks for reaching out to the Toradex Community!

Could you please try changing the priority of your custom layer (meta-xyz)? You should set BBFILE_PRIORITY_meta-xyz higher than BBFILE_PRIORITY_meta-toradex-demos so that it takes high precedence. You can also check the priorities of the layers using bitbake-layers show-layers.

Please let us know how that goes!

1 Like