2012-11-11 04:14:42 +01:00
|
|
|
// -*- mode:doc; -*-
|
2013-02-13 13:59:02 +01:00
|
|
|
// vim: set syntax=asciidoc:
|
2012-11-11 04:14:42 +01:00
|
|
|
|
2014-09-18 21:39:25 +02:00
|
|
|
[[customize]]
|
2014-08-19 21:41:47 +02:00
|
|
|
== Project-specific customization
|
2011-10-10 10:46:39 +02:00
|
|
|
|
2014-08-29 21:50:39 +02:00
|
|
|
Typical actions you may need to perform for a given project are:
|
2011-10-10 10:46:39 +02:00
|
|
|
|
2014-09-18 21:39:28 +02:00
|
|
|
* configuring Buildroot (including build options and toolchain,
|
2014-08-29 21:50:39 +02:00
|
|
|
bootloader, kernel, package and filesystem image type selection)
|
2014-09-18 21:39:28 +02:00
|
|
|
* configuring other components, like the Linux kernel and BusyBox
|
|
|
|
* customizing the generated target filesystem
|
|
|
|
** adding or overwriting files on the target filesystem (using
|
|
|
|
+BR2_ROOTFS_OVERLAY+)
|
|
|
|
** modifying or deleting files on the target filesystem (using
|
|
|
|
+BR2_ROOTFS_POST_BUILD_SCRIPT+)
|
|
|
|
** running arbitrary commands prior to generating the filesystem image
|
|
|
|
(using +BR2_ROOTFS_POST_BUILD_SCRIPT+)
|
2014-09-18 21:39:29 +02:00
|
|
|
** setting file permissions and ownership (using
|
|
|
|
+BR2_ROOTFS_DEVICE_TABLE+)
|
|
|
|
** adding custom devices nodes (using
|
|
|
|
+BR2_ROOTFS_STATIC_DEVICE_TABLE+)
|
2014-09-18 21:39:30 +02:00
|
|
|
* adding custom user accounts (using +BR2_ROOTFS_USERS_TABLES+)
|
2014-09-18 21:39:28 +02:00
|
|
|
* running arbitrary commands after generating the filesystem image
|
2014-08-29 21:50:39 +02:00
|
|
|
(using +BR2_ROOTFS_POST_IMAGE_SCRIPT+)
|
2014-09-18 21:39:28 +02:00
|
|
|
* adding project-specific patches to some packages (using
|
|
|
|
+BR2_GLOBAL_PATCH_DIR+)
|
|
|
|
* adding project-specific packages
|
2014-08-29 21:50:39 +02:00
|
|
|
|
2014-08-29 21:50:41 +02:00
|
|
|
An important note regarding such 'project-specific' customizations:
|
|
|
|
please carefully consider which changes are indeed project-specific and
|
|
|
|
which changes are also useful to developers outside your project. The
|
|
|
|
Buildroot community highly recommends and encourages the upstreaming of
|
|
|
|
improvements, packages and board support to the official Buildroot
|
|
|
|
project. Of course, it is sometimes not possible or desirable to
|
|
|
|
upstream because the changes are highly specific or proprietary.
|
|
|
|
|
2014-08-29 21:50:39 +02:00
|
|
|
This chapter describes how to make such project-specific customizations
|
|
|
|
in Buildroot and how to store them in a way that you can build the same
|
|
|
|
image in a reproducible way, even after running 'make clean'. By
|
|
|
|
following the recommended strategy, you can even use the same Buildroot
|
|
|
|
tree to build multiple distinct projects!
|
2011-10-10 10:46:39 +02:00
|
|
|
|
2014-08-29 21:50:40 +02:00
|
|
|
include::customize-directory-structure.txt[]
|
|
|
|
|
|
|
|
include::customize-outside-br.txt[]
|
|
|
|
|
2014-09-18 21:39:26 +02:00
|
|
|
include::customize-configuration.txt[]
|
|
|
|
|
2014-08-19 21:41:47 +02:00
|
|
|
include::customize-rootfs.txt[]
|
2013-02-05 08:15:59 +01:00
|
|
|
|
2014-09-18 21:39:30 +02:00
|
|
|
include::customize-users-tables.txt[]
|
|
|
|
|
2014-08-31 15:14:30 +02:00
|
|
|
include::customize-post-image.txt[]
|
|
|
|
|
2014-09-18 21:39:31 +02:00
|
|
|
include::customize-patches.txt[]
|
2014-09-18 21:39:28 +02:00
|
|
|
|
2014-09-18 21:39:33 +02:00
|
|
|
include::customize-packages.txt[]
|
|
|
|
|
2014-09-18 21:39:35 +02:00
|
|
|
include::customize-quick-guide.txt[]
|