From patchwork Tue May 28 10:14:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zzs0213@gmail.com X-Patchwork-Id: 2623911 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 5C60040077 for ; Tue, 28 May 2013 10:16:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755617Ab3E1KQG (ORCPT ); Tue, 28 May 2013 06:16:06 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:34970 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210Ab3E1KQG (ORCPT ); Tue, 28 May 2013 06:16:06 -0400 Received: by mail-pd0-f179.google.com with SMTP id q11so7427894pdj.24 for ; Tue, 28 May 2013 03:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=yDup2vTT1wBc9H3bgVTAicn9k5W2oKpGAf/GdWEemNk=; b=bSDh5kht4en16aOWPFDuxhl+cyZh/K+drM/LqZpziUJSeamLwWKxlgeReOx5dCSE7l AN3LgaO2yIuRiU+jUrSVcBLTR96irowl91HJGwNv2rudlhiYoM4zJ9kTjenCS5MdDxfQ 6m9uOgYgcK/5D6MuOUlZR0hrU8wAIFEdnZ8bDXgQ3nH6WfZY3CPCJu8tDeW532eX6khi vBDwOvLzCxVd2DT88SmG2yW0txTM6zxRe6O3gqDMNt89oX00wW1LzsmZwqzbpI7W+bNq pt7cJo1pWOGtSZr7mbuECiVP8mUY5/X2W0YFwdBB6t0DD8HeadNWN+HWFjNFqmuew6qx coiQ== X-Received: by 10.68.99.163 with SMTP id er3mr33585755pbb.36.1369736164957; Tue, 28 May 2013 03:16:04 -0700 (PDT) Received: from localhost.localdomain ([110.184.249.21]) by mx.google.com with ESMTPSA id cc15sm34640315pac.1.2013.05.28.03.15.59 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 May 2013 03:16:04 -0700 (PDT) From: zzs0213@gmail.com To: linux-kbuild@vger.kernel.org Cc: =?UTF-8?q?=E5=BC=A0=E5=BF=A0=E5=B1=B1?= , =?UTF-8?q?=E5=BC=A0=E5=BF=A0=E5=B1=B1?= Subject: [PATCH] let kbuild mkdir for dir/file.o Date: Tue, 28 May 2013 18:14:20 +0800 Message-Id: <51a483e4.cfaf420a.3b33.5494@mx.google.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: ??? when obj-y += dir/file.o the $(obj)/dir not created, this patch fix this this bug caused by commit f5fb976520a53f45f8bbf2e851f16b3b5558d485 Signed-off-by: ??? --- scripts/Makefile.lib | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 51bb3de..6bae5a9 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -63,7 +63,8 @@ multi-objs := $(multi-objs-y) $(multi-objs-m) subdir-obj-y := $(filter %/built-in.o, $(obj-y)) # $(obj-dirs) is a list of directories that contain object files -obj-dirs := $(dir $(multi-objs) $(subdir-obj-y)) +__subdir-obj-y := $(foreach o,$(obj-y),$(if $(filter-out $(o),$(notdir $(o))),$(o))) +obj-dirs := $(dir $(multi-objs) $(__subdir-obj-y)) # Replace multi-part objects by their individual parts, look at local dir only real-objs-y := $(foreach m, $(filter-out $(subdir-obj-y), $(obj-y)), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))),$($(m:.o=-objs)) $($(m:.o=-y)),$(m))) $(extra-y)