Commit Graph

1428 Commits

Author SHA1 Message Date
Wenping Zhang 0466543ca9 tools: add tools for convert bmp to gray16 and saved as logo.img.
This tool support convert 16bpp/24bpp/32bpp bmp images into
4 bits grayscale image, and add header info to save as logo.img.
logo.img is flash into emmc and parsed in uboot to display
uboot/charging/lowpower/kernel logo.
[Note]the requirement of bmp files:
1. The resolution of all bmp image must be same.
2. The logo.img will be parsed in uboot, the uboot require the resolution
   of image must be same as screen resolution, otherwise will be failed.
3. The color depth of bmp image must be 16bpp/24bpp/32bpp, 8bpp is not supported.

The usage:
./tools/bmp2gray16 --uboot-logo tools/images/eink/uboot.bmp --kernel-logo tools/images/eink/kernel.bmp
--charge-logo tools/images/eink/battery_0.bmp tools/images/eink/battery_1.bmp tools/images/eink/battery_2.bmp
tools/images/eink/battery_3.bmp tools/images/eink/battery_4.bmp tools/images/eink/battery_5.bmp
tools/images/eink/battery_fail.bmp --output ./logo.img

Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
Change-Id: Ifc39f0344693fb0b26b04d7904289847e6fa9b90
2020-12-10 17:51:14 +08:00
Masahiro Yamada daae0a01d6 UPSTREAM: host-tools: use python2 explicitly for shebang
All of these host tools are apparently written for Python2,
not Python3.

Use 'python2' in the shebang line according to PEP 394
(https://www.python.org/dev/peps/pep-0394/).

Change-Id: Ie56e538b0f4a234fccb460adbfd863db0712a1b0
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 94b13bbae90bfb94204b8fe9c531bc163e746a9f)
2020-11-02 21:26:47 +08:00
Jon Lin e6a8227120 rockchip: rkcommon: add support for rv1126
Change-Id: Ic13bbfd95cf6fae1ce0a3eeffdfedb02e1a569f2
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-08-11 09:59:49 +08:00
Zain Wang 8e2ab48b12 rockchip: rkcommon: extend rk3328 spl size
The image signed would grow 2K size than before.

Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: I1b02a7117a41cc3b599c1fdd12bd69dccdcdca6a
2020-07-23 10:23:13 +08:00
Joseph Chen 46751ae49c tools: image-host: use pkcs-1.5 by default
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I20c37235c22127e78f1ccb46eb3ee56f920068bc
2020-07-15 10:33:36 +08:00
Philippe Reynes 219050bf6a UPSTREAM: rsa: add a structure for the padding
The rsa signature use a padding algorithm. By default, we use the
padding pkcs-1.5. In order to add some new padding algorithm, we
add a padding framework to manage several padding algorithm.
The choice of the padding is done in the file .its.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
(cherry picked from commit 20031567e12bb312bff95b70767f6275e20f0346)

Conflicts:
	common/image-fit.c
	lib/rsa/rsa-sign.c
	lib/rsa/rsa-verify.c

Change-Id: Ie522fec1ea69e6b86ebde0f7dad91a45670da66b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2020-07-15 10:33:36 +08:00
Joseph Chen 1ddd141a3e tools: image-host: add "/configurations" into hashed-nodes
Protect "default = ..." property and others.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I9e50c09343a97755b3e22d25f1ea196fd8bfb8be
2020-07-13 20:41:52 +08:00
Joseph Chen ad07c38f68 tools: mkimage: support set FIT image version
Command: "./mkimage ... -v [version]".

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I84dd5c3d7380150f428cdd0c2055929343bf2138
2020-07-09 09:23:37 +08:00
Joseph Chen 0600347b91 tools: rockchip: trust_merger: allow unknown option
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I88eb3946c7a343a0af5ed662d6fb5ef848d8c929
2020-07-01 10:39:13 +08:00
Yifeng Zhao 5b69ab5af5 tools: rockchip: fix compilation warnings
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ib27aa885eef05c6f88fcbf41dd4d0a5a0f965a52
2020-06-29 15:27:00 +08:00
Joseph Chen eaa66b0d6a tools: fit: add "/totalsize" property for itb size
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I1aa87d5c0e1dd39762c470b134c4d8a57cab4f29
2020-05-25 14:57:18 +08:00
Joseph Chen 4405dc8ff2 Revert "tools: fit_image: add -Wno-unit_address_vs_reg"
This reverts commit 75e20461a6.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If549e8a3129569b82c625b0afb0b453f4ad56f60
2020-05-18 16:22:31 +08:00
Yifeng Zhao c64e256218 tools: add pack kernel tool for rv1108
Change-Id: I9a8e1b2884bcc26144162e3ca838750bef69907a
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
2020-04-29 15:44:35 +08:00
zain wang 5033bc62fe tools: trust_merger: copy ImageSize from Component to ComponentData
rk3399_miniloader_v1.25 read ImageSize from ComponentData first now.
So copy ImageSize to ComponentData (named LoadSize).

