From patchwork Sun Mar 6 13:26:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 1601749 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=GkYZa5vJ; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::1040; helo=mail-pj1-x1040.google.com; envelope-from=swupdate+bncbcl5ryhm6ecrbipnskiqmgqeaxu3zyq@googlegroups.com; receiver=) Received: from mail-pj1-x1040.google.com (mail-pj1-x1040.google.com [IPv6:2607:f8b0:4864:20::1040]) (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 4KBMng5W51z9sFN for ; Mon, 7 Mar 2022 00:27:02 +1100 (AEDT) Received: by mail-pj1-x1040.google.com with SMTP id mz5-20020a17090b378500b001bf46a762basf1848585pjb.5 for ; Sun, 06 Mar 2022 05:27:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646573217; cv=pass; d=google.com; s=arc-20160816; b=qYjajfLDu9khCtqmrqZP2sYRcjf3AnPx0y1vpRXiDJicAWj0RjakePYxR1j1C5BrZQ cfm7rEUXfmiNJvFnafGQAblFTj5NcRExRr3GlJPQL39wqiPasJ3aqy/Qj1aN6DkUUNrv tw2M1ojPFq7PSz5DWBIQXI75ESvpIu7KEMnCWbLswjUHVKUW+IfSa9b+anr5kRgPI+5c 1OzJAq+OV3OYQQTwhQveKW2nJHmn99Q8nK5e8Bt3IOMj2lf7qMbQ2zjNtpcgIqFMoWol jtADprjCmdqwgZZnG1XCs76LYt+jq9XHMkWMllknXjHWij4aegdwiLD+rXCHjLBLpstQ 0Pig== 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:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=iuFV/NIVQLxl9GK7tFLwmnWpOoJlCz0tpGTwTNWlQE0=; b=FlOkgq4aLHb518hVykNVXVwiN6x5jw52+ci90lnJk1/a14018CKTqH9HAqUfqxFYwy encYZUVVqQKy9D9GpfWYhfn99tiP/9/hLJ7IEux+CsU0TeZCnGQpKYxLUe879V01epGT d27vF3r7PNliS8ApQ6xJ0Hp0biXARhesFDDkB/bQIC2Grkak6isEMh/eaLUrve6w7wuO HHkTlXL7J9mA6U0AYA9lQ48YMj/YobQXIE9ubKCjHN4QgvDdyEBIZSUcPTBejCn7E1tP wpmMsDMLatIQWlYea4uwoQXAimvqjt05cbNBuqBWaqANCbHjxh0IKZc14LUTg6vghg/B fR0w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@boundarydevices.com header.s=google header.b=ZCJxRG32; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::42e 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: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=iuFV/NIVQLxl9GK7tFLwmnWpOoJlCz0tpGTwTNWlQE0=; b=GkYZa5vJM/a5z20iiGV1Bk8Uyq3EacbkdnKCLDPggBqOwP+Sjqd1+ZhfYi3G5eNAT4 oM4xTQc16a/vz+B6GhvHhLV2Szo2Mz48Gi+kwRbeov7a4RlfBt1Qc1IKAP7e5/RDiYFz zohnl5uQ3LywyCyWuScvj7L3UH04fV6MNl5+FfXF7NVXYEvtsW0XUuav2F9HTKaorWDC +uCiRjx6KEq8x9jB5ESbGkjPHKJZ++tWKKQpPtZb7V+k8eWGwF4yTfo2Ht2UTarHWDKy lOLOhoUuN3BU9p/I/57XL6LXvYCP5WgmkQUDRGS3fiMPaRA0zEYrckEXeaMb0ZeaSmxn 4uXA== 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 :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=iuFV/NIVQLxl9GK7tFLwmnWpOoJlCz0tpGTwTNWlQE0=; b=rJ7892duVaSzXzDCVSUDLNbKk0ANNcIFPuGWdQ1Dj0sA/kNDj/Ori4jtw5zbUK97Iw gC7YQcNIOkI9OL5NV4SRL4i7IRaCMroSODMpgwN63CeEOrRtylSpfEFgKbm0PLz9bOv9 girFl9mWaJY1cOjxkA8yPepPzST4pe3hW1r3Koj7zd01vVoqy5NrTmrrd6vbxxuVAQVB MpkhvEG2gR5EUo6PDNqf/rX75RCenEvnlHlxvIwK8v7+qWKge3Qcgtjna74sZDIiy8U8 qdrDC1MuxC7P263ecpb3gds8kSLdRFzXfExrjV4a6E75shPjW5UwjEKMdkbWL+N41UYI gZIg== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM532Aqu7cSft/yLKEMhr50JKAJ8DF/k1TD3okOlQSmzJZkkfssEIE W+Jo9ro7xlUDTdVuDzHze9g= X-Google-Smtp-Source: ABdhPJwNu/XBO5pFnUO3b2u7kDipsvwdD3rYwXlZzdQROSPKKN4QmumzihQmouLW1Va/Gstxy+L3Cw== X-Received: by 2002:a17:90a:cf87:b0:1bd:3595:3ee4 with SMTP id i7-20020a17090acf8700b001bd35953ee4mr20363413pju.100.1646573217660; Sun, 06 Mar 2022 05:26:57 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a17:90b:4f41:b0:1bc:ff52:38de with SMTP id pj1-20020a17090b4f4100b001bcff5238dels11684889pjb.1.canary-gmail; Sun, 06 Mar 2022 05:26:57 -0800 (PST) X-Received: by 2002:a17:902:bf06:b0:14d:8c72:96c6 with SMTP id bi6-20020a170902bf0600b0014d8c7296c6mr7926466plb.156.1646573216972; Sun, 06 Mar 2022 05:26:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646573216; cv=none; d=google.com; s=arc-20160816; b=kuQaoRbt9iVn7uFvlEcENVCAKew3gACW2NhuPzVDsMvEIwsBpjJJrhHj90zfyItNAw ckvSl4S3jm9bfznuM/Cgef9vd1lFdD9r0aKMQegv4gTW6FEqzKHzD+K/cmq6v0l1n3Xf twL4ISaEQ+qKfFxNJH6gQoE03LjREH+qv49tFAx2PnMb0MLsmHW1dfCC+R4MmmXMtST/ XLibeEIEeUKxbRGMoK0gGnPKjtUIoo/CnojhbIBToBEshRtduVFm6Xm3u7Y3uIHC23eE JHClXmK1n1KTCbxW9jw5ohv6z0uafBdQxywdbYGsETH2p5oS8+17htbbEZsMJy1umVjY 2khg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=Ojd+Mb8eSArrPP052gPSJsJNf/Nbt+c3s98oDFEXj2s=; b=eGon55q4PKJR0bptNXiuavhH5OALpDIS4egp1cKrAt9Urp+TgrFCouujor++vdJniV XAxmSHDyRtRH9mpyz08uJai7GaObTAo/R13EzURGiGtVCItqphNbmSIMTHCBg5KAMF7e Ydn1YpMJ4RdoneldiVJBkI5fWpKF5k35j7Y+dl43yRpKbHwIvBnJewFIResXoRkoArqG w3AEDixz1wb0vf2NDhCOidPd+Q3jgk5409BtljLgGEj8WU67PJteElmATmqs/7LNa+1l WrH6PEE1O3g2F63CGunyHim825PW431fv+LiqLAEEU/SJ7dzCRi/Xu4g/2Cx2TzUKwDq zw1A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@boundarydevices.com header.s=google header.b=ZCJxRG32; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::42e as permitted sender) smtp.mailfrom=gary.bisson@boundarydevices.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=boundarydevices.com Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com. [2607:f8b0:4864:20::42e]) by gmr-mx.google.com with ESMTPS id i4-20020aa78d84000000b004e156ea5573si547039pfr.4.2022.03.06.05.26.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Mar 2022 05:26:56 -0800 (PST) Received-SPF: pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::42e as permitted sender) client-ip=2607:f8b0:4864:20::42e; Received: by mail-pf1-x42e.google.com with SMTP id p8so11531107pfh.8 for ; Sun, 06 Mar 2022 05:26:56 -0800 (PST) X-Received: by 2002:a65:4143:0:b0:375:89f4:b46a with SMTP id x3-20020a654143000000b0037589f4b46amr6115861pgp.335.1646573216085; Sun, 06 Mar 2022 05:26:56 -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.26.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 05:26:55 -0800 (PST) From: Gary Bisson To: swupdate@googlegroups.com Cc: Gary Bisson Subject: [swupdate] [PATCH 0/6] Add Android support Date: Sun, 6 Mar 2022 14:26:29 +0100 Message-Id: <20220306132635.220607-1-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.34.1 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=ZCJxRG32; spf=pass (google.com: domain of gary.bisson@boundarydevices.com designates 2607:f8b0:4864:20::42e 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: , Hi, This series adds support to build libubootenv library as well fw_printenv/fw_setenv for Android. As Android uses the Bionic C library, it doesn't include index/rindex functions, so those have been changed to strchr/strrchr as recommended by the man page anyway (see first patch). As Android uses clang, it showed a few warnings when building, some of those have been fixed in that series, some of them are discarded in CFLAGS as explained in the Android.bp addition patch. The series has been successfully tested on Boundary Devices Nitrogen platforms with Android 11. Let me know if you have any questions. Regards, Gary Gary Bisson (6): uboot_env: switch to strchr/strrchr uboot_env: fix pointer-sign warnings uboot_env: remove unused variables uboot_env: remove unused parameters uboot_env: remove unused function Android.bp: initial addition Android.bp | 27 +++++++++++++++++++++++++++ src/uboot_env.c | 35 ++++++++++++----------------------- 2 files changed, 39 insertions(+), 23 deletions(-) create mode 100644 Android.bp