Skip to content

Commit

Permalink
also compile sshd for buildroot
Browse files Browse the repository at this point in the history
  • Loading branch information
atraber committed Feb 10, 2016
1 parent 057607d commit 2557e78
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 4 deletions.
9 changes: 6 additions & 3 deletions fpga/sw/buildroot.config
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ BR2_PACKAGE_MONO_ARCH_SUPPORTS=y
# BR2_PACKAGE_LZO is not set
# BR2_PACKAGE_SNAPPY is not set
# BR2_PACKAGE_SZIP is not set
# BR2_PACKAGE_ZLIB is not set
BR2_PACKAGE_ZLIB=y

#
# Crypto
Expand All @@ -802,7 +802,9 @@ BR2_PACKAGE_BOTAN_ARCH_SUPPORTS=y
# BR2_PACKAGE_LIBSHA1 is not set
# BR2_PACKAGE_LIBSSH2 is not set
# BR2_PACKAGE_NETTLE is not set
# BR2_PACKAGE_OPENSSL is not set
BR2_PACKAGE_OPENSSL=y
# BR2_PACKAGE_OPENSSL_BIN is not set
# BR2_PACKAGE_OPENSSL_ENGINES is not set
# BR2_PACKAGE_POLARSSL is not set

#
Expand Down Expand Up @@ -1227,6 +1229,7 @@ BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT=y
# BR2_PACKAGE_ARGUS is not set
# BR2_PACKAGE_ARPTABLES is not set
# BR2_PACKAGE_ATFTP is not set
# BR2_PACKAGE_AUTOSSH is not set
# BR2_PACKAGE_AVAHI is not set
# BR2_PACKAGE_AXEL is not set
# BR2_PACKAGE_BANDWIDTHD is not set
Expand Down Expand Up @@ -1332,7 +1335,7 @@ BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT=y
# BR2_PACKAGE_OPEN_PLC_UTILS is not set
# BR2_PACKAGE_OPENNTPD is not set
# BR2_PACKAGE_OPENOBEX is not set
# BR2_PACKAGE_OPENSSH is not set
BR2_PACKAGE_OPENSSH=y
# BR2_PACKAGE_OPENSWAN is not set
# BR2_PACKAGE_OPENVPN is not set
# BR2_PACKAGE_P910ND is not set
Expand Down
1 change: 0 additions & 1 deletion sw/README

This file was deleted.

45 changes: 45 additions & 0 deletions sw/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Setup

The software compilation flow is based on CMake. A version of CMake >= 2.8.0 is
required, but a version greater than 3.1.0 is recommended due to support for
ninja.

CMake uses out-of-source builds which means you will need a separate build
folder for the software, e.g. `build`

mkdir build

Then switch to the build folder and copy the cmake template configuration
script there which resides in the `sw` folder. The name of template follows the
following naming scheme: cmake-configure.{or1k/riscv}.{gcc/llvm}.sh
Choose, copy, modify and then execute this script. It will setup the build
environment for you.

Now you are ready to start compiling software!


# Compiling

Switch to the build folder and compile the application you are interested in:

make applicationName

This command will compile the application and generate stimuli for RTL simulation using ModelSim.


To compile the RTL using ModelSim, use

make vcompile


# Executing

To execute an application again CMake can be used. Switch to the build folder and execute

make applicationName.vsim

to start ModelSim in GUI mode.

To use console mode, use

make applicationName.vsimc

0 comments on commit 2557e78

Please sign in to comment.