Skip to content

Build Image and SDK

tiopex edited this page Sep 11, 2024 · 11 revisions

Precondition for Ubuntu 22.04

sudo apt install -y wget unzip build-essential git bc swig libncurses-dev libpython3-dev libssl-dev cpio rsync subversion python3 mercurial imagemagick btrfs-progs

Clone buildroot repo

git clone https://github.com/MiyooCFW/buildroot.git
cd buildroot

You can build four types of source

  1. Shared uClibc Image and SDK
  2. Shared musl Image and SDK
  3. Static uClibc SDK only
  4. Static musl SDK only

NOTE: You can build only one type of source, after each build you need to clean workspace by using make clean

NOTE: Difference between static and shared: Static library Shared_library


Build image uclibc and SDK

make miyoo_uclibc_defconfig
make sdk

Build image musl and SDK

make miyoo_musl_defconfig
make sdk

Build static uClibc SDK

make miyoo_static_uclibc_defconfig
make sdk

Build static musl SDK

make miyoo_static_musl_defconfig
make sdk

NOTE: If you have a multicore CPU, you can increase build speed with: make -j ${YOUR_CPU_COUNT}


Install image

Img will be in the output directory e.g.

miyoo-cfw-2.0.0-67298a0_uclibc-BETAv2.img

Install SDK

SDK will be in the output directory

arm-miyoo-linux-uclibcgnueabi_sdk-buildroot.tar.gz

Unpack arm-miyoo-linux-uclibcgnueabi_sdk-buildroot.tar.gz to /opt/miyoo and run relocate-sdk.sh

gzip -d arm-miyoo-linux-uclibcgnueabi_sdk-buildroot.tar.gz
tar xvf arm-miyoo-linux-uclibcgnueabi_sdk-buildroot.tar
mv arm-miyoo-linux-uclibcgnueabi_sdk-buildroot miyoo
sudo cp -a miyoo /opt/
/opt/miyoo/relocate-sdk.sh

Your SDK is ready to use

Clone this wiki locally