Skip to content

Fix pkg-kconfig packages with ccache enabled

Thomas Petazzoni buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3package/pkg-kconfig: pass HOSTCC during kconfig stepspackage/pkg-kconfig.mk+7 -33 replies
2/3boot/uboot: use HOSTCC_NOCCACHE as kconfig HOSTCCboot/uboot/uboot.mk+3 -25 replies
3/3linux: use HOSTCC_NOCCACHE as kconfig HOSTCClinux/linux.mk+10 -73 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchYann E. MORIN
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/3] Fix pkg-kconfig packages with ccache enabled

Hello,

This series addresses a problem that has been reported several times:
if you have BR2_CCACHE=y and run "make uboot-menuconfig" from a clean tree, it fails because U-Boot tries to build the kconfig code with ccache, but ccache has not been built yet.

To address this, we:

- Make sure to pass HOSTCC=$(HOSTCC_NOCCACHE) in the kconfig steps of kconfig packages. This has in fact no real effect, because linux and u-boot were overriding HOSTCC, and other packages were not passing HOSTCC, so plain "gcc" was used.

- Fix the U-Boot case by passing HOSTCC=$(HOSTCC_NOCCACHE)

- Make the Linux case consistent with other kconfig packages by also passing HOSTCC=$(HOSTCC_NOCCACHE)

Thanks,

Thomas

Thomas Petazzoni (3):
package/pkg-kconfig: pass HOSTCC during kconfig steps boot/uboot: use HOSTCC_NOCCACHE as kconfig HOSTCC
linux: use HOSTCC_NOCCACHE as kconfig HOSTCC

 boot/uboot/uboot.mk    |  5 +++--
 linux/linux.mk         | 17 ++++++++++-------
 package/pkg-kconfig.mk | 10 +++++++---
 3 files changed, 20 insertions(+), 12 deletions(-)
Signature · 1 line
2.20.1