From patchwork Wed Sep 12 19:58:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nazzareno Trimarchi X-Patchwork-Id: 969184 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=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="oNwRytqf"; dkim-atps=neutral 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 429XfD3Mb9z9s9N for ; Thu, 13 Sep 2018 05:58:44 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 872E722121; Wed, 12 Sep 2018 19:58:41 +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 HDbDMdsu3ACY; Wed, 12 Sep 2018 19:58:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 6D85121560; Wed, 12 Sep 2018 19:58:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 9D85B1C2D00 for ; Wed, 12 Sep 2018 19:58:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9AE7A888BF for ; Wed, 12 Sep 2018 19:58:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YGLKxtwjDRGh for ; Wed, 12 Sep 2018 19:58:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id DF68488888 for ; Wed, 12 Sep 2018 19:58:36 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id j25-v6so11409050wmc.1 for ; Wed, 12 Sep 2018 12:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id; bh=bDqLqJ+H4iIL4We0W3jhLlCpBNP1oW+MEPQnv180f/o=; b=oNwRytqfZFH2j1MH0YEbC7or+UbmY1hfZdRYQuEASQ7vmfh9frel/P5CZQ4B+fpfIC W+Qe47RMLoTkWr7Rh1stEEuoTBnamCKL4V5NdAdGsYcNWi6hchFhxZeXL8+Wn6HzqRa/ Scka+pv1IYWI8mcansyuu0eSIGGru29MBH00w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bDqLqJ+H4iIL4We0W3jhLlCpBNP1oW+MEPQnv180f/o=; b=ILyYv4oAP9GgeBAl6miGSDvdyrxMIXDdS5RPZN55Sy6yECdWucUu2epZzxmAtJtgwd 9KRMREWNOdVxueINLvnlIhOsrXm03oGEAyIkLW+u/aTaVNLfNXpuM33vI6LV8GhuYBkd DkELpTGs1Jgh12imEuyfiTghIDg+d0f1wT2rrXYs96vu2Ln3WvrB7NzTVFTjzmVtTN6B h75AlvIyNvpA9mOXkxC9mG2c6/Qe4KB+LXPudw+Bz17DWdfIa3ja8RM58riO77Mv91WD 4zg8Ocb97cgKEyFC+scDVazqBQFCa0K5az2g9Qn17DVndFk0JsRvisWwWgncXDA852PY pwRA== X-Gm-Message-State: APzg51CiIBCU3Uq0+tqmWsVWnFRgXA1+AuIv7YQtaL1zEFKINIiVFOVQ tBz7gfgKqkcbMPqX0iyFME2fOMO3tng= X-Google-Smtp-Source: ANB0VdaX1ByS1QenahY3M90Vo1v7yujF6dNw4kzMp7aeMJh65UIUoeSA3W7kECM4nd7EmF4ESNCK2w== X-Received: by 2002:a1c:1252:: with SMTP id 79-v6mr2627174wms.70.1536782315156; Wed, 12 Sep 2018 12:58:35 -0700 (PDT) Received: from panicking.homenet.telecomitalia.it (host197-98-dynamic.41-79-r.retail.telecomitalia.it. [79.41.98.197]) by smtp.gmail.com with ESMTPSA id r140-v6sm3381277wmd.7.2018.09.12.12.58.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Sep 2018 12:58:34 -0700 (PDT) From: Michael Trimarchi To: thomas.petazzoni@bootlin.com Date: Wed, 12 Sep 2018 21:58:32 +0200 Message-Id: <1536782312-12240-1-git-send-email-michael@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [RFC PATCH] linux: let to work with xenomai in override mode X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: buildroot@buildroot.org MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" We would like to patch xenomai in override mode. Xenomai create symlink in order to build the kernel and those links are absolute one. The adeos patch is not applied if it is found so we can change the connect hook from PRE_PATCH to PRE_CONFIGURE. The xenomi dependence should be explicit set Change-Id: Idc5189047451bb9ac3019d3f35674d5332159918 Signed-off-by: Michael Trimarchi --- linux/linux.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/linux/linux.mk b/linux/linux.mk index 675e790..2303923 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -351,6 +351,10 @@ define LINUX_KCONFIG_FIXUP_CMDS $(call KCONFIG_DISABLE_OPT,CONFIG_MXC_GPU_VIV,$(@D)/.config)) endef +ifneq ($(BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH),) +LINUX_DEPENDENCIES += xenomai +endif + ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT),y) # Starting with 4.17, the generated dtc parser code is no longer # shipped with the kernel sources, so we need flex and bison. For @@ -485,7 +489,7 @@ include $(sort $(wildcard linux/linux-ext-*.mk)) LINUX_PATCH_DEPENDENCIES += $(foreach ext,$(LINUX_EXTENSIONS),\ $(if $(BR2_LINUX_KERNEL_EXT_$(call UPPERCASE,$(ext))),$(ext))) -LINUX_PRE_PATCH_HOOKS += $(foreach ext,$(LINUX_EXTENSIONS),\ +LINUX_PRE_CONFIGURE_HOOKS += $(foreach ext,$(LINUX_EXTENSIONS),\ $(if $(BR2_LINUX_KERNEL_EXT_$(call UPPERCASE,$(ext))),\ $(call UPPERCASE,$(ext))_PREPARE_KERNEL))