From patchwork Thu Feb 20 13:42:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 322190 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 7DED02C00C7 for ; Fri, 21 Feb 2014 00:42:43 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 993CE1FE7D; Thu, 20 Feb 2014 13:42:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BADvTCSxX6eP; Thu, 20 Feb 2014 13:42:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 547AB24E90; Thu, 20 Feb 2014 13:42:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D34C01C2431 for ; Thu, 20 Feb 2014 13:42:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D463A8A57C for ; Thu, 20 Feb 2014 13:42:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9EZOvu87nhoY for ; Thu, 20 Feb 2014 13:42:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-oa0-f45.google.com (mail-oa0-f45.google.com [209.85.219.45]) by whitealder.osuosl.org (Postfix) with ESMTPS id F39828A3D7 for ; Thu, 20 Feb 2014 13:42:38 +0000 (UTC) Received: by mail-oa0-f45.google.com with SMTP id i11so2103053oag.4 for ; Thu, 20 Feb 2014 05:42:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=bIphwV/x5HV/QmxQclw568pDpjt9lFtRUsRYwHrLNWc=; b=aQ4DsGHDLYvvR8pwh5gRfSULTQA4rlJqoLCAKpXnNbgk1uo7nhMclB/zLEiNm39Ylt rzusYi+vM1iB+F149/7tIfz+I6DqXeoEM/WnCQwcBXXxIqdTXiWyBfzOqXGYU5ZRZrHN aKB2GEM56NxRsPfjOy3W28HXNmWbM2+v3fXKavmSjHrb+XTDjghEv3CqI3osmazMd36Z k44mQ5z1urAoAdSU5LVeGm+Fip7fcstcuOHD+u2KhWlNTeWE7aQTQYdcze2ypvrJQzQ3 lFilxfkuYTfFpjdyScqDIwuKQnws9MfvCqQ9ggOs5W/4iZQIYPMR7eSFCxsY1UaS883n oBPQ== X-Received: by 10.60.56.200 with SMTP id c8mr1504545oeq.80.1392903758093; Thu, 20 Feb 2014 05:42:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.99.173 with HTTP; Thu, 20 Feb 2014 05:42:17 -0800 (PST) In-Reply-To: <20140220095550.GA16493@pc-eric> References: <20140220095550.GA16493@pc-eric> From: Fabio Porcedda Date: Thu, 20 Feb 2014 14:42:17 +0100 Message-ID: To: Eric Le Bihan Cc: "buildroot@busybox.net" Subject: Re: [Buildroot] Parallel make messes up post-build in -next X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net On Thu, Feb 20, 2014 at 10:55 AM, Eric Le Bihan wrote: > Hi! > > I am currently testing the -next branch and I've encountered the following > problem: the copy of my overlay and the execution of my post-build script is > now performed *after* the generation of my image. > > Reverting commit a24877586a566e052897e50e6a0c2f53cfb029f5, which adds support > for top-level parallel make, fixes the issue. > > Has anyone else experienced this problem? > Can you try this patch? $(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/pkgconfig \ @@ -534,8 +536,6 @@ endif find $(TARGET_DIR)/lib/modules -type f -name '*.ko' | \ xargs -r $(KSTRIPCMD); fi -$(TARGETS_ROOTFS): target-finalize - # See http://sourceware.org/gdb/wiki/FAQ, "GDB does not see any threads # besides the one in which crash occurred; or SIGTRAP kills my program when # I set a breakpoint" Regards diff --git a/Makefile b/Makefile index 20aabd6..de568e3 100644 --- a/Makefile +++ b/Makefile @@ -507,6 +507,8 @@ endif STRIP_FIND_CMD += -type f \( -perm /111 -o -name '*.so*' \) STRIP_FIND_CMD += -not \( $(call findfileclauses,libpthread*.so* $(call qstrip,$(BR2_STRIP_EXCLUDE_FILES))) \) -print +$(TARGETS_ROOTFS): target-finalize + target-finalize: $(TARGETS) rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/share/aclocal \