Even better, if you apply this then adjust_drbd_config_h.sh will run at build time with no need to override m-a rules. This should also work with DKMS etc.
Ben.
--- drbd8-8.0.14/debian/drbd8-source.drbd-Makefile
+++ drbd8-8.0.14/debian/drbd8-source.drbd-Makefile
@@ -12,0 +12,9 @@
drbd-objs += connector.o cn_queue.o
endif
+# Automatically update config
+$(addprefix $(obj)/,$(drbd-objs)): $(obj)/linux/drbd_config.h
+$(obj)/linux/drbd_config.h: FORCE
+ $(Q)if [ "$(obj)" != "$(src)" ]; then \
+ mkdir -p $(@D) && \
+ cp $(src)/linux/drbd_config.h $@; \
+ fi
+ cd $(obj) && KDIR=$(objtree) $(src)/../scripts/adjust_drbd_config_h.sh
+.PHONY: FORCE
--- END ---
--
Ben Hutchings
Humour is the best antidote to reality.
signature.asc
Description: This is a digitally signed message part