For other chips, ComponentDate->LoadSize is reserved area, it no
inflence on other chips.

Signed-off-by: zain wang <wzz@rock-chips.com>
Change-Id: I51468aa3fad90d8999c1943ab9c720f7c90cefc1
2020-04-24 14:54:31 +08:00
Joseph Chen 75e20461a6 tools: fit_image: add -Wno-unit_address_vs_reg
It seems this check is default enabled in high version DTC,
so let's force disable this noisy check since we don't care
about "reg" property for fit image.

<stdout>: Warning (unit_address_vs_reg): Node /images/uboot@1 has a unit name, but no reg property
<stdout>: Warning (unit_address_vs_reg): Node /images/uboot@1/hash@1 has a unit name, but no reg property
<stdout>: Warning (unit_address_vs_reg): Node /images/optee@1 has a unit name, but no reg property
<stdout>: Warning (unit_address_vs_reg): Node /images/optee@1/hash@1 has a unit name, but no reg property
<stdout>: Warning (unit_address_vs_reg): Node /images/fdt@1 has a unit name, but no reg property
<stdout>: Warning (unit_address_vs_reg): Node /images/fdt@1/hash@1 has a unit name, but no reg property
<stdout>: Warning (unit_address_vs_reg): Node /configurations/conf@1 has a unit name, but no reg property
......

Change-Id: I7d934bce66742c76397c004def1919bf4c6e7672
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2020-04-12 11:03:47 +08:00
Joseph Chen cdd8fbe39e tools: fit_info: add END address of property
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Icf988f3620d261f7742ee3db4e427e1783211f13
2020-03-31 18:20:47 +08:00
Jeffy Chen 68c4faa3f8 rockchip: mkimage: support packing optional second level boot-loader
Support packing optional second level boot-loader:

$ ./tools/mkimage -n rk3399 -T rksd -d \
  rk3399_ddr_800MHz_v1.24.bin:rk3399_miniloader_v1.19.bin out -v
Adding Image rk3399_ddr_800MHz_v1.24.bin
Size 116492(pad to 116736)
Adding Image rk3399_miniloader_v1.19.bin
Size 88060(pad to 88064)
Image Type:   Rockchip RK33 (SD/MMC) boot image
Init Data Size: 116736 bytes
Boot Data Size: 88064 bytes

Mainly parse init file and boot file from datafile option, copy them to
the image, and padding each one to 2KB boundary.

NOTE:
I don't know much about rknand.c, and there's no way to verify it now.
The output image is unchanged though (with a few extra padding).

Haven't got any feedback from upstream yet...But whatever, let's do this!

Change-Id: I0ce98a44634cfcd8acfe9a3e2cfbe3ee0107fba4
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-03-30 14:52:08 +08:00
Joseph Chen 96f5441ec8 common: fit: support spl fit image check by tools/fit_check_sign
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0e03a90d50290e18c6fb2cd44516c352f3695290
2020-03-29 09:57:04 +08:00
Joseph Chen 40d08d0f10 tools: mkimage: support pack empty file for multi image
Muilt image bootflow requires ramdisk as a mandory component,
so that we have to pack a empty ramdisk into multi image at
some time.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I551ae832fbc68514ead0a3337148593e3113394f
2020-03-27 18:02:55 +08:00
Joseph Chen 3a183b396d tools: image-host: support add all images of sub list into hash list
Like the image list assigned by "loadables" = ...

