laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39789?usp=email ) Change subject: sysmoOCTSIM/README: Describe how to build matching libosmocore ...................................................................... sysmoOCTSIM/README: Describe how to build matching libosmocore we currently require a libosmocore that's cross-compiled for this specific embedded target. This information was so far hidden in contrib/jenkins.sh - let's expose it to README.md (slightly modified command to install it to /usr/local/arm-none-eabi) Change-Id: I3392d134ed75dbdd558643aac6d58407e00d23ba --- M sysmoOCTSIM/README.md 1 file changed, 10 insertions(+), 1 deletion(-) Approvals: laforge: Looks good to me, approved Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve diff --git a/sysmoOCTSIM/README.md b/sysmoOCTSIM/README.md index 1927255..3eae229 100644 --- a/sysmoOCTSIM/README.md +++ b/sysmoOCTSIM/README.md @@ -24,7 +24,16 @@ GNU make and the arm-none-eabi-gcc compiler are required to build the firmware. -The compile the firmware, run the following commands: +Also, you will need a libosmocore built for arm-none-eabi installed to /usr/local/arm-none-eabi + +You can use the following commands (in the libosmocore directory) to build + +``` +./configure --prefix=/usr/local/arm-none-eabi --enable-static --host=arm-none-eabi --enable-embedded --disable-log-macros --disable-doxygen --disable-shared --disable-pseudotalloc --disable-libsctp --disable-libusb --disable-gb --enable-external-tests CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations -Wno-error=cpp -mthumb -Os -mlong-calls -g3 -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -I /my/path/to/osmo-ccid-firmware/sysmoOCTSIM -Wno-error=format" CPPFLAGS="-D__thread=''" +make install +``` + +To subsequently compile the firmware, run the following commands (in osmo-ccid-firmware): ``` cd sysmoOCTSIM/gcc -- To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39789?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ccid-firmware Gerrit-Branch: master Gerrit-Change-Id: I3392d134ed75dbdd558643aac6d58407e00d23ba Gerrit-Change-Number: 39789 Gerrit-PatchSet: 2 Gerrit-Owner: laforge <laforge@osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: pespin <pespin@sysmocom.de>