Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kODOh-0003qx-7g for mharc-grub-devel@gnu.org; Fri, 02 Oct 2020 01:14:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kODOe-0003p0-PT for grub-devel@gnu.org; Fri, 02 Oct 2020 01:14:20 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:34584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kODOb-00058M-4z for grub-devel@gnu.org; Fri, 02 Oct 2020 01:14:20 -0400 Received: by mail-pf1-x443.google.com with SMTP id k13so472358pfg.1 for ; Thu, 01 Oct 2020 22:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hAJkAroqBOYxPdyhxUD9O8mknb7h57q4zBEVFTSohYM=; b=eGdYlSXwybDMhCyy984SxL+vIf89s/WOPOhq0ensTwIbNUMkY9udgI+iLGCzGpNUZp piFHbs2eMPDUbr5CuVK8FHFQ+KGedyewNEmePk55r9fffHR1vzqCXE5Xuj8yS6y7WOVi GmCCtTBj5IentjWNTyF7H/c8hwyoc2WkZM6SI= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=hAJkAroqBOYxPdyhxUD9O8mknb7h57q4zBEVFTSohYM=; b=pPuK7oA6pcYbz+B12esk2b0cYHQNHHh5N4IfKM+xwom9QnXYpJY0wAWKwV0Qf8Pd5c 4Ums6PTP1w7ZW+3zRMxSE/ozQUyQ/rlqgl5oc4jO7WixSrZ1GRuuaTLpSiBgdzZwJTz6 /t8ANXXx8RJyRMJW9ErudOVmAzAwQ8qPTHrHhpmkRY6m6ZLyb347Z0Z7PO2yk0I5pkwn n+Gg6dcvnuCcR1x/CxpD/F9ipsf4SXJBpWGFgI7atyCKEkhN20HPo1ctytblzhLEZayH +apqiALhsiO1LneCQtGJp/GkJ2dHtScVpU15p0ksGuHdJMhs3ryVixkaCw+/oxsNrPzq kEWA== X-Gm-Message-State: AOAM532QOKWEbdcmQVAw1wfCED69akq73ZHmQUYEtqMw/+qKYI/HGKfa z1Cgx+8+S8yrb9kKMNNEQs6VdW+eVpEHUw== X-Google-Smtp-Source: ABdhPJzvO32ldoLPPaG4ThA5c7wN2ODNJnxXXpwUbCt0yvqS28p4iosJTHo+kMWfWtJwkn6ICMk6Vg== X-Received: by 2002:a62:b417:0:b029:142:2501:35dc with SMTP id h23-20020a62b4170000b0290142250135dcmr823928pfn.60.1601615655584; Thu, 01 Oct 2020 22:14:15 -0700 (PDT) Received: from localhost (2001-44b8-111e-5c00-804e-30c2-4157-6268.static.ipv6.internode.on.net. [2001:44b8:111e:5c00:804e:30c2:4157:6268]) by smtp.gmail.com with ESMTPSA id q5sm343554pfn.109.2020.10.01.22.14.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2020 22:14:15 -0700 (PDT) From: Daniel Axtens To: grub-devel@gnu.org Cc: rashmica.g@gmail.com, alastair@d-silva.org, Daniel Axtens Subject: [PATCH 11/18] libtasn1: compile into asn1 module Date: Fri, 2 Oct 2020 15:13:14 +1000 Message-Id: <20201002051321.1538488-12-dja@axtens.net> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201002051321.1538488-1-dja@axtens.net> References: <20201002051321.1538488-1-dja@axtens.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::443; envelope-from=dja@axtens.net; helo=mail-pf1-x443.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2020 05:14:21 -0000 Create a wrapper file that specifies the module license. Set up the makefile so it is built. Signed-off-by: Daniel Axtens --- grub-core/Makefile.core.def | 15 +++++++++++++++ grub-core/lib/libtasn1_wrap/wrap.c | 26 ++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 grub-core/lib/libtasn1_wrap/wrap.c diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def index 68ac0b746cc9..fc3f34495b58 100644 --- a/grub-core/Makefile.core.def +++ b/grub-core/Makefile.core.def @@ -2542,3 +2542,18 @@ module = { common = commands/i386/wrmsr.c; enable = x86; }; + +module = { + name = asn1; + common = lib/libtasn1/lib/decoding.c; + common = lib/libtasn1/lib/coding.c; + common = lib/libtasn1/lib/element.c; + common = lib/libtasn1/lib/structure.c; + common = lib/libtasn1/lib/parser_aux.c; + common = lib/libtasn1/lib/gstr.c; + common = lib/libtasn1/lib/errors.c; + common = lib/libtasn1_wrap/wrap.c; + cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)'; + // -Wno-type-limits comes from libtasn1's configure.ac + cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB) -I$(srcdir)/lib/libtasn1/lib -Wno-type-limits'; +}; diff --git a/grub-core/lib/libtasn1_wrap/wrap.c b/grub-core/lib/libtasn1_wrap/wrap.c new file mode 100644 index 000000000000..622ba942e33f --- /dev/null +++ b/grub-core/lib/libtasn1_wrap/wrap.c @@ -0,0 +1,26 @@ +/* + * GRUB -- GRand Unified Bootloader + * Copyright (C) 2020 IBM Corporation + * + * GRUB is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * GRUB is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GRUB. If not, see . + */ + +#include + +/* + * libtasn1 is provided under LGPL2.1+, which is compatible + * with GPL3+. As Grub as a whole is under GPL3+, this module + * is therefore under GPL3+ also. + */ +GRUB_MOD_LICENSE ("GPLv3+"); -- 2.25.1