In case anyone was wondering, the later patches are marked "WIP" since
they hadn't been sufficiently tested.

I had run into this a bit ago, but hadn't tracked down the issue.  Now
that I have, another patch is attached to this message.  This is an
outright bug in the patch and should be fixed.


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         ehem+sig...@m5p.com  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445


>From f646cfb21288df884534d60ed17a075d9661e9b9 Mon Sep 17 00:00:00 2001
Message-Id: <f646cfb21288df884534d60ed17a075d9661e9b9.1700180981.git.ehem+open...@m5p.com>
From: Elliott Mitchell <ehem+open...@m5p.com>
Date: Thu, 16 Nov 2023 14:16:01 -0800
Subject: [PATCH] kernel/generic: fix lzma addition patch

When including directories, the full path must be used.  Otherwise the
compiler may fail to find headers.  This fixes separated build and
source directory functioning.

Signed-off-by: Elliott Mitchell <ehem+open...@m5p.com>
---
Similar situation to the bcm27xx patch.  Small error in the patch,
which requires the right situation to trigger.  I figure most likely
adjustments are pure style and could be fixed on commit.
---
 .../generic/pending-5.15/530-jffs2_make_lzma_available.patch    | 2 +-
 .../generic/pending-6.1/530-jffs2_make_lzma_available.patch     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/generic/pending-5.15/530-jffs2_make_lzma_available.patch b/target/linux/generic/pending-5.15/530-jffs2_make_lzma_available.patch
index f236657b71..0ca857d000 100644
--- a/target/linux/generic/pending-5.15/530-jffs2_make_lzma_available.patch
+++ b/target/linux/generic/pending-5.15/530-jffs2_make_lzma_available.patch
@@ -4578,4 +4578,4 @@ Signed-off-by: Alexandros C. Couloumbis <a...@ozo.com>
 +obj-$(CONFIG_LZMA_COMPRESS) += lzma_compress.o
 +obj-$(CONFIG_LZMA_DECOMPRESS) += lzma_decompress.o
 +
-+EXTRA_CFLAGS += -Iinclude/linux -Iinclude/linux/lzma -include types.h
++EXTRA_CFLAGS += -I$(srctree)/include/linux -I$(srctree)/include/linux/lzma -include types.h
diff --git a/target/linux/generic/pending-6.1/530-jffs2_make_lzma_available.patch b/target/linux/generic/pending-6.1/530-jffs2_make_lzma_available.patch
index 27a673399a..d413cc91a2 100644
--- a/target/linux/generic/pending-6.1/530-jffs2_make_lzma_available.patch
+++ b/target/linux/generic/pending-6.1/530-jffs2_make_lzma_available.patch
@@ -5177,4 +5177,4 @@ Signed-off-by: Alexandros C. Couloumbis <a...@ozo.com>
 +obj-$(CONFIG_LZMA_COMPRESS) += lzma_compress.o
 +obj-$(CONFIG_LZMA_DECOMPRESS) += lzma_decompress.o
 +
-+EXTRA_CFLAGS += -Iinclude/linux -Iinclude/linux/lzma -include types.h
++EXTRA_CFLAGS += -I$(srctree)/include/linux -I$(srctree)/include/linux/lzma -include types.h
-- 
2.39.2

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to