From patchwork Sun Mar 6 13:26:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 1601754 Return-Path: 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=CdrFmiC/; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::53e; helo=mail-pg1-x53e.google.com; envelope-from=swupdate+bncbcl5ryhm6ecrbk7nskiqmgqevuyzgzq@googlegroups.com; receiver=) Received: from mail-pg1-x53e.google.com (mail-pg1-x53e.google.com [IPv6:2607:f8b0:4864:20::53e]) (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 4KBMnn67K6z9sFN for ; Mon, 7 Mar 2022 00:27:09 +1100 (AEDT) Received: by mail-pg1-x53e.google.com with SMTP id n8-20020a654508000000b003783b1e9834sf6965416pgq.0 for ; Sun, 06 Mar 2022 05:27:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646573228; cv=pass; d=google.com; s=arc-20160816; b=x42ia9i/5SC3cjuXqCmN4QMRQ2fPI5MGo9SJyT7CAT4SxmUfKOVd4WY3eF7dHHGrTL dfTj13a1VNHUnc8EQNp9/hzTjGrAjXBjtKyG64LxiU/4OIU+HBnfCdW2SxijNQmgbrzw j0ELPxBD0/KJAyYNIrsi9Dg6ka0wE+zHAN9yIi6Hy528MPg9r89p1lgSCuI27c/fjz31 GzNaMICt1s0EhPwvl0ptz4UExzYRc9ImB4zQVURIrARzwaV6hGWqwr13bRdm/EdFllcQ l/BSB5KkoLvwP4nJX+bTThhoC2jqfeXPg9QCtY34jaiYtk922DHxnFrG9G9pFC0Bd9A0 e7xQ== 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=IaWvb587JU/UycutSgSyuTnOW1qjenAj1B4TAzNmGEQ=; b=tZhjREOySsEMaUu/ASFTIwqTugJgLmzV1x23fkGwgLXIVU+33MamcwH2VALBDoEkGP BJrpozofqXB79tv5SIIWzjFXen65P+rbhtJzuDMK4DMIn45IaZSV+VljKBK0jo6JQto+ bbF6sB5u89FHU0LE+hy3f5EyHxYsZHJC+4i/o8R1sG2FN2Jf9+F9EZCtvs2VhOjuZwap rToGmzElDazwdWoQ64wpm0pXtCqLQdauSDe5EcWrE8lXZ1m4Lxsmmj77mrkv0pHDibQs JEQkXT1o6iHiYOfQOIVHDG/RuuEqDDa3wHwK0SJHmWvcx7u6jdzitPjNOa6ZoObtrKVY RHBQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@boundarydevices.com header.s=google header.b=GirI9r3t; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::531 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=IaWvb587JU/UycutSgSyuTnOW1qjenAj1B4TAzNmGEQ=; b=CdrFmiC/YkCJy/oo30UreLEt/i1d5GPZBnlxnSFog6O44V+1LIy/Zu908VC1x8uo7i 5UeLrFv8ALvGO0ChIHp1HXnYbgNTW8I2Lru0vhx76wWtX4N5wo+bWtXio6Hc331mUqR2 5upg/PwiBMbVPkKTp+hr7rKA404eziqaq4SmiQBN61Rwc9ITCW62P9A3bLGPEvOH0fSY Q2S6ntg2C+OCKGdkwn4iINFn6w8jqerg71cA9nq21ox+P/tGfZ+j2HgzbWX0vCWp4Qqu KWef5PZvRsDxY3mKC7+oafaIvr72MVjlm45GUHesh72QNkx89vH7Pqq8BmyzMScwwVYg da3w== 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=IaWvb587JU/UycutSgSyuTnOW1qjenAj1B4TAzNmGEQ=; b=oIDMb9e97iEh+0zyHhmpVlrXuIvCI85XSvScxDeD8TY4lTRSVA6thBYueWKs0vzV77 L1Yn1W30iO35vzmeeonVg7KEsevfxb06jircLSBuesp5e/zQ8EtVLJyoFqpSVYUwys1w 3RZnF+C4GVXaeeHmD1zD5P03EA5JHKiSJm3Gp8JvlW/nvvy4tJ/lqR2o1CLWQp8DRUeQ G9ysRMDv9EPsltCEod1cIA+/1W2Xu8NKWCG8UhSLXo/eH700sNqVISsaDIQP516dE4OA ZWkWObNtagJzI7ggqHm+lHwzm+Ul7sDfA0ZjrJ165g3MmvJ7cv8tkujbA+azH4FvXyFF OQ5g== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM5310vkOmZEpZhbu6Nq4lYvcwDDhYs5P3qPtKquinnhX/VVjfpald nTu3A4OMRxHZuK1ee3cpGKY= X-Google-Smtp-Source: ABdhPJxQ6fyc6YdJNKUv3HqvbcmmS4ZBoKZvooP9ufEMsnQbumBACelGNmniX1TcwUcs7QL/CtmxeQ== X-Received: by 2002:a17:90b:4d0f:b0:1bf:6a2:5637 with SMTP id mw15-20020a17090b4d0f00b001bf06a25637mr8238018pjb.106.1646573227803; Sun, 06 Mar 2022 05:27:07 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a63:105b:0:b0:380:1efe:6690 with SMTP id 27-20020a63105b000000b003801efe6690ls701683pgq.5.gmail; Sun, 06 Mar 2022 05:27:07 -0800 (PST) X-Received: by 2002:aa7:943a:0:b0:4f6:adc9:d741 with SMTP id y26-20020aa7943a000000b004f6adc9d741mr8217651pfo.30.1646573227137; Sun, 06 Mar 2022 05:27:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646573227; cv=none; d=google.com; s=arc-20160816; b=wlwFBA88v81C4r6jXNCo/blMQX7MdI/09j79YJI9dsZ4ftMzrizD8aDoEwmU4T3sMT hHlnToMcFCcwgQlWMtMR7FQ/PiiwU8ZmJDcjGqQRDEDEzYDF+Lf5GOmp4HQDvczWexg1 GdozIlwa3yadMO8fG5YPAP5cTJzz8wnwO0smUbepJfTDg1mkK2v6d3BSQNsE214VoOra GwqwOvdn6Ibkzz9eSYrmLZZ8hoyMMkV6FgzTqO4AoM4NPOZvyRWwvx0THqvX5mv9+PY+ BjDbzD10hp8kwJ6sMYSXrhrJijiiIFJPsRTFMkIJIAEtQSj7kzNIrlnKQ/nT0af1CZQX bHmw== 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=cp1mQG/b+wWUpZ/ujQ5/t4Bx/OjCz/vKPfP3H1Zsnjw=; b=j3lprrt8S+A7NTxx1Dm0gVdYlowKWnYH4O1+vwbV+xwHsupEG5Hyw2J5SxEH7RJgJE Xc8BCb6R1H1018fEsJ3DEm9bum3SA1qCOigmUpY1HHFm+JrX2ddSCMNXUBUR7yv1azAQ fYNJC4X+ZkP3C/uN/SGaHkTb4HdL4itRuOT0ZcVcEsLPu8/gmDf1TXFFcJZxoyJBB31W 52HvgPW4yIenXH7aXplvTRjTW1noaj5grAMQyC/KOyiNH8+QGIwpjqjaT8PIhRFLRZ7M 5ACboKEEmDMudup7g+TYN235EukDbJljHFXhnUmS/5lSk7Z63LHMsupfE3wH+ZiM/oFg /uNg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@boundarydevices.com header.s=google header.b=GirI9r3t; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::531 as permitted sender) smtp.mailfrom=gary.bisson@boundarydevices.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=boundarydevices.com Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com. [2607:f8b0:4864:20::531]) by gmr-mx.google.com with ESMTPS id f6-20020aa78b06000000b004f6a399529fsi349770pfd.2.2022.03.06.05.27.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Mar 2022 05:27:07 -0800 (PST) Received-SPF: pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::531 as permitted sender) client-ip=2607:f8b0:4864:20::531; Received: by mail-pg1-x531.google.com with SMTP id bc27so11426320pgb.4 for ; Sun, 06 Mar 2022 05:27:07 -0800 (PST) X-Received: by 2002:a63:db43:0:b0:378:906c:2a3d with SMTP id x3-20020a63db43000000b00378906c2a3dmr6185672pgi.209.1646573226471; Sun, 06 Mar 2022 05:27:06 -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 z2-20020a17090a170200b001bf2d530d64sm7734870pjd.2.2022.03.06.05.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 05:27:05 -0800 (PST) From: Gary Bisson To: swupdate@googlegroups.com Cc: Gary Bisson Subject: [swupdate] [PATCH 6/6] Android.bp: initial addition Date: Sun, 6 Mar 2022 14:26:35 +0100 Message-Id: <20220306132635.220607-7-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220306132635.220607-1-gary.bisson@boundarydevices.com> References: <20220306132635.220607-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=GirI9r3t; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::531 as permitted sender) smtp.mailfrom=gary.bisson@boundarydevices.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=boundarydevices.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , - 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 Signed-off-by: Gary Bisson --- Android.bp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Android.bp diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..9e08622 --- /dev/null +++ b/Android.bp @@ -0,0 +1,27 @@ +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"], +}