Skip to content

Commit bd73a32

Browse files
NicolasDichtelmasahir0y
authored andcommitted
Makefile.headersinst: remove destination-y option
This option was added in commit c7bb349 ("kbuild: introduce destination-y for exported headers") but never used in-tree. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Acked-by: Paul Bolle <pebolle@tiscali.nl> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 7c025b2 commit bd73a32

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

Documentation/kbuild/makefiles.txt

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ This document describes the Linux kernel Makefiles.
4646
=== 7 Kbuild syntax for exported headers
4747
--- 7.1 header-y
4848
--- 7.2 genhdr-y
49-
--- 7.3 destination-y
50-
--- 7.4 generic-y
51-
--- 7.5 generated-y
49+
--- 7.3 generic-y
50+
--- 7.4 generated-y
5251

5352
=== 8 Kbuild Variables
5453
=== 9 Makefile language
@@ -1295,21 +1294,7 @@ See subsequent chapter for the syntax of the Kbuild file.
12951294
#include/linux/Kbuild
12961295
genhdr-y += version.h
12971296

1298-
--- 7.3 destination-y
1299-
1300-
When an architecture has a set of exported headers that needs to be
1301-
exported to a different directory destination-y is used.
1302-
destination-y specifies the destination directory for all exported
1303-
headers in the file where it is present.
1304-
1305-
Example:
1306-
#arch/xtensa/platforms/s6105/include/platform/Kbuild
1307-
destination-y := include/linux
1308-
1309-
In the example above all exported headers in the Kbuild file
1310-
will be located in the directory "include/linux" when exported.
1311-
1312-
--- 7.4 generic-y
1297+
--- 7.3 generic-y
13131298

13141299
If an architecture uses a verbatim copy of a header from
13151300
include/asm-generic then this is listed in the file
@@ -1336,7 +1321,7 @@ See subsequent chapter for the syntax of the Kbuild file.
13361321
Example: termios.h
13371322
#include <asm-generic/termios.h>
13381323

1339-
--- 7.5 generated-y
1324+
--- 7.4 generated-y
13401325

13411326
If an architecture generates other header files alongside generic-y
13421327
wrappers, and not included in genhdr-y, then generated-y specifies

scripts/Makefile.headersinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ kbuild-file := $(srctree)/$(obj)/Kbuild
1414
include $(kbuild-file)
1515

1616
# called may set destination dir (when installing to asm/)
17-
_dst := $(if $(destination-y),$(destination-y),$(if $(dst),$(dst),$(obj)))
17+
_dst := $(if $(dst),$(dst),$(obj))
1818

1919
old-kbuild-file := $(srctree)/$(subst uapi/,,$(obj))/Kbuild
2020
ifneq ($(wildcard $(old-kbuild-file)),)

0 commit comments

Comments
 (0)