From patchwork Sun Jul 9 18:32:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 107262 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2541938qge; Sun, 9 Jul 2017 11:38:20 -0700 (PDT) X-Received: by 10.84.143.131 with SMTP id 3mr13890597plz.17.1499625499969; Sun, 09 Jul 2017 11:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499625499; cv=none; d=google.com; s=arc-20160816; b=cy+LGRLwwTXfk8dXv6OwVutYkchDO+aiTqSxOuFVNIgyxQr6Rm1oQ1mbPoxei4GfN2 /ivMoyekZJ8Q+S7suu5bjam88oJUEJNIUUl7NrvU4kccLY5qujjd9lEXXEOf9Fz673cQ yhFM/Rv8bIR4puftSxyGy/zj1pJjcTM3/j/mDfsK5Ev4oH4ojEP5ns2kIMA+9T1SH5D4 R1ukqlBY00FhjYEvaNkPWsiVLmzlD7LmjrjG+DdIy4c2+mbXluDjrX5paFimTXiSaG+b aE77Np3g6TjhWoo9ju+h4Sv/9RgD0J5iEWaAsQOFdHC4AOFWH2H2N3yThcX32P97EG05 BP7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=jaKX3jVrdnZOe0xilCdBcggKSzlSbjR2PK4xaq/Ii9E=; b=IoR62Mu6WPtLgUS1tMUIi1sSe7HsFa9xCU30XXSLsBfJpzyNg/f2JHPuGpIeRiX6uE qF2L2ctUYOAVZPhFAddPE6IDBIPJr35MYlnvDGhHGk9YdxElPu0wuJB2a0y3IilPS25y MkjEEGKFd5RbmOYiqQGucCKxMpvmFKsfstGBRL8h3dSCjih0key1TUz72z7fJa/oB0Tj b3cP3LZjDZ9w3X4Go69sloiriAVinXxuy3UgEY5plt90p0rx/yHecyVDhG1k3uZgzspx /YYk+WQdq6KIx0AtcCK1gqTpOUSXzh5OhKq4PxWBuepNlIX59r4f7mi8llEAYomjsiw7 tUcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.b=a5GKZPlN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si2019792pla.387.2017.07.09.11.38.19; Sun, 09 Jul 2017 11:38:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.b=a5GKZPlN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753049AbdGIShh (ORCPT + 25 others); Sun, 9 Jul 2017 14:37:37 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:45738 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752557AbdGISdT (ORCPT ); Sun, 9 Jul 2017 14:33:19 -0400 Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-08.nifty.com with ESMTP id v69IX2Cu000353; Mon, 10 Jul 2017 03:33:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v69IX2Cu000353 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1499625188; bh=jaKX3jVrdnZOe0xilCdBcggKSzlSbjR2PK4xaq/Ii9E=; h=From:To:Cc:Subject:Date:From; b=a5GKZPlN49Wzb+2moXal2jX8hrmyVwo+q86rmYXcT8F7EScSQRpfnNwo9gVHAxkF1 OKGWq/CQ6QNclClOKT7C8NgPWbzGeUmdKpd6q/eBqMBEDoXIdpcxcEw0rDuk+NdtLp ESeJ+PHkwA4TiQccl9qmAlSBfjff8j+teBYR7yh0bzPeYtjxg38WAU5TkTXQiYB3s9 EvF4COvJUpYODLXfQcW+p+V1jomkq+pgoGFxuGoYV8TskmN2nBVhaBZ2WUXVeKWIpF 0lZ2L67VGBTEPdRqfb2TaWhyNeChEX7j40qFFhYQCCILDmcKAgO96TRQS9LKK/1lBm 6HWdmYgtqf87A== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-arch@vger.kernel.org, Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH v2 00/28] kbuild: complete UAPI de-coupling and cleanup scripts/Makefile.headersinst Date: Mon, 10 Jul 2017 03:32:32 +0900 Message-Id: <1499625180-8067-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In v4.12-rc1, we had a big progress for headers_install. All (and only) headers under UAPI directories are exported. However, asm-generic wrappers are still exceptions because most of arch/*/include/asm/Kbuild include "generic-y" for exported headers. As a result, many of generic-wrappers to be exported are generated outside UAPI directories. To finish de-coupling UAPI, "generic-y" for exported headers should be moved to arch/*/include/uapi/asm/Kbuild. With those cleanups, the logic of headers_install will become even simpler. UAPI will be completely self-contained. This series is based on: commit 19bf2e0ef18ec8a7284ecc83459a2664cb885cd5 Changes for v2: - rebase on the latest in the mainline in order to avoid merge conflicts Masahiro Yamada (28): kbuild: remove useless $(gen) variable in Makefile.headersinst kbuild: fix comment about dst of headers_{install,check}_all kbuild: pass dst= to Makefile.headersinst from top Makefile arm64: move generic-y of exported headers to uapi/asm/Kbuild ARM: move generic-y of exported headers to uapi/asm/Kbuild arc: move generic-y of exported headers to uapi/asm/Kbuild blackfin: move generic-y of exported headers to uapi/asm/Kbuild c6x: move generic-y of exported headers to uapi/asm/Kbuild cris: move generic-y of exported headers to uapi/asm/Kbuild h8300: move generic-y of exported headers to uapi/asm/Kbuild hexagon: move generic-y of exported headers to uapi/asm/Kbuild ia64: remove redundant generic-y += kvm_para.h from asm/Kbuild m32r: move generic-y of exported headers to uapi/asm/Kbuild m68k: move generic-y of exported headers to uapi/asm/Kbuild metag: move generic-y of exported headers to uapi/asm/Kbuild microblaze: move generic-y of exported headers to uapi/asm/Kbuild nios2: remove unneeded arch/nios2/include/(generated/)asm/signal.h nios2: move generic-y of exported headers to uapi/asm/Kbuild openrisc: move generic-y of exported headers to uapi/asm/Kbuild parisc: move generic-y of exported headers to uapi/asm/Kbuild sh: move generic-y of exported headers to uapi/asm/Kbuild sparc: move generic-y of exported headers to uapi/asm/Kbuild tile: move generic-y of exported headers to uapi/asm/Kbuild unicore32: move generic-y of exported headers to uapi/asm/Kbuild xtensa: move generic-y of exported headers to uapi/asm/Kbuild kbuild: do not include old-kbuild-file from Makefile.headersinst kbuild: split exported generic header creation into uapi-asm-generic kbuild: remove wrapper files handling from Makefile.headersinst Makefile | 13 +++++++------ arch/arc/include/asm/Kbuild | 24 ------------------------ arch/arc/include/uapi/asm/Kbuild | 24 ++++++++++++++++++++++++ arch/arm/include/asm/Kbuild | 16 ---------------- arch/arm/include/uapi/asm/Kbuild | 14 ++++++++++++++ arch/arm64/include/asm/Kbuild | 17 ----------------- arch/arm64/include/uapi/asm/Kbuild | 16 ++++++++++++++++ arch/blackfin/include/asm/Kbuild | 24 +----------------------- arch/blackfin/include/uapi/asm/Kbuild | 22 ++++++++++++++++++++++ arch/c6x/include/asm/Kbuild | 28 +--------------------------- arch/c6x/include/uapi/asm/Kbuild | 25 +++++++++++++++++++++++++ arch/cris/include/asm/Kbuild | 21 ++------------------- arch/cris/include/uapi/asm/Kbuild | 17 +++++++++++++++++ arch/h8300/include/asm/Kbuild | 30 ++---------------------------- arch/h8300/include/uapi/asm/Kbuild | 26 ++++++++++++++++++++++++++ arch/hexagon/include/asm/Kbuild | 24 +----------------------- arch/hexagon/include/uapi/asm/Kbuild | 22 ++++++++++++++++++++++ arch/ia64/include/asm/Kbuild | 2 -- arch/m32r/include/asm/Kbuild | 4 +--- arch/m32r/include/uapi/asm/Kbuild | 3 ++- arch/m68k/include/asm/Kbuild | 13 +------------ arch/m68k/include/uapi/asm/Kbuild | 10 ++++++++++ arch/metag/include/asm/Kbuild | 26 +------------------------- arch/metag/include/uapi/asm/Kbuild | 24 ++++++++++++++++++++++++ arch/microblaze/include/asm/Kbuild | 25 ------------------------- arch/microblaze/include/uapi/asm/Kbuild | 25 ++++++++++++++++++++++++- arch/nios2/include/asm/Kbuild | 26 +------------------------- arch/nios2/include/asm/signal.h | 22 ---------------------- arch/nios2/include/uapi/asm/Kbuild | 23 +++++++++++++++++++++++ arch/openrisc/include/asm/Kbuild | 29 +---------------------------- arch/openrisc/include/uapi/asm/Kbuild | 27 +++++++++++++++++++++++++++ arch/parisc/include/asm/Kbuild | 7 +------ arch/parisc/include/uapi/asm/Kbuild | 4 ++++ arch/sh/include/asm/Kbuild | 19 ------------------- arch/sh/include/uapi/asm/Kbuild | 18 ++++++++++++++++++ arch/sparc/include/asm/Kbuild | 1 - arch/sparc/include/uapi/asm/Kbuild | 2 ++ arch/tile/include/asm/Kbuild | 19 ------------------- arch/tile/include/uapi/asm/Kbuild | 19 +++++++++++++++++++ arch/unicore32/include/asm/Kbuild | 30 +----------------------------- arch/unicore32/include/uapi/asm/Kbuild | 27 +++++++++++++++++++++++++++ arch/xtensa/include/asm/Kbuild | 10 +--------- arch/xtensa/include/uapi/asm/Kbuild | 9 +++++++++ scripts/Makefile.headersinst | 29 ++++------------------------- 44 files changed, 381 insertions(+), 435 deletions(-) delete mode 100644 arch/nios2/include/asm/signal.h -- 2.7.4