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

Add renode-cli #28944

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5b1d320
Add renode-cli
MementoRC Jan 26, 2025
fca5890
(fix) remove selectors. fix typos
MementoRC Jan 27, 2025
b29216e
(fix) add tests requirements
MementoRC Jan 27, 2025
9e65189
(fix) separate arch/noarch
MementoRC Jan 28, 2025
bded9e6
(fix) update renode-cores for non-unix
MementoRC Jan 28, 2025
ab99f31
(fix) update renode-cores for non-unix
MementoRC Jan 28, 2025
c8a4e1b
(fix) use .bat for non-unix
MementoRC Jan 28, 2025
37d1d27
(wip) damn working with win is like pulling teeth
MementoRC Jan 28, 2025
3388248
(fix) use PS1
MementoRC Jan 28, 2025
e66d7d7
(ref) clean unix
MementoRC Jan 29, 2025
309d872
(fix) call 'cleaned-out' function
MementoRC Jan 29, 2025
35e9924
(fix) unix script args. permissions on non-unix
MementoRC Jan 29, 2025
4606fb7
(fix) unix typos. ppc64 not on win?
MementoRC Jan 29, 2025
51bc4e6
(wip) built non-unix till tests
MementoRC Jan 29, 2025
37927b8
(ref) clean non-unix
MementoRC Jan 29, 2025
413f1f9
(fix) tests fail?
MementoRC Jan 29, 2025
4339a60
(fix) test script: hardcode pkg_name
MementoRC Jan 30, 2025
f206438
(fix) dynamic libraries loader?
MementoRC Jan 30, 2025
cab5f38
(fix) arm64 asm code
MementoRC Jan 31, 2025
020a069
(ref) remove build.sh patch
MementoRC Jan 31, 2025
0d3e416
(dev) remove patches, switch to arch renode-cli
MementoRC Jan 31, 2025
a663b6e
(wip) solved ppc64 non-unix. Odd 'do' fail
MementoRC Jan 31, 2025
4d819f2
(wip) closing in on that wraith of an OS
MementoRC Feb 1, 2025
dc9010d
(dev) sed error?
MementoRC Feb 1, 2025
9094271
(fix) win: .so not copied to cli. arm64: clobbered
MementoRC Feb 2, 2025
b306356
(fix) win build update
MementoRC Feb 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
(fix) unix script args. permissions on non-unix
  • Loading branch information
MementoRC committed Jan 29, 2025
commit 35e9924b409a6a250ce8c26837c24a175cc8faf9
1 change: 1 addition & 0 deletions recipes/renode-cores/build.bat
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ set "CORES_PATH=%SRC_DIR%\src\Infrastructure\src\Emulator\Cores"
set "CORES_BIN_PATH=%CORES_PATH%\bin\%CONFIGURATION%"

mkdir "%PREFIX%\Library\lib\%PKG_NAME%"
icacls "%PREFIX%\Library\lib\%PKG_NAME%" /grant Users:(OI)(CI)F /T
robocopy "%CORES_BIN_PATH%\lib" "%PREFIX%\Library\lib\%PKG_NAME%" /E /COPY:DATSO
if %errorlevel% neq 0 exit /b %errorlevel%

52 changes: 28 additions & 24 deletions recipes/renode-cores/helpers/renode_build_with_cmake.sh
Original file line number Diff line number Diff line change
@@ -13,43 +13,47 @@ HOST_ARCH="i386"
CMAKE_COMMON=""

function print_help() {
echo "Usage: $0 [-cdvspnt] [-b properties-file.csproj] [--no-gui] [--skip-fetch] [--profile-build] [--tlib-only] [--tlib-export-compile-commands] [--tlib-arch <arch>] [--host-arch i386|aarch64] [-- <ARGS>]"
echo "Usage: $0 [--no-gui] [--net] [--tlib-only] [--host-arch i386|aarch64] [-- <ARGS>]"
echo
echo "--no-gui build with GUI disabled"
echo "--net build with dotnet"
echo "--tlib-only only build tlib"
echo "--host-arch <arch> specify host architecture (i386 or aarch64)"
echo "<ARGS> arguments to pass to the build system"
}

while getopts "vnstb:o:B:F:a:-:" opt
do
case $opt in
-)
case $OPTARG in
"no-gui")
HEADLESS=true
;;
"net")
NET=true
;;
"host-arch")
shift $((OPTIND-1))
HOST_ARCH=$1
OPTIND=2
;;
*)
print_help
exit 1
;;
esac
OPTIONS=$(getopt -o vhnt: -l "no-gui,net,tlib-only,host-arch:" -n "$0" -- "$@")
eval set -- "$OPTIONS"

while true; do
case $1 in
--no-gui)
HEADLESS=true
shift
;;
--net)
NET=true
shift
;;
--tlib-only)
TLIB_ONLY=true
shift
;;
--host-arch)
shift
HOST_ARCH=$1
shift
;;
--)
shift
break
;;
\?)
*)
print_help
exit 1
;;
esac
done
shift "$((OPTIND-1))"

if [ -n "${PLATFORM:-}" ]
then
Loading