All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [PATCH v2 09/49] binman: Adjust pylibfdt for incremental build
Date: Sat, 13 Jun 2020 20:56:48 -0600	[thread overview]
Message-ID: <20200614025728.41065-4-sjg@chromium.org> (raw)
In-Reply-To: <20200614025728.41065-1-sjg@chromium.org>

If the pylibfdt shared-object file is detected, then Python assumes that
the libfdt.py file exists also.

Sometimes when an incremental build aborts, the shared-object file is
built but the libfdt.py is not. The only way out at this point is to use
'make mkproper', or similar.

Fix this by removing the .so file before it is built. This seems to make
Python rebuild everything.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 scripts/dtc/pylibfdt/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/dtc/pylibfdt/Makefile b/scripts/dtc/pylibfdt/Makefile
index 42342c75bb..80b6ad2ae7 100644
--- a/scripts/dtc/pylibfdt/Makefile
+++ b/scripts/dtc/pylibfdt/Makefile
@@ -24,6 +24,9 @@ quiet_cmd_pymod = PYMOD   $@
 		$(PYTHON3) $< --quiet build_ext --inplace
 
 $(obj)/_libfdt.so: $(src)/setup.py $(PYLIBFDT_srcs) FORCE
+	@# Remove the library since otherwise Python doesn't seem to regenerate
+	@# the libfdt.py file if it is missing.
+	rm -f $(obj)/_libfdt*.so
 	$(call if_changed,pymod)
 
 always += _libfdt.so
