public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH 02/10] kconfig: Add scripts/Kconfig.include from v4.19
Date: Mon, 18 May 2020 12:55:03 -0400	[thread overview]
Message-ID: <20200518165503.GE14425@bill-the-cat> (raw)
In-Reply-To: <20200518152320.GC14425@bill-the-cat>

On Mon, May 18, 2020 at 11:23:20AM -0400, Tom Rini wrote:
> On Mon, May 18, 2020 at 11:55:11AM +0900, Masahiro Yamada wrote:
> > Tom,
> > 
> > 
> > 
> > On Thu, May 14, 2020 at 9:32 PM Tom Rini <trini@konsulko.com> wrote:
> > >
> > > As part of re-syncing our Kconfig logic up to v4.19, we had missed
> > > adding this new file that includes helper macros.  To quote the upstream
> > > commit e1cfdc0e72fc ("kconfig: add basic helper macros to scripts/Kconfig.include"):
> > >
> > > Kconfig got text processing tools like we see in Make.  Add Kconfig
> > > helper macros to scripts/Kconfig.include like we collect Makefile
> > > macros in scripts/Kbuild.include.
> > >
> > > Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
> > > Signed-off-by: Tom Rini <trini@konsulko.com>
> > 
> > 
> > If you want to align with Linux kernel, please go ahead.
> > 
> > 
> > Some notes.
> > 
> > 
> > Previously, CROSS_COMPILE was not required at the Kconfig stage.
> > 
> > So, people was able to do this:
> > 
> >       make qemu_arm64_defconfig
> >       make CROSS_COMPILE=aarch64-linux-gnu-
> > 
> > 
> > Going forward, Kconfig requires CROSS_COMPILE set correctly.
> > 
> >       make CROSS_COMPILE=aarch64-linux-gnu-  qemu_arm64_defconfig
> >       make CROSS_COMPILE=aarch64-linux-gnu-
> > 
> > Maybe, passing CROSS_COMPILE as an environment variable is handier
> > 
> >       export CROSS_COMPILE=aarch64-linux-gnu-
> >       make qemu_arm64_defconfig
> >       make
> > 
> > 
> > 
> > 
> > 
> > When you upgrade the compiler, in theory,
> > you must re-run Kconfig because the .config now
> > contains the compiler information.
> > 
> > If you want to do this automatically,
> > you can import CC_VERSION_TEXT.
> > 
> > Specifically, the following two commits:
> > 21c54b774744719c386fbdc829b0e7759edb8ece
> > 315bab4e972d9795529b764718d475492db40c0f
> 
> OK, so we really want to grab those changes as well at the time, thanks!

Trying this out and trying to follow the code a bit, the first commit is
helpful for us in that it's good to have the compiler noted in the file.
But even without it, with this series applied we see:
$ make O=/tmp/rpi3_32b HOSTCC=clang-10 CROSS_COMPILE=~/.buildman-toolchains/gcc-9.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-  CC="clang-10 -target arm-linux-gnueabi" rpi_3_32b_config
make[1]: Entering directory '/tmp/rpi3_32b'
  HOSTCC  scripts/basic/fixdep
  GEN     ./Makefile
  HOSTCC  scripts/kconfig/conf.o
  YACC    scripts/kconfig/zconf.tab.c
  LEX     scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory '/tmp/rpi3_32b'
$ make O=/tmp/rpi3_32b HOSTCC=clang-10 CROSS_COMPILE=~/.buildman-toolchains/gcc-9.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-
make[1]: Entering directory '/tmp/rpi3_32b'
  GEN     ./Makefile
scripts/kconfig/conf  --syncconfig Kconfig
  UPD     include/config.h
  CFG     u-boot.cfg
...


So we're getting syncconfig run and CC-related changes are caught.

For the second commit, since ARCH comes from CONFIG_SYS_ARCH and not the
make line/environment, we don't have that problem to start with?
Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200518/9108782d/attachment.sig>

  reply	other threads:[~2020-05-18 16:55 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-14 12:30 [PATCH 01/10] kconfiglib: Update to the 14.1.0 release Tom Rini
2020-05-14 12:30 ` [PATCH 02/10] kconfig: Add scripts/Kconfig.include from v4.19 Tom Rini
2020-05-18  2:55   ` Masahiro Yamada
2020-05-18 15:23     ` Tom Rini
2020-05-18 16:55       ` Tom Rini [this message]
2020-05-19  1:40         ` Masahiro Yamada
2020-05-19 14:18           ` Tom Rini
2020-07-05 22:08   ` Tom Rini
2020-05-14 12:30 ` [PATCH 03/10] Don't start ad-hoc games with -Wno-maybe-initialized Tom Rini
2020-07-05 22:08   ` Tom Rini
2020-05-14 12:30 ` [PATCH 04/10] tegra: Convert from ACCESS_ONCE to READ/WRITE_ONCE Tom Rini
2020-07-05 22:08   ` Tom Rini
2020-05-14 12:30 ` [PATCH 05/10] x86: " Tom Rini
2020-05-20  3:07   ` Simon Glass
2020-07-05 22:08   ` Tom Rini
2020-05-14 12:30 ` [PATCH 06/10] socfpga: Mark socfpga_fpga_add() as static inline in the non-FPGA case Tom Rini
2020-05-14 12:52   ` Marek Vasut
2020-07-05 22:08   ` Tom Rini
2020-05-14 12:30 ` [PATCH 07/10] compiler*.h: sync include/linux/compiler*.h with Linux 5.7-rc5 Tom Rini
2020-07-05 22:08   ` Tom Rini
2020-07-20  8:03   ` Jagan Teki
2020-07-20 12:53     ` Tom Rini
2020-05-14 12:30 ` [PATCH 08/10] compiler_types.h: Re-introduce CONFIG_OPTIMIZE_INLINING for U-Boot Tom Rini
2020-07-05 22:08   ` Tom Rini
2020-05-14 12:30 ` [PATCH 09/10] compilers: Introduce options for forcing inlining on SPL/TPL Tom Rini
2020-07-05 22:08   ` Tom Rini
2020-05-14 12:30 ` [PATCH 10/10] socfpga: Enable optimized inlining on stratix10 Tom Rini
2020-05-14 12:52   ` Marek Vasut
2020-07-05 22:09   ` Tom Rini
2020-07-05 22:08 ` [PATCH 01/10] kconfiglib: Update to the 14.1.0 release Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200518165503.GE14425@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox