Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
330 views
in Technique[技术] by (71.8m points)

how to build custom directory structure in freebsd

we need to create our own OS using freebsd source code without any additional directories like /opt, /home and few. is there any way to remove directory structure creation from freebsd source code.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The most straightforward way is to write a post-install script that removes stuff you don't need.

You can also change the build system (Makefiles) to install things into desired locations, this is harder and will require additional work when updating FreeBSD source to newer version.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...