Re: [PATCH v6] kbuild: add script and target to generate pacman package

From: Nathan Chancellor
Date: Wed Jul 17 2024 - 09:45:14 EST


On Wed, Jul 17, 2024 at 05:34:09PM +0900, Masahiro Yamada wrote:
> On Wed, Jul 17, 2024 at 10:15 AM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
> > On Tue, Jul 16, 2024 at 07:52:14PM +0200, Thomas Weißschuh wrote:
...
> > > + if [ -d "${srctree}/arch/${SRCARCH}/boot/dts" ]; then
> >
> > Does this reference to srctree...
>
>
> 'srctree' is exported by the top Makefile.

Aha, I did not realize that srctree was exported, ignore me then :)

> This is based on the assumption that we always run
> 'make pacman-pkg', and we never do 'makepkg' directly.
>
>
> Do you mean PKGBUILD should be self-contained
> so that 'makepkg' works from the command line?

No, just my misunderstanding. I think it is reasonable to tie the
PKGBUILD to the kernel tree in this manner.

Cheers,
Nathan