Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
2b8dfec8
Commit
2b8dfec8
authored
Sep 10, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild
parents
16b03678
8d36a623
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
16 deletions
+24
-16
Kbuild
Kbuild
+3
-2
Makefile
Makefile
+17
-8
scripts/Kbuild.include
scripts/Kbuild.include
+3
-0
scripts/reference_discarded.pl
scripts/reference_discarded.pl
+1
-6
No files found.
Kbuild
View file @
2b8dfec8
...
...
@@ -4,7 +4,7 @@
# 1) Generate asm-offsets.h
#####
# 1) Generate asm-offsets.h
# 1) Generate asm-offsets.h
#
offsets-file := include/asm-$(ARCH)/asm-offsets.h
...
...
@@ -22,6 +22,7 @@ sed-$(CONFIG_MIPS) := "/^@@@/s///p"
quiet_cmd_offsets = GEN $@
define cmd_offsets
mkdir -p $(dir $@); \
cat $< | \
(set -e; \
echo "#ifndef __ASM_OFFSETS_H__"; \
...
...
@@ -43,6 +44,6 @@ arch/$(ARCH)/kernel/asm-offsets.s: arch/$(ARCH)/kernel/asm-offsets.c FORCE
$(Q)mkdir -p $(dir $@)
$(call if_changed_dep,cc_s_c)
$(
srctree
)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild
$(
obj
)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild
$(call cmd,offsets)
Makefile
View file @
2b8dfec8
...
...
@@ -334,7 +334,7 @@ KALLSYMS = scripts/kallsyms
PERL
=
perl
CHECK
=
sparse
CHECKFLAGS
:=
-D__linux__
-Dlinux
-D__STDC__
-Dunix
-D__unix__
CHECKFLAGS
:=
-D__linux__
-Dlinux
-D__STDC__
-Dunix
-D__unix__
$(CF)
MODFLAGS
=
-DMODULE
CFLAGS_MODULE
=
$(MODFLAGS)
AFLAGS_MODULE
=
$(MODFLAGS)
...
...
@@ -382,6 +382,9 @@ RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CV
scripts_basic
:
$(Q)$(MAKE)
$(build)
=
scripts/basic
# To avoid any implicit rule to kick in, define an empty command.
scripts/basic/%
:
scripts_basic ;
.PHONY
:
outputmakefile
# outputmakefile generate a Makefile to be placed in output directory, if
# using a seperate output directory. This allows convinient use
...
...
@@ -444,9 +447,8 @@ ifeq ($(config-targets),1)
include
$(srctree)/arch/$(ARCH)/Makefile
export
KBUILD_DEFCONFIG
config
:
scripts_basic outputmakefile FORCE
$(Q)$(MAKE)
$(build)
=
scripts/kconfig
$@
%config
:
scripts_basic outputmakefile FORCE
config %config
:
scripts_basic outputmakefile FORCE
$(Q)
mkdir
-p
include/linux
$(Q)$(MAKE)
$(build)
=
scripts/kconfig
$@
else
...
...
@@ -641,8 +643,13 @@ quiet_cmd_vmlinux__ ?= LD $@
# Generate new vmlinux version
quiet_cmd_vmlinux_version
=
GEN .version
cmd_vmlinux_version
=
set
-e
;
\
.
$(srctree)
/scripts/mkversion
>
.tmp_version
;
\
mv
-f
.tmp_version .version
;
\
if
[
!
-r
.version
]
;
then
\
rm
-f
.version
;
\
echo
1
>
.version
;
\
else
\
mv
.version .old_version
;
\
expr
0
$$
(
cat
.old_version
)
+ 1
>
.version
;
\
fi
;
\
$(MAKE)
$(build)
=
init
# Generate System.map
...
...
@@ -756,6 +763,7 @@ endif # ifdef CONFIG_KALLSYMS
# vmlinux image - including updated kernel symbols
vmlinux
:
$(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) $(kallsyms.o) FORCE
$(
call
if_changed_rule,vmlinux__
)
$(Q)
rm
-f
.old_version
# The actual objects are generated when descending,
# make sure no implicit rule kicks in
...
...
@@ -806,7 +814,7 @@ ifneq ($(KBUILD_MODULES),)
endif
prepare0
:
prepare prepare1 FORCE
$(Q)$(MAKE)
$(build)
=
$(srctree)
$(Q)$(MAKE)
$(build)
=
.
# All the preparing..
prepare-all
:
prepare0
...
...
@@ -848,7 +856,7 @@ include/asm:
# Split autoconf.h into include/linux/config/*
include/config/MARKER
:
include/linux/autoconf.h
include/config/MARKER
:
scripts/basic/split-include
include/linux/autoconf.h
@
echo
' SPLIT include/linux/autoconf.h -> include/config/*'
@
scripts/basic/split-include include/linux/autoconf.h include/config
@
touch
$@
...
...
@@ -1053,6 +1061,7 @@ help:
@
echo
' rpm - Build a kernel as an RPM package'
@
echo
' tags/TAGS - Generate tags file for editors'
@
echo
' cscope - Generate cscope index'
@
echo
' kernelrelease - Output the release version string'
@
echo
''
@
echo
'Static analysers'
@
echo
' buildcheck - List dangling references to vmlinux discarded sections'
...
...
scripts/Kbuild.include
View file @
2b8dfec8
...
...
@@ -49,6 +49,9 @@ build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
cmd = @$(if $($(quiet)cmd_$(1)),\
echo ' $(subst ','\'',$($(quiet)cmd_$(1)))' &&) $(cmd_$(1))
# Add $(obj)/ for paths that is not absolute
objectify = $(foreach o,$(1),$(if $(filter /%,$(o)),$(o),$(obj)/$(o)))
###
# if_changed - execute command if any prerequisite is newer than
# target, or command line has changed
...
...
scripts/reference_discarded.pl
View file @
2b8dfec8
...
...
@@ -91,12 +91,7 @@ foreach $object (keys(%object)) {
$from
!~
/\.exit\.data$/
&&
$from
!~
/\.altinstructions$/
&&
$from
!~
/\.pdr$/
&&
$from
!~
/\.debug_info$/
&&
$from
!~
/\.debug_aranges$/
&&
$from
!~
/\.debug_ranges$/
&&
$from
!~
/\.debug_line$/
&&
$from
!~
/\.debug_frame$/
&&
$from
!~
/\.debug_loc$/
&&
$from
!~
/\.debug_.*$/
&&
$from
!~
/\.exitcall\.exit$/
&&
$from
!~
/\.eh_frame$/
&&
$from
!~
/\.stab$/
))
{
...
...
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