From patchwork Tue Jul 9 21:05:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert McCabe X-Patchwork-Id: 1130032 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rockwellcollins.com Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45jvwP2qhwz9sNF for ; Wed, 10 Jul 2019 07:05:09 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6C7E220034; Tue, 9 Jul 2019 21:05:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cBG8VXqY2lHZ; Tue, 9 Jul 2019 21:05:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id D9AB420460; Tue, 9 Jul 2019 21:05:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4679C1BF301 for ; Tue, 9 Jul 2019 21:05:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 43A8A8695C for ; Tue, 9 Jul 2019 21:05:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kn92E02l0RDq for ; Tue, 9 Jul 2019 21:05:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs02.rockwellcollins.com (secvs02.rockwellcollins.com [205.175.225.241]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9B6B0868FF for ; Tue, 9 Jul 2019 21:05:02 +0000 (UTC) Received: from ofwgwc03.rockwellcollins.com (HELO ciulimr01.rockwellcollins.com) ([205.175.225.12]) by secvs02.rockwellcollins.com with ESMTP; 09 Jul 2019 16:05:01 -0500 X-Received: from CRM18509.rockwellcollins.com (crm18509.rockwellcollins.com [131.198.20.87]) by ciulimr01.rockwellcollins.com (Postfix) with ESMTP id 6CE1D60207; Tue, 9 Jul 2019 16:05:01 -0500 (CDT) From: robert.mccabe@rockwellcollins.com To: buildroot@buildroot.org Date: Tue, 9 Jul 2019 16:05:01 -0500 Message-Id: <20190709210501.606-1-robert.mccabe@rockwellcollins.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH v3 1/1] BR2_EXTERNAL linux-kernel-extensions support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: McCabe@rockwellcollins.com, "McCabe, Robert J" MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: "McCabe, Robert J" Allows external projects to inject custom code inside the Linux source tree. Signed-off-by: McCabe, Robert J --- linux/linux.mk | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/linux/linux.mk b/linux/linux.mk index a1378345c3..2128a36b5f 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -511,14 +511,19 @@ endef # # Note: our package infrastructure uses the full-path of the last-scanned # Makefile to determine what package we're currently defining, using the -# last directory component in the path. As such, including other Makefile, -# like below, before we call one of the *-package macro is usally not -# working. +# last directory component in the path. As such, including other Makefiles, +# like below, before we call one of the *-package macros usually doesn't +# work. # However, since the files we include here are in the same directory as # the current Makefile, we are OK. But this is a hard requirement: files -# included here *must* be in the same directory! +# included here *must* either be in this same directory OR within a +# another directory with the name "linux" (in the BR2_EXTERNAL case). include $(sort $(wildcard linux/linux-ext-*.mk)) +#Import linux-kernel-extensions from externals +-include $(sort $(wildcard $(foreach ext,$(BR2_EXTERNAL_DIRS), \ + $(ext)/linux/linux-ext-*.mk))) + LINUX_PATCH_DEPENDENCIES += $(foreach ext,$(LINUX_EXTENSIONS),\ $(if $(BR2_LINUX_KERNEL_EXT_$(call UPPERCASE,$(ext))),$(ext)))