From patchwork Wed Mar 18 00:10:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaaira Gupta X-Patchwork-Id: 3146 Return-Path: Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4E44160422 for ; Wed, 18 Mar 2020 01:10:27 +0100 (CET) Received: by mail-pg1-x533.google.com with SMTP id b22so6635790pgb.6 for ; Tue, 17 Mar 2020 17:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=es-iitr-ac-in.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=YfIT1Yt53hgCUn3vRUOf6fxU4uEizHbf4TPXAnbxmIQ=; b=Gv3ytpyCMoSPpBtglrL72zekzRwSMP6LZYZMGE4ZKaIKNUqLQoKwhob7QomiZ9cdFJ pbOqS4alrqfjqTPucBMl3umuUWB3sam6Kgoyw07gGRvbHVLw5uK2YphPvopvw16Xgdv1 /BuZBfj5HxOiFMERjrDbD82XKPgSS/2MpwuzcLdfehSlzmkjmSCBDeIXGwAq4XU9mG/7 3KDn5WmyNXrXsh4iBX7alRxx169FtOovvyz6QQhzIx53X7/DOQ+sNtrd28Wg5lDGc9Io h70L7E43siP56KgxyrgPo8qrwTjbDCEGEn4GDTT7N8vI94avN9mEEg9YVhD5M4LYHfsC nw5g== 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; bh=YfIT1Yt53hgCUn3vRUOf6fxU4uEizHbf4TPXAnbxmIQ=; b=IaCBmIY4F4PoOKXuOXdCtHb1posTZJW0Bf8lSa7brvGShm1W/IEj7yEix7rSJCU08P v3yLViB89SyoHTgBw2m7W64iMxity8BbSe6HrwYnBalMO6AgYjOj+mTW0L2xojID4EqN STYDUctfTIhbE848/HpdYbXCYQK1YQ2iaWZc1I8mLT1Dm/1WLF9JWkYnnrrSA0dQNfKU l9/1taq/Px8WnMI4H8+en9aU3DPKYT9Hb4ao4psIZ34gD1gU6MM3l8F4KjgbRdDEs4Us /FlpV+CrsAnQ3fW4EUA7g553b05A1Y2GU2x4ZpM82LOhSIh5mkH2ofT4P3I4Iu6jNu2t fLOA== X-Gm-Message-State: ANhLgQ3kTmAGkirixO8A+CC84l2zUL1nfXLvJI/HHj+FYULKnEG1/Z3j mJ07zs9fsfUJd4NrQAJ2v++UcQ== X-Google-Smtp-Source: ADFU+vs1CO91+73x3waUPkBT5RCVnSd4h3uFk501a5oArZqaMEqWvPSf+PW6ZZoYJ2Dssa6XB0h64A== X-Received: by 2002:aa7:8392:: with SMTP id u18mr1343118pfm.41.1584490225761; Tue, 17 Mar 2020 17:10:25 -0700 (PDT) Received: from kaaira-HP-Pavilion-Notebook ([103.113.213.153]) by smtp.gmail.com with ESMTPSA id f127sm4177911pfa.112.2020.03.17.17.10.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 17:10:25 -0700 (PDT) From: Kaaira Gupta To: kieran.bingham@ideasonboard.com, libcamera-devel@lists.libcamera.org, Helen Koike , Vaishali Thakkar Cc: Kaaira Gupta Date: Wed, 18 Mar 2020 05:40:03 +0530 Message-Id: <20200318001009.32512-1-kgupta@es.iitr.ac.in> X-Mailer: git-send-email 2.17.1 Subject: [libcamera-devel] [PATCH LIBCAMERA v2 0/6] libcamera: determine IPA_PROXY_PATH at runtime X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 00:10:30 -0000 This is a series of patches to determine IPA_PROXY_PATH at runtime, removing hard-coded LIBCAMERA_IPA_PROXY_PATH from test.cpp and making isLibcamerainstalled() and libcameraPath() utils' functions. Changes since v1: Renumbered the patches to account for two additional patches as described below. Patch 1: Fixed whitespace problems. Patch 2: Fixed whitespace problems. Patch 3: NEW PATCH: Adds isLibcamerainstalled() and libcameraPath() as global functions in utils module. Patch 4: Earlier patch 3: fixed styling issues and used helper functions of utils instead of defining own functions. Patch 5: NEW PATCH: Replace isLibcamerainstalled() and libcameraPath() by helper functions defined in utils in ipa_manager Patch 6: Earlier patch 4: Fixed odd tab in comment description. Kaaira Gupta (6): libcamera: ipa_proxy: use utils::split() libcamera: ipa_proxy: rearrange proxies precedence libcamera: utils: add Libcamera installed & path libcamera: ipa_proxy: search for proxy in build tree libcamera: ipa_manager: replace by utils functions tests: remove IPA_PROXY_PATH environment variable src/libcamera/ipa_manager.cpp | 36 ++------------------------ src/libcamera/ipa_proxy.cpp | 37 +++++++++++++++++---------- src/libcamera/utils.cpp | 48 +++++++++++++++++++++++++++++++++++ test/libtest/test.cpp | 4 --- 4 files changed, 73 insertions(+), 52 deletions(-)