Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lyVn6-0002sk-Iv for mharc-grub-devel@gnu.org; Wed, 30 Jun 2021 04:41:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyVn5-0002m8-0Y for grub-devel@gnu.org; Wed, 30 Jun 2021 04:41:51 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:36543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyVn0-0004G6-ME for grub-devel@gnu.org; Wed, 30 Jun 2021 04:41:50 -0400 Received: by mail-pl1-x632.google.com with SMTP id u19so1064582plc.3 for ; Wed, 30 Jun 2021 01:41:46 -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=u8W3veM3+tlkmsrHUsDRrZTVHZpZcARCVpntqDSjROc=; b=pp8Pv8WZEiWaRCpkCOPjMa+ejPPbDUsL3ZXZ2Xs1SWPMzAS9w8RTunmhbSA9uBI5e7 M/hEOrdcYMDmnOIfqHyTVNh9r+nAnxIToR3y+vVT0yDvu4qP8F8faFPIk7VwZYZXHMF2 +LVsnG1LRepV0nl4HiWsAwuKNnyuenRI8mVpU= 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=u8W3veM3+tlkmsrHUsDRrZTVHZpZcARCVpntqDSjROc=; b=HliRK8wxQBrgNHjiOrw1mHjdGYiw42i7t8R35asGv+OQEAoawqLsJ2vIyeiAc/+xKh OCLRWGEFbE8HH8/WBHf35as6560/zE0+ZWM4PK1qHk34OmsS45T6dqY47rW3ufN7L1D0 QffJJAh7KyS1g3EzWbFjWjPhPa3qa3qwE1gnN82vbYtfil8KifNC3Jvve/wQJ+gPvJiK ZFV8HDoojsY39Lz3CGDHzDEwDwKnMlV4boxrsrrzgc20OSB5WVS4U4KEOtM9rWgCxlNB qbr3JHB1OopNZM2Nwcro8MLh9rfgXvT9YoePI8/wuGX8bUX+0v/O2COB0E1ar3DED7xv Di9w== X-Gm-Message-State: AOAM533ilGrO/UiegFrkqH1NolYG9Z0rubSJcUQkI4TtD9s3Ns1NQMlL gX3DKXDVytzTGkRLd5htfNQsbEwfeK176g== X-Google-Smtp-Source: ABdhPJxRCc1+p1YBiM9fLjrA90H//2m9jIfZD3JZIvdx6cBkWE4z2UUrPn2v8+Nr63/HbwUaN82OoQ== X-Received: by 2002:a17:902:aa49:b029:10d:22fa:13d4 with SMTP id c9-20020a170902aa49b029010d22fa13d4mr31212104plr.78.1625042505124; Wed, 30 Jun 2021 01:41:45 -0700 (PDT) Received: from localhost ([203.206.29.204]) by smtp.gmail.com with ESMTPSA id a33sm11229853pga.68.2021.06.30.01.41.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 01:41:44 -0700 (PDT) From: Daniel Axtens To: grub-devel@gnu.org Cc: rashmica.g@gmail.com, alastair@d-silva.org, nayna@linux.ibm.com, Daniel Axtens Subject: [PATCH v2 14/22] libtasn1: compile into asn1 module Date: Wed, 30 Jun 2021 18:40:23 +1000 Message-Id: <20210630084031.2663622-15-dja@axtens.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210630084031.2663622-1-dja@axtens.net> References: <20210630084031.2663622-1-dja@axtens.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=dja@axtens.net; helo=mail-pl1-x632.google.com 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: Wed, 30 Jun 2021 08:41:51 -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 915287d44c13..6fbae150c687 100644 --- a/grub-core/Makefile.core.def +++ b/grub-core/Makefile.core.def @@ -2535,3 +2535,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.30.2