Commit e1c04ff9 authored by Manoj Srivastava's avatar Manoj Srivastava

Move the generate debian/buildinfo file into the debian/stamp/build dir

This also simplifies cleanup.
Signed-off-by: Manoj Srivastava's avatarManoj Srivastava <srivasta@debian.org>
parent c1b39da5
......@@ -32,8 +32,7 @@
FILES_TO_CLEAN = modules/modversions.h modules/ksyms.ver debian/files \
scripts/cramfs/cramfsck scripts/cramfs/mkcramfs \
debian/buildinfo
scripts/cramfs/cramfsck scripts/cramfs/mkcramfs
STAMPS_TO_CLEAN =
DIRS_TO_CLEAN =
......
......@@ -332,15 +332,15 @@ else
endif
endif
COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |\
awk '$$1 ~ /[hi]i/ { printf("%s-%s\n", $$2, $$3) }'> debian/buildinfo
@echo this was built on a machine with the kernel: >> debian/buildinfo
uname -a >> debian/buildinfo
echo using the compiler: >> debian/buildinfo
awk '$$1 ~ /[hi]i/ { printf("%s-%s\n", $$2, $$3) }'> debian/stamp/build/info
@echo this was built on a machine with the kernel: >> debian/stamp/build/info
uname -a >> debian/stamp/build/info
echo using the compiler: >> debian/stamp/build/info
grep LINUX_COMPILER include/linux/compile.h | \
sed -e 's/.*LINUX_COMPILER "//' -e 's/"$$//' >> debian/buildinfo
sed -e 's/.*LINUX_COMPILER "//' -e 's/"$$//' >> debian/stamp/build/info
ifneq ($(strip $(shell test -f version.Debian && cat version.Debian)),)
echo kernel source package used: >> debian/buildinfo
echo $(INT_STEM)-source-$(shell cat version.Debian) >> debian/buildinfo
echo kernel source package used: >> debian/stamp/build/info
echo $(INT_STEM)-source-$(shell cat version.Debian) >> debian/stamp/build/info
endif
echo done > $@
......
......@@ -73,7 +73,8 @@ endif
echo "This was produced by kernel-package version $(kpkg_version)." > \
$(DOCDIR)/Buildinfo
chmod 0644 $(DOCDIR)/Buildinfo
$(install_file) debian/buildinfo $(DOCDIR)/buildinfo
test ! -f debian/stamp/build/info || \
$(install_file) debian/stamp/build/info $(DOCDIR)/buildinfo
if test -f README.Debian ; then \
$(install_file) README.Debian $(DOCDIR)/README.Debian.1st;\
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment