
Build Linux kernel with Flexbuild
Besides building LS1028A BSP kernel in stand-alone way (see
Configuring and building
on page 38), it is easy to automatically
build LS1028A BSP kernel with flex-builder.
To build kernel using the default tree/branch/tag configurations specified in configs/build_lsdk.cfg:
$ flex-builder -c linux # for 64-bit mode of all armv8 Layerscape platforms by
default
$ flex-builder -c linux -a arm64 # for 64-bit mode of all armv8 Layerscape platforms by
default
To build kernel with specified tree/branch/tag and additional fragment config:
Usage:
$ flex-builder -c linux:<kernel-repo>:<branch|tag> -a arm64 -B fragment:<custom>.config
Example:
$ flex-builder -c linux:linux:linux-4.14-ls1028a-early-access -a arm64 -B fragment:lttng.config
$ flex-builder -c linux:linux:ls1028a-early-access-bsp0.2 -a arm64
User can put a custom kernel fragment config file (given named test.config) in flexbuild/packages/linux/<kernel-repo>/arch/arm64/
configs directory, then run the command below to compile kernel as per the default defconfig, lsdk.config and the additional
test.config.
$ flex-builder -c linux -a arm64 -B fragment:test.config
Platform
Command for building Linux
LS1028AQDS 64bit
$ flex-builder -c linux:custom (optional, customize kernel config in interactive menu)
or
$ flex-builder -c linux:<kernel-repo>:<branch|tag> -B fragment:<custom>.config
(optional, add additional fragment config)
$ flex-builder -c linux
(if -a <arch> is not specified, arm64 arch is used by default)
$ flex-builder -c linux:custom -a arm64 (optional, customize kernel config in interactive
menu)
$ flex-builder -c linux -a arm64
LS1028ARDB 64bit
$ flex-builder -c linux:custom (optional, customize kernel config in interactive menu)
or
$ flex-builder -c linux:<kernel-repo>:<branch|tag> -B fragment:<custom>.config
(optional, add additional fragment config)
$ flex-builder -c linux
(if -a <arch> is not specified, arm64 arch is used by default)
$ flex-builder -c linux:custom -a arm64 (optional, customize kernel config in interactive
menu)
$ flex-builder -c linux -a arm64
How to build LS1028A BSP with Flexbuild
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
25
Содержание Layerscape LS1028A BSP
Страница 135: ......