From patchwork Tue Nov 20 20:38:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 151621 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1076157ljp; Tue, 20 Nov 2018 12:39:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/UVM1NS8YHWlS9001qOx2th/+v3sY8sUzX3F9kEc19CwMRYxmhk1UHiYn59v0XQKp0nRSx7 X-Received: by 2002:a63:f901:: with SMTP id h1mr3314262pgi.154.1542746365021; Tue, 20 Nov 2018 12:39:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542746365; cv=none; d=google.com; s=arc-20160816; b=J/txbCGsMXWYriZpMGUk3qe7UkT7QZephBSQFfOKPZ49fR4JktyHa9DZOgKAOlBedl f+VTkUTXAgXGXj6uzAPAJbKE8jPLQ0+hJ1Ky2GOIBWc5TOvRRNEtFffUxR0f+pq9MzUk XMHjLZVzKTtsPoBERqnoS45SM9otAr8xjQSehHK2tdaflKjmxPk3y0msWWxCE1AGFPZJ gt1spriVHwq/u88NvPRYuKL+oYSk1hr4gYTlCf2HN0ngM8JhE4dF4tSTqWR17wo/DRCq 3StDfABXysawOKDrQDMqNh2Evc7ewFrMMjxdhHUuZim37nd+BSzX50pHufsYWJQwkjSv qOtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=M8BoTvK3Uvg2EPOOxzQDmD+707yjrIiEWcK2z9feurM=; b=sK7wdXvee2qGlB6LVlvEZ7B9xO1GLwagB6Iowk+2oLLqIkDsDVq8X96mSjlefVBfhg nyIM1o32pSgvDve9WCdm2ikB+67pledwhbxJMcR7n2/fmseASAt20twrtPdV9ETSLxRv 8dso/aL4JNBvWmi92NasYT2W/ARvc3QmsfSMvzALltm5IdsKelnGiB+k6x3M+/gWz7Yj 2AtH2URnv7y5kkjOBYsueXPAhhAloPxTQi/NYfr622NuFHtbeThcn41E13uhq2xTH17K 1PSAnIVmFL7HABtwmvPLEiyjLtdEXiP0HoAoN6X1ubpjRpMbHyq+X5yUOT3khmxcp9/M 84lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=MM6SxD1A; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id b18si27909038plz.105.2018.11.20.12.39.24; Tue, 20 Nov 2018 12:39:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=MM6SxD1A; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id A82FD6C4D9; Tue, 20 Nov 2018 20:38:50 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by mail.openembedded.org (Postfix) with ESMTP id 7D8966C4BB for ; Tue, 20 Nov 2018 20:38:29 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id gn14so1982125plb.10 for ; Tue, 20 Nov 2018 12:38:30 -0800 (PST) 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=MOdxSKr/2AtYt8H5O1uIZuwOquS58usAvByy0MRPLKA=; b=MM6SxD1AgoOkLhJktU6RjWotWeKKG4Fn4FSZUFN10OyTF3+TizkrhxUV71QA5ENIVb nEnr1YbPgupqBD8zqJjwd3uBOJQrKMl487eTXCKME8nn1rkdnH/oClY8dvUPCwrL0YLc LIZnxGV4fFAfR9pEhMKX+dBJKeYKZXj+om4Bszgsla3PZJghYPmgy/Ru7FHdwTZsj2nd I+kpfyDIJI6i4xIfdlefjkok2HNNF0q1yQevu+ZoRJavIOUh0rHEdwtnY3Hd/RB4zcN0 85fm+7uHrGrk/tx91qZxTVoKONthnqHefnPvEFFDvYPZzIUn4Au/NO37z33TimIokR7h uB+g== 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=MOdxSKr/2AtYt8H5O1uIZuwOquS58usAvByy0MRPLKA=; b=nvezb9W7ORaBcIIELyhPx5wSQiVA1UBwOzOwXOP2W5TBnzIoZAYnp5TgFRKzmSi75w o0p+KCbOGXvK4Ped2qXgb1hB1+d6FNyJtrSiofP0ECPrhitY8yaITSS7qG406eZ+AZMC 004VJBlQCsJE9fXmB379tAZtjOACwhhq9AwwHm/7eqjc/F5/GTp0p5aI88SoDy/W5PJQ COQ0YjQVZUxH+Si0XEmoAW8I59P4EwS33rbl5sz/A/4ZU0Msv3PPRQs4aQdPXpulJ8+2 A0mMFeBS7ddKXLPIows3+OrAzTjBQKfgvRGkIeBhNhflw87TN0PVfCwC3CJ9/FJ5Cdf8 Zlww== X-Gm-Message-State: AA+aEWb9PfDq2bTg9B4ixj3SJ/+34l9g0pcDrTuSf4Zf54btWgQhDobc LPfquR0jGpfwb1zEzx3s0h/ZCkP+SYc= X-Received: by 2002:a17:902:a50a:: with SMTP id s10mr3599012plq.278.1542746310124; Tue, 20 Nov 2018 12:38:30 -0800 (PST) Received: from localhost.localdomain ([2601:646:877f:9499::26ab]) by smtp.gmail.com with ESMTPSA id x26sm24325479pfn.50.2018.11.20.12.38.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 12:38:29 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 20 Nov 2018 12:38:11 -0800 Message-Id: <20181120203814.11500-7-raj.khem@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181120203814.11500-1-raj.khem@gmail.com> References: <20181120203814.11500-1-raj.khem@gmail.com> MIME-Version: 1.0 Cc: Tristan Ramseyer Subject: [oe] [meta-oe][PATCH 07/10] Copy breakpad .sym file in appropriate folder. X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org From: Tristan Ramseyer Google breakpad requires a very specific folder structure which is only known after dump_syms has been executed. Therefore the .sym file's first line has to be parsed in order to move the file where breakpad wants it. Signed-off-by: Khem Raj --- meta-oe/classes/breakpad.bbclass | 3 +++ 1 file changed, 3 insertions(+) -- 2.19.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/classes/breakpad.bbclass b/meta-oe/classes/breakpad.bbclass index 36f11ff480..cebe559a7f 100644 --- a/meta-oe/classes/breakpad.bbclass +++ b/meta-oe/classes/breakpad.bbclass @@ -25,6 +25,9 @@ PACKAGE_PREPROCESS_FUNCS += "breakpad_package_preprocess" breakpad_package_preprocess () { mkdir -p ${PKGD}/usr/share/breakpad-syms find ${D} -name ${BREAKPAD_BIN} -exec sh -c "dump_syms {} > ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym" \; + HASH=$(head -n1 ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym | rev | cut -d ' ' -f2 | rev) + mkdir -p ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}/${HASH} + mv ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}/${HASH} } PACKAGES =+ "${PN}-breakpad"