Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
070b98bf
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
070b98bf
编写于
6月 25, 2006
作者:
S
Sam Ravnborg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kbuild: trivial fixes in Makefile
Signed-off-by:
N
Sam Ravnborg
<
sam@ravnborg.org
>
上级
e838db68
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
41 addition
and
41 deletion
+41
-41
Makefile
Makefile
+41
-41
未找到文件。
Makefile
浏览文件 @
070b98bf
...
...
@@ -199,7 +199,7 @@ KBUILD_BUILTIN := 1
# If we have only "make modules", don't compile built-in objects.
# When we're building modules with modversions, we need to consider
# the built-in objects during the descend as well, in order to
# make sure the checksums are up
to
date before we record them.
# make sure the checksums are up
to
date before we record them.
ifeq
($(MAKECMDGOALS),modules)
KBUILD_BUILTIN
:=
$(
if
$(CONFIG_MODVERSIONS)
,1
)
...
...
@@ -232,7 +232,7 @@ export KBUILD_CHECKSRC KBUILD_SRC KBUILD_EXTMOD
#
# If $(quiet) is empty, the whole command will be printed.
# If it is set to "quiet_", only the short version will be printed.
# If it is set to "silent_", nothing wil be printed at all, since
# If it is set to "silent_", nothing wil
l
be printed at all, since
# the variable $(silent_cmd_cc_o_c) doesn't exist.
#
# A simple variant is to prefix commands with $(Q) - that's useful
...
...
@@ -268,7 +268,7 @@ MAKEFLAGS += --include-dir=$(srctree)
include
$(srctree)/scripts/Kbuild.include
# Do not use make's built-in rules and variables
# This increases performance and avoid hard-to-debug behav
i
our
# This increases performance and avoid hard-to-debug behavour
MAKEFLAGS
+=
-rR
# Make variables (CC, etc...)
...
...
@@ -314,10 +314,10 @@ AFLAGS := -D__ASSEMBLY__
KERNELRELEASE
=
$(
shell
cat
include/config/kernel.release 2> /dev/null
)
KERNELVERSION
=
$(VERSION)
.
$(PATCHLEVEL)
.
$(SUBLEVEL)$(EXTRAVERSION)
export
VERSION
PATCHLEVEL
SUBLEVEL
KERNELRELEASE
KERNELVERSION
\
ARCH
CONFIG_SHELL
HOSTCC
HOSTCFLAGS
CROSS_COMPILE
AS
LD
CC
\
CPP
AR
NM
STRIP
OBJCOPY
OBJDUMP
MAKE
AWK
GENKSYMS
PERL
UTS_MACHINE
\
HOSTCXX
HOSTCXXFLAGS
LDFLAGS_MODULE
CHECK
CHECKFLAGS
export
VERSION
PATCHLEVEL
SUBLEVEL
KERNELRELEASE
KERNELVERSION
export
ARCH
CONFIG_SHELL
HOSTCC
HOSTCFLAGS
CROSS_COMPILE
AS
LD
CC
export
CPP
AR
NM
STRIP
OBJCOPY
OBJDUMP
MAKE
AWK
GENKSYMS
PERL
UTS_MACHINE
export
HOSTCXX
HOSTCXXFLAGS
LDFLAGS_MODULE
CHECK
CHECKFLAGS
export
CPPFLAGS
NOSTDINC_FLAGS
LINUXINCLUDE
OBJCOPYFLAGS
LDFLAGS
export
CFLAGS
CFLAGS_KERNEL
CFLAGS_MODULE
...
...
@@ -417,7 +417,7 @@ else
ifeq
($(KBUILD_EXTMOD),)
# Additional helpers built in scripts/
# Carefully list dependencies so we do not try to build scripts twice
# in par
r
allel
# in parallel
PHONY
+=
scripts
scripts
:
scripts_basic include/config/auto.conf
$(Q)$(MAKE)
$(build)
=
$
(
@
)
...
...
@@ -443,7 +443,7 @@ $(KCONFIG_CONFIG) include/config/auto.conf.cmd: ;
# If .config is newer than include/config/auto.conf, someone tinkered
# with it and forgot to run make oldconfig.
# if auto.conf.cmd is missing then we are proba
r
ly in a cleaned tree so
# if auto.conf.cmd is missing then we are proba
b
ly in a cleaned tree so
# we execute the config step to be sure to catch updated Kconfig files
include/config/auto.conf
:
$(KCONFIG_CONFIG) include/config/auto.conf.cmd
ifeq
($(KBUILD_EXTMOD),)
...
...
@@ -460,7 +460,7 @@ endif
# The all: target is the default when no target is given on the
# command line.
# This allow a user to issue only 'make' to build a kernel including modules
# Defaults vmlinux but it is usually overriden in the arch makefile
# Defaults vmlinux but it is usually overrid
d
en in the arch makefile
all
:
vmlinux
ifdef
CONFIG_CC_OPTIMIZE_FOR_SIZE
...
...
@@ -492,11 +492,11 @@ CHECKFLAGS += $(NOSTDINC_FLAGS)
# warn about C99 declaration after statement
CFLAGS
+=
$(
call
cc-option,-Wdeclaration-after-statement,
)
# disable pointer signed
ness
warnings in gcc 4.0
# disable pointer signed
/ unsigned
warnings in gcc 4.0
CFLAGS
+=
$(
call
cc-option,-Wno-pointer-sign,
)
# Default kernel image to build when no specific target is given.
# KBUILD_IMAGE may be overruled on the commandline or
# KBUILD_IMAGE may be overruled on the command
line or
# set in the environment
# Also any assignments in arch/$(ARCH)/Makefile take precedence over
# this default value
...
...
@@ -510,7 +510,7 @@ export INSTALL_PATH ?= /boot
#
# INSTALL_MOD_PATH specifies a prefix to MODLIB for module directory
# relocations required by build roots. This is not defined in the
# makefile but the argu
e
ment can be passed to make if needed.
# makefile but the argument can be passed to make if needed.
#
MODLIB
=
$(INSTALL_MOD_PATH)
/lib/modules/
$(KERNELRELEASE)
...
...
@@ -556,7 +556,7 @@ libs-y := $(libs-y1) $(libs-y2)
# Build vmlinux
# ---------------------------------------------------------------------------
# vmlinux is buil
d
from the objects selected by $(vmlinux-init) and
# vmlinux is buil
t
from the objects selected by $(vmlinux-init) and
# $(vmlinux-main). Most are built-in.o files from top-level directories
# in the kernel tree, others are specified in arch/$(ARCH)Makefile.
# Ordering when linking is important, and $(vmlinux-init) must be first.
...
...
@@ -757,7 +757,7 @@ localver = $(subst $(space),, \
# If CONFIG_LOCALVERSION_AUTO is set scripts/setlocalversion is called
# and if the SCM is know a tag from the SCM is appended.
# The appended tag is determin
d
ed by the SCM used.
# The appended tag is determined by the SCM used.
#
# Currently, only git is supported.
# Other SCMs can edit scripts/setlocalversion and add the appropriate
...
...
@@ -1088,7 +1088,7 @@ else # KBUILD_EXTMOD
# make M=dir modules Make all modules in specified dir
# make M=dir Same as 'make M=dir modules'
# make M=dir modules_install
# Install the modules buil
d
in the module directory
# Install the modules buil
t
in the module directory
# Assumes install directory is already created
# We are always building modules
...
...
@@ -1186,7 +1186,7 @@ else
ALLINCLUDE_ARCHS
:=
$(ARCH)
endif
else
#Allow user to specify only ALLSOURCE_PATHS on the command line, keeping existing behav
i
our.
#Allow user to specify only ALLSOURCE_PATHS on the command line, keeping existing behavour.
ALLINCLUDE_ARCHS
:=
$(ALLSOURCE_ARCHS)
endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录