Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
991b7d6e
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
991b7d6e
编写于
10月 18, 2007
作者:
K
Kyle McMartin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PARISC] Attempt to clean up parisc/Makefile
Signed-off-by:
N
Kyle McMartin
<
kyle@mcmartin.ca
>
上级
9611f61e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
24 addition
and
38 deletion
+24
-38
arch/parisc/Makefile
arch/parisc/Makefile
+24
-38
未找到文件。
arch/parisc/Makefile
浏览文件 @
991b7d6e
...
...
@@ -19,26 +19,27 @@
NM
=
sh
$(srctree)
/arch/parisc/nm
CHECKFLAGS
+=
-D__hppa__
=
1
MACHINE
:=
$(
shell
uname
-m
)
ifeq
($(MACHINE),parisc*)
NATIVE
:=
1
endif
ifdef
CONFIG_64BIT
CROSS_COMPILE
:=
$(
shell
if
[
-x
/usr/bin/hppa64-linux-gnu-gcc
]
;
then
\
echo
hppa64-linux-gnu-
;
else
echo
hppa64-linux-
;
fi
)
UTS_MACHINE
:=
parisc64
CHECKFLAGS
+=
-D__LP64__
=
1
-m64
else
MACHINE
:=
$(
subst
64,,
$(
shell
uname
-m
))
ifneq
($(MACHINE),parisc)
CROSS_COMPILE
:=
hppa-linux-
endif
WIDTH
:=
64
CROSS_COMPILE
:=
hppa64-linux-gnu-
else
# 32-bit
WIDTH
:=
endif
FINAL_LD
=
$(CROSS_COMPILE)
ld
--warn-common
--warn-section-align
# attempt to help out folks who are cross-compiling
ifeq
($(NATIVE),1)
CROSS_COMPILE
:=
hppa
$(WIDTH)
-linux-
endif
OBJCOPY_FLAGS
=
-O
binary
-R
.note
-R
.comment
-S
ifneq
($(call cc-ifversion, -lt, 0303, "bad"),)
$(error
Sorry,
GCC
v3.3
or
above
is
required.)
endif
cflags-y
:=
-pipe
# These flags should be implied by an hppa-linux configuration, but they
...
...
@@ -73,31 +74,8 @@ libs-y += arch/parisc/lib/
drivers-$(CONFIG_OPROFILE)
+=
arch
/parisc/oprofile/
PALO
:=
$(
shell
if
which palo
;
then
:
;
\
elif
[
-x
/sbin/palo
]
;
then
echo
/sbin/palo
;
\
fi
)
palo
:
vmlinux
@
if
[
-x
$PALO
]
;
then
\
echo
'ERROR: Please install palo first (apt-get install palo)'
;
\
echo
'or build it from source and install it somewhere in your $$PATH'
;
\
false
;
\
fi
@
if
[
!
-f
./palo.conf
]
;
then
\
cp arch
/parisc/defpalo.conf palo.conf
;
\
echo
'A generic palo config file (./palo.conf) has been created for you.'
;
\
echo
'You should check it and re-run "make palo".'
;
\
echo
'WARNING: the "lifimage" file is now placed in this directory by default!'
;
\
false
;
\
fi
$(PALO)
-f
./palo.conf
oldpalo
:
vmlinux
export
TOPDIR
=
`
pwd
`
;
\
unset
STRIP LDFLAGS CPP CPPFLAGS AFLAGS CFLAGS CC LD
;
cd
../palo
&&
make lifimage
# Shorthands for known targets not supported by parisc, use palo as default
Image zImage bzImage
:
palo
# Shorthands for known targets not supported by parisc, use vmlinux as default
Image zImage bzImage
:
vmlinux
kernel_install
:
vmlinux
sh
$(src)
/arch/parisc/install.sh
\
...
...
@@ -110,9 +88,17 @@ MRPROPER_FILES += palo.conf
define
archhelp
@echo
'* vmlinux - Uncompressed kernel image (./vmlinux)'
@echo
' palo - Bootable image (./lifimage)'
@echo
' install - Install kernel using'
@echo
' (your) ~/bin/installkernel or'
@echo
' (distribution) /sbin/installkernel or'
@echo
' copy to $$(INSTALL_PATH)'
endef
# we require gcc 3.3 or above to compile the kernel
archprepare
:
checkbin
checkbin
:
@
if
test
"
$(
call
cc-version
)
"
-lt
"0303"
;
then
\
echo
-n
"Sorry, GCC v3.3 or above is required to build "
;
\
echo
"the kernel."
;
\
false
;
\
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录