Commit Graph

148 Commits

Author SHA1 Message Date
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
Ciro Santilli 六四事件 法轮功
f90e69045a release: github token from env var 2018-09-23 16:46:11 +01:00
Ciro Santilli 六四事件 法轮功
74b51fc044 gem5: update to 7bfb7f3a43f382eb49853f47b140bfd6caad0fb8
The update is required to include 3c3ca64b5f0dd9eef7b1ce1c65cc6e8e9147dd38
otherwise baremetal does not on VExpress.

baremetal: create a baremetal setup with crosstool-ng

buildroot: improve directory location: move out/dl inside
out/buildroot/download, and add a new out/buildroot/build level

tagline: generalize, deliver more value than howto, since now howtos
are starting to multiply

rename all top scripts to separate words with hyphen more consistently,
e.g. run-gdb instead of rungdb

getvar: list all variables

gem5: make m5out section to focus all releated information at

Prevent m5term Text file busy when rebuilding gem5 while it is running.
2018-09-23 13:56:20 +01:00
Ciro Santilli 六四事件 法轮功
60f0e98644 relase: make github operations perfect 2018-09-17 12:38:26 +01:00
Ciro Santilli 六四事件 法轮功
b2238daee3 Split test kernel modules to a separate script.
Notice that Python sucks and does SIGPIPE annoyances, for now work around
by grepping the output file...

Fix the exit status read check with 'b', it broke down occasionally with:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 1832: invalid start byte
2018-09-16 09:16:18 +01:00
Ciro Santilli 六四事件 法轮功
0bf7c7cb81 prebuilt: failed extract-vmlinux attempt 2018-09-16 06:43:18 +01:00
Ciro Santilli 六四事件 法轮功
e2f36b5bc1 prebuilt: attempt gem5 a bit further, but stop at the vmlinux step 2018-09-15 23:01:49 +01:00
Ciro Santilli 六四事件 法轮功
762bb78d89 investigate squashfs to overcome BR2_TARGET_ROOTFS_EXT2_SIZE but fail
Generate qcow2 when running QEMU if it is not present.
2018-09-15 20:29:09 +01:00
Ciro Santilli 六四事件 法轮功
02f7d2946b build-buildroot: fix is LD_LIBRARY_PATH is not defined
confiure: install rsync for docker
2018-09-15 00:52:15 +01:00
Ciro Santilli
7f81db9a46 qemu: use ccache
readme: improve build variants
2018-09-14 16:56:12 +01:00
Ciro Santilli
f75673e745 build-buildroot: time the build 2018-09-14 15:04:06 +01:00
Ciro Santilli
56738a1c70 lkmc v2-rc
Unsquashed version at v2-rc-unsquashed, but that cannot be merged as it
breaks bisects at several points. All bugs will not bisect to this
humongous change.

It all started with a conversion of the Bash scripts to Python, mainly
because I couldn't stand not being able to properly use --options for
run which has a million options.

Then since that required a full testing, I decided to do all the
refactorings that I had in mind at once, and so I did and it became
v2-rc.

This is the largest patch I have ever done! OMG a few weeks of extra time.
I'm never writing a Bash script for anything that starts getting big again.

Some of the features are:

* separate build-qemu and build-gem5 commands
* common: convert scripts to python. Add --option for everything
* rename build to build-buildroot now that we are splitting all the build
  commands, Linux kernel to follow
* move all git submodules to submodules/ and all buildroot packages to
  packages/
* refactor the out/ structure. Keep projects on toplevel, because guest
  projects separate archs and host ones don't, making a toplevel arch wrong
* do-release: rename to just release
  https://stackoverflow.com/questions/16174992/cant-get-argparse-to-read-quoted-string-with-dashes-in-it
* run: add --terminal and explain gem5 pdb
* just track the lvimrc
* store CLI kernel config fragment inside buildlroot to avoid conflicts
* gem5: document m5 initparam
* readme: make a bunch of things awesomer
* readme: fix broken refs
* parsec-benchmark: update to 75d55ac446a43c47efb1044844a108c6c330184c
  Could not fetch otherwise.
* gem5: M5_OVERRIDE_PY_SOURCE
2018-09-14 07:42:31 +01:00