From 328effff025f4c4d56215af73129f859281ba467 Mon Sep 17 00:00:00 2001 From: Miroslav Ondra Date: Tue, 13 Aug 2019 04:24:38 +0200 Subject: [PATCH] fix debian/rules to take only one kernel-headers --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index b9979fb..f7d3718 100755 --- a/debian/rules +++ b/debian/rules @@ -19,7 +19,7 @@ MOD_VERSION=$(shell dpkg-parsechangelog |grep ^Version:|cut -d ' ' -f 2) ifeq ($(shell dpkg-architecture -q DEB_HOST_ARCH),armhf) ifeq ($(shell dpkg-architecture -q DEB_BUILD_ARCH),armhf) RPI_FIRMWARE_VER = $(shell dpkg-query -f='$${Version}' -W raspberrypi-kernel-headers) -LINUX_DIR_PATH = $(shell dpkg -L raspberrypi-kernel-headers | sed -n '/^\/lib\/modules\/.*-v7.*\/build$$/p') +LINUX_DIR_PATH = $(shell dpkg -L raspberrypi-kernel-headers | sed -n '/^\/lib\/modules\/.*-v7.*\/build$$/p'|head -1) KERNEL_VERSION = $(subst /lib/modules/,,$(subst /build,,$(LINUX_DIR_PATH))) else .raspbian-versions: -- 2.34.1