4cdf70c7 | 04-Jul-2018 |
Aaron LI <aly@aaronly.me> |
initrd: Refactor Makefile and introduce quick{rescue,initrd}
Refactor the Makefile by splitting the original targets into smaller ones.
Introduce targets quick{rescue,initrd} which skip the clean s
initrd: Refactor Makefile and introduce quick{rescue,initrd}
Refactor the Makefile by splitting the original targets into smaller ones.
Introduce targets quick{rescue,initrd} which skip the clean step. Such similar behavior was achieved by passing '-DNO_CLEAN' to make. (suggested-by: swildner)
show more ...
|
4e60e668 | 27-Jun-2018 |
Aaron LI <aly@aaronly.me> |
initrd: Handle ${DESTDIR} when building rescue tools
When building rescue tools for a target system (e.g., create release build), use tools (e.g., crunchide, crunchgen, cc), headers and libraries fr
initrd: Handle ${DESTDIR} when building rescue tools
When building rescue tools for a target system (e.g., create release build), use tools (e.g., crunchide, crunchgen, cc), headers and libraries from the target root (${DESTDIR}).
NOTE: GCC is more tolerant (e.g., doesn't warn about unused variables) to system headers than user headers, so we have to use "-isystem <inc_dir>" instead of "-I<dir>", but the former (option syntax) causes difficulty for <bsd.dep.mk> to filter the options to call mkdep(1). Therefore, we use "--sysroot=${DESTDIR}" and it's simpler than specifying headers paths with "-I<dir>" and library paths with "-L<dir>".
Meanwhile, improve the commands logic in Makefile, and set LC_ALL=C.
show more ...
|
c460a3e6 | 11-Jun-2018 |
Aaron LI <aly@aaronly.me> |
initrd: Add real scp(1)
scp(1) and ssh(1) are different tools, so the original "scp" alias doesn't work actually. Add real scp(1) now.
Meanwhile, alias "ssh" to "slogin" as the same as the base sy
initrd: Add real scp(1)
scp(1) and ssh(1) are different tools, so the original "scp" alias doesn't work actually. Add real scp(1) now.
Meanwhile, alias "ssh" to "slogin" as the same as the base system.
Remove the symbol keep statement as it's no longer needed.
show more ...
|
c91442e9 | 10-Jun-2018 |
Aaron LI <aly@aaronly.me> |
initrd: Reorganize and crunch 70 more rescue tools
* Merge "rescue.sbin" into "rescue" to save space (avoid duplicated libraries to be linked).
* Move "lvm" out of "rescue.libcrypto" since lvm(8)
initrd: Reorganize and crunch 70 more rescue tools
* Merge "rescue.sbin" into "rescue" to save space (avoid duplicated libraries to be linked).
* Move "lvm" out of "rescue.libcrypto" since lvm(8) doesn't need libcrypto.
* Crunch 70 more tools (aliases not counted):
awk, basename, bc, bzip2, cap_mkdb, chflags, chown, cmp, cpio, cut, date, dirname, dmsetup, dump, ed, env, expr, false, find, fstyp, gzip, head, hexdump, hostname, id, join, kcollect, kdump, kenv, ktrace, ldconfig, lsvfs, mount_devfs, nc, paste, patch, pax, pkill, printf, pw, pwd_mkdb, rcorder, realpath, relpath, restore, rtsold, savecore, sed, sort, stat, stty, tail, tar, tee, touch, tput, tr, traceroute, traceroute6, true, truss, uname, uniq, varsym, vi, vipw, vnconfig, wc, xz, yes
Highlights: awk, bzip2, chown, cpio, find, gzip, nc, pw, sed, tar, vi, xz
Now the total number of crunched rescue tools more than 230 (including aliases), but the total size remains almost the same :-)
* Improve the makefiles to be much cleaner.
show more ...
|