mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-10 06:51:23 +02:00
The non-recursive automake "distdir" recipe inlines the entire $(DISTFILES)
list into a single shell command. Enumerating every IDE integration file
individually made that list large enough (~123 KB) that the recipe exceeded
the Linux MAX_ARG_STRLEN (128 KB) single-argument exec limit, so "make dist"
failed with:
/bin/bash: Argument list too long
make[2]: *** [distdir-am] Error 127
Replace the per-file EXTRA_DIST enumeration of the IDE directories with one
wholesale "EXTRA_DIST += IDE/<dir>" entry per directory (automake copies the
tree recursively). This collapses ~745 file entries into ~52 directory
entries and shrinks the top-level DISTFILES from ~123 KB to ~97 KB, well
under the limit.
The set of distributed IDE files is unchanged: a before/after "make dist"
diff shows no project file added or removed (only the now-unused include.am
build fragments are gone). Three directories that intentionally omit some
tracked files (apple-universal, MPLABX16, Renesas - private IDE configs,
.gitkeep placeholders, helper scripts) stay enumerated file-by-file.
#How to build with MQX
Overview
This Makefile is for building wolfSSL library and sample programs running with MQX. It has following targets.
- wolfssllib: wolfSSL static library (libwolfssl.a)
- test: crypt test
- benchmark: cypher benchmark
- client: TLS client example
- server: TLS server example
Prerequisites
- Installed GCC Download from GNU Arm Embedded Toolchain at https://developer.arm.com/
- Installed MQX Download Freescale MQX RTOS 4.1 or later at https://www.nxp.com/ Follow Freescale_MQX_4_1/doc/MQX_Getting_Started.pdf
Setup
-
wolfSSL configuration parameters You can add or remove configuration options in /IDE/MQX/user_settings.h.
-
Setup Makefile MQX_ROOT: MQX source code installed path MQXLIB: MQX library path to like with CC: compiler AR: archiver WOLF_ROOT: change this if you move this Makefile location