Skip to contentSkip to conversation

arm64: Add dtb files to archclean rule

PATCH New Jungseok Lee 2 participants 3 messages Jan 17, 2015 – Jan 19, 2015 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: Add dtb files to archclean rule

As dts files have been reorganised under vendor subdirs, dtb files cannot be removed with "make distclean" now. Thus, this patch adds dtb files to archclean rule.

Cc Robert Richter <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
---
 arch/arm64/Makefile | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/Makefile +1 -0
index 1c43cec..0666888 100644
@@ -85,6 +85,7 @@ vdso_install:
 # We use MRPROPER_FILES and CLEAN_FILES now
 archclean:
 	$(Q)$(MAKE) $(clean)=$(boot)
+	$(Q)$(MAKE) $(clean)=$(boot)/dts
 
 define archhelp
   echo  '* Image.gz      - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)'
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 arm64: Add dtb files to archclean rule

Quoted 17 lines · Jungseok Lee

As dts files have been reorganised under vendor subdirs, dtb files cannot be removed with "make distclean" now. Thus, this patch adds dtb files to archclean rule.

Cc Robert Richter <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
---
 arch/arm64/Makefile | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/Makefile +0 -0
index 1c43cec..0666888 100644

arch/arm64/Makefile vdso_install: · line 88

Quoted 4 lines
arch/arm64/Makefile +1 -0
@@ -85,6 +85,7 @@ vdso_install:
 # We use MRPROPER_FILES and CLEAN_FILES now
 archclean:
 	$(Q)$(MAKE) $(clean)=$(boot)
+	$(Q)$(MAKE) $(clean)=$(boot)/dts

Looks sensible. I think we can also remove the always/clean-files entries from arch/arm64/boot/dts/Makefile.

Will

#2 lore raw

PATCH 1/1 arm64: Add dtb files to archclean rule

Quoted 13 lines · Will Deacon
Quoted 12 lines · Jungseok Lee

As dts files have been reorganised under vendor subdirs, dtb files cannot be removed with "make distclean" now. Thus, this patch adds dtb files to archclean rule.

Cc Robert Richter <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>

---
arch/arm64/Makefile | 1 +

1 file changed, 1 insertion(+)
Quoted 12 lines

arch/arm64/Makefile vdso_install: · line 88

Quoted 9 lines
arch/arm64/Makefile +0 -0
index 1c43cec..0666888 100644
@@ -85,6 +85,7 @@ vdso_install:
 # We use MRPROPER_FILES and CLEAN_FILES now

archclean:

	$(Q)$(MAKE) $(clean)=$(boot)
arch/arm64/Makefile +1 -0
+	$(Q)$(MAKE) $(clean)=$(boot)/dts

Looks sensible. I think we can also remove the always/clean-files entries from arch/arm64/boot/dts/Makefile.

I agree with the point.
I will do respin with that change.

Best Regards
Jungseok Lee