Commit Graph

135 Commits

Author SHA1 Message Date
39ce6da700 common/build.sh: support config fragment when build kernel
You can export RK_KERNEL_DEFCONFIG_FRAGMENT in BoardConfig to specify
a kernel config fragment.

Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I5d7b9001f9171ec4b577081d31bf839efef3d75c
2020-04-20 09:28:00 +08:00
d4cbe55e9a common: rkflash.sh: reset device automactically after falsh all
Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I8fee14831fad996e24fa1793459bba15b1ef8cc1
2020-04-18 10:41:32 +08:00
d2b6b71de3 build.sh: set the en_US.UTF-8 for yocto
Change-Id: Icb08740983a046de272b91278b3fdab4c1333b89
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2020-04-14 19:22:43 +08:00
982f60be5e mkfirmware.sh: support package uboot fit format
Change-Id: Id4f0b2d33806fb9d206dfea17d6b1f069c1b811f
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
2020-04-13 11:00:26 +08:00
b8ac5bea11 mkfirmware.sh: fix if modify rootfs type
Change-Id: I1d11cb2faf9192ebe10548e8a6878ea389a72cff
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
2020-04-01 16:46:32 +08:00
088e49f521 Merge "common: build.sh: export LC_ALL=C" 2020-03-31 10:52:17 +08:00
dc4786b4c2 mkfirmware.sh: fix exit if remove failed
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I9af517f1431e56cc47245eaf27a174dcb531822a
2020-03-28 10:27:36 +08:00
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