This will delete the page "How_To_Build_libreCMC"
. Please be certain.
This generic documentation is to help aid those who want to build libreCMC firmware images from source code. While this documentation is not an exhaustive source of information, it should help those who would like to build their own firmware images or would like to develop firmware based upon libreCMC.
While libreCMC does allow for building for other targets, not all of them have been tested to work with libreCMC and are not officially supported if they are not mentioned on the libreCMC wiki.
libreCMC is licensed under the GPLv2 and contains code from other free software projects. Some code may be licensed under other free software licenses and will be noted. All software is to be distributed under the terms of the GPLv2 or their respective free software licenses.
python3-jsmin
+ Python3 distutils, python3-distutils
or python3-distutils-extra
git clone https://git.librecmc.org/git/librecmc/librecmc.git
If you want to build packages found in libreCMC's package feed, update and install the make files
by running the following from $SRC_ROOT
:
./scripts/feeds update && ./scripts/feeds install -a
This will pull the makefiles for the package feed and make them available for selection when configuring your build of libreCMC.
make menuconfig
When configuring libreCMC for your device, it is imperative that the right target and profile are selected. Currently, we only officially support ath79
and rockchip
targets or devices listed
on the supported hardware list. If you want other packages, please keep in mind that these devices don't have very much in terms of flash ROM and your selection
of packages may not work properly. Generally, a good default configuration includes:
make download
make
The build process can be accelerated by running multiple concurrent job processes using the -j-option:
make -j <your number of CPU cores + 1>
If the build fails, type:
make V=s
if there are missing dependencies in your build environment, please install them and then run make
again.
If the build exits without any errors, you should have a new image in:
$SRC_ROOT/bin/$BUILD_TARGET/librecmc-$BUILD_TARGET-generic-$TARGET_PROFILE-$VERSION-$FS_TYPE-factory.bin
Where $BUILD_TARGET = target (ex. ar71xx)
, $TARGET_PROFILE = device
, $VERSION = device version (some don't one)
This will delete the page "How_To_Build_libreCMC"
. Please be certain.