From patchwork Wed Feb 21 15:58:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 876156 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:400c:c0c::23a; helo=mail-wr0-x23a.google.com; envelope-from=swupdate+bncbcxploxj6ikrbqvow3kakgqepiz54ri@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="jwhsgtiX"; dkim-atps=neutral Received: from mail-wr0-x23a.google.com (mail-wr0-x23a.google.com [IPv6:2a00:1450:400c:c0c::23a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zmhxL0jZTz9sWF for ; Thu, 22 Feb 2018 02:59:01 +1100 (AEDT) Received: by mail-wr0-x23a.google.com with SMTP id j100sf1812353wrj.4 for ; Wed, 21 Feb 2018 07:59:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1519228738; cv=pass; d=google.com; s=arc-20160816; b=qAIRc0YAgSB3DVt6cDnovclQw8uKS2bg7SLCL9yovLA7WPWCo8XBHExs+W09ijbJi5 8X00FKi7LqzCQga+yk1Y3371I26Q7iTVVMO14c9fBJeyAxX3JAMd5hGYVLqjj2xqqtTM qvrCRkG7gTe5gNSxvzy2YldOoZnWt90thRlzZlCu9U6V8wOQhQk3ANy6qKUNFrpkGmBB DYmGZCifXTUF7np1hO8GqZz8QQVHMnIkSx6aJlMmdJzzNYDs4bT22e+1a2qmTgEpX0X0 mtwMLjCC3dEIbNLkMuOdfSbvlS/OIzh83oUxoKuwwqmrAT6idBvBZx5zYrZ5vE08QQL2 MvQg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:arc-authentication-results :arc-message-signature:mime-version:sender:dkim-signature :arc-authentication-results; bh=blN+CaAN/nEC35Q2tYx1rLte132P3axOvYfXdG0jFac=; b=Ia9G6SgGnBczSes54k7CnAeI1lO0qqrGKc/k7MLlCE+GIHHI0xCw+atKzsY8sgoPaD NR3WRbgE/I0JjVjMlUZDAf4Q0nmoXLfgyaGXNJ9TS22ivMlnHYN9JYkxPrK4/S7R4w8v yNVmtjDwr5yR5Wa5niaYdQKmRqZ2FPHzEkgorn6HcMYwajUODjhafb+zqAcTXFgzuc7v JephE8UoyPV6RfHohO21utjW3GqMLU7Y5Tc5AOBf5NSF0D3mZaTLsePC3vA70KshLqGb gQwneoeASWcCHaApmhuQYJA1n3mM8YDVht4LFiw8SfRPxplSlgzIDKhfBk46jKM2ZR6B u1qg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=blN+CaAN/nEC35Q2tYx1rLte132P3axOvYfXdG0jFac=; b=jwhsgtiXarACk8MiYTLO73ErcvGTZTvz0mst1VTXPTRLqoHFd7925+I4bD95oaLXRS Ov7bNx9/7py481LlS8sHbNB3b+qEbFn0bh3N4j79d9kxy2CyM8DOjizQ2tDvB3F/Onas eQgG8a4AfQk5VvYYMmKQaON7x6PaSFuXtAkHxOEbFMc1Yc3fJIyuELNCBIOgqj+VGEdv dl5jEVlhKwszWK2y0p1rXhyWMJKgJDh/jFX9Z6fUEpX62aBJlweoCqNzD3IGNyAeLcwa emBm8yQymmLve8asaNRAiGmmZYAm52q4nGlu5GZ8jXo2KMGEMy0pPUnYV/nvDbJW/YVA ZjtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references: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=blN+CaAN/nEC35Q2tYx1rLte132P3axOvYfXdG0jFac=; b=nLgiWpX7JfQPoIdBrFXVcuCsyVUel3/dThrce6t1Z2b0SrdMB9Zf/B0A8+NWZ5+S1+ E0yiMw7tRVqRSxR3XTDjmrxSv19euQvkudbXBc6C+B6l57eBAjLJqS4UJnY4tw56zKmk BotrVcsj0wC9MEF2Dti7jvAF9uzJOiZi31gDiOGyKBZjsD1JTGEil6MQduYPfib8EWiN SFGyr5tePVGcSzJMO9FT4nMpE3trCLrgNWoz7ZOy1i1d9Wcdp9TY5PS5BuOz/Nzw2gVF VF+DutQTqTgzf4sv5hQiLL0SY7W0hhXqXrJgREIlAglZXkbhcYW2yHMpcncvfnnmUstR tjlw== Sender: swupdate@googlegroups.com X-Gm-Message-State: APf1xPDhsylfQZiRBpRhQePT4OxErqZthhdc74fZwzK8XPPia0i7Z+CH ZCZso6StIzXSCCjJVt3g9sk= X-Google-Smtp-Source: AH8x225CRT85bv476SDjqnN9KuwY+cuYGxexJxJ9t0zqVdLNVl34koIzBcgPH8/Izh6yCwTVSOkXag== X-Received: by 10.28.153.7 with SMTP id b7mr42552wme.6.1519228738567; Wed, 21 Feb 2018 07:58:58 -0800 (PST) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 10.28.152.136 with SMTP id a130ls243213wme.3.canary-gmail; Wed, 21 Feb 2018 07:58:57 -0800 (PST) X-Received: by 10.28.10.65 with SMTP id 62mr295641wmk.30.1519228737920; Wed, 21 Feb 2018 07:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519228737; cv=none; d=google.com; s=arc-20160816; b=uRfa5E6ZFVQjf5R3MLHlmuUTb11BcKnRcm/ugr/GO8vd5rA1FDjXGrz7bxiHl4gItk tFbe0Ygb1IjCQJSmfS9qVA2rFzaWP4/6CrfUoqACB28O5zgONdY3KKcJdOoA0q2KndQJ sS4I6wYSiQJAOFor1kFpTYaNkBwlvUUzIqk7fe702vnYyT1Bt3m3dtc77L7hXjPYdWnh 6SJvgKA1ACr46LmLhgneWksNIaJbASLEsOnF9zWdijh7/xR+P9o30dcL+rGet/RbMBxS HKP82JBtT0EmBnadZ8fFVu6ecp3wEoV8/EgRn7X/sElj8qXk/PxevO7RbulbOGC2GGs5 emfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=v/q7XWsy+H8wwxSx/3cSlKPfO9oBXgX8eYL48RH/moQ=; b=cATqPDcKVj6Hq1y0vYt9Oh1qQIiv8EJ7DW7FXKAXZs02sq6qzEbd20fwWIcm56jXoO a86Fzk60lvo6bZmitVbj2HutP8i+FolwgTFyzw9M+vPts/dYReO6X6LQTWm65XTw1puD WO7rgLfBva5iNadXXlvaM5qtNSz/U6RjyWRkOU6JRdaZ1redl/ur3m43Q6OJRB2KRciu Kb7HA/EYmFF/rvazQOUnLKjVnlRGhiUVbwUEfEcom7gQVgsD9VlpyLEqTbenFrEch9j2 GNbZ76iSqnvEw1liW9jJuQ2SvRzG8DA+aApjrjyEVyz5BVKJuHB1ASzM0Ijf9DHPaMlx pEQg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id 200si903262wml.2.2018.02.21.07.58.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2018 07:58:57 -0800 (PST) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zmhxF4ckQz1qtG3; Wed, 21 Feb 2018 16:58:57 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zmhxF45Wdz1r2Zp; Wed, 21 Feb 2018 16:58:57 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id TkcLO9QBsZFT; Wed, 21 Feb 2018 16:58:56 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Wed, 21 Feb 2018 16:58:56 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 708014540361; Wed, 21 Feb 2018 16:58:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5NImla0N6Cqt; Wed, 21 Feb 2018 16:58:54 +0100 (CET) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id 4113245402F0; Wed, 21 Feb 2018 16:58:54 +0100 (CET) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH 2/2] [meta-swupdate] Support for web-app if choosen in defconfig Date: Wed, 21 Feb 2018 16:58:52 +0100 Message-Id: <1519228732-20082-2-git-send-email-sbabic@denx.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519228732-20082-1-git-send-email-sbabic@denx.de> References: <1519228732-20082-1-git-send-email-sbabic@denx.de> X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de 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: , The swupdate-www package will be filled with the new web application or with the legacy Website if the Mongoose server is set to compatibility. Signed-off-by: Stefano Babic --- recipes-support/swupdate/swupdate.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes-support/swupdate/swupdate.inc b/recipes-support/swupdate/swupdate.inc index 7175848..6af320f 100644 --- a/recipes-support/swupdate/swupdate.inc +++ b/recipes-support/swupdate/swupdate.inc @@ -91,6 +91,8 @@ python () { if 'CONFIG_UBIVOL=y\n' in features: depends = d.getVar('DEPENDS', False) d.setVar('DEPENDS', depends + ' mtd-utils') + if 'CONFIG_MONGOOSE_WEB_API_V2=y\n' in features: + d.setVar('SWUPDATE_WWW', 'webapp') } do_configure () { @@ -112,7 +114,11 @@ do_install () { install -m 0755 swupdate ${D}${bindir}/ install -m 0755 -d ${D}/www - install -m 0755 ${S}www/* ${D}/www + if [ x${SWUPDATE_WWW} == "xwebapp" ];then + cp -R --no-dereference --preserve=mode,links -v ${S}examples/www/V2/* ${D}/www + else + install -m 0755 ${S}www/* ${D}/www + fi install -d ${D}${libdir}/ install -d ${D}${includedir}/