Skip to contentSkip to conversation

Makefile: clean *dtb_HS

PATCH Superseded sunil.m at techveda.org 3 participants 5 messages Aug 16, 2019 – Aug 21, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: clean *dtb_HS

From: Suniel Mahesh <[email protected]>

All TI HS platforms generate HS images/binaries along with the normal images. These *dtb_HS are generated in dts dir and there is no rule for cleanup. Added entry for cleanup in clean and distclean targets.

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
index 3b0864a..c740fde 100644
@@ -1840,7 +1840,7 @@ clean: $(clean-dirs)
 		-o -name '*.symtypes' -o -name 'modules.order' \
 		-o -name modules.builtin -o -name '.tmp_*.o.*' \
 		-o -name 'dsdt.aml' -o -name 'dsdt.asl.tmp' -o -name 'dsdt.c' \
-		-o -name '*.efi' -o -name '*.gcno' -o -name '*.so' \) \
+		-o -name '*.efi' -o -name '*.gcno' -o -name '*.so' -o -name '*_HS' \) \
 		-type f -print | xargs rm -f \
 		bl31.c bl31.elf bl31_*.bin image.map
 
@@ -1868,7 +1868,7 @@ distclean: mrproper
 		\( -name '*.orig' -o -name '*.rej' -o -name '*~' \
 		-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
 		-o -name '.*.rej' -o -name '*%' -o -name 'core' \
-		-o -name '*.pyc' \) \
+		-o -name '*.pyc' -o -name '*_HS' \) \
 		-type f -print | xargs rm -f
 	@rm -f boards.cfg CHANGELOG
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 Makefile: clean *dtb_HS

Quoted 8 lines · sunil.m at techveda.org

From: Suniel Mahesh <[email protected]>

All TI HS platforms generate HS images/binaries along with the normal images. These *dtb_HS are generated in dts dir and there is no rule for cleanup. Added entry for cleanup in clean and distclean targets.

Instead can you do this in arch/arm/dts/Makefile

arch/arm/dts/Makefile +1 -1
index 484e21e678..7492a28c1b 100644
@@ -586,4 +586,4 @@ PHONY += dtbs
 dtbs: $(addprefix $(obj)/, $(dtb-y))
 	@:
 
-clean-files := *.dtb *.dtbo
+clean-files := *.dtb *.dtbo *._HS

Thanks and regards,
Lokesh

#2 lore raw

PATCH v2 1/1 arm: dts: Makefile: clean *dtb_HS

From: Suniel Mahesh <[email protected]>

TI HS platforms generate *dtb_HS binary blobs and there is no rule for cleanup. Added entry for cleanup in clean-files target.

---
Changes for v2:

- changed description to fit the change done.
- As suggested by Lokesh Vutla, moved cleaning process to dts/Makefile

---
 arch/arm/dts/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/Makefile +1 -1
index e021888..5f4e05d 100644
@@ -806,4 +806,4 @@ PHONY += dtbs
 dtbs: $(addprefix $(obj)/, $(dtb-y))
 	@:
 
-clean-files := *.dtb
+clean-files := *.dtb *_HS
Signature · 1 line
2.7.4
#3 lore raw

PATCH v2 1/1 arm: dts: Makefile: clean *dtb_HS

Quoted 6 lines · sunil.m at techveda.org

From: Suniel Mahesh <[email protected]>

TI HS platforms generate *dtb_HS binary blobs and there is no rule for cleanup. Added entry for cleanup in clean-files target.

Thanks and regards,
Lokesh

Quoted 21 lines

---
Changes for v2:

- changed description to fit the change done.
- As suggested by Lokesh Vutla, moved cleaning process to dts/Makefile

---
 arch/arm/dts/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/Makefile +1 -1
index e021888..5f4e05d 100644
@@ -806,4 +806,4 @@ PHONY += dtbs
 dtbs: $(addprefix $(obj)/, $(dtb-y))
 	@:
 
-clean-files := *.dtb
+clean-files := *.dtb *_HS
#4 lore raw

PATCH v2 1/1 arm: dts: Makefile: clean *dtb_HS

In reply to sunil.m at techveda.org
Quoted 7 lines · sunil.m at techveda.org

From: Suniel Mahesh <[email protected]>

TI HS platforms generate *dtb_HS binary blobs and there is no rule for cleanup. Added entry for cleanup in clean-files target.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190821/54166330/attachment.sig>