From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6646634757804261376 X-Received: by 2002:a1c:6584:: with SMTP id z126mr234611wmb.18.1547540248338; Tue, 15 Jan 2019 00:17:28 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:ce8b:: with SMTP id r11ls341987wrn.5.gmail; Tue, 15 Jan 2019 00:17:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN5llITZU82g/C5D6NdAUE1skrESjQxZ5mTq1T3l4UKd3TuM4gTSMuh+Q3sIcsqmU9dw6nAh X-Received: by 2002:adf:dd90:: with SMTP id x16mr124058wrl.26.1547540247835; Tue, 15 Jan 2019 00:17:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547540247; cv=none; d=google.com; s=arc-20160816; b=fFDBcqZbuqePnciCyis3NOFYcItJ1tiY5MpqLFE7FNuls+mFIQ6wuTMMtGylrPAOjZ Qq39sgOJts+/tTCyHFS9VXc2b7YFZmmk9HddB19LsGH4+w6s4rfB6rd8K05sv2cuMrNL bq7mBXuiaontr/uf5pklECrUrIY5HZOX1n6X9/HYMP4y9ompatlymZcucq82HXCgfq3a Qk3lFzd4b6Z+8ChpGgkgH0r2OTLI0/8ipaOSOsDM2i78qaHGrjA4u1PIbtUVjRCImcuq nJlxvHYPA3i+jR/plU1bSIi4hcYrMVcTQKpATOJEKFctKe5QTcXeNqyFBac8GKelhGeF wEyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version:user-agent :date:message-id:subject:from:to; bh=JytrQ6DeFHbzlmJEDrohcOjG0XHwCIN0rUOu+u8uXgU=; b=f3F/sEryag0OBoGGscCiVvCaTPU7UwvnlLcUZITGs7mA8t3EkPc0hMQDg+k7zx9HKf 5CVfQSwxrFXwL1R1fkFZMgOIF13wYuVhn4ytT4MAhKKBhzROJCOsLSg9YqPOhgRQsQDp rbk3iDiRXnJfoerOQMi8Hq3B7p5p6JLfjz8m3bvfb2oOYgQknwzQZof2edA5BALg+X3j dRHRpW1+noanPQyjb6mkP76eNc9pvJGgDGc50B4XQRQtugl46KRzt0Ew59Jy9jl803of jG7vEuS/8Uhd9zd9ivgnXMfpDKfjdT8ewShUrTPpRpqWXWz2f9l9prUCP3gV9jDyBjkk PheQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id p15si3327729wrm.5.2019.01.15.00.17.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 00:17:27 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x0F8HRuk014889 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 15 Jan 2019 09:17:27 +0100 Received: from [139.22.114.70] ([139.22.114.70]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x0F8HRlp007064 for ; Tue, 15 Jan 2019 09:17:27 +0100 To: isar-users From: Jan Kiszka Subject: [PATCH] linux-module: Simplify interface to module makefiles Message-ID: <0106a163-055a-2917-4388-35bd337ef64b@siemens.com> Date: Tue, 15 Jan 2019 09:17:26 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 5yiLHPWXAAzH From: Jan Kiszka Not all module makefile respect DESTDIR nor even have build targets which take KDIR as input. So call the kernel makefile ourselves, just requiring the module makefile to provide Kbuild rules. Signed-off-by: Jan Kiszka --- meta/recipes-kernel/linux-module/files/debian/rules | 6 ++++++ meta/recipes-kernel/linux-module/module.inc | 1 + 2 files changed, 7 insertions(+) diff --git a/meta/recipes-kernel/linux-module/files/debian/rules b/meta/recipes-kernel/linux-module/files/debian/rules index 5c1d8be..7a89e41 100755 --- a/meta/recipes-kernel/linux-module/files/debian/rules +++ b/meta/recipes-kernel/linux-module/files/debian/rules @@ -21,5 +21,11 @@ ifneq (,$(findstring 86,$(DEB_HOST_GNU_CPU))) export ARCH=x86 endif +override_dh_auto_build: + $(MAKE) -C $(KDIR) M=$(PWD) modules + +override_dh_auto_install: + $(MAKE) -C $(KDIR) M=$(PWD) INSTALL_MOD_PATH=$(PWD)/debian/$(PN) modules_install + %: CFLAGS= LDFLAGS= dh $@ --parallel diff --git a/meta/recipes-kernel/linux-module/module.inc b/meta/recipes-kernel/linux-module/module.inc index 5d85200..cb7b8ad 100644 --- a/meta/recipes-kernel/linux-module/module.inc +++ b/meta/recipes-kernel/linux-module/module.inc @@ -43,4 +43,5 @@ dpkg_runbuild_prepend() { export KDIR=$(dpkg -L --root=${BUILDCHROOT_DIR} ${KERNEL_DEP} | \ grep "/lib/modules/.*/build") fi + export PN=${PN} } -- 2.16.4