[DRBD-cvs] drbd by lars; forward-ported new drbd.spec.in concept ...
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Sat, 3 Apr 2004 13:16:13 +0200 (CEST)
DRBD CVS committal
Author : lars
Module : drbd
Dir : drbd/drbd
Modified Files:
Tag: rel-0_7-branch
Makefile
Log Message:
forward-ported new drbd.spec.in concept to 0.7
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/Makefile,v
retrieving revision 1.14.2.23
retrieving revision 1.14.2.24
diff -u -3 -r1.14.2.23 -r1.14.2.24
--- Makefile 1 Apr 2004 06:47:38 -0000 1.14.2.23
+++ Makefile 3 Apr 2004 11:16:07 -0000 1.14.2.24
@@ -112,6 +112,18 @@
@rm -f .kernelrelease*
$(MAKE) -C $(KDIR) SUBDIRS=$(DRBDSRC) $(ARCH_UM) modules
@mv .kernelrelease.new .kernelrelease
+ @echo -n "Memorizing module configuration ... "
+ @{ echo -e "#\n# drbd.o was compiled with" ; \
+ echo "# `gcc -v 2>&1 | tail -1`" ; \
+ echo "# against this kernelrelease:" ; \
+ sed 's/^/# /' .kernelrelease ; \
+ echo "# kernel .config from" ; \
+ echo -n "# $(KDIR)/.config" ; \
+ test -L "$(KDIR)" && echo " alias" && \
+ echo "# $$(readlink $(KDIR))/.config" || echo "" ; \
+ echo -e "# follows\n#\n" ; \
+ cat $(KDIR)/.config ; } | gzip > .kernel.config.gz
+ @echo "done."
ifneq ($(KDIR_Makefile_PATCHLEVEL),6)
# obsolete in 2.6 ...
@@ -119,7 +131,6 @@
@echo "tying to make dep ..."
@$(MAKE) -s -C $(KDIR) SUBDIRS=$(DRBDSRC) $(ARCH_UM) dep || \
echo "I'll ignore this error, but this can cause inconsistencies!"
- @echo "done."
kbuild: dep
endif