From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Subject: [PATCH 0/6] Makefile: Tidy up of-platdata file generation rules Date: Wed, 24 Mar 2021 20:07:08 +1300 Message-ID: <20210324070714.4027879-1-sjg@chromium.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=C2YkCXC+cLh2/lD8WK+Ykt6BD9r51GCK7qrE+rZbRw8=; b=CmQE48PzH058AMlEB2Hq7bGuuUg1ZOrK52iUJXGN3CMbu/34pBM8cxZGMKREcCj/x9 ozQJIdbA1Q4gcACAEDLmqDTe7FRaizO2FLQUlGB3XTSvuOyQtC78HzwcjdS/neXql3eq ql/s0Aru/j41aHOWxgsA/nKVQnHsCcaiqZ9Kw= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Content-Type: text/plain; charset="us-ascii" To: U-Boot Mailing List Cc: Tom Rini , Masahiro Yamada , Simon Glass , Andre Przywara , Bin Meng , Dalon Westergreen , Devicetree Compiler , Jan Kiszka , Masahiro Yamada , Walter Lozano The recent of-platdata implementation has caused an occasional error in CI, possibly due to the transition between !OF_PLATDATA_INST and OF_PLATDATA_INST. The problems seems to be due to a generated file (C or object file) not being regenerated when the setting changes. This series take two steps aimed at correct this problem. Firstly it makes the set of files generated (in each case) mutually exclusive, except for the header files which remain common. This means that the build will fail if new files are not generated when the setting changes. Secondly it removes the old generated files before building new ones, since that could trip things up if the flag changes back again in a subsequent build. In addition, dtoc is currently running on every of-platadata build, even if nothing has changed. Also pylibfdt is always built due to a change in file naming with Python 3. Both of these problems are fixed. Simon Glass (6): dtc: Tidy up pylibfdt build rule Makefile: Avoid running dtoc every time Makefile: Depend only on required of-platdata files dtoc: Only generate the required files Makefile: Use a variable for generated of-platdata headers Makefile: Remove old of-platdata files before regenerating scripts/Makefile.spl | 36 +++++++++++++++++++++++------------ scripts/dtc/pylibfdt/Makefile | 8 ++++++-- tools/dtoc/dtb_platdata.py | 23 ++++++++++++++++++---- tools/dtoc/test_dtoc.py | 2 +- 4 files changed, 50 insertions(+), 19 deletions(-) -- 2.31.0.291.g576ba9dcdaf-goog