Re: Kernel integrated backports ends in endless silentoldconfig loop when built out of tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2016-11-18 at 12:49 +0000, Gienger Timo wrote:
> But seems to get messed up somewhere because of that.

Sorry for the spam, it will hopefully be the last mail. After exchanging
the variable $BACKPORT_DIR in backports/Makefile sourcing parameter:
diff --git a/backports/Kconfig b/backports/Kconfig
index c201029..ebbfbd8 100644
--- a/backports/Kconfig
+++ b/backports/Kconfig
@@ -30,7 +30,7 @@ menuconfig BACKPORT_LINUX
 
 if BACKPORT_LINUX
 
-source "$BACKPORT_DIR/Kconfig.versions"
-source "$BACKPORT_DIR/Kconfig.sources"
+source "backports/Kconfig.versions"
+source "backports/Kconfig.sources"
 
 endif # BACKPORT_LINUX


I faced the issue that the includes couldn´t be found. Just in case
someone else having the same issue, also the NOSTDINC_FLAGS need to be
adjusted to find the includes:

diff --git a/backports/Makefile b/backports/Makefile
index 759fe7f..3479d04 100644
--- a/backports/Makefile
+++ b/backports/Makefile
@@ -21,12 +21,13 @@ export backport_srctree = $(M)
 else
 export BACKPORT_DIR = backports/
 export backport_srctree = $(BACKPORT_DIR)
+
 NOSTDINC_FLAGS := \
-       -I$(BACKPORT_DIR)/backport-include/ \
-       -I$(BACKPORT_DIR)/backport-include/uapi \
-       -I$(BACKPORT_DIR)/include/ \
-       -I$(BACKPORT_DIR)/include/uapi \
-       -include $(BACKPORT_DIR)/backport-include/backport/backport.h \
+       -I$(srctree)/backports/backport-include/ \
+       -I$(srctree)/backports/backport-include/uapi \
+       -I$(srctree)/backports/include/ \
+       -I$(srctree)/backports/include/uapi \
+       -include
$(srctree)/backports/backport-include/backport/backport.h \
        $(CFLAGS)
 endif


BR
Timo

��.n��������+%������w��{.n����i���l




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux