mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
kbuild: pkg: clean up package files/dirs from the top Makefile
I am not a big fan of the $(objtree)/ hack for clean-files/clean-dirs. These are created in the top of $(objtree), so let's clean them up from the top Makefile. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
cdfca82157
commit
46a63d4b0d
3 changed files with 5 additions and 12 deletions
|
|
@ -36,4 +36,4 @@ subdir-$(CONFIG_MODVERSIONS) += genksyms
|
|||
subdir-$(CONFIG_SECURITY_SELINUX) += selinux
|
||||
|
||||
# Let clean descend into subdirs
|
||||
subdir- += basic dtc gdb kconfig mod package
|
||||
subdir- += basic dtc gdb kconfig mod
|
||||
|
|
|
|||
|
|
@ -65,8 +65,6 @@ binrpm-pkg: FORCE
|
|||
+rpmbuild $(RPMOPTS) --define "_builddir $(objtree)" --target \
|
||||
$(UTS_MACHINE) -bb $(objtree)/binkernel.spec
|
||||
|
||||
clean-files += $(objtree)/*.spec
|
||||
|
||||
deb-pkg: FORCE
|
||||
$(MAKE) clean
|
||||
$(CONFIG_SHELL) $(srctree)/scripts/package/mkdebian
|
||||
|
|
@ -82,8 +80,6 @@ bindeb-pkg: FORCE
|
|||
intdeb-pkg: FORCE
|
||||
+$(CONFIG_SHELL) $(srctree)/scripts/package/builddeb
|
||||
|
||||
clean-dirs += $(objtree)/debian/
|
||||
|
||||
# snap-pkg
|
||||
# ---------------------------------------------------------------------------
|
||||
snap-pkg: FORCE
|
||||
|
|
@ -98,17 +94,12 @@ snap-pkg: FORCE
|
|||
cd $(objtree)/snap && \
|
||||
snapcraft --target-arch=$(UTS_MACHINE)
|
||||
|
||||
clean-dirs += $(objtree)/snap/
|
||||
|
||||
# tarball targets
|
||||
# ---------------------------------------------------------------------------
|
||||
tar%pkg: FORCE
|
||||
$(MAKE) -f $(srctree)/Makefile
|
||||
+$(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@
|
||||
|
||||
clean-dirs += $(objtree)/tar-install/
|
||||
|
||||
|
||||
# perf-pkg - generate a source tarball with perf source
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue