Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d08bc5c1
Commit
d08bc5c1
authored
Mar 08, 2003
by
Sam Ravnborg
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-sam@linux-sam.bkbits.net/kbuild2
into mars.ravnborg.org:/home/sam/src/linux/kernel/bk/kbuild4
parents
3ec83948
a1f0f3c9
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
57 additions
and
81 deletions
+57
-81
Makefile
Makefile
+30
-15
arch/alpha/Makefile
arch/alpha/Makefile
+2
-5
arch/arm/Makefile
arch/arm/Makefile
+1
-3
arch/m68knommu/Makefile
arch/m68knommu/Makefile
+2
-5
arch/parisc/Makefile
arch/parisc/Makefile
+2
-5
arch/ppc/Makefile
arch/ppc/Makefile
+3
-8
arch/ppc64/Makefile
arch/ppc64/Makefile
+2
-6
arch/s390/Makefile
arch/s390/Makefile
+2
-5
arch/s390x/Makefile
arch/s390x/Makefile
+2
-5
arch/sparc/Makefile
arch/sparc/Makefile
+2
-5
arch/v850/Makefile
arch/v850/Makefile
+3
-7
arch/x86_64/Makefile
arch/x86_64/Makefile
+2
-7
init/Makefile
init/Makefile
+1
-1
scripts/mkcompile_h
scripts/mkcompile_h
+3
-4
No files found.
Makefile
View file @
d08bc5c1
...
@@ -478,17 +478,19 @@ include/linux/autoconf.h: .config scripts/fixdep
...
@@ -478,17 +478,19 @@ include/linux/autoconf.h: .config scripts/fixdep
uts_len
:=
64
uts_len
:=
64
include/linux/version.h
:
Makefile
define
filechk_version.h
@
if
expr
length
"
$(KERNELRELEASE)
"
\>
$(uts_len)
>
/dev/null
;
then
\
if
expr
length
"$(KERNELRELEASE)"
\>
$(uts_len)
>/dev/null
;
then
\
echo
'"$(KERNELRELEASE)" exceeds $(uts_len) characters'
>&2;
\
echo
'"$(KERNELRELEASE)" exceeds $(uts_len) characters'
>&2;
\
exit
1;
\
exit
1;
\
fi;
fi;
@
echo
-n
' GEN $@'
(echo
\
#define UTS_RELEASE \"$(KERNELRELEASE)\"; \
@
(
echo
\#
define UTS_RELEASE
\"
$(KERNELRELEASE)
\"
;
\
echo
\
#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)`; \
echo
\
#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)`; \
echo
'#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'
;
\
echo
'#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'
;
\
)
>
$@
.tmp
)
@
$
(
update-if-changed
)
endef
include/linux/version.h
:
Makefile
$(
call
filechk,version.h
)
# ---------------------------------------------------------------------------
# ---------------------------------------------------------------------------
...
@@ -557,7 +559,7 @@ endif # CONFIG_MODULES
...
@@ -557,7 +559,7 @@ endif # CONFIG_MODULES
# Generate asm-offsets.h
# Generate asm-offsets.h
# ---------------------------------------------------------------------------
# ---------------------------------------------------------------------------
define
generate-asm-offsets.h
define
filechk_gen-asm-offsets
(set
-e;
\
(set
-e;
\
echo
"#ifndef __ASM_OFFSETS_H__"
;
\
echo
"#ifndef __ASM_OFFSETS_H__"
;
\
echo
"#define __ASM_OFFSETS_H__"
;
\
echo
"#define __ASM_OFFSETS_H__"
;
\
...
@@ -573,7 +575,6 @@ define generate-asm-offsets.h
...
@@ -573,7 +575,6 @@ define generate-asm-offsets.h
echo "
#
endif" )
echo "
#
endif" )
endef
endef
else
# ifdef include_config
else
# ifdef include_config
ifeq
($(filter-out $(noconfig_targets),$(MAKECMDGOALS)),)
ifeq
($(filter-out $(noconfig_targets),$(MAKECMDGOALS)),)
...
@@ -881,12 +882,26 @@ if_changed_rule = $(if $(strip $? \
...
@@ -881,12 +882,26 @@ if_changed_rule = $(if $(strip $? \
cmd
=
@
$(
if
$
(
$(quiet)
cmd_
$(1)
)
,echo
' $(
$(quiet)
cmd_
$(1)
)
'
&&
)
$
(
cmd_
$(1)
)
cmd
=
@
$(
if
$
(
$(quiet)
cmd_
$(1)
)
,echo
' $(
$(quiet)
cmd_
$(1)
)
'
&&
)
$
(
cmd_
$(1)
)
define
update-if-changed
# filechk is used to check if the content of a generated file is updated.
# Sample usage:
# define filechk_sample
# echo $KERNELRELEASE
# endef
# version.h : Makefile
# $(call filechk,sample)
# The rule defined shall write to stdout the content of the new file.
# The existing file will be compared with the new one.
# - If no file exist it is created
# - If the content differ the new file is used
# - If they are equal no change, and no timestamp update
define
filechk
@echo
' CHK $@'
;
@set
-e;
$(filechk_$(1))
>
$@.tmp
if
[
-r
$@
]
&&
cmp
-s
$@
$@.tmp;
then
\
if
[
-r
$@
]
&&
cmp
-s
$@
$@.tmp;
then
\
echo
' (unchanged)'
;
\
rm
-f
$@.tmp;
\
rm
-f
$@.tmp;
\
else
\
else
\
echo
'
(updated)'
;
\
echo
'
UPD $@'
;
\
mv
-f
$@.tmp
$@;
\
mv
-f
$@.tmp
$@;
\
fi
fi
endef
endef
...
...
arch/alpha/Makefile
View file @
d08bc5c1
...
@@ -119,15 +119,12 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
...
@@ -119,15 +119,12 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
include/config/MARKER
include/config/MARKER
include/asm-$(ARCH)/asm_offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
include/asm-$(ARCH)/asm_offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
@
echo
-n
' Generating $@'
$(
call
filechk,gen-asm-offsets
)
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
.tmp
@
$
(
update-if-changed
)
archclean
:
archclean
:
$(Q)$(MAKE)
-f
scripts/Makefile.clean
obj
=
$(boot)
$(Q)$(MAKE)
-f
scripts/Makefile.clean
obj
=
$(boot)
CLEAN_FILES
+=
include/asm-
$(ARCH)
/asm_offsets.h.tmp
\
CLEAN_FILES
+=
include/asm-
$(ARCH)
/asm_offsets.h
include/asm-
$(ARCH)
/asm_offsets.h
define
archhelp
define
archhelp
echo
'* boot - Compressed kernel image (arch/alpha/boot/vmlinux.gz)'
echo
'* boot - Compressed kernel image (arch/alpha/boot/vmlinux.gz)'
...
...
arch/arm/Makefile
View file @
d08bc5c1
...
@@ -211,9 +211,7 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
...
@@ -211,9 +211,7 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
include/config/MARKER
include/config/MARKER
include/asm-$(ARCH)/constants.h
:
arch/$(ARCH)/kernel/asm-offsets.s
include/asm-$(ARCH)/constants.h
:
arch/$(ARCH)/kernel/asm-offsets.s
@
echo
-n
' Generating $@'
$(
call
filechk,gen-asm-offsets
)
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
.tmp
@
$
(
update-if-changed
)
define
archhelp
define
archhelp
echo
'* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
echo
'* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
...
...
arch/m68knommu/Makefile
View file @
d08bc5c1
...
@@ -86,8 +86,7 @@ LDFLAGS_BLOB := --format binary --oformat elf32-m68k
...
@@ -86,8 +86,7 @@ LDFLAGS_BLOB := --format binary --oformat elf32-m68k
head-y
:=
arch
/m68knommu/platform/
$
(
platform-y
)
/
$
(
board-y
)
/crt0_
$
(
model-y
)
.o
head-y
:=
arch
/m68knommu/platform/
$
(
platform-y
)
/
$
(
board-y
)
/crt0_
$
(
model-y
)
.o
CLEAN_FILES
:=
include/asm-
$(ARCH)
/asm-offsets.h.tmp
\
CLEAN_FILES
:=
include/asm-
$(ARCH)
/asm-offsets.h
\
include/asm-
$(ARCH)
/asm-offsets.h
\
arch
/
$(ARCH)
/kernel/asm-offsets.s
arch
/
$(ARCH)
/kernel/asm-offsets.s
core-y
+=
arch
/m68knommu/kernel/
\
core-y
+=
arch
/m68knommu/kernel/
\
...
@@ -104,6 +103,4 @@ archclean:
...
@@ -104,6 +103,4 @@ archclean:
include/asm-$(ARCH)/asm-offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
\
include/asm-$(ARCH)/asm-offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
\
include/asm include/linux/version.h
\
include/asm include/linux/version.h
\
include/config/MARKER
include/config/MARKER
@
echo
-n
' Generating $@'
$(
call
filechk,gen-asm-offsets
)
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
.tmp
@
$
(
update-if-changed
)
arch/parisc/Makefile
View file @
d08bc5c1
...
@@ -91,12 +91,9 @@ arch/parisc/kernel/asm-offsets.s: include/asm include/linux/version.h \
...
@@ -91,12 +91,9 @@ arch/parisc/kernel/asm-offsets.s: include/asm include/linux/version.h \
include/config/MARKER
include/config/MARKER
include/asm-parisc/offsets.h
:
arch/parisc/kernel/asm-offsets.s
include/asm-parisc/offsets.h
:
arch/parisc/kernel/asm-offsets.s
@
echo
-n
' Generating $@'
$(
call
filechk,gen-asm-offsets
)
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
.tmp
@
$
(
update-if-changed
)
CLEAN_FILES
+=
palo.conf lifimage include/asm-parisc/offsets.h
\
CLEAN_FILES
+=
palo.conf lifimage include/asm-parisc/offsets.h
include/asm-parisc/offsets.h.tmp
define
archhelp
define
archhelp
@echo
'* vmlinux - Uncompressed kernel image (./vmlinux)'
@echo
'* vmlinux - Uncompressed kernel image (./vmlinux)'
...
...
arch/ppc/Makefile
View file @
d08bc5c1
...
@@ -80,12 +80,8 @@ prepare: include/asm-$(ARCH)/offsets.h checkbin
...
@@ -80,12 +80,8 @@ prepare: include/asm-$(ARCH)/offsets.h checkbin
arch/$(ARCH)/kernel/asm-offsets.s
:
include/asm include/linux/version.h
\
arch/$(ARCH)/kernel/asm-offsets.s
:
include/asm include/linux/version.h
\
include/config/MARKER
include/config/MARKER
include/asm-$(ARCH)/offsets.h.tmp
:
arch/$(ARCH)/kernel/asm-offsets.s
include/asm-$(ARCH)/offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
$(
call
filechk,gen-asm-offsets
)
include/asm-$(ARCH)/offsets.h
:
include/asm-$(ARCH)/offsets.h.tmp
@
echo
-n
' Generating $@'
@
$
(
update-if-changed
)
ifdef
CONFIG_6xx
ifdef
CONFIG_6xx
# Ensure this is binutils 2.12.1 (or 2.12.90.0.7) or later
# Ensure this is binutils 2.12.1 (or 2.12.90.0.7) or later
...
@@ -106,6 +102,5 @@ checkbin:
...
@@ -106,6 +102,5 @@ checkbin:
@
true
@
true
endif
endif
CLEAN_FILES
+=
include/asm-
$(ARCH)
/offsets.h.tmp
\
CLEAN_FILES
+=
include/asm-
$(ARCH)
/offsets.h
\
include/asm-
$(ARCH)
/offsets.h
\
arch
/
$(ARCH)
/kernel/asm-offsets.s
arch
/
$(ARCH)
/kernel/asm-offsets.s
arch/ppc64/Makefile
View file @
d08bc5c1
...
@@ -52,10 +52,6 @@ arch/ppc64/kernel/asm-offsets.s: include/asm include/linux/version.h \
...
@@ -52,10 +52,6 @@ arch/ppc64/kernel/asm-offsets.s: include/asm include/linux/version.h \
include/config/MARKER
include/config/MARKER
include/asm-ppc64/offsets.h
:
arch/ppc64/kernel/asm-offsets.s
include/asm-ppc64/offsets.h
:
arch/ppc64/kernel/asm-offsets.s
@
echo
-n
' Generating $@'
$(
call
filechk,gen-asm-offsets
)
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
.tmp
@
$
(
update-if-changed
)
CLEAN_FILES
+=
include/asm-ppc64/offsets.h.tmp
\
include/asm-ppc64/offsets.h
CLEAN_FILES
+=
include/asm-ppc64/offsets.h
arch/s390/Makefile
View file @
d08bc5c1
...
@@ -48,9 +48,6 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
...
@@ -48,9 +48,6 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
include/config/MARKER
include/config/MARKER
include/asm-$(ARCH)/offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
include/asm-$(ARCH)/offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
@
echo
-n
' Generating $@'
$(
call
filechk,gen-asm-offsets
)
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
.tmp
@
$
(
update-if-changed
)
CLEAN_FILES
+=
include/asm-
$(ARCH)
/offsets.h.tmp
\
CLEAN_FILES
+=
include/asm-
$(ARCH)
/offsets.h
include/asm-
$(ARCH)
/offsets.h
arch/s390x/Makefile
View file @
d08bc5c1
...
@@ -48,9 +48,6 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
...
@@ -48,9 +48,6 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
include/config/MARKER
include/config/MARKER
include/asm-$(ARCH)/offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
include/asm-$(ARCH)/offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
@
echo
-n
' Generating $@'
$(
call
filechk,gen-asm-offsets
)
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
.tmp
@
$
(
update-if-changed
)
CLEAN_FILES
+=
include/asm-
$(ARCH)
/offsets.h.tmp
\
CLEAN_FILES
+=
include/asm-
$(ARCH)
/offsets.h
include/asm-
$(ARCH)
/offsets.h
arch/sparc/Makefile
View file @
d08bc5c1
...
@@ -68,10 +68,7 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
...
@@ -68,10 +68,7 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
include/config/MARKER
include/config/MARKER
include/asm-$(ARCH)/asm_offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
include/asm-$(ARCH)/asm_offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
@
echo
-n
' Generating $@'
$(
call
filechk,gen-asm-offsets
)
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
.tmp
@
$
(
update-if-changed
)
CLEAN_FILES
+=
include/asm-
$(ARCH)
/asm_offsets.h.tmp
\
CLEAN_FILES
+=
include/asm-
$(ARCH)
/asm_offsets.h
\
include/asm-
$(ARCH)
/asm_offsets.h
\
arch
/
$(ARCH)
/kernel/asm-offsets.s
arch
/
$(ARCH)
/kernel/asm-offsets.s
arch/v850/Makefile
View file @
d08bc5c1
...
@@ -55,14 +55,10 @@ prepare: include/asm-$(ARCH)/asm-consts.h
...
@@ -55,14 +55,10 @@ prepare: include/asm-$(ARCH)/asm-consts.h
# Generate constants from C code for use by asm files
# Generate constants from C code for use by asm files
arch/$(ARCH)/kernel/asm-consts.s
:
include/asm include/linux/version.h
\
arch/$(ARCH)/kernel/asm-consts.s
:
include/asm include/linux/version.h
\
include/config/MARKER
include/config/MARKER
include/asm-$(ARCH)/asm-consts.h.tmp
:
arch/$(ARCH)/kernel/asm-consts.s
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
include/asm-$(ARCH)/asm-consts.h
:
include/asm-$(ARCH)/asm-consts.h.tmp
@
echo
-n
' Generating $@'
@
$
(
update-if-changed
)
include/asm-$(ARCH)/asm-consts.h
:
arch/$(ARCH)/kernel/asm-consts.s
$(
call
filechk,gen-asm-offsets
)
CLEAN_FILES
+=
include/asm-
$(ARCH)
/asm-consts.h.tmp
\
CLEAN_FILES
+=
include/asm-
$(ARCH)
/asm-consts.h
\
include/asm-
$(ARCH)
/asm-consts.h
\
arch
/
$(ARCH)
/kernel/asm-consts.s
\
arch
/
$(ARCH)
/kernel/asm-consts.s
\
root_fs_image.o
root_fs_image.o
arch/x86_64/Makefile
View file @
d08bc5c1
...
@@ -86,15 +86,10 @@ prepare: include/asm-$(ARCH)/offset.h
...
@@ -86,15 +86,10 @@ prepare: include/asm-$(ARCH)/offset.h
arch/$(ARCH)/kernel/asm-offsets.s
:
include/asm include/linux/version.h
\
arch/$(ARCH)/kernel/asm-offsets.s
:
include/asm include/linux/version.h
\
include/config/MARKER
include/config/MARKER
include/asm-$(ARCH)/offset.h.tmp
:
arch/$(ARCH)/kernel/asm-offsets.s
include/asm-$(ARCH)/offset.h
:
arch/$(ARCH)/kernel/asm-offsets.s
include/asm-$(ARCH)/offset.h
:
arch/$(ARCH)/kernel/asm-offsets.s
@
echo
-n
' Generating $@'
$(
call
filechk,gen-asm-offsets
)
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
.tmp
@
$
(
update-if-changed
)
CLEAN_FILES
+=
include/asm-
$(ARCH)
/offset.h.tmp
\
CLEAN_FILES
+=
include/asm-
$(ARCH)
/offset.h
include/asm-
$(ARCH)
/offset.h
define
archhelp
define
archhelp
echo
'* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)'
echo
'* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)'
...
...
init/Makefile
View file @
d08bc5c1
...
@@ -21,5 +21,5 @@ $(obj)/version.o: include/linux/compile.h
...
@@ -21,5 +21,5 @@ $(obj)/version.o: include/linux/compile.h
# actual file if its content has changed.
# actual file if its content has changed.
include/linux/compile.h
:
FORCE
include/linux/compile.h
:
FORCE
@
echo
-n
' GEN
$@'
@
echo
' CHK
$@'
@
sh
$(srctree)
/scripts/mkcompile_h
$@
"
$(UTS_MACHINE)
"
"
$(CONFIG_SMP)
"
"
$(CC)
$(CFLAGS)
"
@
sh
$(srctree)
/scripts/mkcompile_h
$@
"
$(UTS_MACHINE)
"
"
$(CONFIG_SMP)
"
"
$(CC)
$(CFLAGS)
"
scripts/mkcompile_h
View file @
d08bc5c1
...
@@ -10,7 +10,7 @@ CC=$4
...
@@ -10,7 +10,7 @@ CC=$4
# do "compiled by root"
# do "compiled by root"
if [ -r $TARGET -a ! -O include/linux/autoconf.h ]; then
if [ -r $TARGET -a ! -O include/linux/autoconf.h ]; then
echo
' (not modified)'
echo
" SKIPPED $TARGET"
exit 0
exit 0
fi
fi
...
@@ -70,10 +70,9 @@ if [ -r $TARGET ] && \
...
@@ -70,10 +70,9 @@ if [ -r $TARGET ] && \
grep -v 'UTS_VERSION\|LINUX_COMPILE_TIME' $TARGET > .tmpver.1 && \
grep -v 'UTS_VERSION\|LINUX_COMPILE_TIME' $TARGET > .tmpver.1 && \
grep -v 'UTS_VERSION\|LINUX_COMPILE_TIME' .tmpcompile > .tmpver.2 && \
grep -v 'UTS_VERSION\|LINUX_COMPILE_TIME' .tmpcompile > .tmpver.2 && \
cmp -s .tmpver.1 .tmpver.2; then
cmp -s .tmpver.1 .tmpver.2; then
echo ' (unchanged)'
rm -f .tmpcompile
rm -f .tmpcompile
else
else
echo
' (updated)'
echo
" UPD $TARGET"
mv -f .tmpcompile $TARGET
mv -f .tmpcompile $TARGET
fi
fi
#
rm -f .tmpver.1 .tmpver.2
rm -f .tmpver.1 .tmpver.2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment