Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
d088f323
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,发现更多精彩内容 >>
提交
d088f323
编写于
11月 21, 2007
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: Consolidate sh/sh64 Makefiles.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
c2f1755b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
44 addition
and
117 deletion
+44
-117
arch/sh/Makefile
arch/sh/Makefile
+44
-6
arch/sh64/Makefile
arch/sh64/Makefile
+0
-111
未找到文件。
arch/sh/Makefile
浏览文件 @
d088f323
...
...
@@ -139,6 +139,12 @@ core-y += $(addprefix arch/sh/boards/, \
$(
filter-out
.,
$(
patsubst
%,%/,
$
(
machdir-y
))))
endif
# SH-5 mach types
# XXX.. to be reconciled with machdir-y later.
core-$(CONFIG_SH_SIMULATOR)
+=
arch
/sh/mach-sim/
core-$(CONFIG_SH_CAYMAN)
+=
arch
/sh/mach-cayman/
core-$(CONFIG_SH_HARP)
+=
arch
/sh/mach-harp/
# Companion chips
core-$(CONFIG_HD6446X_SERIES)
+=
arch
/sh/cchips/hd6446x/
core-$(CONFIG_MFD_SM501)
+=
arch
/sh/cchips/voyagergx/
...
...
@@ -203,9 +209,8 @@ include/asm-sh/.mach: $(wildcard include/config/sh/*.h) \
done
@
touch
$@
archprepare
:
include/asm-sh/.cpu include/asm-sh/.mach maketools
PHONY
+=
maketools FORCE
maketools
:
include/linux/version.h FORCE
$(Q)$(MAKE)
$(build)
=
arch
/sh/tools include/asm-sh/machtypes.h
...
...
@@ -216,16 +221,49 @@ zImage uImage uImage.srec vmlinux.srec: vmlinux
compressed
:
zImage
archprepare
:
include/asm-sh/.cpu include/asm-sh/.mach maketools
\
arch/sh/lib64/syscalltab.h
archclean
:
$(Q)$(MAKE)
$(clean)
=
$(boot)
CLEAN_FILES
+=
include/asm-sh/machtypes.h
\
include/asm-sh/cpu include/asm-sh/.cpu
\
include/asm-sh/mach include/asm-sh/.mach
define
archhelp
@echo
'* zImage - Compressed kernel image'
@echo
' vmlinux.srec - Create an ELF S-record'
@echo
' uImage - Create a bootable image for U-Boot'
@echo
' uImage.srec - Create an S-record for U-Boot'
endef
define
filechk_gen-syscalltab
(set
-e;
\
echo
"/*"
;
\
echo
" * DO NOT MODIFY."
;
\
echo
" *"
;
\
echo
" * This file was generated by arch/sh/Makefile"
;
\
echo
" * Any changes will be reverted at build time."
;
\
echo
" */"
;
\
echo
""
;
\
echo
"#ifndef __SYSCALLTAB_H"
;
\
echo
"#define __SYSCALLTAB_H"
;
\
echo
""
;
\
echo
"#include <linux/kernel.h>"
;
\
echo
""
;
\
echo
"struct syscall_info {"
;
\
echo
" const char *name;"
;
\
echo
"} syscall_info_table[] = {"
;
\
sed
-e
'/^.*\.long
/!d;s//
{
"/;s/\(\([^/]*\)\/\)\{1\}.*/\2/;
\
s/[
\t]*$$//g;s/$$/
" },/;s/\("
\)sys_/\1/g';
\
echo
"};"
;
\
echo
""
;
\
echo
"#define NUM_SYSCALL_INFO_ENTRIES ARRAY_SIZE(syscall_info_table)"
;\
echo
""
;
\
echo
"#endif /* __SYSCALLTAB_H */"
)
endef
arch/sh/lib64/syscalltab.h
:
arch/sh/kernel/syscalls_64.S
$(
call
filechk,gen-syscalltab
)
CLEAN_FILES
+=
arch
/sh/lib64/syscalltab.h
\
include/asm-sh/machtypes.h
\
include/asm-sh/cpu include/asm-sh/.cpu
\
include/asm-sh/mach include/asm-sh/.mach
arch/sh64/Makefile
已删除
100644 → 0
浏览文件 @
c2f1755b
#
# This file is subject to the terms and conditions of the GNU General Public
# License. See the file "COPYING" in the main directory of this archive
# for more details.
#
# Copyright (C) 2000, 2001 Paolo Alberelli
# Copyright (C) 2003, 2004 Paul Mundt
#
# This file is included by the global makefile so that you can add your own
# architecture-specific flags and dependencies. Remember to do have actions
# for "archclean" and "archdep" for cleaning up and making dependencies for
# this architecture
#
cpu-y
:=
-mb
cpu-$(CONFIG_LITTLE_ENDIAN)
:=
-ml
cpu-$(CONFIG_CPU_SH5)
+=
-m5-32media-nofpu
ifdef
CONFIG_LITTLE_ENDIAN
LDFLAGS_vmlinux
+=
--defsym
'jiffies=jiffies_64'
LDFLAGS
+=
-EL
-mshlelf32_linux
else
LDFLAGS_vmlinux
+=
--defsym
'jiffies=jiffies_64+4'
LDFLAGS
+=
-EB
-mshelf32_linux
endif
# No requirements for endianess support from AFLAGS, 'as' always run through gcc
KBUILD_CFLAGS
+=
$
(
cpu-y
)
LDFLAGS_vmlinux
+=
--defsym
phys_stext
=
_stext-
$(CONFIG_CACHED_MEMORY_OFFSET)
\
--defsym
phys_stext_shmedia
=
phys_stext+1
\
-e
phys_stext_shmedia
OBJCOPYFLAGS
:=
-O
binary
-R
.note
-R
.comment
-R
.stab
-R
.stabstr
-S
#
# arch/sh64/defconfig never had any hope of being
# frequently updated, so use one that does
#
KBUILD_DEFCONFIG
:=
cayman_defconfig
KBUILD_IMAGE
:=
arch
/
$(ARCH)
/boot/zImage
ifdef
LOADADDR
LINKFLAGS
+=
-Ttext
$(
word
1,
$(LOADADDR)
)
endif
machine-$(CONFIG_SH_CAYMAN)
:=
cayman
machine-$(CONFIG_SH_SIMULATOR)
:=
sim
machine-$(CONFIG_SH_HARP)
:=
harp
head-y
:=
arch
/
$(ARCH)
/kernel/head.o
arch
/
$(ARCH)
/kernel/init_task.o
core-y
+=
arch
/sh64/kernel/
arch
/sh64/mm/
ifneq
($(machine-y),)
core-y
+=
arch
/sh64/mach-
$
(
machine-y
)
/
endif
LIBGCC
:=
$(
shell
$(CC)
$(KBUILD_CFLAGS)
-print-libgcc-file-name
)
libs-y
+=
arch
/
$(ARCH)
/lib/
$(LIBGCC)
drivers-$(CONFIG_OPROFILE)
+=
arch
/sh64/oprofile/
boot
:=
arch
/
$(ARCH)
/boot
zImage
:
vmlinux
$(Q)$(MAKE)
$(build)
=
$(boot)
$(boot)
/
$@
compressed
:
zImage
archclean
:
$(Q)$(MAKE)
$(clean)
=
$(boot)
archprepare
:
arch/$(ARCH)/lib/syscalltab.h
define
filechk_gen-syscalltab
(set
-e;
\
echo
"/*"
;
\
echo
" * DO NOT MODIFY."
;
\
echo
" *"
;
\
echo
" * This file was generated by arch/$(ARCH)/Makefile"
;
\
echo
" * Any changes will be reverted at build time."
;
\
echo
" */"
;
\
echo
""
;
\
echo
"#ifndef __SYSCALLTAB_H"
;
\
echo
"#define __SYSCALLTAB_H"
;
\
echo
""
;
\
echo
"#include <linux/kernel.h>"
;
\
echo
""
;
\
echo
"struct syscall_info {"
;
\
echo
" const char *name;"
;
\
echo
"} syscall_info_table[] = {"
;
\
sed
-e
'/^.*\.long
/!d;s//
{
"/;s/\(\([^/]*\)\/\)\{1\}.*/\2/;
\
s/[
\t]*$$//g;s/$$/
" },/;s/\("
\)sys_/\1/g';
\
echo
"};"
;
\
echo
""
;
\
echo
"#define NUM_SYSCALL_INFO_ENTRIES ARRAY_SIZE(syscall_info_table)"
;
\
echo
""
;
\
echo
"#endif /* __SYSCALLTAB_H */"
)
endef
arch/$(ARCH)/lib/syscalltab.h
:
arch/sh64/kernel/syscalls.S
$(
call
filechk,gen-syscalltab
)
CLEAN_FILES
+=
arch
/
$(ARCH)
/lib/syscalltab.h
define
archhelp
@echo
'* zImage - Compressed kernel image'
endef
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录