Commit Graph

61 Commits

Author SHA1 Message Date
Ciro Santilli 六四事件 法轮功
238f1ad1c0 common: add --qemu option to override configs 2018-11-13 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
403d4a9d06 docker: migrate to python 2018-11-11 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
32420eec33 download-dependencies: merge into ./build --download-dependencies
Reuses the module system dependencies present there.

run: make --dry-run work even when there is no out directory yet

docker: make the wrapping more intuitive
2018-11-10 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
6119fb80ea common: print_cmd only prints a single line if the command fits in one line
No more ugly ' \\\n;' ending!
2018-11-10 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
c1f060ca65 test-gdb: find source path correctly
Previously was relying on glob order, and which could pick up the .py
instead of the .c / .S.
2018-11-09 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
5d649377fc build: make baremetal parts more flexible and powerful
Document test-gdb on readme
2018-11-09 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
e0dbe2416d gdb: create some automated tests with pytest
gem5 baremetal: use m5exit m5op in exit() so as to not force users to
apply a patch for almost all examples
2018-11-09 09:33:44 +00:00
Ciro Santilli 六四事件 法轮功
b1e16a59a1 baremetal: exit at the end of main instead of infinite loop
run: interpret lkmc_test_fail as the last line of test as an error
2018-11-09 09:33:44 +00:00
Ciro Santilli 六四事件 法轮功
d39d5b8154 run: add --background option 2018-11-07 05:48:13 +00:00
Ciro Santilli 六四事件 法轮功
72167f9f68 bring a minimal buildroot kernel modules example to life
More importantly, to make modules_install on the Linux kernel build.
2018-11-05 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
8fb9db3931 manually encode newlines on all printed commands
This way we group key value arguments: e.g.:

    make \
    -j 8 \
    all

instead of:

    make \
    -j \
    8 \
    all

and reach CLI nirvana, while also subtly breaking several commands due to
lack of testing.
2018-11-04 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
9693c23fe6 gdb userland and gdbserver are perfect 2018-11-03 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
07a000cae7 rename packages to buildroot_packages
fix BR2_SAMPLE_PACKAGE to PACKAGE_SAMPLE_PACKAGE on README

Add some more README.adoc to subdirs.
2018-11-02 22:00:09 +00:00
Ciro Santilli 六四事件 法轮功
6bfb5221d1 userland: make --host awesome 2018-10-31 19:00:05 +00:00
Ciro Santilli 六四事件 法轮功
e042a1b2ad console: make awesome 2018-10-31 21:00:03 +00:00
Ciro Santilli 六四事件 法轮功
65a103d6c1 host kernel module works 2018-10-31 23:00:01 +00:00
Ciro Santilli 六四事件 法轮功
911dd8be32 remove some more kernel_module- references
make kgdb x86_64 work once again, now pending a decent serial refactor
2018-10-31 23:00:01 +00:00
Ciro Santilli 六四事件 法轮功
4f47491482 userland: make uber awesome with --baremetal-like executable resolution 2018-10-30 22:00:02 +00:00
Ciro Santilli 六四事件 法轮功
ab2574a790 userland: build id
user mode: factor out nicely with -static and build id
2018-10-30 22:00:02 +00:00
Ciro Santilli 六四事件 法轮功
b5b646ffd4 qemu: document GDB user mode, fix some stuff 2018-10-29 22:00:02 +00:00
Ciro Santilli 六四事件 法轮功
a29b5a41fb gem5: expose syscall emulation with --user
Then also expose QEMU user mode with --user. Docs not perfect yet,
would require a build alternative for userland/ for -static and or
passing options before the QEMU userland executable with a new CLI.
2018-10-29 22:00:02 +00:00
Ciro Santilli 六四事件 法轮功
e267435f6a fix most of GDB and remove most kernel_modules- references 2018-10-29 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
34a8fa6a39 common: fix cwd and env on command printing 2018-10-26 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
bb1bb370a6 build-gem5: factor dtb copy with copy_dir_if_update_non_recursive
Less code, less boring + cp prints, only copy if modified.
2018-10-26 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
8f1c662e3d build kind of works 2018-10-26 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
004c100453 copy-overlay. ./build broken btw :-) 2018-10-25 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
ca231b82f6 get rid of lkmc package, move userland and kernel-modules to top
Rationale: we already had a non buildroot build system,
maintaining both will be hard, and having short paths is more awesome.
2018-10-25 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
98d2c83317 echo key configs as bash commands 2018-10-25 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
21627ff9d8 Move build-buildroot linux configs to build-linux.
Needs a lot of testing, and need to cleanup readme, but seems to work.
2018-10-24 00:00:01 +00:00
Ciro Santilli 六四事件 法轮功
3980974e91 common: factor -j --nproc to all builds 2018-10-23 00:00:02 +00:00
Ciro Santilli 六四事件 法轮功
4b99e522dd common.run_cmd: assert result == 0 by default 2018-10-23 09:58:30 +01:00
Ciro Santilli 六四事件 法轮功
4cd9c533b8 move all builds to components 2018-10-23 09:58:30 +01:00
Ciro Santilli 六四事件 法轮功
2a77df690c common: create a Component class to factor out builds
Not yet finished factoring, but half way there, do for all build-
2018-10-18 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
cb3d8929ba dry run for all common 2018-10-18 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
23a9d767ba build-buildroot twice, and split build-m5 2018-10-18 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
2661f7f83c build: mkdir out_rootfs_overlay_dir 2018-10-17 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
04812521b2 getting started: hide the initial build under ./build
make build awesomer and more generic, convert to python

