From patchwork Mon Sep 25 08:04:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 818080 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::23f; helo=mail-wr0-x23f.google.com; envelope-from=swupdate+bncbaabbi7rulhakgqegzpfvgq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="THyF0nNE"; dkim-atps=neutral Received: from mail-wr0-x23f.google.com (mail-wr0-x23f.google.com [IPv6:2a00:1450:400c:c0c::23f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y0xT33hHDz9tXH for ; Mon, 25 Sep 2017 18:04:54 +1000 (AEST) Received: by mail-wr0-x23f.google.com with SMTP id h16sf916118wrf.14 for ; Mon, 25 Sep 2017 01:04:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1506326691; cv=pass; d=google.com; s=arc-20160816; b=VqoWbhdu8g+uQdL8VXsJrTlZ2Pa9MIQGaefoRVKV5KOuCWFL9Ov/ufhYXL7QRLKkEj 8Z3r0fylug6J7cS4wp7qSGz4IW0g2hKubL3TgZA9RZUss+u2PQJjaaNp/J96Jj4+CACf gHwhipn68Qsy2EnV9eOr2uZt+kXP+gcffyvMv+d1+ooVNSvve2N+wOM8+xWNDtNl8vMg BUaJLiiac550y+UsQpPBNzlJLgJU1FKBMN8Z176L7w79HZTx586F31r8nclgQM5ILWCk YsLpD98YqfyeZY43FmtegS7uZBMpjLHzB/qtxVu6VdpjK8/HjzMd1pxMSq6m9MT2dVfC qMJA== 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=Gmceu4zdki2XDSkxi+702LzyVrTsCUeOGhBBTYnBs8c=; b=UgMZjDevwY8DtnVEtZeTRBC5puLsLoHPoi+EcWInNZiBTgdRPOZYNyWkNRxcWBA0XJ CsuDVztZhfpYu7sLiwXAVq6YyAzMT54BL0j/RetRTYMRWhTiLHZbM0D3h7BY7D5ckvtz sgqEH4ZS0rLJ0hwyK7zixb6m+46F49jl+bLG2ACHXB+AoQHAHOHnxEML4zwIrgsW6Jhu IUHyKMLfLcVnUA9sDt0KBjJhLeD/z6NOrM7cMAWXdhumUspvbq96rzEejqvKNdYVRrC/ HWWONHxTbIektKJu975+mgcAAHFF8VGsNqrt/O1Fmi13vW9vfKnCXBghogX76liZkVr6 290w== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 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=Gmceu4zdki2XDSkxi+702LzyVrTsCUeOGhBBTYnBs8c=; b=THyF0nNEZ3d00Gc77oQGBuVbt5xno86EQjxd0FFs9jceKTdF78szrOt4UNPwaMMZmJ zaUb2PsUK+11ve9lu8uYXoOv4m/HNUGD+3flnfFUcbHS6gus+brNC0XuFHBK6SiJIFf3 fzgu7j/92KbaU4CD39vwMrbeTBPtaJIv2Cn/jsW9r1eU88sjiRlCyOW/Qoexh1s2aU3w RZQenQUeny9m1offbnQ82EIeUIqICPuTzKRJ98S+mril3/s5kL/a4pJzd75MhL6ALrbH 3A+FxFHuQpYJV+97+HPSJZupevlNvtpoHF9AxqUlOn6HwQMNnevLU/hF9haLOlCsL8ef 7kIQ== 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=Gmceu4zdki2XDSkxi+702LzyVrTsCUeOGhBBTYnBs8c=; b=RrYKXCJFrkCZpiWTqEQzZDh5TpZ96KJkhI8RUmg+7kKUZRD5K4qJW+YRWDYkP8VwGw i7aLyYkeSQIURldhsTlTvxY3nIUUR38LtVZEth3nInwGKBd+fyKLQoFF22/NLgslhqfT dTOa0oFJo9SJIHJcwC59PzMM7hWxrcMo/L0G1qygvn6qNMgQR9MEIQtVJAR/Z2b7B0XJ l3UovyuR+j0PZJ0+asMXHCUGFLSd61HvAHwTovuJwqixYJrvKJnKwFnaKdI9+lqhANfL tmKcgxTQf7xtdlrnmWE4TYyTveiToHARDoxSysLY/Lk0Bpj4qQVOiUmo8w8ajM7mSM0T SGew== Sender: swupdate@googlegroups.com X-Gm-Message-State: AHPjjUi5fpexmcN67jNhmAGOsmTwzseJiS6QzFTb8q2Qvv7Puoq+ve7G 685Xd8FsjRjyJlxZwbt81zw= X-Google-Smtp-Source: AOwi7QDSGD4K3TjxnXy6253g0g1l+j2hZ0/Q4K/MmNEDqzqAlK4B3klY7FAcmPeJbkML9cv6Neyaiw== X-Received: by 10.46.67.197 with SMTP id z66mr16069lje.20.1506326691685; Mon, 25 Sep 2017 01:04:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 10.25.207.6 with SMTP id f6ls893812lfg.10.gmail; Mon, 25 Sep 2017 01:04:51 -0700 (PDT) X-Received: by 10.46.80.65 with SMTP id v1mr391795ljd.14.1506326691224; Mon, 25 Sep 2017 01:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506326691; cv=none; d=google.com; s=arc-20160816; b=lvOxQHaBzZDAVwq/acbqCsgeocXFzwZ+C6/y62ozWQwoadHm9dtg+FRdCleTo9BDXI ljJY+66CUmQpHNORKzILfZZp57VMjhtEsQeWEga+nYhcIP3eQF+48cdyGA4YtK+ndM8Y GewOlS+3FwW82On2kRLwUzQbO8GrFt2s4vx45eKEVb4ixzL5TpD2xz/3mXLvZbc9uH6G Z6nFGwCY43ZEPTpiJOtml6OfF/fjOdel7CAw5CUkTZyjmM85M7bSRLcB3jC8JNik6l2+ 1nmtoyptYpsmVLWGZ4UrYAKPFq1DtTmUrD8Aa831O69Yixw8iXBDCm2aoFc9EyDP+kdi YDEQ== 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=gJaky3D/cK2wpFo3SxB66z3lW+rJ9UGNOh5NYCMovlE=; b=HL54ejbkwit9nqH4eRKzytqZyHR62z3Sz2sxbhuq/4gFXfF2p5V7U4DuiZWBujc51Q 5G2pl6/x1khnSCFg/bSrLoEEgs+5PMjdUHlqomJ+jH+8WnVgIdK+13fZgs5aNTnRhdd/ AGcpLmWjwMrAUeyAFsblWL9zX592qJz00sfcbcQnve7wB/6b6q6lclESquuXp/J+O/71 Xvw2rlRhMkxq16WG+AppB69YU2cgmZQFlpjWIVZ7QxX8FdTJZ2eOkcBA0uaht6jKJ3ll Jd/bqvhDto11XGZIEOzGux8x5EsdRLGH1jjRgQPZVugVjUOmFjhJctMmTlj2FuvmSG3p gFrA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 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. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id d82si401395wmd.1.2017.09.25.01.04.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Sep 2017 01:04:51 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3y0xSy6rPQz1qshS; Mon, 25 Sep 2017 10:04:50 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3y0xSy6c34z1qql9; Mon, 25 Sep 2017 10:04:50 +0200 (CEST) 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 lagc74hKp7TL; Mon, 25 Sep 2017 10:04:50 +0200 (CEST) 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; Mon, 25 Sep 2017 10:04:50 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id B2ABB454051E; Mon, 25 Sep 2017 10:04:49 +0200 (CEST) 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 iHIUknOhoNb9; Mon, 25 Sep 2017 10:04:44 +0200 (CEST) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id DB3D84540435; Mon, 25 Sep 2017 10:04:43 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH 2/2] doc: building a Debian package Date: Mon, 25 Sep 2017 10:04:38 +0200 Message-Id: <1506326678-3545-2-git-send-email-sbabic@denx.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506326678-3545-1-git-send-email-sbabic@denx.de> References: <1506326678-3545-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: 212.18.0.10 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: , Add documenttiot to build a Debian package. Signed-off-by: Stefano Babic --- doc/source/swupdate.rst | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/doc/source/swupdate.rst b/doc/source/swupdate.rst index 4df0b6b..496c8f5 100644 --- a/doc/source/swupdate.rst +++ b/doc/source/swupdate.rst @@ -223,7 +223,7 @@ and drop what you do not need. Building with Yocto ------------------- -A meta-SWUpdate_ layer is provided. It contains the required changes +A meta-swupdate_ layer is provided. It contains the required changes for mtd-utils and for generating Lua. Using meta-SWUpdate is a straightforward process. @@ -332,6 +332,37 @@ image, we can add a *recipes-extended/images/core-image-full-cmdline.bbappend* swupdate-www is the package with the website, that you can customize with your own logo, template ans style. +Building a debian package +------------------------- + +SWUpdate is thought for Embedded Systems and building in an embedded +distribution is the first use case. But apart the most used buildsystems +for embedded as Yocto or Buildroot, in some cases a standard Linux distro +is used. Not only, a distro package allows to run SWUpdate on Linux PC +for test purposes without having to fight with dependencies. Using the +debhelper tools, it is possible to generate a debian package. + +Steps for building a debian package +................................... + +:: + + ./debian/rules clean + ./debian/rules build + fakeroot debian/rules binary + +The result is a "deb" package stored in the parent directory. + +Alternative way signing source package +...................................... + +You can use dpkg-buildpackage: + +:: + + dpkg-buildpackage -us -uc + debsign -k + Running SWUpdate ================