configurations {
	default = "config@1";
	config@1 {
		...
		loadables = "uboot@1", "atf@2", "atf@3";
		signature@1 {
			algo = "sha1,rsa2048";
			key-name-hint = "dev";
			sign-images = "fdt", "firmware", "loadables";
		};
	};
};

Assuming the maximum sub image count is 5.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0454f6ad108342b5d85e831f7920baac642fb01a
2020-03-16 11:42:38 +08:00
Joseph Chen f63c73dbcf tools: image-host: not allow keys to be missing
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ibae5d152244721926189fa3873d113bde212b4fb
2020-03-16 11:42:38 +08:00
Joseph Chen f965884c36 tools: fit image: fix external image sign fail issue
Extract external data before adding verification data (must)
with '-p' args, and shrink fdt blob to minimum size excluding
the external data size.

Add more space for device tree to avoid failed when insert new
contents.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I202cba2b25306eb1023861bf8660d7ce6a1e4a34
2020-03-16 11:42:38 +08:00
Joseph Chen acd4329027 common: fit: unify fit image align size
Set 512 as default align size in order to access any image
by block unit.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I372ca7ff567816cb8369aff9d1fbe9865fa6d933
2020-03-16 11:42:38 +08:00
Jon Lin 6520ac9cab rockchip: rkcommon: don't set image head for signed image
Reserve "RSAK" tag

Change-Id: Ibfe2e6d83bd89ce75dfa0b7fc97038037a181cab
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2019-12-13 15:16:21 +08:00
Joseph Chen 467d16db4b tools: rockchip: resource_tool: independent on other files
Merge all codes into resource_tool.c

Sync from kernel-4.4:
(0787850 rk: scripts/resource_tool: add sha1 for file entry)

Change-Id: Iff379458086f1623e7e5126dcb532b178d94c684
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-11-12 19:32:12 +08:00
Joseph Chen 5e817a0ea4 tools: rockchip: resource_tool: add sha1 for file entry
Change-Id: If7bd80d68019f6ea5ad737793ed996d47134b568
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-11-07 08:55:31 +08:00
Joseph Chen 3aff587f06 tools: rockchip: remove useless checksum
Change-Id: I0b40f0b0677920abfe873fd6b8db23475f113a78
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-11-05 12:25:19 +08:00
Jason Zhu a3ded4d4a1 rockchip: mkimage: add support for RK1808
Reserve 8K sram for maskrom.

Change-Id: I890d93b6c9a8f4ca50a2c0b30de9b07816e68e8f
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2019-09-12 15:06:43 +08:00
Joseph Chen 24f9e652a5 tools: rockchip: boot_merger: add option to enable rc4 flag
The legacy chips like rk3188 maskrom require all IDB data with RC4,
the boot_merger pack the loader with a rc4 flag in header,
and the upgrade_tool will write the data with rc4 to IDB area.

usage:
boot_merger --rc4 RKBOOT/RK310BMINIALL.ini

and you can see log below if success with RC4:
* enable RC4 for IDB data(both ddr and preloader)

Test on rk3188.

Change-Id: If221a32a462bb43bef67aae802adff5e1e8436ac
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-06-25 08:30:37 +08:00
Joseph Chen 52243bce13 tools: rockchip: loaderimage: add "--prepath" support
Add prefix path of binary path.

Change-Id: I30fe03e0614c7724f452ad8b9d3800acd92db02c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-06-25 08:30:37 +08:00
Joseph Chen 5f0203b772 tools: rockchip: boot_merger: ignore "--prepath" for output path
Change-Id: I89335926cc161c484e813fbd8a699935762f1a34
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-06-25 08:30:37 +08:00
Joseph Chen 2e6f3f4c09 tool: rockchip: boot/trust_merger: ignore prepath when it's already exist
Change-Id: I33b1b14ba7b68ab08e1e61bf98e476da3b13b56a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-05-27 11:15:19 +08:00
Joseph Chen e311da2458 tools: rockchip: boot/trust_merger: add "--prepath" support
Add prefix path of binary path.

