提交 c5bf2efb 编写于 作者: M Masahiro Yamada

kbuild: deb-pkg: fix binary-arch and clean in debian/rules

The clean target needs ARCH=${ARCH} to clean up the tree for the correct
architecture. 'make (bin)deb-pkg' skips cleaning, but the preclean hook
may be executed if dpkg-buildpackage is directly used.

The binary-arch target does not need KERNELRELEASE because it is not
updated during the installation. KBUILD_BUILD_VERSION is not needed
either because binary-arch does not build vmlinux.
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
上级 1fc90958
...@@ -251,12 +251,10 @@ build: build-arch ...@@ -251,12 +251,10 @@ build: build-arch
binary-indep: binary-indep:
binary-arch: build-arch binary-arch: build-arch
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \ \$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} intdeb-pkg
KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg
clean: clean:
rm -rf debian/files debian/linux-* rm -rf debian/files debian/linux-*
\$(MAKE) clean \$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} clean
binary: binary-arch binary: binary-arch
EOF EOF
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册