diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-08-22 20:38:48 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-08-22 22:25:57 +0300 |
| commit | b235f49f31d11e68019c42f48b6641c37e4c986e (patch) | |
| tree | a9f9e7960b04ded4df61cac9a029d0c30e2d6199 /arch/riscv/conf/mkimage.sh | |
| parent | f05aaa0561e071a54785ae7dfae3d8a34c9df06a (diff) | |
| download | kmi-b235f49f31d11e68019c42f48b6641c37e4c986e.tar.gz kmi-b235f49f31d11e68019c42f48b6641c37e4c986e.zip | |
Integrated libfdt
+ Added new common/ directory, into which code that should be shared
with init and kernel is to be added. Currently string.c and bytes.c.
Code in common/ should be marked with __weak, so as to allow the arch to
implement a better, more optimised version of the function if
possible/required.
+ Created include/apos/types.h with macros essentially providing the
libc limits.h and stdint.h. At the moment I use gcc/clang predefined
macros for most things.
Diffstat (limited to 'arch/riscv/conf/mkimage.sh')
| -rwxr-xr-x | arch/riscv/conf/mkimage.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv/conf/mkimage.sh b/arch/riscv/conf/mkimage.sh index 31abb8e..5a22d01 100755 --- a/arch/riscv/conf/mkimage.sh +++ b/arch/riscv/conf/mkimage.sh @@ -13,6 +13,9 @@ SSIZE=$(fdisk -l rootfs.img | awk '$1=="Units:" {print $8}') OFFSET=$(fdisk -l rootfs.img | awk '$1=="rootfs.img1" {print $2}') mount -o loop,offset=$((${SSIZE}*${OFFSET})) rootfs.img fs +# not entirely pleased with this solution, although eventually I should probably +# move `run` out of the kernel repo and into some `aposos` repo with a runtime +# and proper initrd etc. so this is good enough for now ../u-boot-apos/tools/mkimage -f arch/riscv/conf/apos.its fs/apos.itb ../u-boot-apos/tools/mkimage -A riscv -O apos -T script \ -d arch/riscv/conf/boot.cmd fs/boot.scr |