Change-Id: I576b9fa40f88a1ee0701f1ff776d25d4e3ed747b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-05-23 18:19:46 +08:00
Andy Yan 912343c03a rockchip: mkimage: add support for RK3308
Usage:

 (1) tools/mkimage -n rk3308 -T rksd -d tpl/u-boot-tpl.bin idbloader.img
 (2) cat spl/u-boot-spl.bin >> idbloader.img
 (3) upgrade_tool wl 0x40 idbloader.img

Note:
  When use a ddr binary from rkbin as tpl, use it replace u-boot-tpl.bin in (1)

Change-Id: Ia6694754ed70d2d5cce04f62dcfac538291f7386
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2019-05-09 16:48:47 +08:00
Joseph Chen 9ad3008a7c tools: rockchip: boot/trust_merger: fix prefix append error
- still append prefix if not match legacy prefix;
- ignore append prefix for output;

Change-Id: I1a8fc77ce73cbf169af49ce40ce3a0731861c617
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-04-11 14:28:27 +08:00
Joseph Chen 45c2a034cd tools: rockchip: boot/trust_merge: fix '--replace" missing append new path
Change-Id: Icddfb2ce9c7ba6f4b4e558eb5833ba79d0e7b976
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-04-11 12:15:20 +08:00
Joseph Chen 2bbbd780f8 tools: rockchip: loaderimage: print file size with KB
load addr is 0x600000!
pack input ./u-boot.bin
pack file size: 484551(473 KB)
crc = 0xfef42a0e
uboot version: U-Boot 2017.09-02804-ge3e39ee-dirty (Apr 10 2019 - 14:11:39)

Change-Id: If8fbdd943e328db41523ded47deeedfe8c6bde0e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-04-11 12:13:41 +08:00
Joseph Chen 7582895812 tools: rockchip: trust_merger: support "--ignore-bl32"
Change-Id: Ia8385dc1b41893d475b4f14c222dca98c9d52aba
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-02-13 16:54:03 +08:00
Masahiro Yamada 0e00a84cde UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
Thomas reported U-Boot failed to build host tools if libfdt-devel
package is installed because tools include libfdt headers from
/usr/include/ instead of using internal ones.

This commit moves the header code:
  include/libfdt.h         -> include/linux/libfdt.h
  include/libfdt_env.h     -> include/linux/libfdt_env.h

and replaces include directives:
  #include <libfdt.h>      -> #include <linux/libfdt.h>
  #include <libfdt_env.h>  -> #include <linux/libfdt_env.h>

Change-Id: I6c0f7e50e8b571106627f25ddac008a62bd2994e
Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-12-24 17:20:37 +08:00
Paul Kocialkowski fe47e2a1d2 UPSTREAM: tools: Include U-Boot libfdt headers from their actual path
There are no headers for libfdt in lib/libfdt, as they are instead
located in scripts/dtc/libfdt. Specifying lib/libfdt for headers
inclusion in host tools results in using the system libfdt headers,
which is not what we want. Change this to the proper path.

Change-Id: I3ad1329f563d1083828ce168e2c4ee791b553da8
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-12-24 17:20:37 +08:00
Masahiro Yamada 4e2c3b8c76 UPSTREAM: libfdt: migrate fdt_rw.c to a wrapper of scripts/dtc/libfdt/fdt_rw.c
The only difference between scripts/dtc/libfdt/fdt_rw.c and
lib/libfdt/fdt_rw.c is fdt_remove_unused_strings().

It is only used by fdtgrep, so we do not need to compile it for U-Boot
image.  Move it to tools/libfdt/fdw_rw.c so that lib/libfdt/fdt_rw.c
can be a wrapper of scripts/dtc/libfdt/fdt_rw.c.

Change-Id: I6e2578d4bfdf75438d3aa1cb51f270f34527d37d
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-12-24 17:20:37 +08:00
Masahiro Yamada 9862beb6eb UPSTREAM: tools: include necessary headers explicitly
Several host-tools use "bool" type without including <stdbool.h>.
This relies on the crappy header inclusion chain.

tools/Makefile has the following line:

  HOST_EXTRACFLAGS += -include $(srctree)/include/libfdt_env.h \

All host-tools are forced to include libfdt_env.h even if they are
totally unrelated to FDT.  Then, <stdbool.h> is indirectly included
as follows:

     include/libfdt_env.h
  -> include/linux/types.h
  -> <stdbool.h>

