]> git.plutz.net Git - blast/commitdiff
omit default kernel package if kernel is configured explicitly
authorPaul Hänsch <paul@plutz.net>
Fri, 18 Dec 2020 19:07:15 +0000 (20:07 +0100)
committerPaul Hänsch <paul@plutz.net>
Fri, 18 Dec 2020 19:07:15 +0000 (20:07 +0100)
Makefile

index cd430aad1648283c4c31e8d2ceb5d3370bef7443..84c9221595f947f9196b53951fb96eed5193944a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -180,7 +180,8 @@ ifdef modules
   include $(addsuffix .mk, $(addprefix modules/, $(subst ${comma_},${space_},${modules})))
 endif
 
   include $(addsuffix .mk, $(addprefix modules/, $(subst ${comma_},${space_},${modules})))
 endif
 
-ifeq "${ARCH}" "amd64"
+ifeq "$(findstring linux-image, ${PACKAGES})" "linux-image"
+else ifeq "${ARCH}" "amd64"
   PACKAGES += linux-image-amd64
 else ifeq "${ARCH}" "i386"
   PACKAGES += linux-image-686
   PACKAGES += linux-image-amd64
 else ifeq "${ARCH}" "i386"
   PACKAGES += linux-image-686