[PATCH 1/2] Use ?= instead to allow per-snap branches overwrite PACKAGE

Wen-chien Jesse Sung jesse.sung at canonical.com
Tue May 23 09:11:50 UTC 2017


Signed-off-by: Wen-chien Jesse Sung <jesse.sung at canonical.com>
---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 9a34217..ce6eea9 100644
--- a/Makefile
+++ b/Makefile
@@ -5,13 +5,13 @@ ENV := DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C
 MIRROR := ftpmaster.internal/ubuntu
 
 ifneq (,$(findstring amd64,$(DPKG_ARCH)))
-PACKAGE := linux-signed-generic
+PACKAGE ?= linux-signed-generic
 else ifneq (,$(findstring i386,$(DPKG_ARCH)))
-PACKAGE := linux-generic
+PACKAGE ?= linux-generic
 else ifneq (,$(findstring armhf,$(DPKG_ARCH)))
-PACKAGE := linux-image-raspi2 raspberrypi-wireless-firmware bluez-firmware
+PACKAGE ?= linux-image-raspi2 raspberrypi-wireless-firmware bluez-firmware
 else ifneq (,$(findstring arm64,$(DPKG_ARCH)))
-PACKAGE := linux-image-snapdragon linux-firmware-snapdragon
+PACKAGE ?= linux-image-snapdragon linux-firmware-snapdragon
 endif
 
 install : KVERS = $(shell ls -1 chroot/boot/vmlinuz-*| tail -1 |sed 's/^.*vmlinuz-//;s/.efi.signed$$//')
-- 
2.7.4





More information about the kernel-team mailing list