generate both trust_nand.img and trust_emmc.img
Change-Id: I736679f1544d1804487995d6eafbc876bec78bbe
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
rk big endian sha256 pack magic is "2", so use "--sha 2" subcmd
Change-Id: I1a31712f808aaff7f9213ea6f1a7ca15fe3012c2
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
RSA PKCS1 V2.1 pack magic is "3", so use "--rsa 3" subcmd
Change-Id: Ic35445445121d765385f5cf9673473b061633a3a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
We can set a special build output dir for ${OUTDIR}
by argument -o, so the correct way to locate a output
object is ${OUTDIR}/obj.
Change-Id: I894b44d703afe2d21fcf7dddfbb82ae943835021
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
We don't want uboot.img compile everytime if we just want to
pack trust or loader.
Example:
./make.sh evb-rk3308 trust ------ only pack trust
./make.sh evb-rk3308 loader ------ only pack loader
Change-Id: I9d940eefba99074c155c978cbc0ba838160f65d9
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
this avoids users to be confused with uboot.img
Change-Id: Ifdbb1c483825ef065708ca81da3496bde3358e21
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
PX30 and RK3326 would have their individual ini files.
Change-Id: I3e8f05b34ee9a38429fd2870f635328eaf6b5f59
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
default use current directory as output dir, you can also
assign output dir by command "O=[directory]".
Example:
./make.sh evb-px30 O=rockdev
Change-Id: I1a7efb7a273d147d81b7fa9bb0bbbe00a8f5d12e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
1. make clean, make distclean and make mrproper;
2. objdump elf file;
Append 'clean', 'distclean', 'mrproper' or 'elf' to build command
Example:
./make.sh evb-px30 clean
./make.sh evb-px30 distclean
./make.sh evb-px30 mrproper
./make.sh evb-px30 elf
you can also use 'elf[option]', like: 'elf-D', 'elf-d', 'elf-S'...
[option] is not necessary(default -D), it would be used as objdump
command option.
Change-Id: If6402ee9b0f9bd79aa7f18703ce0061106b11e26
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
fix compile issue while git checkout between rkdevelop and next-dev:
Using /home/cjh/uboot-nextdev/u-boot as source for U-Boot
/home/cjh/uboot-nextdev/u-boot is not clean, please run 'make mrproper'
in the '/home/cjh/uboot-nextdev/u-boot' directory.
make[1]: *** [prepare3] Error 1
make[1]: *** Waiting for unfinished jobs....
Change-Id: If9e01b407f524360ff402d8d36241f3885c90c48
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
1. use global variables for important definitions, easy to update;
2. add more error message warning;
3. fix some issues.
Change-Id: I702f4efe5839c1c7eaf66f412011aadf6627f323
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
boot_merge and trust_merge support command "--replace".
Change-Id: Ie5cf52a1aaefcc717fcb76400e2f0eb8dfc8f467
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This script assume that you have installed arm-linux-gnueabi for armv7
and aarch64-linux-gnu for armv8, or you have android toolchain in ../prebuilts
directory, otherwise please setting the correct TOOLCHAIN path that you have in
this script.
usage: ./make.sh board
./make.sh evb-rk3399 ---- build for evb-rk3399_defconfig
./make.sh firefly-rk3288 ---- build for firefly-rk3288_defconfig
Change-Id: Id2b0cdee60897bd18f7d0e557429c868a83dfe49
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>