* [PATCH] grub-efi: run autogen.sh before configure
@ 2016-05-06 12:13 Catalin Enache
2016-07-06 9:22 ` Yu, Mingli
2016-07-11 10:22 ` Burton, Ross
0 siblings, 2 replies; 5+ messages in thread
From: Catalin Enache @ 2016-05-06 12:13 UTC (permalink / raw)
To: openembedded-core
When adding new source files from upstream the autogen.sh
script needs to be run.
Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
---
meta/recipes-bsp/grub/grub-efi_2.00.bb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-bsp/grub/grub-efi_2.00.bb b/meta/recipes-bsp/grub/grub-efi_2.00.bb
index 5a0dc95..62ded6e 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.00.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.00.bb
@@ -2,6 +2,7 @@ require grub2.inc
DEPENDS_class-target = "grub-efi-native"
RDEPENDS_${PN}_class-target = "diffutils freetype"
+DEPENDS += "autogen-native"
PR = "r3"
SRC_URI += " \
@@ -39,6 +40,11 @@ EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '--enable-
# and many other places in the grub code when compiled with some native gcc compilers (specifically, gentoo)
CFLAGS_append_class-native = " -Wno-error=trampolines"
+do_configure_prepend() {
+ ( cd ${S}
+ ${S}/autogen.sh )
+}
+
do_install_class-native() {
install -d ${D}${bindir}
install -m 755 grub-mkimage ${D}${bindir}
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] grub-efi: run autogen.sh before configure
2016-05-06 12:13 [PATCH] grub-efi: run autogen.sh before configure Catalin Enache
@ 2016-07-06 9:22 ` Yu, Mingli
2016-07-11 10:22 ` Burton, Ross
1 sibling, 0 replies; 5+ messages in thread
From: Yu, Mingli @ 2016-07-06 9:22 UTC (permalink / raw)
To: Catalin Enache, openembedded-core
ping
Thanks,
Grace
On 2016年05月06日 20:13, Catalin Enache wrote:
> When adding new source files from upstream the autogen.sh
> script needs to be run.
>
> Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
> ---
> meta/recipes-bsp/grub/grub-efi_2.00.bb | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meta/recipes-bsp/grub/grub-efi_2.00.bb b/meta/recipes-bsp/grub/grub-efi_2.00.bb
> index 5a0dc95..62ded6e 100644
> --- a/meta/recipes-bsp/grub/grub-efi_2.00.bb
> +++ b/meta/recipes-bsp/grub/grub-efi_2.00.bb
> @@ -2,6 +2,7 @@ require grub2.inc
>
> DEPENDS_class-target = "grub-efi-native"
> RDEPENDS_${PN}_class-target = "diffutils freetype"
> +DEPENDS += "autogen-native"
> PR = "r3"
>
> SRC_URI += " \
> @@ -39,6 +40,11 @@ EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '--enable-
> # and many other places in the grub code when compiled with some native gcc compilers (specifically, gentoo)
> CFLAGS_append_class-native = " -Wno-error=trampolines"
>
> +do_configure_prepend() {
> + ( cd ${S}
> + ${S}/autogen.sh )
> +}
> +
> do_install_class-native() {
> install -d ${D}${bindir}
> install -m 755 grub-mkimage ${D}${bindir}
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] grub-efi: run autogen.sh before configure
2016-05-06 12:13 [PATCH] grub-efi: run autogen.sh before configure Catalin Enache
2016-07-06 9:22 ` Yu, Mingli
@ 2016-07-11 10:22 ` Burton, Ross
2016-07-12 3:27 ` Yu, Mingli
1 sibling, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2016-07-11 10:22 UTC (permalink / raw)
To: Catalin Enache; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 505 bytes --]
On 6 May 2016 at 13:13, Catalin Enache <catalin.enache@windriver.com> wrote:
> DEPENDS_class-target = "grub-efi-native"
> RDEPENDS_${PN}_class-target = "diffutils freetype"
> +DEPENDS += "autogen-native"
>
Because += happens after overrides this results in autogen-native only a
dependency in native builds, so you can't be sure it will be present for
target builds.
Should the configure_prepend and autogen-native be added to grub2.inc so
that every recipe has that dependency?
Ross
[-- Attachment #2: Type: text/html, Size: 995 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] grub-efi: run autogen.sh before configure
2016-07-11 10:22 ` Burton, Ross
@ 2016-07-12 3:27 ` Yu, Mingli
2016-07-12 10:57 ` Ioan-Adrian Ratiu
0 siblings, 1 reply; 5+ messages in thread
From: Yu, Mingli @ 2016-07-12 3:27 UTC (permalink / raw)
To: Burton, Ross, Catalin Enache; +Cc: OE-core
On 2016年07月11日 18:22, Burton, Ross wrote:
>
> On 6 May 2016 at 13:13, Catalin Enache <catalin.enache@windriver.com
> <mailto:catalin.enache@windriver.com>> wrote:
>
> DEPENDS_class-target = "grub-efi-native"
> RDEPENDS_${PN}_class-target = "diffutils freetype"
> +DEPENDS += "autogen-native"
>
>
> Because += happens after overrides this results in autogen-native only a
> dependency in native builds, so you can't be sure it will be present for
> target builds.
Thanks Ross! Will update the line as:
DEPENDS_append = " autogen-native"
>
> Should the configure_prepend and autogen-native be added to grub2.inc so
> that every recipe has that dependency?
Hi Catalin,
Could you help to confirm if the three recipes (grub-efi_2.00.bb,
grub_2.00.bb, grub_git.bb) all need configure_prepend and
autogen-native? if yes, I will resent the patch to add configure_prepend
and autogen-native to grub2.inc, if not, then we still let it stay in
grub-efi recipe.
Thanks,
Grace
>
> Ross
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] grub-efi: run autogen.sh before configure
2016-07-12 3:27 ` Yu, Mingli
@ 2016-07-12 10:57 ` Ioan-Adrian Ratiu
0 siblings, 0 replies; 5+ messages in thread
From: Ioan-Adrian Ratiu @ 2016-07-12 10:57 UTC (permalink / raw)
To: Yu, Mingli; +Cc: OE-core
Hello
On Tue, 12 Jul 2016 11:27:15 +0800
"Yu, Mingli" <mingli.yu@windriver.com> wrote:
> On 2016年07月11日 18:22, Burton, Ross wrote:
> >
> > On 6 May 2016 at 13:13, Catalin Enache <catalin.enache@windriver.com
> > <mailto:catalin.enache@windriver.com>> wrote:
> >
> > DEPENDS_class-target = "grub-efi-native"
> > RDEPENDS_${PN}_class-target = "diffutils freetype"
> > +DEPENDS += "autogen-native"
> >
> >
> > Because += happens after overrides this results in autogen-native only a
> > dependency in native builds, so you can't be sure it will be present for
> > target builds.
>
> Thanks Ross! Will update the line as:
> DEPENDS_append = " autogen-native"
> >
> > Should the configure_prepend and autogen-native be added to grub2.inc so
> > that every recipe has that dependency?
>
> Hi Catalin,
> Could you help to confirm if the three recipes (grub-efi_2.00.bb,
> grub_2.00.bb, grub_git.bb) all need configure_prepend and
> autogen-native? if yes, I will resent the patch to add configure_prepend
> and autogen-native to grub2.inc, if not, then we still let it stay in
> grub-efi recipe.
I would really appreciate if you could add the autogen call to all grub recipes,
not only to grub-efi, because I'm also carrying OOT patches and have to add
it into a bbappend.
>
> Thanks,
> Grace
> >
> > Ross
> >
> >
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-07-12 10:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-06 12:13 [PATCH] grub-efi: run autogen.sh before configure Catalin Enache
2016-07-06 9:22 ` Yu, Mingli
2016-07-11 10:22 ` Burton, Ross
2016-07-12 3:27 ` Yu, Mingli
2016-07-12 10:57 ` Ioan-Adrian Ratiu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox