b2409b380e
build.sh: Fix yocto cleanall error
...
Avoid removing local config files.
Change-Id: I0d8370176b04df8a28555441d68c9a786d8483fb
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2020-03-26 17:53:50 +08:00
fd9061d8bb
mkfirmware.sh: fix if target rootfs not exist
...
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
Change-Id: I14dfe7c7fbc584f3b72c0083bc1d70f436ad46cb
2020-03-25 21:41:57 +08:00
7a7b70ddbf
common: build.sh: export LC_ALL=C
...
buildroot/toolchain/helpers.mk will get
"External toolchain uses the unsuported OABI" error when
LANGUAGE="zh_CN:en".
gcc -v will return Chinese instead of English, then grep will
failed.
Force LC_ALL=C like other scripts.
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I5631edb0516d44b6890fd53f8ce122fc1b73f0f1
2020-03-24 15:14:49 +08:00
0c99dbf253
build.sh: Support help message for sub-command
...
For example:
./build.sh help kernel
Change-Id: I4783efb50c23b95e1c75efcaae0e2f84d3f3c9bb
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
2020-03-14 16:42:05 +08:00
30c822c3e9
mkfirmware.sh: support make oem image
...
Change-Id: Ic70d0d5adda966726fe9c42750891ea673ac4f9b
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
2020-03-09 18:25:10 +08:00
dd64d5568c
common: Add SPL build support
...
SPL will package spl and loader as spl.bin, it use for quick boot case,
when build spl it will delete loader.bin in uboot directory,
so can not build uboot and spl at the same time.
Change-Id: Id7fce1108847ab492e164e769a09233153d6f680
Signed-off-by: Lin Huang <hl@rock-chips.com >
2020-02-24 18:00:36 +08:00
fa4858f4bd
mkfirmware.sh: use fakeroot to make image for oem/userdata
...
Change-Id: Idcb8326158f5a41937c62e060e8d5dd187b8eeb4
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
2020-02-11 16:39:48 +08:00
b14e1ea1af
Merge "build.sh: Support switching board config with full path"
2020-02-02 15:30:21 +08:00
629e54a53f
build.sh: Support switching board config with full path
...
For example:
./build.sh device/rockchip/rv1108/BoardConfig-minievb-v10.mk
Change-Id: If49488dd23987b996ec97112b4c606d5bd8c0e51
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2020-01-20 18:20:28 +08:00
3bdd9f49f3
device/rockchip: fixes the distro build dir
...
Change-Id: I4b94187b825d982c43e30c18bea32c64f058d16d
Signed-off-by: Caesar Wang <wxt@rock-chips.com >
2019-12-30 17:04:08 +08:00
adf1f95bbc
build: invert the logic to build the toolchain
...
Change-Id: I7a2d62f7465c3f08e6791a56b4a81f4faad2a560
Signed-off-by: Cody Xie <cody.xie@rock-chips.com >
2019-12-12 10:48:10 +08:00
5906f151a9
build: add step to build a buildroot toolchain
...
Change-Id: Ib7477fa290e5737254357a7dd96aa239e8d4be7d
Signed-off-by: Cody Xie <cody.xie@rock-chips.com >
2019-12-11 19:20:22 +08:00
524180d6c2
common: Remove out-dated yocto-install.sh
...
Done inside of yocto config system.
Change-Id: Iadeb999c4fdfd3d2460f44f918105f560bf49de0
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-12-09 02:24:38 +00:00
39ea63ecc0
echo location of br.log at the end of compilation and tail the log when failed
...
Change-Id: Ie0b532cb01d848399f17340b701b45af743d30fa
Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com >
2019-12-03 09:54:25 +08:00
37349f8b69
mk-ramdisk.sh: concise build output
...
Change-Id: I5408a318aa47b267adb71675f2273e55d11dbec2
Signed-off-by: Cody Xie <cody.xie@rock-chips.com >
2019-11-29 11:09:28 +08:00
538871154b
mk-buildroot.sh: consise buildroot make output
...
Change-Id: I8c4d8525cefac1b675c2d955939c41ebc10bebd5
NOTE: Need to install expect in build server
Signed-off-by: Cody Xie <cody.xie@rock-chips.com >
2019-11-28 14:59:31 +08:00
8fee18be45
mk-image.sh: Prefer using mke2fs -d when available
...
Otherwise it would require root permission to generate image.
Also with some minor changes.
Change-Id: Ia5eae46a9a4af1bc3631af944c91835ecd6ae90c
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-11-22 15:34:48 +08:00
bd5788d8f5
make distro command correct
...
Change-Id: If75880c82f4af598f401fd1c9e9ddfef39b05a60
Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com >
2019-11-14 14:49:07 +08:00
29586876f1
build.sh: yocto: Fix build error detection
...
Change-Id: Iac5cdd84b3851bcdb55392e75e43b333e87a731e
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-10-16 12:01:32 +08:00
28864f2c4c
build.sh: Include rksdk.conf when building yocto
...
This config file is no longer auto-included in the newest version of
yocto local configs.
Change-Id: I0c3627ef071c1d2ab425d31bee004a6eb1a55f95
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-10-15 18:23:42 +08:00
95dce579d9
Merge "common: mk-image: disable the debug"
2019-09-16 18:29:11 +08:00
64a19cd327
common: mk-image: disable the debug
...
Fixes: 74a4b38e2a ("common: mk-image: mkfs with the specified the filesystem type")
Change-Id: Iac2e71dc3f4b8e38e00e352d37d63193277577d4
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
2019-09-16 10:28:20 +00:00
52a427fb29
Merge "common: mk-image: mkfs with the specified the filesystem type"
2019-09-16 18:25:10 +08:00
74a4b38e2a
common: mk-image: mkfs with the specified the filesystem type
...
The if the '-t <fs_type>' is not specified, the default fs is ext2. It's
important if somebody wanna to use the real ext4.
Change-Id: I6ecb8e321595755c7441a0d59b6aba2bfee8e696
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
2019-09-16 10:21:59 +00:00
2d4bcdae47
device/rockchip: update the debian build way
...
Change-Id: Ib9a4e3c789ae9f912fbba33938a2619487c0c162
Signed-off-by: Caesar Wang <wxt@rock-chips.com >
2019-09-03 01:04:52 +00:00
b328d2ac55
rkflash.sh: add erase
...
Change-Id: I987ac647e69e868e90acc048c344316896b71d1f
Signed-off-by: Hertz Wang <wangh@rock-chips.com >
2019-08-20 08:09:05 +00:00
1fd2c71fdc
common: mkimage: Make sure retry size not smaller than 4M
...
Change-Id: I276ebbc859f19b62a80a087352c5d889e1e450a2
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-08-12 15:38:50 +08:00
efeb3e553f
common: mkimage: Increase retry size
...
Larger images needs larger extra size, let's increase the retry size
for that.
Change-Id: I7dbf8255df19d4777a6f1bd2f7c45b84eaee5d32
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-08-12 09:41:09 +08:00
a7a8f711a9
mkfirmware.sh: check the target image size whether exceed parameter
...
Change-Id: I46b443e66cdd6ddd84eea86e9db4d665e05b2ca9
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
2019-06-20 15:31:39 +08:00
2e1e725c88
build.sh: Fix broken cleanall
...
Change-Id: I95fa4e45ad2952e299aa7349c60624287d4d3a39
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-06-09 15:31:57 +08:00
5ea5b11e4c
build.sh: add the build for debian9 and debian10
...
Change-Id: Iec3c1f96e6ddd411953048be559cabd6d35c05c0
Signed-off-by: Caesar Wang <wxt@rock-chips.com >
2019-06-06 10:04:39 +08:00
7d2a99ecec
mkfirmware.sh: Cleanup a bit
...
Change-Id: I3e0bc3789e561cada44b1722bd36f37fc138752d
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-05-13 16:53:18 +08:00
08b8d9da91
common: build.sh/mkfirmware.sh: Use relative symlink
...
Folks might build images on server and access them locally, create
relative symlink to avoid broken links in this case.
Change-Id: I7669a32a7649599e3381879b6be90850d6fd79c6
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-05-13 15:58:31 +08:00
52acc70358
common: mkfirmware: revise the rootfs link source path
...
Change-Id: I61fb4ca780775857fbe3a1ab82731d6e86b01d74
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
2019-05-13 14:48:49 +08:00
52bd7fee1b
build.sh: Make sure rockdev/ exists before creating symlink
...
Change-Id: Id54de4edb0b07de35bcc9d9dea970503599cebdf
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-05-10 18:30:37 +08:00
629d203342
build.sh: Fix typo in cleanall
...
Change-Id: I5b114c9e3794498a29a939e0259e1dd253a11db0
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-05-09 11:18:38 +08:00
0c0cba38c6
common: mkimage: Check ntfscp for making ntfs image
...
Change-Id: I8d295349045a1e0522c970d92a44ee86ee8a53d8
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-05-05 19:14:46 +08:00
6955cb1356
build.sh: Go to top dir after build_yocto
...
Change-Id: I7951c5b75c611424f5e25575d337163784f993e5
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-04-29 18:21:59 +08:00
e599a3b262
build.sh: Support multi targets
...
Support multi targets, for example:
./build.sh kernel yocto save
Change-Id: I9f3b6f80da0c779ba72d0f2ac26769ae9c7e3348
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-04-25 17:34:41 +08:00
9b7ffed043
build.sh: Fix switch board config error
...
For example:
./build.sh BoardConfig_rk1808_compute_stick.mk
Change-Id: I77dc707d8b9f8bbd0d38833b9f668c771dee04cb
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-04-25 17:00:33 +08:00
c437a47bbf
common: mk-ramdisk: perfer to use zImage for recovery
...
Change-Id: Ie7c19f26c68b1c1700e1da8248b20a545d168235
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
2019-04-25 09:24:25 +08:00
49c7e236fc
build.sh: Fix buildroot compile error
...
Change-Id: I8c59b4bf9890c702b2d910423fc77a3b9996d025
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-04-24 14:33:28 +08:00
7e89caae2d
Support yocto for rk3399
...
Change-Id: I6f1cb3e796307f1240d99d2fa9f9b4f55dd7ed1a
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-04-24 10:23:09 +08:00
445e638aa0
build.sh/BoardConfig: Support packing different rootfs images
...
Change-Id: I45a73d115feb12ef31ccab59f4ff6fd7937894be
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-04-24 10:23:06 +08:00
bfef5ec905
build.sh: Cleanup a bit
...
1/ Fix shell script style
2/ Use case-esac and eval instead of if-else
Change-Id: Ib8bcf1337dbebda1bf8642f4cb20f14faea0bcc5
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-04-24 10:22:30 +08:00
16148d348c
rkflash.sh : flash without recovery
...
Change-Id: I19891405acca085362910f3ed1b8aa791fe6cc73
Signed-off-by: Hertz Wang <wangh@rock-chips.com >
2019-04-18 19:21:17 +08:00
bbf43c3907
build.sh: Remove ros target
...
It's the same as buildroot target.
Change-Id: Ic12c87089c0c1b723d6761365e65eb968bc09082
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com >
2019-04-10 10:14:50 +08:00
c018c01324
common: build.sh: remove arch parameter
...
Change-Id: Ided9be27decbd1d9bb4d5b63c89bec16595f0183
Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com >
2019-04-09 14:42:39 +08:00
fe2dde5b07
common: rkflash: add 2th parameter
...
Change-Id: I4624236144363f0daf94d4f7c858e07e021a02a8
Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com >
2019-04-09 14:14:25 +08:00
dc54511ccf
rk1808: support rk1808 multi board boot
...
Change-Id: Ia52c026e133923d633afe5c02c97f6acca7b0b29
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
Signed-off-by: Lin Huang <hl@rock-chips.com >
2019-03-15 17:17:05 +08:00