- # Doesn't seem possible to only build modules...
- ./configure --with-linux=$(KSRC) \
- --disable-server \
- --disable-quilt \
- --disable-dependency-tracking \
- --disable-doc \
- --disable-utils \
- --disable-liblustre \
- --disable-snmp \
- --disable-zerocopy \
- --disable-tests \
- --enable-quota
+ # Determine flags that are different between server/client module builds
+ # Note: It doesn't seem possible to *only* build modules.
+ echo "Enabled Build Profiles: $${DEB_BUILD_PROFILES}"
+ if echo "$${DEB_BUILD_PROFILES}" | grep -q "server"; then \
+ export EXTRAFLAGS="--enable-server"; \
+ else \
+ export EXTRAFLAGS="--disable-server"; \
+ fi; \
+ if echo "$${DEB_BUILD_PROFILES}" | grep -q "zfs"; then \
+ export EXTRAFLAGS="$${EXTRAFLAGS} --with-zfs=$${ZFS_SRC} --with-spl=$${SPL_SRC}"; \
+ else \
+ export EXTRAFLAGS="$${EXTRAFLAGS} --without-zfs" ; \
+ fi; \
+ if echo "$${DEB_BUILD_PROFILES}" | grep -q "ldiskfs"; then \
+ export EXTRAFLAGS="$${EXTRAFLAGS} \
+ --enable-ldiskfs --enable-quilt"; \
+ else \
+ export EXTRAFLAGS="$${EXTRAFLAGS} --disable-ldiskfs"; \
+ fi; \
+ echo "Final value of EXTRAFLAGS: $${EXTRAFLAGS}"; \
+ ./configure --with-linux=$(KSRC_TREE) \
+ --with-linux-obj=$(KSRC) \
+ --disable-dependency-tracking \
+ --disable-doc \
+ --disable-iokit \
+ --disable-snmp \
+ --disable-tests \
+ --disable-utils \
+ --enable-quota \
+ --with-kmp-moddir=updates \
+ $${EXTRAFLAGS} \
+ $(IB_OPTIONS)
+