aboutsummaryrefslogtreecommitdiffstats
path: root/config/tgz.am
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-07-13 19:20:27 -0400
committerBrian Behlendorf <[email protected]>2020-07-14 17:32:21 -0700
commitbdb518c13abb9eca8d6f8f1d9e2096dc5163a9e7 (patch)
tree52c23b500988b858afd31dd490f2b6ac74465d55 /config/tgz.am
parente6c093dd94e7e6f221194e96095c0133662e3500 (diff)
Make RPM_DEFINE_KMOD conditional on CONFIG_KERNEL
The configure variables won't be defined if CONFIG_KERNEL is disabled and defining empty macros causes errors. The spec files do provide some defaults if the macros are undefined. Remove config conditionals in the tgz Makefile. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Arvind Sankar <[email protected]> Closes #10564
Diffstat (limited to 'config/tgz.am')
-rw-r--r--config/tgz.am4
1 files changed, 0 insertions, 4 deletions
diff --git a/config/tgz.am b/config/tgz.am
index 4a8491401..2499ba423 100644
--- a/config/tgz.am
+++ b/config/tgz.am
@@ -10,17 +10,14 @@ tgz-local:
fi)
tgz-kmod: tgz-local rpm-kmod
-if CONFIG_KERNEL
name=${PACKAGE}; \
version=${VERSION}-${RELEASE}; \
arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
pkg1=kmod-$${name}*$${version}.$${arch}.rpm; \
fakeroot $(ALIEN) --scripts --to-tgz $$pkg1; \
$(RM) $$pkg1
-endif
tgz-utils: tgz-local rpm-utils
-if CONFIG_USER
name=${PACKAGE}; \
version=${VERSION}-${RELEASE}; \
arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
@@ -29,6 +26,5 @@ if CONFIG_USER
pkg3=$${name}-test-$${version}.$${arch}.rpm; \
fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2 $$pkg3; \
$(RM) $$pkg1 $$pkg2 $$pkg3
-endif
tgz: tgz-kmod tgz-utils