Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
982a1199
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
982a1199
编写于
2月 24, 2014
作者:
M
Masahiro Yamada
提交者:
Tom Rini
2月 25, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kbuild: use shorten logs for combined rules of mkimage, padding and cat
Signed-off-by:
N
Masahiro Yamada
<
yamada.m@jp.panasonic.com
>
上级
ee0acfa2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
41 addition
and
38 deletion
+41
-38
Makefile
Makefile
+41
-38
未找到文件。
Makefile
浏览文件 @
982a1199
...
...
@@ -753,6 +753,11 @@ cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
quiet_cmd_cat
=
CAT
$@
cmd_cat
=
cat
$(
filter-out
$(PHONY)
,
$^
)
>
$@
append
=
cat
$(
filter-out
$<
$(PHONY)
,
$^
)
>>
$@
quiet_cmd_pad_cat
=
CAT
$@
cmd_pad_cat
=
$(cmd_objcopy)
&&
$(append)
||
rm
-f
$@
all
:
$(ALL-y)
PHONY
+=
dtbs
...
...
@@ -818,25 +823,21 @@ u-boot.sha1: u-boot.bin
u-boot.dis
:
u-boot
$(OBJDUMP)
-d
$<
>
$@
# $@ is output, $(1) and $(2) are inputs, $(3) is padded intermediate,
# $(4) is pad-to
SPL_PAD_APPEND
=
\
$(OBJCOPY)
$(OBJCOPYFLAGS)
--pad-to
=
$(4)
-I
binary
-O
binary
\
$(1)
$(3)
;
\
cat
$(3)
$(2)
>
$@
;
\
rm
$(3)
ifdef
CONFIG_TPL
SPL_PAYLOAD
:=
tpl/u-boot-with-tpl.bin
else
SPL_PAYLOAD
:=
u-boot.bin
endif
u-boot-with-spl.bin
:
spl/u-boot-spl.bin $(SPL_PAYLOAD)
$(
call
SPL_PAD_APPEND,
$<
,
$(SPL_PAYLOAD)
,spl/u-boot-spl-pad.bin,
$(CONFIG_SPL_PAD_TO)
)
OBJCOPYFLAGS_u-boot-with-spl.bin
=
-I
binary
-O
binary
\
--pad-to
=
$(CONFIG_SPL_PAD_TO)
u-boot-with-spl.bin
:
spl/u-boot-spl.bin $(SPL_PAYLOAD) FORCE
$(
call
if_changed,pad_cat
)
tpl/u-boot-with-tpl.bin
:
tpl/u-boot-tpl.bin u-boot.bin
$(
call
SPL_PAD_APPEND,
$<
,u-boot.bin,tpl/u-boot-tpl-pad.bin,
$(CONFIG_TPL_PAD_TO)
)
OBJCOPYFLAGS_u-boot-with-tpl.bin
=
-I
binary
-O
binary
\
--pad-to
=
$(CONFIG_TPL_PAD_TO)
tpl/u-boot-with-tpl.bin
:
tpl/u-boot-tpl.bin u-boot.bin FORCE
$(
call
if_changed,pad_cat
)
u-boot-with-spl.imx u-boot-with-nand-spl.imx
:
spl/u-boot-spl.bin u-boot.bin
$(Q)$(MAKE)
$(build)
=
arch
/arm/imx-common
$(objtree)
/
$@
...
...
@@ -846,17 +847,15 @@ MKIMAGEFLAGS_u-boot.ubl = -n $(UBL_CONFIG) -T ublimage -e $(CONFIG_SYS_TEXT_BASE
u-boot.ubl
:
u-boot-with-spl.bin FORCE
$(
call
if_changed,mkimage
)
u-boot.ais
:
spl/u-boot-spl.bin u-boot.img
tools/mkimage
-s
-n
$(
if
$(CONFIG_AIS_CONFIG_FILE)
,
$(srctree)
/
$
(
CONFIG_AIS_CONFIG_FILE:
"%"
=
%
)
,
"/dev/null"
)
\
-T
aisimage
\
-e
$(CONFIG_SPL_TEXT_BASE)
\
-d
spl/u-boot-spl.bin
\
spl/u-boot-spl.ais
$(OBJCOPY)
$(OBJCOPYFLAGS)
-I
binary
\
--pad-to
=
$(CONFIG_SPL_MAX_SIZE)
-O
binary
\
spl/u-boot-spl.ais spl/u-boot-spl-pad.ais
cat
spl/u-boot-spl-pad.ais u-boot.img
>
u-boot.ais
MKIMAGEFLAGS_u-boot-spl.ais
=
-s
-n
$(
if
$(CONFIG_AIS_CONFIG_FILE)
,
\
$(srctree)
/
$
(
CONFIG_AIS_CONFIG_FILE:
"%"
=
%
)
,
"/dev/null"
)
\
-T
aisimage
-e
$(CONFIG_SPL_TEXT_BASE)
spl/u-boot-spl.ais
:
spl/u-boot-spl.bin FORCE
$(
call
if_changed,mkimage
)
OBJCOPYFLAGS_u-boot.ais
=
-I
binary
-O
binary
--pad-to
=
$(CONFIG_SPL_MAX_SIZE)
u-boot.ais
:
spl/u-boot-spl.ais u-boot.img FORCE
$(
call
if_changed,pad_cat
)
u-boot.sb
:
u-boot.bin spl/u-boot-spl.bin
$(Q)$(MAKE)
$(build)
=
arch
/arm/cpu/arm926ejs/mxs
$(objtree)
/u-boot.sb
...
...
@@ -867,19 +866,20 @@ u-boot.sb: u-boot.bin spl/u-boot-spl.bin
# SPL image (with mkimage header) and not the binary. Otherwise the resulting image
# which is loaded/copied by the ROM bootloader to SRAM doesn't fit.
# The resulting image containing both U-Boot images is called u-boot.spr
u-boot.spr
:
u-boot.img spl/u-boot-spl.bin
tools/mkimage
-A
$(ARCH)
-T
firmware
-C
none
\
-a
$(CONFIG_SPL_TEXT_BASE)
-e
$(CONFIG_SPL_TEXT_BASE)
-n
XLOADER
\
-d
spl/u-boot-spl.bin
$@
$(OBJCOPY)
-I
binary
-O
binary
\
--pad-to
=
$(CONFIG_SPL_PAD_TO)
--gap-fill
=
0xff
$@
cat
u-boot.img
>>
$@
MKIMAGEFLAGS_u-boot-spl.img
=
-A
$(ARCH)
-T
firmware
-C
none
\
-a
$(CONFIG_SPL_TEXT_BASE)
-e
$(CONFIG_SPL_TEXT_BASE)
-n
XLOADER
spl/u-boot-spl.img
:
spl/u-boot-spl.bin FORCE
$(
call
if_changed,mkimage
)
OBJCOPYFLAGS_u-boot.spr
=
-I
binary
-O
binary
--pad-to
=
$(CONFIG_SPL_PAD_TO)
\
--gap-fill
=
0xff
u-boot.spr
:
spl/u-boot-spl.img u-boot.img FORCE
$(
call
if_changed,pad_cat
)
ifneq
($(CONFIG_TEGRA),)
u-boot-nodtb-tegra.bin
:
spl/u-boot-spl.bin u-boot.bin
$(OBJCOPY)
$(OBJCOPYFLAGS)
--pad-to
=
$(CONFIG_SYS_TEXT_BASE)
-O
binary spl/u-boot-spl spl/u-boot-spl-pad.bin
cat
spl/u-boot-spl-pad.bin u-boot.bin
>
$@
rm
spl/u-boot-spl-pad.bin
OBJCOPYFLAGS_u-boot-nodtb-tegra.bin
=
-O
binary
--pad-to
=
$(CONFIG_SYS_TEXT_BASE)
u-boot-nodtb-tegra.bin
:
spl/u-boot-spl u-boot.bin FORCE
$(
call
if_changed,pad_cat
)
ifeq
($(CONFIG_OF_SEPARATE),y)
u-boot-dtb-tegra.bin
:
u-boot-nodtb-tegra.bin dts/dt.dtb FORCE
...
...
@@ -895,10 +895,11 @@ u-boot-img.bin: spl/u-boot-spl.bin u-boot.img FORCE
# and need to introduce a new build target with the full blown U-Boot
# at the start padded up to the start of the SPL image. And then concat
# the SPL image to the end.
u-boot-img-spl-at-end.bin
:
spl/u-boot-spl.bin u-boot.img
$(OBJCOPY)
-I
binary
-O
binary
--pad-to
=
$(CONFIG_UBOOT_PAD_TO)
\
--gap-fill
=
0xff u-boot.img
$@
cat
spl/u-boot-spl.bin
>>
$@
OBJCOPYFLAGS_u-boot-img-spl-at-end.bin
:=
-I
binary
-O
binary
\
--pad-to
=
$(CONFIG_UBOOT_PAD_TO)
--gap-fill
=
0xff
u-boot-img-spl-at-end.bin
:
u-boot.img spl/u-boot-spl.bin FORCE
$(
call
if_changed,pad_cat
)
# Create a new ELF from a raw binary file. This is useful for arm64
# where static relocation needs to be performed on the raw binary,
...
...
@@ -1066,7 +1067,9 @@ nand_spl/u-boot-spl-16k.bin: nand_spl
u-boot-nand.bin
:
nand_spl/u-boot-spl-16k.bin u-boot.bin FORCE
$(
call
if_changed,cat
)
spl/u-boot-spl.bin
:
tools prepare
spl/u-boot-spl.bin
:
spl/u-boot-spl
@
:
spl/u-boot-spl
:
tools prepare
$(Q)$(MAKE)
obj
=
spl
-f
$(srctree)
/spl/Makefile all
tpl/u-boot-tpl.bin
:
tools prepare
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录