From patchwork Fri Sep 13 01:08:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 1161825 X-Patchwork-Delegate: yszhou4tech@gmail.com 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=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="A8QpS0qr"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Aa+6G+9x"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (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 46TyFm0sVqz9sNF for ; Fri, 13 Sep 2019 11:08:56 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2ouxGiz/hBerZMsHL07OMMmLtYOqb1GbwrhJ/WiLcMw=; b=A8QpS0qrl/sz7j iyzq2SCeVHKp3IYPG+plcg49rCTqC328sGzGyLDSUSI6M+e5WCnznPavkan4NVdGfJOCRbZ/Nw9PO 6aI+ZR4dpVGQqF3ytZS0kEM1GsZVa+EY3eMreCpYsfro0wmxLuP5VWA6oyyKV3LaJ5xGo4H1C3Pxj loG3Pg459x97reXhw86jeTPTx6OXMLoIn8UlfDS5NARp5x9bL8QvHtBjRMV0SYGfQPzCh3SSDw9cE BQgMlQ94EgKFm/kNE5LqZCa+jCY/yCMs0QiOFP2WWYytRT2gXdOOlq2EdGm4v5OfmyT/hySYcBFzq +oFdcN9pEZat4jb+R1Nw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1i8a4g-00080C-2U; Fri, 13 Sep 2019 01:08:34 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1i8a4d-0007zh-3h for openwrt-devel@lists.openwrt.org; Fri, 13 Sep 2019 01:08:32 +0000 Received: by mail-pl1-x643.google.com with SMTP id f19so12497516plr.3 for ; Thu, 12 Sep 2019 18:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HQDPCBZ7BJqKCduOXCSWW7KBJcxolQH5WFZvt5UOc2g=; b=Aa+6G+9x8AkzHUv8p4bsYnl2bfyB8onG78BqPFg4LE7WvIVq1ZK6VBp8xi/O6KR86i MiNkpg94AWQozVihALT/+X4RPpR0/8cHefxZAYh4FcGA+HNcZQElyrIAoec3uFUDSGBY HQPyNr0JXr2zdnQqaMQA+Z8xaVOHOvWKiMAA6D2eO1U5DHykXaHudedlbx6fhqFpkbNh av6au0yotzdNkJbTIlrf9QL5Io7xGgQPD6XpiXUcTijeWP9/WWynN9GT+I1lBy2xD8mh EPy6Xy3/scbWCv4JQSmbbUGYopTOpBq52f4jPMZ13eooPFxVjeJ4eGtzuZYc/gSOKOvy 2zSw== 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:mime-version :content-transfer-encoding; bh=HQDPCBZ7BJqKCduOXCSWW7KBJcxolQH5WFZvt5UOc2g=; b=t6RWLOt1F4bFA4b5uc3XQNxfjT3niy0jxgQlRnHTs0kurnd89wSL+2LwAqiscOtjzM 3hR5eZyitlCDvF3wdhVZFUDDUUsIOgGcBX9GLViju5yiw7TxTffWL7W5qUVbhQtSoCZ6 t6HaZe9zjksx5KF0DVwIFjSaZVmQ7+aHGWc6gpDOn0Arkg/VZvYBoH94G/CIUg7vtyem zvF2MMw+iIb3C3ADFjKcIjwDd1cye42nJGxNjspDRpYs21fbdpnSZ+jG59yw0dh4f6MU RGZXepeZEuQUL/e5q1n7wSlSZnfM3Sy7RBNrcdTyRyUdT+FtdTtPTVIa8LECoDTQnQhu AXfQ== X-Gm-Message-State: APjAAAUaO7eIBFn97Dlb3EuljPArrta0IQfxBx2Dm6WhirpcPJsp2JR8 DkGrs13h7gCsb8GmlpRPA5g= X-Google-Smtp-Source: APXvYqzYo0kC9QxgYzYMUvHxFtv6glIn6MpRhLklgYcy95EP/vSypnFs1aE4rv8duj5bUUP/yg7g5A== X-Received: by 2002:a17:902:850c:: with SMTP id bj12mr46846729plb.68.1568336909524; Thu, 12 Sep 2019 18:08:29 -0700 (PDT) Received: from titan.hq.cloud.yunionyun.com ([47.244.19.249]) by smtp.gmail.com with ESMTPSA id l14sm3342283pgn.48.2019.09.12.18.08.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Sep 2019 18:08:28 -0700 (PDT) From: Yousong Zhou To: nbd@nbd.name Date: Fri, 13 Sep 2019 01:08:13 +0000 Message-Id: <20190913010815.14962-1-yszhou4tech@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190912_180831_156104_5A9206E3 X-CRM114-Status: UNSURE ( 7.76 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (yszhou4tech[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:643 listed in] [list.dnswl.org] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Subject: [OpenWrt-Devel] [PATCH 1/3] build: install-dtb: fix race condition when copying dtb X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yousong Zhou , openwrt-devel@lists.openwrt.org Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Currently for at91 target, Build/install-dtb can be triggered concurrently for multiple different TARGET_FILESYSTEMS, cp command can fail when the target file is already open exclusively by other cp process [ -f /builder/shared-workdir/build/build_dir/target-arm_arm926ej-s_musl_eabi/linux-at91_sam9x/at91sam9263ek-uImage -a -f /builder/shared-workdir/build/build_dir/target-arm_arm926ej-s_musl_eabi/linux-at91_sam9x/root.ubifs+fs=-m_2048_-e_126KiB_-c_2048+pkg=68b329da ] [ -f /builder/shared-workdir/build/build_dir/target-arm_arm926ej-s_musl_eabi/linux-at91_sam9x/at91sam9263ek-uImage -a -f /builder/shared-workdir/build/build_dir/target-arm_arm926ej-s_musl_eabi/linux-at91_sam9x/root.ext4+pkg=68b329da ] cp -fpR /builder/shared-workdir/build/build_dir/target-arm_arm926ej-s_musl_eabi/linux-at91_sam9x/linux-4.14.141/arch/arm/boot/dts/at91sam9263ek.dtb /builder/shared-workdir/build/bin/targets/at91/sam9x/openwrt-at91-sam9x-at91sam9263ek.dtb; cp -fpR /builder/shared-workdir/build/build_dir/target-arm_arm926ej-s_musl_eabi/linux-at91_sam9x/linux-4.14.141/arch/arm/boot/dts/at91sam9263ek.dtb /builder/shared-workdir/build/bin/targets/at91/sam9x/openwrt-at91-sam9x-at91sam9263ek.dtb; cp: cannot create regular file '/builder/shared-workdir/build/bin/targets/at91/sam9x/openwrt-at91-sam9x-at91sam9263ek.dtb': File exists Makefile:87: recipe for target '/builder/shared-workdir/build/build_dir/target-arm_arm926ej-s_musl_eabi/linux-at91_sam9x/tmp/openwrt-at91-sam9x-at91sam9263ek-ubifs-dtb' failed make[4]: *** [/builder/shared-workdir/build/build_dir/target-arm_arm926ej-s_musl_eabi/linux-at91_sam9x/tmp/openwrt-at91-sam9x-at91sam9263ek-ubifs-dtb] Error 1 Signed-off-by: Yousong Zhou --- include/image-commands.mk | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/image-commands.mk b/include/image-commands.mk index 89c17aec5b..1d0aed1918 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -136,10 +136,13 @@ define Build/append-dtb endef define Build/install-dtb - $(foreach dts,$(DEVICE_DTS), \ - $(CP) \ - $(DTS_DIR)/$(dts).dtb \ - $(BIN_DIR)/$(IMG_PREFIX)-$(dts).dtb; \ + $(call locked, \ + $(foreach dts,$(DEVICE_DTS), \ + $(CP) \ + $(DTS_DIR)/$(dts).dtb \ + $(BIN_DIR)/$(IMG_PREFIX)-$(dts).dtb; \ + ), \ + install-dtb-$(IMG_PREFIX) \ ) endef From patchwork Fri Sep 13 01:08:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 1161826 X-Patchwork-Delegate: yszhou4tech@gmail.com 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=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DKWygIGW"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Pw32UlSw"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (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 46TyFv2Kwqz9s4Y for ; Fri, 13 Sep 2019 11:09:07 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dUINKsCuxAJprFfA4lf6AjQMU9CgiJUyrpoMyt3yHCM=; b=DKWygIGWMlmnrD 2vwYkKXQN9tcqztL1V60JHzyGrmYhe/Dr77Htp7OvfzD8fQfHYaTQVXHofzP9Cb4f/Cq6TDbW1BR7 MCr8MvGRDd8dnSBM6mWTsaaIE1Rm7ftn9iToajU2o/q1OP+P+cCIl6fMbUGmb7Og935t9F/58hLCL dsNjcM0rHSPtk3CTMJ9qm3uGJ9YOUEWx03wfWOkWHf7dTRV8Rn62hZFOpD6Zs2xIRqHYEBUYYyjlz AGMry5igXcyLE2HyU82i/4i1namo54qRtrqySlsOfJlPKi3uOdlfdbHkTADONmK5OWiU+F9mMsXVr 3hk01UbNCBH09TrWRt6w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1i8a56-0008RZ-DK; Fri, 13 Sep 2019 01:09:00 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1i8a4h-00080r-5G for openwrt-devel@lists.openwrt.org; Fri, 13 Sep 2019 01:08:36 +0000 Received: by mail-pf1-x436.google.com with SMTP id i1so8189312pfa.6 for ; Thu, 12 Sep 2019 18:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wYbW1s1zF6dviSloD7W0c6mayi1DAXuGl8sS5nFcO7k=; b=Pw32UlSwmBdfzHeW1KrMFfPbjx8C5kRnrlaFQxXlzZv5hd9NqoGxFg4LGHMNlYa2eM 34u1s/0b5EzvP62k58cXFjQvTEVTa8qpoBEiFjvG6A4kuvIytw4OFL3JTat2F2dAJORl CD/XNmWbGJ/wgRzwPKequPecGsjzQ3eGVDQ2W0lKtcNZ0EFGbrJ+USJfkr2U8X31H/K7 sfO0rupR94RXo5yXpiiQ4w2SQYMpHuh3LrsA/zfsy0XBR36ZXCiUT8O798IjZF0jg6Qp y/0hBgdvba7blSZujnuXLFO4eEri6PrzrKeazsu2vA1bBKzCAB1mh9LshZWflsNuROAb h4mw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=wYbW1s1zF6dviSloD7W0c6mayi1DAXuGl8sS5nFcO7k=; b=tGqb/5YZYdPk04L5c90JInjXjKxmhgLyv8ofgAGsMsXjCQXS5lo/8xWrIvgQI+38/G jh9OR08ShpJ3P8uO9Uo02cY9RnL+RcN9BYMhPz1ffcFNMiDlimVSU+K8Dxt7EMKmAPJl HHbvwtZsKmdOTUr+D93JUFSohsn5MBIzmATZLQWyObT/JZGy//Ah7AoBk3UtsM07qkMI hJO/H6+4k0UlAnPpwBug/d8oYRyaXAF6WM6WSgmVw2aPB4SdkDVKQ/QRyMruhuxMjMCb MSwXuJCnDIaitzBF20T7ryAYI4igrxXOtMYkGp43dHrjuFDuibUbzbnF0Cio0Ya25Ywf Ldqw== X-Gm-Message-State: APjAAAXwQdOwBis0P6zMB2GxiJ+2WPfkRtoEO1f6P5DPRJOlwm9Fq2dH aPCvl7fjdaDpkf4wUdghFIU= X-Google-Smtp-Source: APXvYqzlGPams0KY7f5bEPz9k6V52ReH04YJycp8lZOxVmrkoTf7sojXttjS5ZhRyaM0d5sbzeq43w== X-Received: by 2002:a63:1608:: with SMTP id w8mr8826621pgl.223.1568336914143; Thu, 12 Sep 2019 18:08:34 -0700 (PDT) Received: from titan.hq.cloud.yunionyun.com ([47.244.19.249]) by smtp.gmail.com with ESMTPSA id l14sm3342283pgn.48.2019.09.12.18.08.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Sep 2019 18:08:32 -0700 (PDT) From: Yousong Zhou To: nbd@nbd.name Date: Fri, 13 Sep 2019 01:08:15 +0000 Message-Id: <20190913010815.14962-3-yszhou4tech@gmail.com> In-Reply-To: <20190913010815.14962-1-yszhou4tech@gmail.com> References: <20190913010815.14962-1-yszhou4tech@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190912_180835_229692_622F023A X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:436 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (yszhou4tech[at]gmail.com) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Subject: [OpenWrt-Devel] [PATCH 3/3] apm821xx: image: remove unused kernel.dtb from IMAGES X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yousong Zhou , openwrt-devel@lists.openwrt.org Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org It's a leftover from 2271967f ("pm821xx: utilize build ARTIFACTs") Signed-off-by: Yousong Zhou Acked-by: Christian Lamparter --- target/linux/apm821xx/image/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/apm821xx/image/Makefile b/target/linux/apm821xx/image/Makefile index acfd478755..8203de39c5 100644 --- a/target/linux/apm821xx/image/Makefile +++ b/target/linux/apm821xx/image/Makefile @@ -238,7 +238,7 @@ define Device/wd_mybooklive DTB_SIZE := 16384 KERNEL := kernel-bin | dtb | gzip | uImage gzip KERNEL_INITRAMFS := kernel-bin | gzip | dtb | MuImage-initramfs gzip - IMAGES := factory.img.gz kernel.dtb sysupgrade.img.gz + IMAGES := factory.img.gz sysupgrade.img.gz ARTIFACTS := apollo3g.dtb DEVICE_DTB := apollo3g.dtb FILESYSTEMS := ext4 squashfs