From patchwork Fri Jun 6 01:31:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 4309491 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3ECD0BEECB for ; Fri, 6 Jun 2014 01:31:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6A7D7201E4 for ; Fri, 6 Jun 2014 01:31:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 771A8201F7 for ; Fri, 6 Jun 2014 01:31:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752072AbaFFBbN (ORCPT ); Thu, 5 Jun 2014 21:31:13 -0400 Received: from smtp.mei.co.jp ([133.183.100.20]:47413 "EHLO smtp.mei.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751984AbaFFBbM (ORCPT ); Thu, 5 Jun 2014 21:31:12 -0400 Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile13) with ESMTP id s561VBwe018123 for ; Fri, 6 Jun 2014 10:31:11 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili12) with ESMTP id s561VAo25854 for ; Fri, 6 Jun 2014 10:31:10 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi14) id s561VAYt024799; Fri, 6 Jun 2014 10:31:10 +0900 Received: from poodle by lomi14.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id s561VAPK024760; Fri, 6 Jun 2014 10:31:10 +0900 Received: from beagle.diag.org (beagle.diag.org [10.184.179.16]) by poodle (Postfix) with ESMTP id 6E8C92743A5D; Fri, 6 Jun 2014 10:31:10 +0900 (JST) From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada Subject: [PATCH 5/5] kbuild: create directory of .o files from shlib-objs notation Date: Fri, 6 Jun 2014 10:31:03 +0900 Message-Id: <1402018263-30670-6-git-send-email-yamada.m@jp.panasonic.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1402018263-30670-1-git-send-email-yamada.m@jp.panasonic.com> References: <1402018263-30670-1-git-send-email-yamada.m@jp.panasonic.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Assume we have a Makefile like this: hostprogs-y := foo foo-objs := bar.o baz.so baz-objs := qux/quux.o In this case, Kbuild fails to create qux/ directory. Signed-off-by: Masahiro Yamada --- scripts/Makefile.host | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Makefile.host b/scripts/Makefile.host index b0e1a64..4bb237b 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host @@ -68,6 +68,8 @@ host-objdirs := $(foreach f,$(__hostprogs), $(dir $(f))) host-objdirs += $(foreach f,$(__hostprogs), \ $(foreach m,$($(f)-objs) $($(f)-cxxobjs), \ $(dir $(m)))) +# directory of .o files from shlib-objs notation +host-objdirs += $(foreach m,$(host-cshobjs), $(dir $(m))) host-objdirs := $(strip $(sort $(filter-out ./,$(host-objdirs))))