From patchwork Wed Feb 5 14:48:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1233881 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=nDKR4+wo; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48CPZv4WgDz9sPK for ; Thu, 6 Feb 2020 01:48:55 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 09B6485D87; Wed, 5 Feb 2020 14:48:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QKDK9KpYiqdu; Wed, 5 Feb 2020 14:48:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 69A7785D8E; Wed, 5 Feb 2020 14:48:53 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 9E5711BF5A7 for ; Wed, 5 Feb 2020 14:48:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 96153204C6 for ; Wed, 5 Feb 2020 14:48:48 +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 LmXegLhKlRNA for ; Wed, 5 Feb 2020 14:48:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by silver.osuosl.org (Postfix) with ESMTPS id 61E4E20428 for ; Wed, 5 Feb 2020 14:48:46 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id g1so2776920wmh.4 for ; Wed, 05 Feb 2020 06:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K8GO7Je3U/mrrJnEOMLmWUrJ5tNDWwgaJyzngQH3F+M=; b=nDKR4+woPXogyZf8NjTNBg9Ud1YnmgoUEaS6BOafhavhZyurE1e7V90D8tnPTBsiR3 YphNieLLqXP0Zjs74yt6eu4pW+5xoYQrj00/ztOwGoRDICR9WzCZZ2wcI3x43EmUzMlp ooS9NSJsq85WkyRq5nF24erh9N4ozlnfmKZJnaAkOs2gOPUC/05LtWzym7JG4gCthqcm ger6CQdaAmJAz57o7vqlecMCAJAvBzm6iMemq/Rvlly4FrLev8KanH0yDk6Za/iGoysr UyOXQaT9GWxYrwSxW7fBj9+43VrjYbm3iziZn+djQ80RmqsmWp/XUGzDiAStodw1R+2q LYbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=K8GO7Je3U/mrrJnEOMLmWUrJ5tNDWwgaJyzngQH3F+M=; b=gojU7k4lBR13+A35onwH+Pwa74Atzii43YuTxoQpJ44lMkoKeNQ5PrYl0FzHp9Kdrj tjBAhpWgKISZHGaK53i/WwZuFYx6Xara1XbdGrompscYOMtc5lqn9enbbdSsm3uwvzp5 8Eax2kLySxu83AOdKpIKHYpCIaqEtRD794xUM8iZKbNA4FVxVPY1P9+2UpxKbytQU/Rf A4kvhpcKhR63CVF2mBUb4BDAkUfw+8J8sK6wV+i84IxHokuYT8NTiHITMdYJoj9DOoIn OUlzzgbdyzQ4hdlZOjEN+fL23iu5jRjX8xlA1aFGzkWg4C9y8sJm8Nenxki+2X3CnJ4H Wjig== X-Gm-Message-State: APjAAAWYH0sCGSO0GYbnSZFcK9W6GHtQqcIMCCDSdJZ4QktKIzNf5ylX 1m9U2iWMEMtOvCW/DpUHm3C7O3Tf6Ko= X-Google-Smtp-Source: APXvYqwDzbdk/m4NkF/s3KtA0A8ntlPwtNI756vkm7fjXn7t1aYo5Y0CPi8xpB2E6ahaL2hVzSl22Q== X-Received: by 2002:a1c:4c8:: with SMTP id 191mr5958382wme.148.1580914124682; Wed, 05 Feb 2020 06:48:44 -0800 (PST) Received: from localhost.localdomain ([2620:0:1055:fd00:28b7:b5da:fa11:bfcd]) by smtp.gmail.com with ESMTPSA id z8sm89561wrq.22.2020.02.05.06.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 06:48:44 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Wed, 5 Feb 2020 15:48:39 +0100 Message-Id: <88a204c7db99f603e33f079b7d24017f2446865e.1580914115.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/6 v2] package/linux-headers: license files hashes only valid for latest version 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: Peter Korsgaard , "Yann E. MORIN" , Markus Mayer Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Like we did on the previous commit, change linux-headers to only check the license hashes for the latest known version. To simplify the test, we introduce an intermediate, blind option that get selected by the two latest versions. Reported-by: Peter Korsgaard Signed-off-by: Yann E. MORIN Cc: Markus Mayer --- package/linux-headers/Config.in.host | 6 ++++++ package/linux-headers/linux-headers.mk | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host index 9f46a1052b..7a68ab7492 100644 --- a/package/linux-headers/Config.in.host +++ b/package/linux-headers/Config.in.host @@ -25,6 +25,7 @@ choice config BR2_KERNEL_HEADERS_AS_KERNEL bool "Same as kernel being built" depends on BR2_LINUX_KERNEL + select BR2_KERNEL_HEADERS_LATEST if BR2_LINUX_KERNEL_LATEST_VERSION config BR2_KERNEL_HEADERS_4_4 bool "Linux 4.4.x kernel headers" @@ -52,6 +53,7 @@ config BR2_KERNEL_HEADERS_4_19 config BR2_KERNEL_HEADERS_5_4 bool "Linux 5.4.x kernel headers" select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4 + select BR2_KERNEL_HEADERS_LATEST config BR2_KERNEL_HEADERS_VERSION bool "Manually specified Linux version" @@ -83,6 +85,10 @@ config BR2_KERNEL_HEADERS_CUSTOM_GIT endchoice +# Select this for the latest kernel headers ersion (for licenses hashes) +config BR2_KERNEL_HEADERS_LATEST + bool + config BR2_DEFAULT_KERNEL_VERSION string "linux version" depends on BR2_KERNEL_HEADERS_VERSION diff --git a/package/linux-headers/linux-headers.mk b/package/linux-headers/linux-headers.mk index 676c8c44ea..2b7879c62f 100644 --- a/package/linux-headers/linux-headers.mk +++ b/package/linux-headers/linux-headers.mk @@ -91,7 +91,12 @@ endif LINUX_HEADERS_DL_SUBDIR = linux LINUX_HEADERS_LICENSE = GPL-2.0 -LINUX_HEADERS_LICENSE_FILES = COPYING +ifeq ($(BR2_KERNEL_HEADERS_LATEST),y) +LINUX_HEADERS_LICENSE_FILES = \ + COPYING \ + LICENSES/preferred/GPL-2.0 \ + LICENSES/exceptions/Linux-syscall-note +endif LINUX_HEADERS_INSTALL_STAGING = YES From patchwork Wed Feb 5 14:48:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1233880 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=cFNM8MpA; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48CPZs638Bz9sSS for ; Thu, 6 Feb 2020 01:48:53 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D9A8387924; Wed, 5 Feb 2020 14:48:51 +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 XgDEGcZwUIw6; Wed, 5 Feb 2020 14:48:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1982A87860; Wed, 5 Feb 2020 14:48:51 +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 E36831BF5A7 for ; Wed, 5 Feb 2020 14:48:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E060E86456 for ; Wed, 5 Feb 2020 14:48:47 +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 qf0ss2thHAqc for ; Wed, 5 Feb 2020 14:48:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3525486443 for ; Wed, 5 Feb 2020 14:48:47 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id y11so3069848wrt.6 for ; Wed, 05 Feb 2020 06:48:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6Nn7drDOQUWVrCapaZ98yLIZ3WxnRlV66cAt3I6Mamk=; b=cFNM8MpAt0ZwEQ0g1zRycZgl+Fokuuz7ETJa4+guaSX9Pa2IALkfMK6MU/W2VYOETn ooFtMQi7WDU3Aa3l9KNlt9w/F/qpkExV4TllSgn1vSX9YSi1VUMKARjcVUXRY9R+0h+a cYtu77DOrfrDxHbmePWjtizDaKp7Lj5SnYbGEY7JCoPzdsLBpB2yOjoEj4TThoKwxWuC 4DncGd/2kRh2lba0LFL41eK7VK3rZvStihgJioeWUtAe0e2J72kLEbtwXMY8WMRC5L3p s7/EnlUd3WBkDIH1CZbXueGoYVkQLwT/G7lLmRw73T/5suBRI6+72Ri4I658hpu9cU76 L4MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=6Nn7drDOQUWVrCapaZ98yLIZ3WxnRlV66cAt3I6Mamk=; b=SBcMGxXqd4pma3gtbZmbbaFJ9DXaV/hQ92D5dePLRjCyPhzP6qr1YBX8Bb4zdxLW2d oDTb+b7avbqGb/prF0L8wjHGtNN0Wah3aGtFmxgrrD61sXe8IT57SUtOVmw0K5WR5UMi KM/9gOjOeg8mLNKjgbBHOcTPAplJET8lqcq13XW2iU+ZUUMExP5JjJBF1rjPkMeuOn0y NWJ9FNOqlh0DASFTBJDqOG0sZT/Df00vKlBHVFDyI4D8WedE7JqSZnCE6ugmuImKOqXz E35N6ArPXJ47mmsuKfENncUBbqc6fozADrzhbQXLEdP7e+publTexMm2U7St8T7GyHhl tqkw== X-Gm-Message-State: APjAAAVO0pE+gZXRsywR8iQSn6bfnle304SzulQ96w3Mv3+p3uRUZG6b VyOeiivR5Mm0q9DmjUO/N6jiEulNXZE= X-Google-Smtp-Source: APXvYqxskeGdt8EFtK5fqbg9WcFQIc464RTpgUNN3Qji8Lt7G/8wSht99wCpyYlpEU82mqQLCAPYrg== X-Received: by 2002:adf:eb46:: with SMTP id u6mr29744740wrn.239.1580914125517; Wed, 05 Feb 2020 06:48:45 -0800 (PST) Received: from localhost.localdomain ([2620:0:1055:fd00:28b7:b5da:fa11:bfcd]) by smtp.gmail.com with ESMTPSA id z8sm89561wrq.22.2020.02.05.06.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 06:48:45 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Wed, 5 Feb 2020 15:48:40 +0100 Message-Id: <75edead37a0d9c4d78b3d03739bbfab1f35ee3a6.1580914115.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 3/6 v2] boot/uboot: license files hashes only valid for latest version 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: Peter Korsgaard , "Yann E. MORIN" , Markus Mayer Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" We can only know the path to the license files for the known version. For custom, older or newer, versions may change, or may be moved around. So, do for U-Boot as was done for ATF, linux, and linu-headers, and only define the list of license files for the latest version. Reported-by: Peter Korsgaard Signed-off-by: Yann E. MORIN Cc: Markus Mayer --- boot/uboot/uboot.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index 1f444351d7..2bfa50779b 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -8,7 +8,9 @@ UBOOT_VERSION = $(call qstrip,$(BR2_TARGET_UBOOT_VERSION)) UBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME)) UBOOT_LICENSE = GPL-2.0+ +ifeq ($(BR2_TARGET_UBOOT_LATEST_VERSION),y) UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt +endif UBOOT_INSTALL_IMAGES = YES From patchwork Wed Feb 5 14:48:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1233883 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=B/pOQ03Z; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48CPZz6Dn5z9sPK for ; Thu, 6 Feb 2020 01:48:59 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A171085E08; Wed, 5 Feb 2020 14:48:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZLUuxIZ0J2nH; Wed, 5 Feb 2020 14:48:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6FC3785DF5; Wed, 5 Feb 2020 14:48:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B3EFB1BF999 for ; Wed, 5 Feb 2020 14:48:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B06DD20428 for ; Wed, 5 Feb 2020 14:48:48 +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 X5VAmikM0s03 for ; Wed, 5 Feb 2020 14:48:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by silver.osuosl.org (Postfix) with ESMTPS id CE4592045D for ; Wed, 5 Feb 2020 14:48:47 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id u6so3104779wrt.0 for ; Wed, 05 Feb 2020 06:48:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ySrabxfQRAQzteWJmic2QFmeXolN6CWLW733yrjUGs0=; b=B/pOQ03Z+e1O7inPr95rjiNkKY7oCcocIq8OMm0EBBo6WdIKfytzAxhL4qdRCd5kSR qr1FalFuvWI9xXEhehEqV0gcaNH5ZfBQETs7Pq3n6c6x3LL4R/bq76o4rVIPGlCLTfAY zieLfDDdezx122vF2iVRgCgt+5MIpvZhASBdl32nzyfYN650QWexGUEHhmt/PHfmkW+m vhVIvJd4zhlIss+secm6LfGyV8mmF4Mt+jTqbOheQs5wm7IFHwBJv3srd09iGrLsnQIl 9ba/Vjxo6V1XV/wBi9IAl3UD1V+LVeTYcUkYFxlXSpwzFKi8HoSJboQm/v5sSyHOg26q lySg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ySrabxfQRAQzteWJmic2QFmeXolN6CWLW733yrjUGs0=; b=L2JB55vze/dat0SK6zzRz7NUzecHFyuciFCrrxipb6108oGvbXNGQL20MKzwVKbo4d a9yPQPcAoXQXL2eCXBjCCQ0Cqxx/F0LE+AVHWD+EY82prqq4OUdwUI8R1QbdQ01yOoin ilIxv1aTMPTRcVWrxgpCmGRPFCrFZ98loa3yLbzQK8ipUcbSCIg5yWX1uSBHJZbZsuoN 0UbBV/p6KwO/Mkk+fAaZaosWM7jqhpu+o01THZD3QYweuFJ/1Jv05g/mMt/uizL7H7mZ 9bHlZDuy1yADfufgUijjaFFSsHHtWMOF5VFvx0gUcLXkvsd0ikwM7R8SYWBgQfwEqk+m Pgeg== X-Gm-Message-State: APjAAAWAyh5opiyfGhs4lWADIhyXZE5kdgfvoC8w29rcHt+OrUzV+WJJ 0I8+fzXkVfvvd6ByRdWwSAMlnA4l5wQ= X-Google-Smtp-Source: APXvYqyCCu+BrBgJAWR/WtIlQWzdMT1nK7c1EX9qObgIeRNYq1CQNM0jztEHwlbTgTzcRtaXMO/diw== X-Received: by 2002:a5d:4c89:: with SMTP id z9mr22772954wrs.97.1580914126187; Wed, 05 Feb 2020 06:48:46 -0800 (PST) Received: from localhost.localdomain ([2620:0:1055:fd00:28b7:b5da:fa11:bfcd]) by smtp.gmail.com with ESMTPSA id z8sm89561wrq.22.2020.02.05.06.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 06:48:45 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Wed, 5 Feb 2020 15:48:41 +0100 Message-Id: <74a46f7ad7c46107c84347edb01879239a7a824b.1580914115.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 4/6 v2] boot/barebox: license files hashes only valid for latest version 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: Peter Korsgaard , "Yann E. MORIN" , Markus Mayer Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" We can only know the path to the license files for the known version. For custom, older or newer, versions may change, or may be moved around. So, do for U-Boot as was done for ATF, linux, and linux-headers, and only define the list of license files for the latest version. Add the hash for that license file, and align hashes to the new spacing convention. Reported-by: Peter Korsgaard Signed-off-by: Yann E. MORIN Cc: Markus Mayer --- boot/barebox/barebox.hash | 7 +++++-- boot/barebox/barebox.mk | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/boot/barebox/barebox.hash b/boot/barebox/barebox.hash index 42561ea571..64fec919b8 100644 --- a/boot/barebox/barebox.hash +++ b/boot/barebox/barebox.hash @@ -1,5 +1,8 @@ # From https://www.barebox.org/download/barebox-2019.12.0.tar.bz2.md5 -md5 2d25158ccffaa843c9e4943bbe820ce2 barebox-2019.12.0.tar.bz2 +md5 2d25158ccffaa843c9e4943bbe820ce2 barebox-2019.12.0.tar.bz2 # Locally calculated -sha256 fb77afc5c1a9783b8e1a9bb6c617973f5c0ed4c6f8e079f96cb7e7e0818a7a90 barebox-2019.12.0.tar.bz2 +sha256 fb77afc5c1a9783b8e1a9bb6c617973f5c0ed4c6f8e079f96cb7e7e0818a7a90 barebox-2019.12.0.tar.bz2 + +# License files, locally computed +sha256 ab1122aa9f9073ad1ec824edcd970b16a6a7881a34a18fd56c080debb2dca5d4 COPYING diff --git a/boot/barebox/barebox.mk b/boot/barebox/barebox.mk index 52178d89c8..f11f9950d1 100644 --- a/boot/barebox/barebox.mk +++ b/boot/barebox/barebox.mk @@ -33,7 +33,9 @@ endif $(1)_DEPENDENCIES = host-lzop $(1)_LICENSE = GPL-2.0 with exceptions +ifeq ($(BR2_TARGET_BAREBOX_LATEST_VERSION),y) $(1)_LICENSE_FILES = COPYING +endif $(1)_CUSTOM_EMBEDDED_ENV_PATH = $$(call qstrip,$$(BR2_TARGET_$(1)_CUSTOM_EMBEDDED_ENV_PATH)) From patchwork Wed Feb 5 14:48:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1233882 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=M7sl0EK8; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48CPZx5GSPz9sS9 for ; Thu, 6 Feb 2020 01:48:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 41C7C879F0; Wed, 5 Feb 2020 14:48:56 +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 lpw4TqsDYC92; Wed, 5 Feb 2020 14:48:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8F8B4879CD; Wed, 5 Feb 2020 14:48:55 +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 7AA791BF5A7 for ; Wed, 5 Feb 2020 14:48:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 72CC1864D2 for ; Wed, 5 Feb 2020 14:48:49 +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 1rt1zk3HWiVl for ; Wed, 5 Feb 2020 14:48:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id C1FE486443 for ; Wed, 5 Feb 2020 14:48:48 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id c84so3117647wme.4 for ; Wed, 05 Feb 2020 06:48:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UXg2+5X5/DHL7idphUSCLOBqvpX+lII9CdGJO/rV7oE=; b=M7sl0EK8g+V6NqsuEx3FKU7fVdx+ywI3SmkTCdCpMSuCotoDE162i1RUR18MR47PDG bocsmK01ESCDY9dyjVjftTqNIkRfvkB7IYsOGXw4/Lbz/ItYtsalwW73vfXmm4E/QHmg LeMCh11OF87WQ9vFHbA7PnrYSDz7G5LEs+4wUlM0kU4ABxvonwLHj8Htl4qlxW5HyeH4 OtYrvpx86wP1kJPcsAlrl+nk37SO4/PvxbA70O5d+zuXJ8XHr1l6mT2nKURsrDDJDKmr AdkIVZ5DJAPb2PlfCvxMGMQeDgpXMY/ClzN5yIjlqJ4T8FxKwp1YhoizLUoCLyo2TTAO D9OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=UXg2+5X5/DHL7idphUSCLOBqvpX+lII9CdGJO/rV7oE=; b=XsI30q0ThJi+Ao9WNHW2fG0R8cZIImWSV6TiblyoVwQJx0+OrpHa61ERVu47//CMNI 8fm7Zlqq6q9fNxtsRMtzTZpSpD4CK/0MoP0D+ZGAiSVb2kEvSoc5AFZi3YMJoTSB1oca 5H0wtIzCy0dsNpg+tyCDo93XTBfQOj6TZ8qfI1Dg3ma5gcWGbRSQvQ61Ae8fGjxEB3P2 XQBR4xXUU32FX32642bCe+IW963ue7UkIXS/+Y/AShg9k9ylFkZflwYdzSa27OR9qS22 KxepeWrNJrYhqxaCWRcxSIujipecIFG5amJ3ayAcmPD6BxOz9GvGFEgAZLdroipwctWV jP9w== X-Gm-Message-State: APjAAAVC221E8SdYwqjWCdis+hFS3VUkSeT6Dg7W0pVasq9JzFZUbzJv RuN1tSnaCJOilBqytj2w0O3wwH9gbWc= X-Google-Smtp-Source: APXvYqzm0o/CEK/rmnDuFbe9PGJ8TRuHaehxWHDFt076bQ+yQGZO5l71iFgb+ow6+jOx/HYFHtZywA== X-Received: by 2002:a05:600c:211:: with SMTP id 17mr6081310wmi.60.1580914127003; Wed, 05 Feb 2020 06:48:47 -0800 (PST) Received: from localhost.localdomain ([2620:0:1055:fd00:28b7:b5da:fa11:bfcd]) by smtp.gmail.com with ESMTPSA id z8sm89561wrq.22.2020.02.05.06.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 06:48:46 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Wed, 5 Feb 2020 15:48:42 +0100 Message-Id: <87654888e86275f2ac6638c64ad048c1bda172df.1580914115.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 5/6 v2] boot/at91bootstrap3: license files hashes only valid for latest version 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: Peter Korsgaard , "Yann E. MORIN" , Markus Mayer Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" We can only know the path to the license files for the known version. For custom, older or newer, versions may change, or may be moved around. So, do for at91bootstrap3 as was done for other packages in the recent past, and only define the list of license files for the latest version. Reported-by: Peter Korsgaard Signed-off-by: Yann E. MORIN Cc: Markus Mayer --- boot/at91bootstrap3/at91bootstrap3.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/at91bootstrap3/at91bootstrap3.mk b/boot/at91bootstrap3/at91bootstrap3.mk index 48c3a918a1..5cf865c681 100644 --- a/boot/at91bootstrap3/at91bootstrap3.mk +++ b/boot/at91bootstrap3/at91bootstrap3.mk @@ -20,7 +20,9 @@ AT91BOOTSTRAP3_SITE = $(call github,linux4sam,at91bootstrap,$(AT91BOOTSTRAP3_VER endif AT91BOOTSTRAP3_LICENSE = Atmel License +ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION),y) AT91BOOTSTRAP3_LICENSE_FILES = main.c +endif AT91BOOTSTRAP3_INSTALL_IMAGES = YES AT91BOOTSTRAP3_INSTALL_TARGET = NO From patchwork Wed Feb 5 14:48:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1233884 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=X8Xx560N; 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 48CPb03cKvz9sS9 for ; Thu, 6 Feb 2020 01:49:00 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C4D5320428; Wed, 5 Feb 2020 14:48:58 +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 jHoNd+cyUGOe; Wed, 5 Feb 2020 14:48:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7F2F12045D; Wed, 5 Feb 2020 14:48:57 +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 1AF941BF5A7 for ; Wed, 5 Feb 2020 14:48:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 17C8386443 for ; Wed, 5 Feb 2020 14:48:50 +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 toTJmSKKI9BX for ; Wed, 5 Feb 2020 14:48:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 68F9E86456 for ; Wed, 5 Feb 2020 14:48:49 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id w15so3080089wru.4 for ; Wed, 05 Feb 2020 06:48:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Aa0ATHTCHMjrAQOz+vL5SzIhh017RLtWn7d9VFlzQrY=; b=X8Xx560Nqj/d0zUM385afFLFYcA8rFYRXTOwFMxeZYo2qbTyDjJQZGRpAlakoMTv8M 7pJ2EVbWi4Ryo/oxPea+g1nOyIzKlVjxEaknWLj+su/OwMst6+1lC0SGJNUKdGmphcCa bXnYfvrn2RlsH7v2PqrG2wMMqTtxoMl7dV/zGhCnrVB+eBMuOQ3g8yh8SAEXDdZoKfzQ MXopShhgdrngfWS6Wt7JgRkbGDTYXDc2gl18jsjdUCwxJ8+8/UVRzW2yQllWrQDk2JAC 0csoi/5nSRXe/XMq8b6s4QGLNqyMEJPIaogXUUdSjGdydpHq/HJW6szNEvnOkYtW+tz7 hREg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Aa0ATHTCHMjrAQOz+vL5SzIhh017RLtWn7d9VFlzQrY=; b=Jo9J9ggKIdOB6BaIT3cl5GeOLv5uC/Jyx55asN4mxjeu9iTGeXHU4pylEW5h1AEJ0Z fkv/5fr5Vyna1c3JMsyJaTPuZ7FbVJO6i3wBru1ZVYRt6hc8IpDLe6dP7UJVcyGWKgwn gmEG/CPeFbr5MNSqaBbhKEm2mBpIjlRv/JhpJV8iFHyxI932NJeuITVKRbU4M76K7KMo bPIVr0fmPht1bEL6gDfghAx5L5VwYw05CRuELG0OqcpOWh2DylNSZmN9zpZ0qvru9eUA S8LaiFzOJPo5S6FzGWpItehxALUL1DStaixgOvhaTwGW3p7tt6JwBmr98kETH4jb+AMV u7NQ== X-Gm-Message-State: APjAAAVf5AKSw9d5iDZyk13jVT31dAPSnRm7MVfI450dfXNhdGEtVkTH 9fmZO82lVQbRwCEap67/lx1WS88u7Js= X-Google-Smtp-Source: APXvYqwJbv3YlhZ/W0RMmzjiGRmD2gB4k6Eo4NgOM+yx49O1j/oMuJnbH+wnHh98ZstrqDyD7mPffA== X-Received: by 2002:a5d:4c88:: with SMTP id z8mr28738274wrs.395.1580914127712; Wed, 05 Feb 2020 06:48:47 -0800 (PST) Received: from localhost.localdomain ([2620:0:1055:fd00:28b7:b5da:fa11:bfcd]) by smtp.gmail.com with ESMTPSA id z8sm89561wrq.22.2020.02.05.06.48.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 06:48:47 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Wed, 5 Feb 2020 15:48:43 +0100 Message-Id: <76db34fbca7b956090aaf4557510cf89a3d2d72c.1580914115.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 6/6 v2] boot/optee-os: license files hashes only valid for latest version 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: Peter Korsgaard , "Yann E. MORIN" , Markus Mayer Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" We can only know the path to the license files for the known version. For custom, older or newer, versions may change, or may be moved around. So, do for optee-os as was done for other packages in the recent past, and only define the list of license files for the latest version. Reported-by: Peter Korsgaard Signed-off-by: Yann E. MORIN Cc: Markus Mayer --- boot/optee-os/optee-os.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/optee-os/optee-os.mk b/boot/optee-os/optee-os.mk index bedde85212..acdb25b479 100644 --- a/boot/optee-os/optee-os.mk +++ b/boot/optee-os/optee-os.mk @@ -6,7 +6,9 @@ OPTEE_OS_VERSION = $(call qstrip,$(BR2_TARGET_OPTEE_OS_VERSION)) OPTEE_OS_LICENSE = BSD-2-Clause +ifeq ($(BR2_TARGET_OPTEE_OS_LATEST),y) OPTEE_OS_LICENSE_FILES = LICENSE +endif OPTEE_OS_INSTALL_STAGING = YES OPTEE_OS_INSTALL_IMAGES = YES