From 3d6eeb6a9509d7d4455db3978f9b028a428256df Mon Sep 17 00:00:00 2001 From: Trammell hudson Date: Thu, 3 May 2018 16:47:09 -0400 Subject: [PATCH] force re-configuration when linux or coreboot config files change (#397) --- modules/coreboot | 3 +++ modules/linux | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/coreboot b/modules/coreboot index 15cdbc56..d785abbc 100644 --- a/modules/coreboot +++ b/modules/coreboot @@ -13,6 +13,9 @@ coreboot_hash := d68a83f8f687e8ea212b8c5bb501e24444b57c3f73896042d09628188c85136 # The builds are done in a per-target subdirectory CONFIG_COREBOOT_CONFIG ?= config/coreboot-$(BOARD).config +# Ensure that touching the config file will force a rebuild +$(build)/$(coreboot_dir)/.configured: $(CONFIG_COREBOOT_CONFIG) + EXTRA_FLAGS := -fdebug-prefix-map=$(pwd)=heads -gno-record-gcc-switches coreboot_configure := \ diff --git a/modules/linux b/modules/linux index 45424e31..3d91ed02 100644 --- a/modules/linux +++ b/modules/linux @@ -20,8 +20,8 @@ linux-4.9.80_hash := 9e2e83ccc0afc3f23340ed5e58a35d8c6300a7c58aa98ca913848de4122 linux_hash := $(linux-$(linux_version)_hash) -# temp file in the build dir to show that we have run make oldconfig -linux_config_file := $(notdir $(basename $(linux_kconfig))/.config-$(BOARD)) +# Ensure that touching the config file will force a reconfig/rebuild +$(build)/$(linux_dir)/.configured: $(linux_kconfig) linux_configure := \ $(MAKE) -C .. \