Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of Tool outside of Repo #77

Open
Pelps12 opened this issue Dec 12, 2024 · 2 comments
Open

Use of Tool outside of Repo #77

Pelps12 opened this issue Dec 12, 2024 · 2 comments

Comments

@Pelps12
Copy link

Pelps12 commented Dec 12, 2024

Is there a documented way to use this tool outside of the cloned folder (designs folder).

Thank you.

@mikhailmoiseev
Copy link
Contributor

The simplest way is to add sym link inside of design folder to a folder outside: ln -s outside_folder designs/link_name

@KlausKoder
Copy link

For what it is worth, here is how I do it

I usually install tools in my home dir under ~/usr/<tool>:

# Build for local install

export ICSC_HOME=~/usr/icsc/
export CMAKE_PREFIX_PATH=$ICSC_HOME
export LD_LIBRARY_PATH=$ICSC_HOME/lib64:$ICSC_HOME/lib
export SYSTEMC_HOME=$ICSC_HOME

# Build
mkdir -p runenv/{build_icsc_rel,build_icsc_dbg} && cd runenv/build_icsc_rel
cmake ../..  -DCMAKE_BUILD_TYPE=Release  -DCMAKE_INSTALL_PREFIX=$ICSC_HOME
#cmake ../.. -DCMAKE_BUILD_TYPE=Debug  -DCMAKE_INSTALL_PREFIX=$ICSC_HOME -DCMAKE_DEBUG_POSTFIX=d
make -j32 && make install  && cd -

# Install extras
cp -rl components/common  $ICSC_HOME/designs/single_source/common
cp cmake/CMakeLists.top   $ICSC_HOME/CMakeLists.txt

Now you should be able to compile without the repo:

# Test
mkdir -p /tmp/icsc-tests && cd /tmp/icsc-tests

. ~/usr/icsc/setenv.sh # set enviroment

cmake $ICSC_HOME  # or directory with your CMakeLists.txt
cd designs/examples/ && ctest -j30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants