mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 17:47:00 +00:00
Commit d82c5884c616 ("treewide: make use of new toolchain define") changed $(TOOLCHAIN_DIR)/include to the new variable $(TOOLCHAIN_INC_DIRS) that now can contain multiple entry. Because of this only the first include in $(TOOLCHAIN_INC_DIRS) was actually included with -isystem, making the other producing warning with ignored inputs. Fix this by parsing each entry in $(TOOLCHAIN_INC_DIRS) and adding the -isystem prefix to correctly include them in the BPF_KERNEL_INCLUDE. Fixes: d82c5884c616 ("treewide: make use of new toolchain define") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>