From 4a928132520b2413f5c19dcbf5152e4324a28042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Tue, 22 Jan 2019 00:00:00 +0000 Subject: [PATCH] copy-overlay: document you need to ./build-buildroot afterwards --- README.adoc | 23 +++++++++++++++++++---- copy-overlay | 6 +----- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/README.adoc b/README.adoc index c12a529..cd38e00 100644 --- a/README.adoc +++ b/README.adoc @@ -11851,13 +11851,15 @@ We use this directory for: + C files for example need compilation, and must go through the regular package system, e.g. through link:kernel_modules/user[]. -This directory is copied into the target filesystem by link:copy-overlay[], which then it visible via <<9p>> on the guest at: +This directory is copied into the target filesystem by: .... -ls /mnt/9p/out_rootfs_overlay +./copy-overlay .... -Furthermore, since this directory does not require compilation, we also make it <<9p>> available to the guest directly even without `copy-overlay` at: +Source link:copy-overlay[] + +Since this directory does not require compilation, we also make it <<9p>> available to the guest directly even without `copy-overlay` at: .... ls /mnt/9p/rootfs_overlay @@ -11865,6 +11867,19 @@ ls /mnt/9p/rootfs_overlay This way you can just hack away the scripts and try them out immediately without any further operations. +To add those scripts to the Buildroot root filesystem, you will need to run: + +.... +./build-buildroot +.... + +We could add that directory to `BR2_ROOTFS_OVERLAY` but we don't do this because this mechanism: + +* also works for non Buildroot root filesystesms +* places everything in one place for a nice 9P mount + +and maintaining `BR2_ROOTFS_OVERLAY` in addition to our mechanism would duplicate some logic. + === Test this repo ==== Automated tests @@ -11883,7 +11898,7 @@ Sources: * link:build-test[] * link:test[] -* link:test-module[] +* link:test-modules[] * <> * <> diff --git a/copy-overlay b/copy-overlay index 115d92a..130d46d 100755 --- a/copy-overlay +++ b/copy-overlay @@ -11,11 +11,7 @@ class Main(common.BuildCliFunction): def __init__(self): super().__init__( description='''\ -Copy our git tracked rootfs_overlay to the final generated rootfs_overlay -that also contains generated build outputs. This has the following advantages -over just adding that to BR2_ROOTFS_OVERLAY: -- also works for non Buildroot root filesystesms -- places everything in one place for a nice 9P mount +https://github.com/cirosantilli/linux-kernel-module-cheat#rootfs_overlay ''') def build(self):