* [PATCH] builddeb: Fix header package regarding dtc source links
@ 2018-03-21 5:15 Jan Kiszka
2018-03-22 7:45 ` Riku Voipio
0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2018-03-21 5:15 UTC (permalink / raw)
To: Masahiro Yamada, Michal Marek, linux-kbuild, Linux Kernel Mailing List
Since d5d332d3f7e8, a couple of links in scripts/dtc/include-prefixes
are additionally required in order to build device trees with the header
package.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
scripts/package/builddeb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index b4f0f2b3f8d2..13fabb1f81db 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -313,7 +313,7 @@ fi
# Build kernel header package
(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl) > "$objtree/debian/hdrsrcfiles"
-(cd $srctree; find arch/*/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles"
+(cd $srctree; find arch/*/include include scripts -type f -o -type l) >> "$objtree/debian/hdrsrcfiles"
(cd $srctree; find arch/$SRCARCH -name module.lds -o -name Kbuild.platforms -o -name Platform) >> "$objtree/debian/hdrsrcfiles"
(cd $srctree; find $(find arch/$SRCARCH -name include -o -name scripts -type d) -type f) >> "$objtree/debian/hdrsrcfiles"
if grep -q '^CONFIG_STACK_VALIDATION=y' $KCONFIG_CONFIG ; then
--
2.13.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] builddeb: Fix header package regarding dtc source links
2018-03-21 5:15 [PATCH] builddeb: Fix header package regarding dtc source links Jan Kiszka
@ 2018-03-22 7:45 ` Riku Voipio
2018-03-22 7:49 ` Jan Kiszka
0 siblings, 1 reply; 4+ messages in thread
From: Riku Voipio @ 2018-03-22 7:45 UTC (permalink / raw)
To: Jan Kiszka
Cc: Masahiro Yamada, Michal Marek, linux-kbuild, Linux Kernel Mailing List
On 21 March 2018 at 07:15, Jan Kiszka <jan.kiszka@siemens.com> wrote:
> Since d5d332d3f7e8, a couple of links in scripts/dtc/include-prefixes
> are additionally required in order to build device trees with the header
> package.
A bit odd usecase IMHO, but:
Reviewed-by: Riku Voipio <riku.voipio@linaro.org>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> scripts/package/builddeb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index b4f0f2b3f8d2..13fabb1f81db 100755
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -313,7 +313,7 @@ fi
>
> # Build kernel header package
> (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl) > "$objtree/debian/hdrsrcfiles"
> -(cd $srctree; find arch/*/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles"
> +(cd $srctree; find arch/*/include include scripts -type f -o -type l) >> "$objtree/debian/hdrsrcfiles"
> (cd $srctree; find arch/$SRCARCH -name module.lds -o -name Kbuild.platforms -o -name Platform) >> "$objtree/debian/hdrsrcfiles"
> (cd $srctree; find $(find arch/$SRCARCH -name include -o -name scripts -type d) -type f) >> "$objtree/debian/hdrsrcfiles"
> if grep -q '^CONFIG_STACK_VALIDATION=y' $KCONFIG_CONFIG ; then
> --
> 2.13.6
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] builddeb: Fix header package regarding dtc source links
2018-03-22 7:45 ` Riku Voipio
@ 2018-03-22 7:49 ` Jan Kiszka
2018-03-27 16:51 ` Masahiro Yamada
0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2018-03-22 7:49 UTC (permalink / raw)
To: Riku Voipio
Cc: Masahiro Yamada, Michal Marek, linux-kbuild, Linux Kernel Mailing List
On 2018-03-22 15:45, Riku Voipio wrote:
> On 21 March 2018 at 07:15, Jan Kiszka <jan.kiszka@siemens.com> wrote:
>> Since d5d332d3f7e8, a couple of links in scripts/dtc/include-prefixes
>> are additionally required in order to build device trees with the header
>> package.
>
> A bit odd usecase IMHO, but:
The use case is not completely odd (I hope): Jailhouse hypervisor. We
build it as out-of-tree module so far, and we both need dtc for the
driver module as well as the guest device trees.
>
> Reviewed-by: Riku Voipio <riku.voipio@linaro.org>
Thanks,
Jan
>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>> scripts/package/builddeb | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
>> index b4f0f2b3f8d2..13fabb1f81db 100755
>> --- a/scripts/package/builddeb
>> +++ b/scripts/package/builddeb
>> @@ -313,7 +313,7 @@ fi
>>
>> # Build kernel header package
>> (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl) > "$objtree/debian/hdrsrcfiles"
>> -(cd $srctree; find arch/*/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles"
>> +(cd $srctree; find arch/*/include include scripts -type f -o -type l) >> "$objtree/debian/hdrsrcfiles"
>> (cd $srctree; find arch/$SRCARCH -name module.lds -o -name Kbuild.platforms -o -name Platform) >> "$objtree/debian/hdrsrcfiles"
>> (cd $srctree; find $(find arch/$SRCARCH -name include -o -name scripts -type d) -type f) >> "$objtree/debian/hdrsrcfiles"
>> if grep -q '^CONFIG_STACK_VALIDATION=y' $KCONFIG_CONFIG ; then
>> --
>> 2.13.6
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] builddeb: Fix header package regarding dtc source links
2018-03-22 7:49 ` Jan Kiszka
@ 2018-03-27 16:51 ` Masahiro Yamada
0 siblings, 0 replies; 4+ messages in thread
From: Masahiro Yamada @ 2018-03-27 16:51 UTC (permalink / raw)
To: Jan Kiszka
Cc: Riku Voipio, Michal Marek, linux-kbuild, Linux Kernel Mailing List
2018-03-22 16:49 GMT+09:00 Jan Kiszka <jan.kiszka@siemens.com>:
> On 2018-03-22 15:45, Riku Voipio wrote:
>> On 21 March 2018 at 07:15, Jan Kiszka <jan.kiszka@siemens.com> wrote:
>>> Since d5d332d3f7e8, a couple of links in scripts/dtc/include-prefixes
>>> are additionally required in order to build device trees with the header
>>> package.
>>
>> A bit odd usecase IMHO, but:
>
> The use case is not completely odd (I hope): Jailhouse hypervisor. We
> build it as out-of-tree module so far, and we both need dtc for the
> driver module as well as the guest device trees.
>
I do not think this use case is odd.
Some drivers embed DTB for overlay, for example,
https://patchwork.kernel.org/patch/10159055/
So, building external modules may require
ability to build DT as well.
Applied to linux-kbuild/fixes. Thanks!
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-03-27 16:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-21 5:15 [PATCH] builddeb: Fix header package regarding dtc source links Jan Kiszka
2018-03-22 7:45 ` Riku Voipio
2018-03-22 7:49 ` Jan Kiszka
2018-03-27 16:51 ` Masahiro Yamada
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.