-- 
2.27.0.290.gba653c62da-goog

  parent reply	other threads:[~2020-06-14  2:56 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-14  2:56 [PATCH v2 00/49] rockchip: x86: Support building ROM files automatically with binman Simon Glass
2020-06-14  2:56 ` [PATCH v2 01/49] dm: core Fix long line in device_bind_common() Simon Glass
2020-06-29  6:21   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 02/49] .gitignore: Ignore Python 3 cache directories Simon Glass
2020-06-29  6:21   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 03/49] binman: Output errors to stderr Simon Glass
2020-06-29  6:21   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 04/49] binman: cbfs: Fix IFWI typo Simon Glass
2020-06-29  6:21   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 05/49] binman: Correct the search patch for pylibfdt Simon Glass
2020-06-29  6:21   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 06/49] binman: Specify the toolpath when running test coverage Simon Glass
2020-06-14  2:56 ` [PATCH v2 07/49] binman: Add support for calling mkimage Simon Glass
2020-06-14  2:56 ` [PATCH v2 08/49] binman: Fix a few typos in the entry docs Simon Glass
2020-06-29  6:21   ` Bin Meng
2020-06-14  2:56 ` Simon Glass [this message]
2020-06-29  6:21   ` [PATCH v2 09/49] binman: Adjust pylibfdt for incremental build Bin Meng
2020-06-14  2:56 ` [PATCH v2 10/49] binman: Re-enable concurrent tests Simon Glass
2020-06-14  2:56 ` [PATCH v2 11/49] binman: Use super() instead of specifying parent type Simon Glass
2020-06-29  6:54   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 12/49] binman: Add an etype for external binary blobs Simon Glass
2020-06-29  6:54   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 13/49] binman: Convert existing binary blobs to blob_ext Simon Glass
2020-06-29  6:54   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 14/49] binman: Allow external binaries to be missing Simon Glass
2020-06-29  6:54   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 15/49] patman: Update errors and warnings to use stderr Simon Glass
2020-06-29  6:54   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 16/49] binman: Detect when valid images are not produced Simon Glass
2020-06-29  6:54   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 17/49] binman: Allow missing Intel blobs Simon Glass
2020-06-29  6:54   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 18/49] binman: Allow zero-length entries to overlap Simon Glass
2020-06-29  6:54   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 19/49] mkimage: Allow updating the FIT timestamp Simon Glass
2020-06-29  6:54   ` Bin Meng
2020-06-14  2:56 ` [PATCH v2 20/49] dtoc: Allow adding variable-sized data to a dtb Simon Glass
2020-06-14  2:57 ` [PATCH v2 21/49] binman: Add support for generating a FIT Simon Glass
2020-06-14  2:57 ` [PATCH v2 22/49] x86: rockchip: Change how selection of ROMs works Simon Glass
2020-06-29  7:30   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 23/49] rockchip: Allow Bob to use SPI boot Simon Glass
2020-06-14  2:57 ` [PATCH v2 24/49] Makefile: Allow building .rom files for non-x86 boards Simon Glass
2020-06-29  7:30   ` Bin Meng
2020-07-10  0:35     ` Simon Glass
2020-06-14  2:57 ` [PATCH v2 25/49] rockchip: jerry: Add serial support Simon Glass
2020-06-14  2:57 ` [PATCH v2 26/49] rockchip: bob: Support SPI-flash booting Simon Glass
2020-06-14  2:57 ` [PATCH v2 27/49] rockchip: Enable building a SPI ROM image on jerry Simon Glass
2020-06-14  2:57 ` [PATCH v2 28/49] rockchip: Enable building a SPI ROM image on bob Simon Glass
2020-06-14  2:57 ` [PATCH v2 29/49] tegra: Drop the unused non-binman code Simon Glass
2020-06-15 22:02   ` Stephen Warren
2020-06-16 13:44     ` Simon Glass
2020-06-17 22:32       ` Stephen Warren
2020-06-14  2:57 ` [PATCH v2 30/49] tegra: Don't enable binman on ARMv8 SoCs Simon Glass
2020-06-14  2:57 ` [PATCH v2 31/49] Makefile: Rename ALL-y to INPUTS-y Simon Glass
2020-06-29  7:44   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 32/49] powerpc: mpc85xx: Only enable binman when it is needed Simon Glass
2020-06-29  7:44   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 33/49] x86: Makefile: Drop explicit targets built by binman Simon Glass
2020-06-29  7:44   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 34/49] x86: Drop CONFIG_BUILD_ROM and repurpose BUILD_ROM Simon Glass
2020-06-29  7:44   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 35/49] sunxi: Makefile: Drop explicit targets built by binman Simon Glass
2020-06-29  7:44   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 36/49] tegra: " Simon Glass
2020-06-29  7:45   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 37/49] mediatek: " Simon Glass
2020-06-29  7:45   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 38/49] rockchip: " Simon Glass
2020-06-29  7:45   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 39/49] Makefile: Move CONFIG_TOOLS_DEBUG check to later Simon Glass
2020-06-29  7:45   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 40/49] Makefile: Fix a long line in cmd_mkfitimage Simon Glass
2020-06-29  7:45   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 41/49] Makefile: Allow CONFIG_SPL_FIT_GENERATOR to be empty Simon Glass
2020-06-14  2:57 ` [PATCH v2 42/49] Makefile: Warn against using CONFIG_SPL_FIT_GENERATOR Simon Glass
2020-06-29  8:01   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 43/49] rockchip: Convert evb-rk3288 over to use binman Simon Glass
2020-07-07 11:56   ` Kever Yang
2020-07-10  0:35     ` Simon Glass
2020-07-08  1:03   ` Kever Yang
2020-07-10  0:35     ` Simon Glass
2020-06-14  2:57 ` [PATCH v2 44/49] rockchip: Convert evb-rk3229 " Simon Glass
2020-06-29  8:01   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 45/49] rockchip: Drop the fit_spl_optee.sh script Simon Glass
2020-06-29  8:01   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 46/49] x86: Move the fdtmap away from the binary blobs Simon Glass
2020-06-29  8:01   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 47/49] x86: chromebook_link64: Correct the image layout Simon Glass
2020-06-29  8:01   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 48/49] x86: chromebook_panther: " Simon Glass
2020-06-29  8:01   ` Bin Meng
2020-06-14  2:57 ` [PATCH v2 49/49] x86: chromebook_samus_tpl: " Simon Glass
2020-06-29  8:01   ` Bin Meng

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=20200614025728.41065-4-sjg@chromium.org \
    --to=sjg@chromium.org \
    --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 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.