aboutsummaryrefslogtreecommitdiffstats
path: root/config/tgz.am
diff options
context:
space:
mode:
authorEtienne Dechamps <[email protected]>2012-07-17 11:23:09 +0200
committerBrian Behlendorf <[email protected]>2012-07-26 13:39:37 -0700
commitb2c5198b1996c9053c1bae38755f76125c8cb169 (patch)
tree3bda567a01452cdf8cd810e990516cede8acf955 /config/tgz.am
parent739a1a82e0f366923e8d9bc8f9ad4b1c680a780b (diff)
Don't build packages that haven't been selected.
Currently, when configure --with-config is used, selective compilation is only effective for the simple "make" case. Package builders (e.g. make rpm) still build everything (utils and modules). This patch fixes that. Signed-off-by: Prakash Surya <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #851
Diffstat (limited to 'config/tgz.am')
-rw-r--r--config/tgz.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/tgz.am b/config/tgz.am
index 1c13858ff..1ed09ca40 100644
--- a/config/tgz.am
+++ b/config/tgz.am
@@ -8,6 +8,7 @@ tgz-local:
fi)
tgz-modules: tgz-local rpm-modules
+if CONFIG_KERNEL
name=${PACKAGE}-modules; \
version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \
release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \
@@ -16,8 +17,10 @@ tgz-modules: tgz-local rpm-modules
pkg2=$${name}-devel-$${version}_$${release}.$${arch}.rpm; \
fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2; \
$(RM) $$pkg1 $$pkg2
+endif
tgz-utils: tgz-local rpm-utils
+if CONFIG_USER
name=${PACKAGE}; \
version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \
arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
@@ -26,5 +29,6 @@ tgz-utils: tgz-local rpm-utils
pkg3=$${name}-test-$${version}.$${arch}.rpm; \
fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2 $$pkg3; \
$(RM) $$pkg1 $$pkg2 $$pkg3
+endif
tgz: tgz-modules tgz-utils