I am fixing this horrible crap.  In advance, I need to add necessary
include directives explicitly.  tools/fdtgrep.c needs more; <fctl.h>
for open() and <errno.h> for errno.

Change-Id: Ic2b0e0d4c417841f7eeb152e486d63fdfd1a4eff
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-12-24 17:20:37 +08:00
Masahiro Yamada fbedfcfba2 UPSTREAM: libfdt: migrate include/libfdt_env.h to a wrapper
libfdt_env.h is supposed to provide system-dependent defines.

scripts/dtc/libfdt/libfdt_env.h from upstream DTC is suitable
for user-space, so we should use this for USE_HOSTCC case.

For compiling U-Boot, we need to override such system-dependent
defines, so use <linux/libfdt_env.h> imported from Linux.

<libfdt.h> selects a proper one.  Maybe, we should split header
inclusion completely, but I do not want too many patches at one.

I can rip off the include/libfdt_env.h from HOST_EXTRACFLAGS.

Change-Id: I6f5ea1067cd3ada1c8ece0c39b7bf43382c58ff6
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-12-24 17:20:37 +08:00
Joseph Chen 23ba6841cc tools: rockchip: support hostprogs for pack tools
- include: boot_merge/trust_merge/loaderimage/resource_tool/checksum;
- porting from rkdevelop and base on commit 8fd1d8f
  (resource: get resource primary from boot partition);
- clean generated binary file when execute clean command;

Change-Id: I41c1893c2da0a0f25c2d39dbbd933f89fbb04948
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-28 10:12:53 +08:00
Kever Yang cab28f403d tool: rkcommon: add support for px30
PX30 have 10K sram available.

Change-Id: I67c565c84d00bc0141d79c437035993746ea9245
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-09-27 17:07:56 +08:00
Joseph Chen 0d889c3a8d tools: env: make fw_printenv statically linked
this makes sure fw_printenv works normally on most
platforms without care about C library.

Change-Id: If3b942d2fadb293eeeb00695a10b708847a827ad
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-09 20:09:20 +08:00
Masahiro Yamada 70b70db64a UPSTREAM: libfdt: migrate fdt_wip.c to a wrapper of scripts/dtc/libfdt/fdt_wip.c
Now, lib/libfdt/fdt_wip.c is the same as scripts/dtc/libfdt/fdt_wip.c

Change the former to a wrapper of the latter.

Change-Id: Ifce4c63db38146297c14218ef94d226bf6e3bb27
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 26e961c8cfdff00c5c9389d301d9a2eb10eb844c)
2018-01-17 15:27:28 +08:00
Michal Simek 008a6da324 UPSTREAM: tools: mkimage: Extend mkimage to also include pmufw
The patch is adding external pmufw "Platform Management Unit firmware"
to boot.bin image. Boot.bin is a Xilinx format which bootrom is capable
to read and boot the system. pmufw is copied to the header data section
follows by u-boot-spl.bin. pmufw is consumed by PMU unit (Microblaze)
and SPL runs on a53-0.

This is generated command line when PMUFW_INIT_FILE is setup.

./tools/mkimage -T zynqmpimage -R ./"" -n
./"board/xilinx/zynqmp/pmufw.bin" -d spl/u-boot-spl.bin spl/boot.bin

Change-Id: I74fc17513dd99b876ab9c08ded6ad41a7b0cd3de
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit c85a6b79d10ed8a098997370cbc4fb233ddcb13b)
2018-01-17 15:27:28 +08:00
Simon Glass e71e2ceacf UPSTREAM: dtoc: Fix up tests
The tool has changed slightly since it was originally written. Update the
tests to suit.

Change-Id: I6935a7c4cc16e1a3e5c617133b12d1982e640c74
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit aab660fe18ac24ee859a203f517f939685af5e10)
2018-01-17 15:27:28 +08:00
Simon Glass 3abaad4c1f UPSTREAM: patman: Fix up tests to pass with newest checkpatch
The checkpatch tool was updated but the patman tests were not. Fix this.

Change-Id: Ia5ff7589c32205754eb9818ddd2ecafcc6b2b3c1
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 6c328f29752224f15b7f098d8676f9eeed269a85)
2018-01-17 15:27:28 +08:00