mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
Added "yosys-config --build modname.so cppsources.."
This commit is contained in:
+12
-2
@@ -3,7 +3,8 @@
|
|||||||
help() {
|
help() {
|
||||||
{
|
{
|
||||||
echo ""
|
echo ""
|
||||||
echo "Usage: $0 [-exec] [--prefix pf] args.."
|
echo "Usage: $0 [--exec] [--prefix pf] args.."
|
||||||
|
echo " $0 --build modname.so cppsources.."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Replecement args:"
|
echo "Replecement args:"
|
||||||
echo " --cxx @CXX@"
|
echo " --cxx @CXX@"
|
||||||
@@ -15,10 +16,14 @@ help() {
|
|||||||
echo ""
|
echo ""
|
||||||
echo "All other args are passed trhough as they are."
|
echo "All other args are passed trhough as they are."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Use -exec to call a command instead of generating output. Example usage:"
|
echo "Use --exec to call a command instead of generating output. Example usage:"
|
||||||
echo ""
|
echo ""
|
||||||
echo " yosys-config --exec --cxx --cxxflags --ldflags -o plugin.so -shared plugin.cc --ldlibs"
|
echo " yosys-config --exec --cxx --cxxflags --ldflags -o plugin.so -shared plugin.cc --ldlibs"
|
||||||
echo ""
|
echo ""
|
||||||
|
echo "The above command can be abbreviated as:"
|
||||||
|
echo ""
|
||||||
|
echo " yosys-config --build plugin.so plugin.cc"
|
||||||
|
echo ""
|
||||||
echo "Use --prefix to change the prefix for the special args from '--' to"
|
echo "Use --prefix to change the prefix for the special args from '--' to"
|
||||||
echo "something else. Example:"
|
echo "something else. Example:"
|
||||||
echo ""
|
echo ""
|
||||||
@@ -37,6 +42,11 @@ if [ $# -eq 0 ]; then
|
|||||||
help
|
help
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" == "--build" ]; then
|
||||||
|
modname="$2"; shift 2
|
||||||
|
set -- --exec --cxx --cxxflags --ldflags -o "$modname" -shared "$@" --ldlibs
|
||||||
|
fi
|
||||||
|
|
||||||
prefix="--"
|
prefix="--"
|
||||||
get_prefix=false
|
get_prefix=false
|
||||||
exec_mode=false
|
exec_mode=false
|
||||||
|
|||||||
Reference in New Issue
Block a user