Message ID | 20220308085352.183941-7-gary.bisson@boundarydevices.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCL5RYHM6ECRBV5TTSIQMGQEXOLYISI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=QF/PC8i9; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::d3b; helo=mail-io1-xd3b.google.com; envelope-from=swupdate+bncbcl5ryhm6ecrbv5ttsiqmgqexolyisi@googlegroups.com; receiver=<UNKNOWN>) Received: from mail-io1-xd3b.google.com (mail-io1-xd3b.google.com [IPv6:2607:f8b0:4864:20::d3b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KCTff2L80z9sGF for <incoming@patchwork.ozlabs.org>; Tue, 8 Mar 2022 19:54:50 +1100 (AEDT) Received: by mail-io1-xd3b.google.com with SMTP id g11-20020a056602072b00b00645cc0735d7sf3484235iox.1 for <incoming@patchwork.ozlabs.org>; Tue, 08 Mar 2022 00:54:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646729688; cv=pass; d=google.com; s=arc-20160816; b=SSd/LFJ/MgotF72NTsUN+atxbKc4I3xoSV7AqyDncManFWAz9tkdXD+XvGKM52qCok RLMIE+t86TlT0JYlxL0X24fzGVkB6bKrvTkxMuWCDSdGHew6OEWc39jWhbogvi3EvF+N /PQ2OI94kKJobVQeGtZuSRAkYVppINfVz9yZvNYD3fxNwNdQIf21LEiIdlZuWPf+SUC1 LH1yrXA4n5zgJRhdY2ojo33gGcqzGbwU2EkCYF5S5t4IFYG0oKarf6rsJ4YLh5OMVPAm kOHli5uKJjrfsxfMtcviI/56ro6HmyQdiJ4lLG9dVxvUGiu7vK9WUMYa0KHl0APUjU81 djCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=VHp0iPKwCJssY8SFzuJleHg4GlvuxpqC6W55w3lLXAw=; b=Ez/cLwSAS36YSPotylPJkGI0MMAuoOuex/l5livMeG2PwG/iEFUrS+LLhb7ImF/KOs 9BAIlFoglWwI6kRCqf+5P7XtUf3bT4zA+aoY396Jtt2Xn9X5RqsOo+Q0vK0bHOjbfaOP OX69xCG0HXW4pBuBc1GxaAHpFyLWK+iAL3jPBfTf3PGU1S4sgvzuvL5wg3KpM8qZu/Yr hJ7xcwdHkdY5M5siq+Bd+Ugk15UFM6TSRvHTvMWJHzf4e9vUQP+I5xrkmbp3rNZ9No4w mmei321RyQ3I/ON62XQHAnloRR9/5ZEnJOaPtv7ZoC7tqGc/9hVFPWNK2FMRejLK8nm0 P29w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@boundarydevices.com header.s=google header.b=SLTKdOum; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::62e as permitted sender) smtp.mailfrom=gary.bisson@boundarydevices.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=boundarydevices.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=VHp0iPKwCJssY8SFzuJleHg4GlvuxpqC6W55w3lLXAw=; b=QF/PC8i9gYTtTzYFQ3dygr+c7inRyHjCAx6WgaJ5APkgpAzYrtloi5M12X9xE9Xfo5 6gK3fEaCN3x0kQoF985xL5Q6CWEbjJey0QEwWLQmiMZkU2TTtBJsqe5EOpmQvHi1x47g QXNwvSmHXP5N2AjysqNASszSIZevkXDdzHv1Fsg5IAAucNme7WohPSV7JTY7eBUUp8W7 HSIOpbS5MuRdZSUkdM0w2pMV5ha9WVjdq8fOkMuqAZctP1oP7Xascf00G7xKrJHT/gQG EqYEKod5Up/WANa5Wkd481GSHBxWEu+QE63LvP1FGyC/+xKF2piOi8HInxQprxOOfEa+ JwJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=VHp0iPKwCJssY8SFzuJleHg4GlvuxpqC6W55w3lLXAw=; b=JsoZ4BsW+Ab4t5B9gtHXwnT6dUmIqiD38l829r7GJIMXh8gFUYiNl1LSI899XCNwyG kzVyrb5MRItkyDyv1IRKjdPY6hREd3F5AEcBRvec4jM2bfMhUYb8rusce+4OCiZ2rBKu g+WO5KPZlZKA8DIq1Y7/omw5Qsw4olJLfyjTkInyYOUr3mQrk86XFaMjGkTUvhxoX1o5 7KNerDAsy5rvaYgKzEmlx1Fw78l2Me+8dWMQqZsFV6MRU7kqzK7U7t6T7XYyWt4aSMvl TlLPxbefFCNpyRnn02h9t95wcSTjNBAkKXdNd82WAYT4tKQnQFfmGmniiVb6583qI5j/ PJDg== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM531LkfCFunuKw+jI92e7K1dREwN4p/a7K1V7TR8SqtpETx2PgMyy dnZfIr7wAJXHNBCv82rlOUk= X-Google-Smtp-Source: ABdhPJwdKZw6YYqKPew42fsfVFVK4IBekRSR0d6m+JOjLVXkzMc35TYXsgOX3g6CPsRnSgXG4eyEiw== X-Received: by 2002:a05:6638:bcd:b0:314:9138:8344 with SMTP id g13-20020a0566380bcd00b0031491388344mr14601036jad.64.1646729687996; Tue, 08 Mar 2022 00:54:47 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a92:de4a:0:b0:2c6:1570:ca65 with SMTP id e10-20020a92de4a000000b002c61570ca65ls1845965ilr.11.gmail; Tue, 08 Mar 2022 00:54:47 -0800 (PST) X-Received: by 2002:a05:6e02:e02:b0:2c6:55c9:b74 with SMTP id a2-20020a056e020e0200b002c655c90b74mr3500292ilk.278.1646729687553; Tue, 08 Mar 2022 00:54:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646729687; cv=none; d=google.com; s=arc-20160816; b=XIqgGNBaLQwdKh11wj8K4C6KR90RYnRGaGRg8lQD4Spqx8/Yrjv7ccKwRdPKkfxz+E iErz9PRTRYeRFcz5Vp3+EFzJnbw58+DaCkqZNb0fWTjt8NdP49Yc0bbok/6cxLZNS56N 6IOIZsvBnWw0wuPZmzyhyH5fsyz7+dD5DikW50RGnWhkPyAwBql5V1RgvCLH+czQp/wH 4exncNjhAO9xo7w7zyx+KlJrLBkgnY5jeUgn95mtazKFYehXd5kQczVeKVSP7Nwa16dj L9KLhLuFFrjS4umepLMkBhucSfbepyPLMXOQrB/8Lhv3S84hxrhz7WTjujUNqj6eaCg3 fICw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=azEM2Y4DVMpOyfg3NTCWPQ7u9vdNhJpTnnGCM/XDBas=; b=v0VIPqUYZ9xR+nqgufVRu4sJhGYNqFqEznHzm7fH39ozJUXjbsbr/m68DSNb02Q1y2 YX4wzDrRxl+2VwZCI8prCSCF2e2/bKVCRRymwkydrkxiuqEswmVL6EvY1uJuVsGKh6ZH MDSTKThYjaumGvf5uw2TokZeXXUq9+RVvTPOGuYsMP3oDI1x7MFbv9GUYCgLOy3fhxGg qzxeduVDHdQ26UBAB7L6HrYFys0/Bi6EBNMtzXyRSYd7cj+q6l8frldPDsMFxSX5zIQz IUt5sn310eXDwwCqApXcI6AhfrzF8oB121DJq0s9VLrIpm7wbwMNJhIkoD0skSmuchXV UJEg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@boundarydevices.com header.s=google header.b=SLTKdOum; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::62e as permitted sender) smtp.mailfrom=gary.bisson@boundarydevices.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=boundarydevices.com Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com. [2607:f8b0:4864:20::62e]) by gmr-mx.google.com with ESMTPS id u25-20020a5d8199000000b0064066eda410si1421714ion.2.2022.03.08.00.54.47 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Mar 2022 00:54:47 -0800 (PST) Received-SPF: pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::62e as permitted sender) client-ip=2607:f8b0:4864:20::62e; Received: by mail-pl1-x62e.google.com with SMTP id q13so311526plk.12 for <swupdate@googlegroups.com>; Tue, 08 Mar 2022 00:54:47 -0800 (PST) X-Received: by 2002:a17:90b:1e4f:b0:1bf:88d1:d97f with SMTP id pi15-20020a17090b1e4f00b001bf88d1d97fmr2702129pjb.150.1646729686440; Tue, 08 Mar 2022 00:54:46 -0800 (PST) Received: from localhost.localdomain (2a01cb0007fc20008a20f9fbd85df515.ipv6.abo.wanadoo.fr. [2a01:cb00:7fc:2000:8a20:f9fb:d85d:f515]) by smtp.gmail.com with ESMTPSA id mp10-20020a17090b190a00b001bf8453aea8sm1888132pjb.42.2022.03.08.00.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 00:54:45 -0800 (PST) From: Gary Bisson <gary.bisson@boundarydevices.com> To: swupdate@googlegroups.com Cc: Gary Bisson <gary.bisson@boundarydevices.com> Subject: [swupdate] [PATCH v2 6/6] Android.bp: initial addition Date: Tue, 8 Mar 2022 09:53:52 +0100 Message-Id: <20220308085352.183941-7-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220308085352.183941-1-gary.bisson@boundarydevices.com> References: <20220306132635.220607-1-gary.bisson@boundarydevices.com> <20220308085352.183941-1-gary.bisson@boundarydevices.com> MIME-Version: 1.0 X-Original-Sender: gary.bisson@boundarydevices.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@boundarydevices.com header.s=google header.b=SLTKdOum; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::62e as permitted sender) smtp.mailfrom=gary.bisson@boundarydevices.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=boundarydevices.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series | [v2,1/6] uboot_env: switch to strchr/strrchr | expand |
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..29359a5 --- /dev/null +++ b/Android.bp @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later + +cc_library { + name: "libubootenv", + vendor: true, + srcs: [ + "src/uboot_env.c", + ], + shared_libs: ["libz"], + cflags: ["-std=gnu99", "-Wno-pointer-arith", "-Wno-switch"], + export_include_dirs: ["src"], + local_include_dirs: ["src"], +} + +cc_binary { + name: "fw_printenv", + vendor: true, + srcs: ["src/fw_printenv.c"], + shared_libs: ["libubootenv"], + cflags: ["-std=gnu99", "-Wno-date-time"], +} + +cc_binary { + name: "fw_setenv", + vendor: true, + srcs: ["src/fw_setenv.c"], + shared_libs: ["libubootenv"], + cflags: ["-std=gnu99", "-Wno-date-time"], +}
- adding libubootenv as vendor dynamic library - adding fw_printenv and fw_setenv as vendor binaries - as Android uses clang, a few warning flags are needed: - Wno-pointer-arith for all the buffer address assignments - Wno-switch for the flagstype missing default/NONE case - Wno-date-time to allow __DATE__ usage - using same license as CMake files (LGPLv2.1+) Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> --- Changelog v1->v2: - Add missing SPDX in Android.bp --- Android.bp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Android.bp