From patchwork Thu Apr 18 18:44:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: 'Darko Komljenovic' via swupdate X-Patchwork-Id: 1087794 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:4864:20::23a; helo=mail-lj1-x23a.google.com; envelope-from=swupdate+bncbdsmnwxtyuprbt4l4psqkgqebemqtkq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=googlegroups.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="dBN0tbmj"; dkim-atps=neutral Received: from mail-lj1-x23a.google.com (mail-lj1-x23a.google.com [IPv6:2a00:1450:4864:20::23a]) (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 ozlabs.org (Postfix) with ESMTPS id 44lSjH5WMSz9s4Y for ; Fri, 19 Apr 2019 04:45:39 +1000 (AEST) Received: by mail-lj1-x23a.google.com with SMTP id 28sf544384ljv.14 for ; Thu, 18 Apr 2019 11:45:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555613135; cv=pass; d=google.com; s=arc-20160816; b=zGuBHZ7rdMvc17rjijoKC6Ggr/+8PXsQ8/m8bY/gTyQJq+KKVRDb2I/tiOLvJgWQ4K 0mynSfv80An4JgglXNwiSdU3WUBttLi4+D16R0zQ+ZQXzmhTUYHGSXejeCPmBbJKBxrW Y/wTMN7F8H8iXFWyU6efGQ9jSpxrneqC7zkpmbnrimwRVJU9XgD57g0vfFKbg/eSaeVq 0gEkbSSojtDeobXpClIITKvczzHctBkdYigt7JmPTuWIvemTvhFHYfmDmXMBbI8pvDrN agqB3gRlgNgHa3HWN4RWT8vH07mCLCqGo+WfqfZp8hW+0SiXPCx6KgBThYKcjGx6rFtq WLdA== 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:reply-to:message-id:date:subject:cc :to:from:mime-version:dkim-signature; bh=949fOeGt5fr0cImlYE9E1BjPekhcM8arSiawcOxJBDE=; b=RqO5YSWWu4F8WqFsaS1CZrezWGKzxsl7nhBeNPPmjJ69BwDAAIEmuRX4XSfA174b4D 6bLMWaRPVFxbaqyQgBFsfJgUpRso4nXdfTb00FRqRpff64hf1B2bSnQKK5jb+nkcnDVL CIC5GM6ja5uyRl/KtL42w/DKOGYsZRUKMocgWlPV9fMNuGK1gu5FAUBtnXlUApnpodLM JHzeOgiRM5gf+Kn4ta6ibRq8HlnRWuegGrbxQku1eGtm0btHKc09BasnuWy7Q7duFT9j lGGWt6rIA5zxE96ZJGTL0y339EPiiWwxS0AVj6lMU2b0+w70ScXMbLRaO1Ew3a35g+MC jSGA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@koncepto.io header.s=default header.b=lLz1S5Ah; spf=pass (google.com: domain of pjtexier@koncepto.io designates 195.154.119.111 as permitted sender) smtp.mailfrom=pjtexier@koncepto.io; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=koncepto.io DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=949fOeGt5fr0cImlYE9E1BjPekhcM8arSiawcOxJBDE=; b=dBN0tbmj/8m/56Jet6gfYY0SKr+3S4BoVVE08BMGFdyvWzraHrTYKP7iJDf3WhSYap 0CQms2gHQOtdBUmhCRdLnXlaBmFIXilUQCBqpcJLqCu/02/zRp6SUWYiiPJvO6b0uPXU +ivHtVaHrrUfns5C4qecOH6GXzxty7b888OvN5g+3KTqlxilngl4lnEbac3RCY7Gx9Wo NpXvr2NpXV/tZ6wa7kA/TkQFdA8qZsu08sXd4Qi1YY+a+2wvZdx9r8bBpQJ4W1xGqgX6 h0oe4QDaBM/NWkSRXgSB5HaNxy/itakzqQo0AjTRoq/CueX4kfrrdsxbCsYQC2LD3cnf ObRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=949fOeGt5fr0cImlYE9E1BjPekhcM8arSiawcOxJBDE=; b=tGub3XaWoQX7jF8+kl6DbyZbbgb6Bmt0UHlAWm1fKimk/Gv/KTMpWa+3Ec4AI2e+s9 R22XgntoN3QdXYZ58q0O3Qha/cGuYDrebuftQbNWnvBi7mtJ9HpbmUhEG4PxFsLT/avm 9rpGfjb+cBH7dtuBvVG8Ay+1xhoOvjx4v+6o5b7zqPl18Hn/Jaxq0W0O6THkIONi222+ DTc5zguQUq70wbh6Iiq0fLl60iHDqovfQgAdw3vAebSJ2It91jT0vPiKJZmtQINBL0Ve CJX4oNucK/QYaNO5v6lJd7Jz5uNx+42s2+nCjpZaVnp8v2H3ujczc/IRu4Hw6d1HeXNZ q7fw== X-Gm-Message-State: APjAAAU2YYZsLVSkQpD7b29o6JMU6I5jRXC72FBHKzLaYw2kh9S0V5dq c1yntisqOZ4MPMn8ujvDM10= X-Google-Smtp-Source: APXvYqwdRlk2Y2XpnH6N8zf5WAaiVclN1pyfd/nsUSc4hBk16L9XzwyWmU8fPRfS0RidJr+tyl0XXQ== X-Received: by 2002:ac2:4152:: with SMTP id c18mr50676868lfi.84.1555613135418; Thu, 18 Apr 2019 11:45:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a19:7617:: with SMTP id c23ls276642lff.14.gmail; Thu, 18 Apr 2019 11:45:34 -0700 (PDT) X-Received: by 2002:ac2:4119:: with SMTP id b25mr33825609lfi.72.1555613134608; Thu, 18 Apr 2019 11:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555613134; cv=none; d=google.com; s=arc-20160816; b=X6pm5ifaq3toCIIX4x34D71Ku4QI5mpcrOqTdBon7IdIXinWQgq7fz3c4cu7kfFOKX HesWUS8LUy97ZvNYrFVoloIJ7OxYLmnp0fkHRb0hA2Mocew2hkMd97v5kwW61m40LPx2 Hl7EP61Xru9cuo8FVVBAocbzLtIhVhCYHgp4nR4hhtwFy3uDDtKYod7YuTSKNTo3a+VW aFch/y4Mp7+qNl7R7xIVNQd4VFN7sFv2V4YQybKuBem4hMCN8HbhUVfs+pwDuIjJhlV1 qEHgr022AXKksNvc2Mt2hWKP3s8Ky145ZBFPEHQ0Ha6pDs2tSh0e0I28iUznSBq7ES0z XXIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=fNRlP281RHwf5Y7dwUDqJbeab02/zNhsvT+URT3/WTE=; b=Vl3OD8j4RHI6oprukUucQ7jyTL7rVcMh0ZMd0GR4LeE5NLMx/lsPMXfqnusxKnXV3z XK1qvdlh6tiLEzixjzgzBcy4HiKOHINn1G03nAcXSOUinaybDtn6b/0rs96+KF/9t722 HLytNuv5ogPGJmC5Ygo/PORAZ/D1/G7EcVw4mTG9CKtSGx2FJFOBIFir8joEMP5TzYPi lyWoZtgoTPvMRnxFv5jEsC8ZWwzqI81lNkijnf5QsVlBjarleZftbBQKoNgR60AU0e4y NgH+KgfCqSEPoyktPweNBawXGOV1B77a+T4MTlMH+kR33Hyd/XmugnCcOxWOTo55tCB+ 4cNQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@koncepto.io header.s=default header.b=lLz1S5Ah; spf=pass (google.com: domain of pjtexier@koncepto.io designates 195.154.119.111 as permitted sender) smtp.mailfrom=pjtexier@koncepto.io; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=koncepto.io Received: from koncepto.io (koncepto.io. [195.154.119.111]) by gmr-mx.google.com with ESMTPS id m25si147054lfl.1.2019.04.18.11.45.34 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2019 11:45:34 -0700 (PDT) Received-SPF: pass (google.com: domain of pjtexier@koncepto.io designates 195.154.119.111 as permitted sender) client-ip=195.154.119.111; Received: from localhost.localdomain (lfbn-1-8938-37.w193-250.abo.wanadoo.fr [193.250.79.37]) by koncepto.io (Postfix) with ESMTPSA id DFD9A6010A; Thu, 18 Apr 2019 20:45:32 +0200 (CEST) X-Patchwork-Original-From: "'Pierre-Jean Texier' via swupdate" From: 'Darko Komljenovic' via swupdate To: swupdate@googlegroups.com Cc: Pierre-Jean Texier Subject: [swupdate] [meta-swupdate-boards][PATCH 1/2] layer.conf: add layer compatibility to warrior Date: Thu, 18 Apr 2019 20:44:54 +0200 Message-Id: <1555613095-13251-1-git-send-email-pjtexier@koncepto.io> X-Mailer: git-send-email 2.7.4 X-Original-Sender: pjtexier@koncepto.io X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@koncepto.io header.s=default header.b=lLz1S5Ah; spf=pass (google.com: domain of pjtexier@koncepto.io designates 195.154.119.111 as permitted sender) smtp.mailfrom=pjtexier@koncepto.io; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=koncepto.io X-Original-From: Pierre-Jean Texier Reply-To: Pierre-Jean Texier 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: , Signed-off-by: Pierre-Jean Texier --- conf/layer.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/layer.conf b/conf/layer.conf index 5764346..b8cffc1 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -14,5 +14,7 @@ CORE_IMAGE_EXTRA_INSTALL_raspberrypi3_append = " parted" LAYERDEPENDS_swupdate-boards = "swupdate" +LAYERSERIES_COMPAT_swupdate-boards = "warrior" + BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.%s' % (layer, ext) \ for layer in '${BBFILE_COLLECTIONS}'.split() for ext in ['bb', 'bbappend'])}" From patchwork Thu Apr 18 18:44:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: 'Darko Komljenovic' via swupdate X-Patchwork-Id: 1087795 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:4864:20::23f; helo=mail-lj1-x23f.google.com; envelope-from=swupdate+bncbdsmnwxtyuprbuml4psqkgqekkp6nmi@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=googlegroups.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="cJe5Tvml"; dkim-atps=neutral Received: from mail-lj1-x23f.google.com (mail-lj1-x23f.google.com [IPv6:2a00:1450:4864:20::23f]) (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 ozlabs.org (Postfix) with ESMTPS id 44lSjJ51RSz9s55 for ; Fri, 19 Apr 2019 04:45:40 +1000 (AEST) Received: by mail-lj1-x23f.google.com with SMTP id 27sf551737ljs.5 for ; Thu, 18 Apr 2019 11:45:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555613137; cv=pass; d=google.com; s=arc-20160816; b=hKRRv4i2NdkyhcOi++IfilZepzP5wpL5YCOzHQY26ZW2Kpc0IDbI+ngEnLoLIz/qyq Zw46wlWKkD7jm+U2+7pn148v7Zs8EDCP27uBIMDYgIxziTJneUgay6ClXxpkadX2X3v9 JaLyo458l1UffYUAkj44qLMuXeUNWxqGgksOD823BtFoeOBkaZ9Eq7mjX0AroaiK90qj nJRyybwSH+gJWBdC/cEK2/0iOfAV8b90f60fmKI3CtDPwdvs+yP85SkTzaQggboiXY99 2ASPqyGxDtiKzKdL9DiQn3jhl57vHr72jRSutT/envNOple3qDL81N2/+nTbzEVvxzvy GceA== 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:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:mime-version:dkim-signature; bh=Ba6x97u78op+lG3VPiWo6sGwpNP2HK32MAfQMLP/8II=; b=GoKur4BQ7WXVRL7h1p6/h843Mlj/coW2bOUqpojPeRvlfp8pLOgUB82G4Mfz2cGY1E /yZtJ6I8ZVW75bueUiOMyoRyAYIQHNhkaKa2s6ftlsFGo4fA3btQR8CqVwQ/3l3JsFyI yQYkd9FBKy1GxpoEdWSk/StYPs0WVfm/tUtbF4rNgqc91i9fXUboyR9UC171eRp1n44U kEcCsgQxfE/YSKgZsFgKcRYHVwqQyj90PIYc/FsJ/mVl3WF5dR9wpXdr5j7SajP6VWaZ cIjJ7t6G6vnEYM5PO/7JK+xEgHRdDFIQDdaLRQFiTK4CAAsOeb7mRHyI4FITEXLRwKfm 5AMA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@koncepto.io header.s=default header.b=qn7JLaw4; spf=pass (google.com: domain of pjtexier@koncepto.io designates 195.154.119.111 as permitted sender) smtp.mailfrom=pjtexier@koncepto.io; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=koncepto.io DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=Ba6x97u78op+lG3VPiWo6sGwpNP2HK32MAfQMLP/8II=; b=cJe5Tvmldo/kW0rF05VFC3YcKdWPG+MRgTQr5DPW3UCOnzh0s8PClazr52rLvw6Yo5 TQmgUaorbSdy4Rod/HFB3mC+3j4jxCujsO+I2MIP3B2PueeQvyKpVeCQfA7C4faafjR7 D7+e1wNskQTZJTSaGQ24RJfa5aIVKV0tNgpuh/f4Qdp1qK0ebxLR/m9OAd+4DoVq3JZs L+LFnUcxtbOcQjlOTC5+ZNcGUH3V6EUmtU3FmIkkbAJYYBe1uTmfwC7/UxLAN74UuP3t xQZk/nTqXbDCD4KPXFv02N2Z85VAxr4fD0gJXoCgSK0bYVD3f8Zg37LfyLUreiqvz/87 Ypyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Ba6x97u78op+lG3VPiWo6sGwpNP2HK32MAfQMLP/8II=; b=XDNCyQ9fT2FkBTw109MlyUgqXyo0HOV1e56AoemN0lsXhlDHXfs99CCHsG45OYrI3c sCgKayAotDxfS2OiNvO1EL1CqX/D1mEyIPnNxGcNuPg8KWn0sBX75Eli9Ln8la1HNq9p NmiXB8MTriwgdsShd8n7AvJrMm/AeQ0azH94E+IFYolJzOPXO4k1EWvnmqBTu6DkgBcT YB7GFpiSfx8bFf7cff2gI/vdrpIIgG7kIn9B605HdQBOHsUrFuRphULDoWVh2vjHGHxX h1QWt28KER2kwn6ywbFnwCD2FlXjsNKAIKUdUGjPiNB6t/zMeHoG5bN7npWZwA06YfxF 1lXw== X-Gm-Message-State: APjAAAW6owaCHcUFOzJ9b4VOuYivwZ05jBm0MNoh4rlcdt8/FSN5T+d4 fPMJ+ANmEPonu8OtKtYzEkg= X-Google-Smtp-Source: APXvYqz2j4nu5jJ3LzHuZJXTvA66auBi1Mw75ypPienav1ipfcpR0o+d/d6CZPdPHYa4tt4Ztz8QFQ== X-Received: by 2002:a2e:6a14:: with SMTP id f20mr54491137ljc.65.1555613137196; Thu, 18 Apr 2019 11:45:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:9a8b:: with SMTP id p11ls323956lji.11.gmail; Thu, 18 Apr 2019 11:45:36 -0700 (PDT) X-Received: by 2002:a2e:3c0a:: with SMTP id j10mr2328110lja.164.1555613136577; Thu, 18 Apr 2019 11:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555613136; cv=none; d=google.com; s=arc-20160816; b=TAwfT38JDiKM8w1vM5SZI9SqtzVBvQkNaAf80WoW23BJB4f2L1LbnzP7h5+SK8eerc kpmmBAvVALjGBXv3sq9jLVXYuSH+RJ/zAyro9/lClUgpkfA0L47oLLG+Xf7sc9hOa9Uy EYzeXSZU2MpuWT0sp8DcW2DO5B/70BO48pP1enUzzxznvF/eaO8Srf54h3pS0Klp5s2n Hzv5OvDcpT+SaFvs+7ZuUyD5OncazMpE8Li9PovfRrQEIZ5X3F/a6RsxH8bX0FFL6CJ8 j+r6waeEpR1XzIzkdG+4stoWkKIqDu+TkxXebdn3n50nAWWJfJbgrOI6FkaqScEqzhoK 7n7A== 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 :dkim-signature; bh=QDbkYQECkun2IfbIxD+FBjCyCaYogg3Z+jI+VE0WBFg=; b=sZiSXEhv1h3Pd+6WQjjgmFmYa71F6Maq9pAyLqdiHmT8COtQtC095DvDp0AOjqr+4a FuR9Ixu2DrxFbe4xZABOF5WAXVWzkrMJev049t1EwCgrblWIyf3ZLh1/DOnhOrw/3GUQ bZECA+ioXrPS6XND2/Pkcv+u7ASpFzl5pvg8s+J+Ndih7quZIWGgmYZCxyuYzxefWc8/ f3X3TYifRCki4eQeIQ5dmRu7psR3x214R6xzli4rkh5+zpkzlcGbhdyvQuPzI3RJCIz3 z8bJou03bXMfxckL67g/s8fyavGnchxfUXQkReZXu/MRL8jVcnXdP6jQNveWGTdulysV SX9w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@koncepto.io header.s=default header.b=qn7JLaw4; spf=pass (google.com: domain of pjtexier@koncepto.io designates 195.154.119.111 as permitted sender) smtp.mailfrom=pjtexier@koncepto.io; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=koncepto.io Received: from koncepto.io (koncepto.io. [195.154.119.111]) by gmr-mx.google.com with ESMTPS id h7si220413ljj.5.2019.04.18.11.45.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2019 11:45:36 -0700 (PDT) Received-SPF: pass (google.com: domain of pjtexier@koncepto.io designates 195.154.119.111 as permitted sender) client-ip=195.154.119.111; Received: from localhost.localdomain (lfbn-1-8938-37.w193-250.abo.wanadoo.fr [193.250.79.37]) by koncepto.io (Postfix) with ESMTPSA id C25506010A; Thu, 18 Apr 2019 20:45:35 +0200 (CEST) X-Patchwork-Original-From: "'Pierre-Jean Texier' via swupdate" From: 'Darko Komljenovic' via swupdate To: swupdate@googlegroups.com Cc: Pierre-Jean Texier Subject: [swupdate] [meta-swupdate-boards][PATCH 2/2] meta-swupdate-boards: rename beaglebone to beaglebone-yocto Date: Thu, 18 Apr 2019 20:44:55 +0200 Message-Id: <1555613095-13251-2-git-send-email-pjtexier@koncepto.io> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555613095-13251-1-git-send-email-pjtexier@koncepto.io> References: <1555613095-13251-1-git-send-email-pjtexier@koncepto.io> X-Original-Sender: pjtexier@koncepto.io X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@koncepto.io header.s=default header.b=qn7JLaw4; spf=pass (google.com: domain of pjtexier@koncepto.io designates 195.154.119.111 as permitted sender) smtp.mailfrom=pjtexier@koncepto.io; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=koncepto.io X-Original-From: Pierre-Jean Texier Reply-To: Pierre-Jean Texier 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: , Signed-off-by: Pierre-Jean Texier --- .../u-boot-fw-utils/beaglebone-yocto/fw_env.config | 3 + .../u-boot-fw-utils/beaglebone/fw_env.config | 3 - .../update-image/beaglebone-yocto/emmcsetup.lua | 85 +++++++++ .../update-image/beaglebone-yocto/sw-description | 63 +++++++ .../images/update-image/beaglebone/emmcsetup.lua | 85 --------- .../images/update-image/beaglebone/sw-description | 63 ------- .../swupdate/swupdate/beaglebone-yocto/defconfig | 103 +++++++++++ .../swupdate/swupdate/beaglebone-yocto/swupdate | 193 +++++++++++++++++++++ .../swupdate/beaglebone-yocto/swupdate.cfg | 47 +++++ .../swupdate/swupdate/beaglebone/defconfig | 103 ----------- .../swupdate/swupdate/beaglebone/swupdate | 193 --------------------- .../swupdate/swupdate/beaglebone/swupdate.cfg | 47 ----- 12 files changed, 494 insertions(+), 494 deletions(-) create mode 100644 recipes-bsp/u-boot/u-boot-fw-utils/beaglebone-yocto/fw_env.config delete mode 100644 recipes-bsp/u-boot/u-boot-fw-utils/beaglebone/fw_env.config create mode 100644 recipes-extended/images/update-image/beaglebone-yocto/emmcsetup.lua create mode 100644 recipes-extended/images/update-image/beaglebone-yocto/sw-description delete mode 100644 recipes-extended/images/update-image/beaglebone/emmcsetup.lua delete mode 100644 recipes-extended/images/update-image/beaglebone/sw-description create mode 100644 recipes-support/swupdate/swupdate/beaglebone-yocto/defconfig create mode 100644 recipes-support/swupdate/swupdate/beaglebone-yocto/swupdate create mode 100644 recipes-support/swupdate/swupdate/beaglebone-yocto/swupdate.cfg delete mode 100644 recipes-support/swupdate/swupdate/beaglebone/defconfig delete mode 100644 recipes-support/swupdate/swupdate/beaglebone/swupdate delete mode 100644 recipes-support/swupdate/swupdate/beaglebone/swupdate.cfg diff --git a/recipes-bsp/u-boot/u-boot-fw-utils/beaglebone-yocto/fw_env.config b/recipes-bsp/u-boot/u-boot-fw-utils/beaglebone-yocto/fw_env.config new file mode 100644 index 0000000..f6e4e61 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-fw-utils/beaglebone-yocto/fw_env.config @@ -0,0 +1,3 @@ +# Block device example +/dev/mmcblk1boot1 0x00000 0x20000 +/dev/mmcblk1boot1 0x20000 0x20000 diff --git a/recipes-bsp/u-boot/u-boot-fw-utils/beaglebone/fw_env.config b/recipes-bsp/u-boot/u-boot-fw-utils/beaglebone/fw_env.config deleted file mode 100644 index f6e4e61..0000000 --- a/recipes-bsp/u-boot/u-boot-fw-utils/beaglebone/fw_env.config +++ /dev/null @@ -1,3 +0,0 @@ -# Block device example -/dev/mmcblk1boot1 0x00000 0x20000 -/dev/mmcblk1boot1 0x20000 0x20000 diff --git a/recipes-extended/images/update-image/beaglebone-yocto/emmcsetup.lua b/recipes-extended/images/update-image/beaglebone-yocto/emmcsetup.lua new file mode 100644 index 0000000..88eba77 --- /dev/null +++ b/recipes-extended/images/update-image/beaglebone-yocto/emmcsetup.lua @@ -0,0 +1,85 @@ +function os.capture(cmd) + local f = assert(io.popen(cmd, 'r')) + local s = assert(f:read('*a')) + f:close() + return s +end + +function file_exists(name) + local f=io.open(name,"r") + if f~=nil then io.close(f) return true else return false end +end + +function cmdexec(cmd) + local ret, s, status = os.execute(cmd) + if (status ~= 0) then + return false, cmd .. " return with error" + end + + return true,"" +end + +function preinst() + local out + local s1 + local ret + + local log = os.tmpname() + + local eMMC = "/dev/mmcblk1" + ret = file_exists("/dev/mmcblk1") + + if (ret == false) then + return false, "Cannot fine eMMC" + end + + cmdexec("/usr/sbin/sfdisk -d " .. eMMC .. "> /tmp/dumppartitions") + + -- check if there are two identical partitions + -- and create the second one if no available + f = io.input("/tmp/dumppartitions") + fo = io.output("/tmp/partitions") + t = f:read() + found = false + while (t ~= nil) do + j=0 + j=string.find(t, "/dev/mmcblk1p3") + fo:write(t .. "\n") + if (j == 1) then + found=true + break + end + j=string.find(t, "/dev/mmcblk1p2") + if (j == 1) then + start, size = string.match(t, "%a+%s*=%s*(%d+), size=%s*(%d+)") + end + t = f:read() + end + + if (found) then + f:close() + fo:close() + return true, out + end + + start=start+size + partitions = eMMC .. "p3 : start= " .. string.format("%d", start) .. ", size= " .. size .. ", type=83\n" + + fo:write(partitions) + fo:close() + f:close() + + out = os.capture("/usr/sbin/sfdisk --force " .. eMMC .. " < /tmp/partitions") + + -- use partprobe to inform the kernel of the new partitions + + cmdexec("/usr/sbin/partprobe " .. eMMC) + + return true, out +end + +function postinst() + local out = "Post installed script called" + + return true, out +end diff --git a/recipes-extended/images/update-image/beaglebone-yocto/sw-description b/recipes-extended/images/update-image/beaglebone-yocto/sw-description new file mode 100644 index 0000000..51477f1 --- /dev/null +++ b/recipes-extended/images/update-image/beaglebone-yocto/sw-description @@ -0,0 +1,63 @@ +software = +{ + version = "0.1.0"; + + beaglebone = { + hardware-compatibility: [ "1.0"]; + stable : { + copy1 : { + images: ( + { + filename = "core-image-full-cmdline-beaglebone.ext4.gz"; + device = "/dev/mmcblk1p2"; + type = "raw"; + compressed = true; + } + ); + scripts: ( + { + filename = "emmcsetup.lua"; + type = "lua"; + } + ); + uboot: ( + { + name = "boot_targets"; + value = "legacy_mmc1 mmc1 nand0 pxe dhcp"; + }, + { + name = "bootcmd_legacy_mmc1"; + value = "setenv mmcdev 1;setenv bootpart 1:2; run mmcboot"; + } + ); + + }; + copy2 : { + images: ( + { + filename = "core-image-full-cmdline-beaglebone.ext4.gz"; + device = "/dev/mmcblk1p3"; + type = "raw"; + compressed = true; + } + ); + scripts: ( + { + filename = "emmcsetup.lua"; + type = "lua"; + } + ); + uboot: ( + { + name = "boot_targets"; + value = "legacy_mmc1 mmc1 nand0 pxe dhcp"; + }, + { + name = "bootcmd_legacy_mmc1"; + value = "setenv mmcdev 1;setenv bootpart 1:3; run mmcboot"; + } + ); + }; + }; + } +} diff --git a/recipes-extended/images/update-image/beaglebone/emmcsetup.lua b/recipes-extended/images/update-image/beaglebone/emmcsetup.lua deleted file mode 100644 index 88eba77..0000000 --- a/recipes-extended/images/update-image/beaglebone/emmcsetup.lua +++ /dev/null @@ -1,85 +0,0 @@ -function os.capture(cmd) - local f = assert(io.popen(cmd, 'r')) - local s = assert(f:read('*a')) - f:close() - return s -end - -function file_exists(name) - local f=io.open(name,"r") - if f~=nil then io.close(f) return true else return false end -end - -function cmdexec(cmd) - local ret, s, status = os.execute(cmd) - if (status ~= 0) then - return false, cmd .. " return with error" - end - - return true,"" -end - -function preinst() - local out - local s1 - local ret - - local log = os.tmpname() - - local eMMC = "/dev/mmcblk1" - ret = file_exists("/dev/mmcblk1") - - if (ret == false) then - return false, "Cannot fine eMMC" - end - - cmdexec("/usr/sbin/sfdisk -d " .. eMMC .. "> /tmp/dumppartitions") - - -- check if there are two identical partitions - -- and create the second one if no available - f = io.input("/tmp/dumppartitions") - fo = io.output("/tmp/partitions") - t = f:read() - found = false - while (t ~= nil) do - j=0 - j=string.find(t, "/dev/mmcblk1p3") - fo:write(t .. "\n") - if (j == 1) then - found=true - break - end - j=string.find(t, "/dev/mmcblk1p2") - if (j == 1) then - start, size = string.match(t, "%a+%s*=%s*(%d+), size=%s*(%d+)") - end - t = f:read() - end - - if (found) then - f:close() - fo:close() - return true, out - end - - start=start+size - partitions = eMMC .. "p3 : start= " .. string.format("%d", start) .. ", size= " .. size .. ", type=83\n" - - fo:write(partitions) - fo:close() - f:close() - - out = os.capture("/usr/sbin/sfdisk --force " .. eMMC .. " < /tmp/partitions") - - -- use partprobe to inform the kernel of the new partitions - - cmdexec("/usr/sbin/partprobe " .. eMMC) - - return true, out -end - -function postinst() - local out = "Post installed script called" - - return true, out -end diff --git a/recipes-extended/images/update-image/beaglebone/sw-description b/recipes-extended/images/update-image/beaglebone/sw-description deleted file mode 100644 index 51477f1..0000000 --- a/recipes-extended/images/update-image/beaglebone/sw-description +++ /dev/null @@ -1,63 +0,0 @@ -software = -{ - version = "0.1.0"; - - beaglebone = { - hardware-compatibility: [ "1.0"]; - stable : { - copy1 : { - images: ( - { - filename = "core-image-full-cmdline-beaglebone.ext4.gz"; - device = "/dev/mmcblk1p2"; - type = "raw"; - compressed = true; - } - ); - scripts: ( - { - filename = "emmcsetup.lua"; - type = "lua"; - } - ); - uboot: ( - { - name = "boot_targets"; - value = "legacy_mmc1 mmc1 nand0 pxe dhcp"; - }, - { - name = "bootcmd_legacy_mmc1"; - value = "setenv mmcdev 1;setenv bootpart 1:2; run mmcboot"; - } - ); - - }; - copy2 : { - images: ( - { - filename = "core-image-full-cmdline-beaglebone.ext4.gz"; - device = "/dev/mmcblk1p3"; - type = "raw"; - compressed = true; - } - ); - scripts: ( - { - filename = "emmcsetup.lua"; - type = "lua"; - } - ); - uboot: ( - { - name = "boot_targets"; - value = "legacy_mmc1 mmc1 nand0 pxe dhcp"; - }, - { - name = "bootcmd_legacy_mmc1"; - value = "setenv mmcdev 1;setenv bootpart 1:3; run mmcboot"; - } - ); - }; - }; - } -} diff --git a/recipes-support/swupdate/swupdate/beaglebone-yocto/defconfig b/recipes-support/swupdate/swupdate/beaglebone-yocto/defconfig new file mode 100644 index 0000000..ff8ab7c --- /dev/null +++ b/recipes-support/swupdate/swupdate/beaglebone-yocto/defconfig @@ -0,0 +1,103 @@ +# +# Automatically generated file; DO NOT EDIT. +# Swupdate Configuration +# +CONFIG_HAVE_DOT_CONFIG=y + +# +# Swupdate Settings +# + +# +# General Configuration +# +CONFIG_SCRIPTS=y +CONFIG_HW_COMPATIBILITY=y +CONFIG_HW_COMPATIBILITY_FILE="/etc/hwrevision" +CONFIG_SW_VERSIONS_FILE="/etc/sw-versions" +# CONFIG_MTD is not set +CONFIG_LUA=y +CONFIG_LUAPKG="lua" +# CONFIG_FEATURE_SYSLOG is not set + +# +# Build Options +# +CONFIG_CROSS_COMPILE="" +CONFIG_SYSROOT="" +CONFIG_EXTRA_CFLAGS="" +CONFIG_EXTRA_LDFLAGS="" +CONFIG_EXTRA_LDLIBS="" + +# +# Debugging Options +# +# CONFIG_DEBUG is not set +# CONFIG_WERROR is not set +# CONFIG_NOCLEANUP is not set +# CONFIG_BOOTLOADER is not set +CONFIG_UBOOT=y +# CONFIG_BOOTLOADER_NONE is not set +# CONFIG_BOOTLOADER_GRUB is not set +CONFIG_UBOOT_FWENV="/etc/fw_env.config" +CONFIG_DOWNLOAD=y +CONFIG_HASH_VERIFY=y +# CONFIG_SIGNED_IMAGES is not set +CONFIG_ENCRYPTED_IMAGES=y +CONFIG_SURICATTA=y + +# +# Suricatta +# + +# +# Features +# +CONFIG_SURICATTA_SSL=y +# CONFIG_SURICATTA_STATE_CHOICE_NONE is not set +CONFIG_SURICATTA_STATE_CHOICE_BOOTLOADER=y +CONFIG_SURICATTA_STATE_BOOTLOADER="ustate" + +# +# Server +# +CONFIG_SURICATTA_HAWKBIT=y +# CONFIG_SURICATTA_SERVER_NONE is not set +CONFIG_WEBSERVER=y + +# +# Webserver Features +# +CONFIG_MONGOOSE=y + +# +# Mongoose Feature +# +CONFIG_MONGOOSELUA=y +# CONFIG_MONGOOSEIPV6 is not set +CONFIG_MONGOOSESSL=y + +# +# Archival Features +# +CONFIG_GUNZIP=y + +# +# Parser Features +# +CONFIG_LIBCONFIG=y +CONFIG_PARSERROOT="" +CONFIG_JSON=y +# CONFIG_LUAEXTERNAL is not set +# CONFIG_SETSWDESCRIPTION is not set + +# +# Image Handlers +# +CONFIG_RAW=y +CONFIG_LUASCRIPTHANDLER=y +CONFIG_SHELLSCRIPTHANDLER=y +# CONFIG_HANDLER_IN_LUA is not set +CONFIG_ARCHIVE=y +CONFIG_REMOTE_HANDLER=y +CONFIG_BOOTLOADERHANDLER=y diff --git a/recipes-support/swupdate/swupdate/beaglebone-yocto/swupdate b/recipes-support/swupdate/swupdate/beaglebone-yocto/swupdate new file mode 100644 index 0000000..aba2e84 --- /dev/null +++ b/recipes-support/swupdate/swupdate/beaglebone-yocto/swupdate @@ -0,0 +1,193 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: swupdate +# Required-Start: $local_fs +# Should-Start: +# Required-Stop: $local_fs +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start swupdate application +### END INIT INFO + +# The definition of actions: (From LSB 3.1.0) +# start start the service +# stop stop the service +# restart stop and restart the service if the service is already running, +# otherwise start the service +# try-restart restart the service if the service is already running +# reload cause the configuration of the service to be reloaded without +# actually stopping and restarting the service +# force-reload cause the configuration to be reloaded if the service supports +# this, otherwise restart the service if it is running +# status print the current status of the service + +# The start, stop, restart, force-reload, and status actions shall be supported +# by all init scripts; the reload and the try-restart actions are optional + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +DESC="swupdate" +NAME="swupdate" +DAEMON=/usr/bin/swupdate +PIDFILE=/var/run/$NAME.pid + +. /etc/init.d/functions || exit 1 + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# +# Function that starts the daemon/service +# +do_start() { + local status pid + + status=0 + pid=`pidofproc $NAME` || status=$? + case $status in + 0) + echo "$DESC already running ($pid)." + exit 1 + ;; + *) + rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` + + if [ $rootfs == '/dev/mmcblk1p2' ];then + selection="-e stable,copy2" + else + selection="-e stable,copy1" + fi + + state=`fw_printenv ustate | cut -f 2 -d'='` + if [ $state == 1 ];then + EXTRA_ARGS="-c 2" + else + EXTRA_ARGS="" + fi + + cd /home/root + # be sure that we can change U-Boot ENV + echo 0 > /sys/block/mmcblk1boot1/force_ro + echo "Starting $DESC ..." + exec /usr/bin/swupdate-progress -w -p -r & + exec $DAEMON -v -H beaglebone:1.0 ${selection} -f /etc/swupdate.cfg -u "$EXTRA_ARGS" -w "" & + exit 0 + ;; + esac +} + +# +# Function that stops the daemon/service +# +do_stop() { + local pid status + + status=0 + pid=`pidofproc $NAME` || status=$? + case $status in + 0) + # Exit when fail to stop, the kill would complain when fail + kill -s 15 $pid >/dev/null && rm -f $PIDFILE && \ + echo "Stopped $DESC ($pid)." || exit $? + ;; + *) + echo "$DESC is not running; none killed." >&2 + ;; + esac + + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + return $status +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + local pid status + + status=0 + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + pid=`pidofproc $NAME` || status=$? + case $status in + 0) + echo "Reloading $DESC ..." + kill -s 1 $pid || exit $? + ;; + *) + echo "$DESC is not running; none reloaded." >&2 + ;; + esac + exit $status +} + + +# +# Function that shows the daemon/service status +# +status_of_proc () { + local pid status + + status=0 + # pidof output null when no program is running, so no "2>/dev/null". + pid=`pidofproc $NAME` || status=$? + case $status in + 0) + echo "$DESC is running ($pid)." + exit 0 + ;; + *) + echo "$DESC is not running." >&2 + exit $status + ;; + esac +} + +case "$1" in +start) + do_start + ;; +stop) + do_stop || exit $? + ;; +status) + status_of_proc + ;; +restart) + # Always start the service regardless the status of do_stop + do_stop + do_start + ;; +try-restart|force-reload) + # force-reload is the same as reload or try-restart according + # to its definition, the reload is not implemented here, so + # force-reload is the alias of try-restart here, but it should + # be the alias of reload if reload is implemented. + # + # Only start the service when do_stop succeeds + do_stop && do_start + ;; +#reload) + # If the "reload" action is implemented properly, then let the + # force-reload be the alias of reload, and remove it from + # try-restart|force-reload) + # + #do_reload + #;; +*) + echo "Usage: $0 {start|stop|status|restart|try-restart|force-reload}" >&2 + exit 3 + ;; +esac + diff --git a/recipes-support/swupdate/swupdate/beaglebone-yocto/swupdate.cfg b/recipes-support/swupdate/swupdate/beaglebone-yocto/swupdate.cfg new file mode 100644 index 0000000..a646a65 --- /dev/null +++ b/recipes-support/swupdate/swupdate/beaglebone-yocto/swupdate.cfg @@ -0,0 +1,47 @@ +globals : +{ + + verbose = true; + loglevel = 5; + syslog = true; + /* public-key-file = "test.pem";*/ +}; + +download : +{ + retries = 3; + timeout = 1800; +}; + +identify : ( + { name = "board"; value = "BeagleboneBlack"; } +); + +suricatta : +{ + + tenant = "default"; + id = "bbb"; + confirm = 0; + url = "http://papero:8080"; + polldelay = 360; + nocheckcert = true; + retry = 4; + retrywait = 200; + loglevel = 10; + userid = 0; + groupid = 0; + max_artifacts = 1; +/* + cafile = "/etc/ssl/cafile"; + sslkey = "/etc/ssl/sslkey"; + sslcert = "/etc/ssl/sslcert"; +*/ +}; + +webserver : +{ + document_root = "/www"; + userid = 0; + groupid = 0; +}; diff --git a/recipes-support/swupdate/swupdate/beaglebone/defconfig b/recipes-support/swupdate/swupdate/beaglebone/defconfig deleted file mode 100644 index ff8ab7c..0000000 --- a/recipes-support/swupdate/swupdate/beaglebone/defconfig +++ /dev/null @@ -1,103 +0,0 @@ -# -# Automatically generated file; DO NOT EDIT. -# Swupdate Configuration -# -CONFIG_HAVE_DOT_CONFIG=y - -# -# Swupdate Settings -# - -# -# General Configuration -# -CONFIG_SCRIPTS=y -CONFIG_HW_COMPATIBILITY=y -CONFIG_HW_COMPATIBILITY_FILE="/etc/hwrevision" -CONFIG_SW_VERSIONS_FILE="/etc/sw-versions" -# CONFIG_MTD is not set -CONFIG_LUA=y -CONFIG_LUAPKG="lua" -# CONFIG_FEATURE_SYSLOG is not set - -# -# Build Options -# -CONFIG_CROSS_COMPILE="" -CONFIG_SYSROOT="" -CONFIG_EXTRA_CFLAGS="" -CONFIG_EXTRA_LDFLAGS="" -CONFIG_EXTRA_LDLIBS="" - -# -# Debugging Options -# -# CONFIG_DEBUG is not set -# CONFIG_WERROR is not set -# CONFIG_NOCLEANUP is not set -# CONFIG_BOOTLOADER is not set -CONFIG_UBOOT=y -# CONFIG_BOOTLOADER_NONE is not set -# CONFIG_BOOTLOADER_GRUB is not set -CONFIG_UBOOT_FWENV="/etc/fw_env.config" -CONFIG_DOWNLOAD=y -CONFIG_HASH_VERIFY=y -# CONFIG_SIGNED_IMAGES is not set -CONFIG_ENCRYPTED_IMAGES=y -CONFIG_SURICATTA=y - -# -# Suricatta -# - -# -# Features -# -CONFIG_SURICATTA_SSL=y -# CONFIG_SURICATTA_STATE_CHOICE_NONE is not set -CONFIG_SURICATTA_STATE_CHOICE_BOOTLOADER=y -CONFIG_SURICATTA_STATE_BOOTLOADER="ustate" - -# -# Server -# -CONFIG_SURICATTA_HAWKBIT=y -# CONFIG_SURICATTA_SERVER_NONE is not set -CONFIG_WEBSERVER=y - -# -# Webserver Features -# -CONFIG_MONGOOSE=y - -# -# Mongoose Feature -# -CONFIG_MONGOOSELUA=y -# CONFIG_MONGOOSEIPV6 is not set -CONFIG_MONGOOSESSL=y - -# -# Archival Features -# -CONFIG_GUNZIP=y - -# -# Parser Features -# -CONFIG_LIBCONFIG=y -CONFIG_PARSERROOT="" -CONFIG_JSON=y -# CONFIG_LUAEXTERNAL is not set -# CONFIG_SETSWDESCRIPTION is not set - -# -# Image Handlers -# -CONFIG_RAW=y -CONFIG_LUASCRIPTHANDLER=y -CONFIG_SHELLSCRIPTHANDLER=y -# CONFIG_HANDLER_IN_LUA is not set -CONFIG_ARCHIVE=y -CONFIG_REMOTE_HANDLER=y -CONFIG_BOOTLOADERHANDLER=y diff --git a/recipes-support/swupdate/swupdate/beaglebone/swupdate b/recipes-support/swupdate/swupdate/beaglebone/swupdate deleted file mode 100644 index aba2e84..0000000 --- a/recipes-support/swupdate/swupdate/beaglebone/swupdate +++ /dev/null @@ -1,193 +0,0 @@ -#! /bin/sh -### BEGIN INIT INFO -# Provides: swupdate -# Required-Start: $local_fs -# Should-Start: -# Required-Stop: $local_fs -# Should-Stop: -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Start swupdate application -### END INIT INFO - -# The definition of actions: (From LSB 3.1.0) -# start start the service -# stop stop the service -# restart stop and restart the service if the service is already running, -# otherwise start the service -# try-restart restart the service if the service is already running -# reload cause the configuration of the service to be reloaded without -# actually stopping and restarting the service -# force-reload cause the configuration to be reloaded if the service supports -# this, otherwise restart the service if it is running -# status print the current status of the service - -# The start, stop, restart, force-reload, and status actions shall be supported -# by all init scripts; the reload and the try-restart actions are optional - -# PATH should only include /usr/* if it runs after the mountnfs.sh script -PATH=/sbin:/usr/sbin:/bin:/usr/bin - -DESC="swupdate" -NAME="swupdate" -DAEMON=/usr/bin/swupdate -PIDFILE=/var/run/$NAME.pid - -. /etc/init.d/functions || exit 1 - -# Exit if the package is not installed -[ -x "$DAEMON" ] || exit 0 - -# Read configuration variable file if it is present -[ -r /etc/default/$NAME ] && . /etc/default/$NAME - -# -# Function that starts the daemon/service -# -do_start() { - local status pid - - status=0 - pid=`pidofproc $NAME` || status=$? - case $status in - 0) - echo "$DESC already running ($pid)." - exit 1 - ;; - *) - rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` - - if [ $rootfs == '/dev/mmcblk1p2' ];then - selection="-e stable,copy2" - else - selection="-e stable,copy1" - fi - - state=`fw_printenv ustate | cut -f 2 -d'='` - if [ $state == 1 ];then - EXTRA_ARGS="-c 2" - else - EXTRA_ARGS="" - fi - - cd /home/root - # be sure that we can change U-Boot ENV - echo 0 > /sys/block/mmcblk1boot1/force_ro - echo "Starting $DESC ..." - exec /usr/bin/swupdate-progress -w -p -r & - exec $DAEMON -v -H beaglebone:1.0 ${selection} -f /etc/swupdate.cfg -u "$EXTRA_ARGS" -w "" & - exit 0 - ;; - esac -} - -# -# Function that stops the daemon/service -# -do_stop() { - local pid status - - status=0 - pid=`pidofproc $NAME` || status=$? - case $status in - 0) - # Exit when fail to stop, the kill would complain when fail - kill -s 15 $pid >/dev/null && rm -f $PIDFILE && \ - echo "Stopped $DESC ($pid)." || exit $? - ;; - *) - echo "$DESC is not running; none killed." >&2 - ;; - esac - - # Wait for children to finish too if this is a daemon that forks - # and if the daemon is only ever run from this initscript. - # If the above conditions are not satisfied then add some other code - # that waits for the process to drop all resources that could be - # needed by services started subsequently. A last resort is to - # sleep for some time. - return $status -} - -# -# Function that sends a SIGHUP to the daemon/service -# -do_reload() { - local pid status - - status=0 - # If the daemon can reload its configuration without - # restarting (for example, when it is sent a SIGHUP), - # then implement that here. - pid=`pidofproc $NAME` || status=$? - case $status in - 0) - echo "Reloading $DESC ..." - kill -s 1 $pid || exit $? - ;; - *) - echo "$DESC is not running; none reloaded." >&2 - ;; - esac - exit $status -} - - -# -# Function that shows the daemon/service status -# -status_of_proc () { - local pid status - - status=0 - # pidof output null when no program is running, so no "2>/dev/null". - pid=`pidofproc $NAME` || status=$? - case $status in - 0) - echo "$DESC is running ($pid)." - exit 0 - ;; - *) - echo "$DESC is not running." >&2 - exit $status - ;; - esac -} - -case "$1" in -start) - do_start - ;; -stop) - do_stop || exit $? - ;; -status) - status_of_proc - ;; -restart) - # Always start the service regardless the status of do_stop - do_stop - do_start - ;; -try-restart|force-reload) - # force-reload is the same as reload or try-restart according - # to its definition, the reload is not implemented here, so - # force-reload is the alias of try-restart here, but it should - # be the alias of reload if reload is implemented. - # - # Only start the service when do_stop succeeds - do_stop && do_start - ;; -#reload) - # If the "reload" action is implemented properly, then let the - # force-reload be the alias of reload, and remove it from - # try-restart|force-reload) - # - #do_reload - #;; -*) - echo "Usage: $0 {start|stop|status|restart|try-restart|force-reload}" >&2 - exit 3 - ;; -esac - diff --git a/recipes-support/swupdate/swupdate/beaglebone/swupdate.cfg b/recipes-support/swupdate/swupdate/beaglebone/swupdate.cfg deleted file mode 100644 index a646a65..0000000 --- a/recipes-support/swupdate/swupdate/beaglebone/swupdate.cfg +++ /dev/null @@ -1,47 +0,0 @@ -globals : -{ - - verbose = true; - loglevel = 5; - syslog = true; - /* public-key-file = "test.pem";*/ -}; - -download : -{ - retries = 3; - timeout = 1800; -}; - -identify : ( - { name = "board"; value = "BeagleboneBlack"; } -); - -suricatta : -{ - - tenant = "default"; - id = "bbb"; - confirm = 0; - url = "http://papero:8080"; - polldelay = 360; - nocheckcert = true; - retry = 4; - retrywait = 200; - loglevel = 10; - userid = 0; - groupid = 0; - max_artifacts = 1; -/* - cafile = "/etc/ssl/cafile"; - sslkey = "/etc/ssl/sslkey"; - sslcert = "/etc/ssl/sslcert"; -*/ -}; - -webserver : -{ - document_root = "/www"; - userid = 0; - groupid = 0; -};