rename ./configure to ./download-dependencies, since it wasn't configuring
anything
2018-10-14 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
98bada1e7c getting started: explain 9p module rebuild
split networking and filesystem toplevel secions

create closest overlayfs attempt so far and document it
2018-10-14 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
e8f049ed11 gem5: default build id to worktree 2018-10-13 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
dae60aa248 modules: rename packages/kernel_modules to packages/lkmc
Then inside, split packages/lkmc into kernel_modules and userland,
to keep userland out of the kernel_modules parent path, which makes no
sense.

Copy built modules and userland to the output rootfs overlay.

Document Linux distro tradeoffs.
2018-10-12 09:30:33 +01:00
Ciro Santilli 六四事件 法轮功
2cf0277998 separate docker build 2018-10-12 09:30:33 +01:00
Ciro Santilli 六四事件 法轮功
76b486c274 Build userland examples separately 2018-10-12 09:30:33 +01:00
Ciro Santilli 六四事件 法轮功
bc73cebff1 Build the Linux kernel independently from Buildroot
This will allow for other types of root filesystems that don't rely on Buildroot
to be added and used in the future.

Propagate --verbose on all build scripts to see full GCC commands.

build-all: allow for neat subsets

also 9p share rootfs_overlay. TODO document.
2018-10-12 09:30:33 +01:00
Ciro Santilli 六四事件 法轮功
e8cd0caa9e gem5: add --gem5-build-dir for private out of tree builds 2018-10-09 19:42:32 +01:00
Ciro Santilli 六四事件 法轮功
b6d00baac0 gem5: renamame --gem5-src to --gem5-source
And fix outdated README references to --gem5-worktree.
2018-10-09 19:26:46 +01:00
Ciro Santilli 六四事件 法轮功
ca55bc2d61 gem5: replace --gem5-src with --gem5-worktree-path 2018-09-28 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
75a555daa8 common: print cd pdw on paths
print only modified variables on PATH

use common.run_cmd everywhere to get full bash bash commands

readme: recommend private/ instead of the cryptic p/
2018-09-27 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
21a7a1ffa8 gem5: automatically add build type to the build path
If you use it, you shall debug it, there is no basic user for gem5, so
longer paths are worth it.
2018-09-26 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
fd15d3e9df gem5: --gem5-src 2018-09-25 00:00:00 +00:00
Ciro Santilli 六四事件 法轮功
595e52bb5c run: try to overcome run BlockingIOError 2018-09-23 19:03:14 +01:00