[oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for mipsel
Fix: printf.c:2:10: fatal error: limits.h: No such file or directory | #include Signed-off-by: Andrea Adami --- meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb index e7553244d..872d79b93 100644 --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb @@ -66,6 +66,7 @@ CFLAGS_x86-64_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/i CFLAGS_arm_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" CFLAGS_aarch64_append = "${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" CFLAGS_mips_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" +CFLAGS_mipsel_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" CFLAGS_mips64_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" CFLAGS_powerpc_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" -- 2.17.1 -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for mipsel
On Mon, Dec 17, 2018 at 10:15 AM Andrea Adami wrote: > > Fix: > printf.c:2:10: fatal error: limits.h: No such file or directory > | #include > > Signed-off-by: Andrea Adami > --- > meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > index e7553244d..872d79b93 100644 > --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > @@ -66,6 +66,7 @@ CFLAGS_x86-64_append = " ${COMMON_CFLAGS} > -I${STAGING_DIR_HOST}${libdir}/klibc/i > CFLAGS_arm_append = " ${COMMON_CFLAGS} > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > CFLAGS_aarch64_append = "${COMMON_CFLAGS} > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" > CFLAGS_mips_append = " ${COMMON_CFLAGS} > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > +CFLAGS_mipsel_append = " ${COMMON_CFLAGS} > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > CFLAGS_mips64_append = " ${COMMON_CFLAGS} > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" I wonder if we just use use "mipsarch" override here once for all mips kinds. > CFLAGS_powerpc_append = " ${COMMON_CFLAGS} > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > -- > 2.17.1 > > -- > ___ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for mipsel
On Mon, Dec 17, 2018 at 8:23 PM Khem Raj wrote: > > On Mon, Dec 17, 2018 at 10:15 AM Andrea Adami wrote: > > > > Fix: > > printf.c:2:10: fatal error: limits.h: No such file or directory > > | #include > > > > Signed-off-by: Andrea Adami > > --- > > meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > index e7553244d..872d79b93 100644 > > --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > @@ -66,6 +66,7 @@ CFLAGS_x86-64_append = " ${COMMON_CFLAGS} > > -I${STAGING_DIR_HOST}${libdir}/klibc/i > > CFLAGS_arm_append = " ${COMMON_CFLAGS} > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > CFLAGS_aarch64_append = "${COMMON_CFLAGS} > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" > > CFLAGS_mips_append = " ${COMMON_CFLAGS} > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > +CFLAGS_mipsel_append = " ${COMMON_CFLAGS} > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > CFLAGS_mips64_append = " ${COMMON_CFLAGS} > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" > > I wonder if we just use use "mipsarch" override here once for all > mips kinds. > > > CFLAGS_powerpc_append = " ${COMMON_CFLAGS} > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > I am also wondering how to do that in another way. Maybe a patch to adjust the included headers? Cheers Andrea > > -- > > 2.17.1 > > > > -- > > ___ > > Openembedded-devel mailing list > > Openembedded-devel@lists.openembedded.org > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for mipsel
On Mon, Dec 17, 2018 at 10:18 PM Andrea Adami wrote: > > On Mon, Dec 17, 2018 at 8:23 PM Khem Raj wrote: > > > > On Mon, Dec 17, 2018 at 10:15 AM Andrea Adami > > wrote: > > > > > > Fix: > > > printf.c:2:10: fatal error: limits.h: No such file or directory > > > | #include > > > > > > Signed-off-by: Andrea Adami > > > --- > > > meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > > b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > > index e7553244d..872d79b93 100644 > > > --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > > +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > > @@ -66,6 +66,7 @@ CFLAGS_x86-64_append = " ${COMMON_CFLAGS} > > > -I${STAGING_DIR_HOST}${libdir}/klibc/i > > > CFLAGS_arm_append = " ${COMMON_CFLAGS} > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > > CFLAGS_aarch64_append = "${COMMON_CFLAGS} > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" > > > CFLAGS_mips_append = " ${COMMON_CFLAGS} > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > > +CFLAGS_mipsel_append = " ${COMMON_CFLAGS} > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > > CFLAGS_mips64_append = " ${COMMON_CFLAGS} > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" > > > > I wonder if we just use use "mipsarch" override here once for all > > mips kinds. Note that there are different bitsizes... Please merge this, we'll think how to refactor this later. Cheers Andrea P.S. Unfortunately my poor 3.13.5 bcm-tainted drivers do not survive to kexec. Will retry with a recent bmips for bcm7425 > > > > > CFLAGS_powerpc_append = " ${COMMON_CFLAGS} > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > > > I am also wondering how to do that in another way. > Maybe a patch to adjust the included headers? > > Cheers > Andrea > > > > -- > > > 2.17.1 > > > > > > -- > > > ___ > > > Openembedded-devel mailing list > > > Openembedded-devel@lists.openembedded.org > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for mipsel
On Mon, Dec 17, 2018 at 10:28 PM Andrea Adami wrote: > > On Mon, Dec 17, 2018 at 10:18 PM Andrea Adami wrote: > > > > On Mon, Dec 17, 2018 at 8:23 PM Khem Raj wrote: > > > > > > On Mon, Dec 17, 2018 at 10:15 AM Andrea Adami > > > wrote: > > > > > > > > Fix: > > > > printf.c:2:10: fatal error: limits.h: No such file or directory > > > > | #include > > > > > > > > Signed-off-by: Andrea Adami > > > > --- > > > > meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 1 + > > > > 1 file changed, 1 insertion(+) > > > > > > > > diff --git > > > > a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > > > b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > > > index e7553244d..872d79b93 100644 > > > > --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > > > +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb > > > > @@ -66,6 +66,7 @@ CFLAGS_x86-64_append = " ${COMMON_CFLAGS} > > > > -I${STAGING_DIR_HOST}${libdir}/klibc/i > > > > CFLAGS_arm_append = " ${COMMON_CFLAGS} > > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > > > CFLAGS_aarch64_append = "${COMMON_CFLAGS} > > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" > > > > CFLAGS_mips_append = " ${COMMON_CFLAGS} > > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > > > +CFLAGS_mipsel_append = " ${COMMON_CFLAGS} > > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > > > CFLAGS_mips64_append = " ${COMMON_CFLAGS} > > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" > > > > > > I wonder if we just use use "mipsarch" override here once for all > > > mips kinds. > > Note that there are different bitsizes... > Please merge this, we'll think how to refactor this later. > Cheers > ehm.. sorry for the noise, my git repo exploded... This patch is already merged in master-next: archived as not-applicable (anymore). Cheers Andrea > Andrea > P.S. Unfortunately my poor 3.13.5 bcm-tainted drivers do not survive to kexec. > Will retry with a recent bmips for bcm7425 > > > > > > > > > CFLAGS_powerpc_append = " ${COMMON_CFLAGS} > > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" > > > > > > I am also wondering how to do that in another way. > > Maybe a patch to adjust the included headers? > > > > Cheers > > Andrea > > > > > > -- > > > > 2.17.1 > > > > > > > > -- > > > > ___ > > > > Openembedded-devel mailing list > > > > Openembedded-devel@lists.openembedded.org > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
[oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for mipsel and mips64el
Builds with little endianness were not tested before. Fix for: purgatory.c:2:10: fatal error: limits.h: No such file or directory Signed-off-by: Andrea Adami --- meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb index 25f5da48d..cc1c5518b 100644 --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb @@ -66,9 +66,12 @@ CFLAGS_x86-64_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/i CFLAGS_arm_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" CFLAGS_aarch64_append = "${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" CFLAGS_mips_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" +CFLAGS_mipsel_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" CFLAGS_mips64_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" +CFLAGS_mips64el_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64" CFLAGS_powerpc_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32" + do_compile_prepend() { # Remove the prepackaged config.h from the source tree as it overrides # the same file generated by configure and placed in the build tree -- 2.17.1 -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel