Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/native
AgeCommit message (Collapse)AuthorFilesLines
8 hoursBug 572878: Preserve file name when passing file to be signedJonah Graham1-4/+6
Do this by using a temp dir to store the unsigned files in rather than mangling the name Change-Id: I25d3b1fbb5751f8615266168a919990d9111204c
8 hoursBug 572878: Preserve file extension when passing file to be signedJonah Graham1-4/+4
Change-Id: I28d15a6430ac3860ba65f6414498793e22dffee0
8 hoursBug 572878: Fail build if curl fails by having curl return error codeJonah Graham1-2/+2
Change-Id: Iad5c276f0fbbda96a22d8fbf55d06485cf63f1d4
2021-04-29Bug 572875 and Bug 572878: Sign .jnilib/.dll in production buildsJonah Graham2-0/+50
Because the dll/jnilib is modified in place, the natives are qualified with their build date, rather than their git date as the checked-in libraries are not signed. Change-Id: I3078f5040f7ef9590bb4ab5d031dcb29b3c3bdde
2021-04-05Bug 572581: update jnilibs for new version of cdt-infraJonah Graham3-2/+2
rebuilt docker images have small binary differences in the jnilibs due to a rebuilt macOS toolchain being used. Change-Id: I25dc951e1e8c7c94a799d63a4c0db644d1f1be1e
2021-04-04Bug 572552 - CDT releng: update versions to 10.3.0Alexander Fedorov2-3/+13
Added missed license headers Updated baseline for the parent pom to CDT 10.2 Updated version for pom.xml to 10.3 Updated version for features and bundles to CDT 10.3 Updated copyright for about.properties to be 2021 Incremented version + 100 where needed Change-Id: I79666fcc0402fee6607499d7dce1eaf87a5f446d Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-12-19[releng] Increment feature and related versions to 10.2.0Jonah Graham2-2/+2
Change-Id: Icd135a588920fa25fd846dc285db5f83e5ac7037
2020-11-11Bug 568079: Reducing transitions from JAVA to native code (part 2)Torbjörn Svensson2-19/+5
Advapi32Util.registryGetValues() is more efficient to fetch all the values since the regiter only needs to be opened once. XXX: Due to a cycle in the dependencies we need to split this in two parts, this previous commit handles the core.native API change and this commit handles the use of the new API Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se> Change-Id: I960954e332e05dfebcd0263f983bbbc6c64d46af
2020-11-11Bug 568079: Reuse existing way of fetching data from registryTorbjörn Svensson5-60/+21
Use the WindowsRegistry implementation rather than having yet another implementation for reading the Windows registry in native code. Change-Id: If12068319ea3b99934112208a0a21538c792909c Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-06Bug 568079: Fix potential buffer overflowsTorbjörn Svensson5-3/+3
Change-Id: I79898944575f895bfe4d99ce2aabaa88ea58d678 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-06Bug 568079: Warnings as errorsTorbjörn Svensson2-1/+1
All compile warnings for native code should be handled. Change-Id: I5ee391fd24339cb55646dbd2980d2856fabe8ddb Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-01Bug 568079: Reformat source code using clang-formatTorbjörn Svensson5-638/+432
This will enforce formatting when building the native code Change-Id: I6c047f4c0672609df322b7ba716fc786f0e3aab4 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31Bug 568079: Activate -Wall -pedantic and fix warningsTorbjörn Svensson3-5/+8
Change-Id: I7dac7f9d90dd65cfbff241f9b778bc5ff6bc9db6 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31Bug 568079: Add missing bracersTorbjörn Svensson2-11/+6
Change-Id: Icd916d224d4900cf2227f868f8b94cdae13c3f6b Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-24Bug 568079: Format C/C++ codeTorbjörn Svensson7-18/+210
Added a new C/C++ formatter profile called "Unmanaged profile 'CDT'" (name stolen from the Java formatter) that is basically K&R with the tweak of maxium line width set to 120 (same width as for .java files). Added enforcement of the formatter during build. libspawner.so/jnilib have differences because the re-formatting changes line numbers and therefore the __LINE__ macro expands to a different value. Change-Id: Id3a0619cb31640c7817dc684c72139f90cab0fc6 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-06[releng] Bump version to 10.1.0Jonah Graham2-2/+2
Change-Id: I39f7c379c0b43c086a25b047b3af564f6f24d670
2020-09-03Bug 521515: Build ppc64le libraries on HIPPTorbjörn Svensson2-2/+3
Change-Id: Idd05e27e02b712a0eb6940ebf90a201509140681 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-31Bug 566511: [releng] Add missing UTF-8 encoding for all CDT projectsJonah Graham1-0/+2
Includes updates to code cleanliness script Change-Id: Ic495124285e3e002993f34dc12be5ad7337fe13b
2020-08-28Fixed "The value for X attribute is not externalized" warningTorbjörn Svensson3-2/+18
Change-Id: Ib2f0d85a0428a1f59cc7ccab6ebb8fd91ffa2a41 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-27Bug 521515: Do not rely on commit date for reproducible buildsTorbjörn Svensson2-13/+15
As mentioned in https://devblogs.microsoft.com/oldnewthing/20180103-00/?p=97705, Microsoft has stopped using the _IMAGE_FILE_HEADER.TimeDateStamp as a time stamp and rather as a hash of the source files to make the build result predictable. Change-Id: I4f4a7b9557330e4c478ef7fb25653144c5b2d4ad Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-24Bug 562494: Update BREE to Java 11Jonah Graham3-10/+32
Change-Id: I0c91aafc0cb1b179936acbd4c9df2d961899e3fa
2020-08-13Bug 521515: Generate JNI header files as part of buildTorbjörn Svensson5-5/+104
Also generate JNI header for serial component. This component does not really need it since the implementation is in one file only, but this would at least throw an error if the java part changes and the native part is not updated accordingly. Change-Id: Id598410c322580bdda37c905ed08627390c913ba Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-11Bug 565836: Add linux aarch64 for nativesJonah Graham3-0/+5
Note: the Windows dll is not actually modified, apart from the embedded date stamp to match the date of the jni/ modification Also-by: Liviu Ionescu <ilg@livius.net> Change-Id: Ice3d5e7ae5999a0e4d1866e76e515a91e30e9f11
2020-08-07Bug 521515: Align directory name of native source codeTorbjörn Svensson7-8/+8
The native directory can contain both libraries and utilities. In Gerrit https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/165270, there is a utility, so the directory name "jni", or even "library" does not work. In order to support both utilities and libraries, the suggested name of the directory is "native_src" and thus, this commit syncs that change in o.e.c.native.serial. Change-Id: Iafa9ce9ae1dca7ef563ab397e8b3eb0b8642372d Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-05-15Bug 543122: Add additional baud rates for serialJonah Graham9-43/+305
Includes new API to allow, on platforms that support it, setting and getting arbitrary rates. Change-Id: I0b1134325f913bb09d1bf0cd902f89e968d80570
2020-05-12[releng] Add missing API Analysis on Serial bundleJonah Graham1-0/+6
Change-Id: Idf6575eb13343d33e023d3c1fc4b7ee131651a37
2020-05-05Bug 562494: Updated libraries due to updated toolsJonah Graham4-2/+2
As part of the rebuild of the infra images to get new Java 11, we also got updated compilers that generate some different bytecodes for the native libraries. This commit brings things up to date. Change-Id: I1039a5e19172092353dc4e1ea7de1381c031d280
2020-04-11[releng] Bump version to 10.0.0Jonah Graham2-2/+2
Change-Id: I32f6f61835bdbad3cffd713965045c5097c8619f
2020-03-22[releng] Bump CDT version to 9.12.0Marco Stornelli2-2/+2
org.eclipse.cdt.debug.gdbjtag is bumped because of Bug 561343 Change-Id: I6dac283b7e9093662f57ac5c804021c4201ad6f1
2020-02-18Bug 521515: Bump version number of o.e.c.native.serialJonah Graham2-2/+2
Change-Id: I17b97079c7a3da6df78376b657014dbb81fe60ef
2020-02-18Bug 521515: Document current state of building natives via MavenJonah Graham2-19/+1
See also Bug 560273. Change-Id: If34c4f00ff77efaeb74368c3231a3f475d6410ed
2019-12-07[releng] Bump to CDT version 9.11.0Jonah Graham2-2/+2
Change-Id: If729509efbddc71adb565e224437b76089d6e099
2019-11-04Bug 551458 Fixed distortion produced by serial terminal in Ubuntuakhalid8lf4-0/+3
Revert serial.dll as the change does not impact windows Change-Id: I968a3f40e8222a46d077aa5c6fde0a19740bd0a9 Signed-off-by: akhalid8lf <abdullah.dev0@gmail.com>
2019-11-04Bug 521515: [releng] Build o.e.cdt.native.serial natives using dockerJonah Graham7-6/+109
Steps: 1. Edit and commit change 2. docker run --rm -it -v $(git rev-parse --show-toplevel):/work -w /work/$(git rev-parse --show-prefix) quay.io/eclipse-cdt/cdt-infra-eclipse-full:latest make -C jni rebuild 3. GIT_COMMITTER_DATE=$(git log -1 --pretty=format:%cI -- .) git commit --amend -a --reuse-message=HEAD Change-Id: I9d9a576fd2eb1c5edd874098d08564ecdfa6ba09
2019-10-16[releng] Bump to CDT version 9.10.0Jonah Graham2-2/+2
Change-Id: I027e7e5542fda3e599ee476814593fc4b464adca
2019-09-05Bug 550702: Fixed memory leak in SerialPort.open0()Torbjörn SVENSSON4-0/+2
Change-Id: I2bb1cd8c19addda7955886b8cb582d0effe64f4e Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2019-09-05Bug 482946: Implement InputStream.available()Torbjörn SVENSSON5-0/+38
Change-Id: Iac15816fd4d68206184549c7b47670f9d3137527 Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2019-09-03Bug 550697: Also set DCB.Parity=NOPARITY on WindowsTorbjörn SVENSSON4-0/+2
Some serial port drivers on Windows, notably usbser.sys, does not care about DCB.fParity and only relies on DCB.Parity to contain the correct value. In the case where we need to configure it for no parity, the DCB.Parity field needs to be explicitly set to NOPARITY. The above statment has been checked using Wireshark and look at the SET LINE CODING Request package (it contained ODDPARITY although DCB.fParity=FALSE). The statement was also somewhat confirmed by this post: https://stackoverflow.com/questions/36411498. Change-Id: I2e2ab3da5da547e0420e3e61f91452ef0edeb755 Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2019-06-19Remove remnants of no longer supported archesMat Booth6-20/+2
Change-Id: I9fb7caf1345dff8dd33964bf62f1bc1b513fa8b3 Signed-off-by: Mat Booth <mat.booth@redhat.com>
2019-06-11[releng] Bump version to 9.9.0Jonah Graham2-2/+2
Change-Id: I6641e51a8bfdb44fa5c646d97debf2bf814c107a
2019-03-19Build with Eclipse 2019-03 dependenciesMarc-Andre Laperle1-94/+0
CDT nows defaults to targetting Eclipse 4.11 along with dependencies in the Eclipse 2019-03 simultaenous release. Once consequence is that 32-bit and ppc64 fragments are removed. Change-Id: I032fedb27a4e5086f10051b3b2ca9c9c59c3b965 Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-03-01[releng] Bump version to 9.8.0Jonah Graham2-2/+2
Change-Id: I3861d4c5d0eecaf9dd370f269a655e666b60561a
2019-01-08Bug 542849: List serial devices starting with ttySWaqas Ilyas3-3/+3
Change-Id: I874bdebaec7a04257a81aea4c8419f3a783cdf12 Signed-off-by: Waqas Ilyas <waqas.ilyas@gmail.com>
2018-12-10[releng] Bump version to 9.7.0Jonah Graham2-2/+2
Change-Id: Icaa0b6acf73e3a19e0d102fa8ae784e631d8743a
2018-11-24Bug 540373: Update the compiler warnings/ignoresJonah Graham1-1/+1
The previous alignment of all the warnings/ignores led to too many warnings that weren't there before. This commit relaxes them a bit. The core/org.eclipse.cdt.core/.settings/org.eclipse.jdt.core.prefs is still the "master" copy, with releng/scripts/check_code_cleanliness.sh containing the exceptions that apply to test plug-ins. Change-Id: Ibd4e31ade0b42b31e7cbe5a94f06c6fc15183a56
2018-11-22Bug 540373: Cleanup: Format & Remove trailing whitespaceJonah Graham6-96/+52
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Format source code - Remove trailing white spaces on all lines and completing the wizard Change-Id: I63685372c6bcc67719bcf145123bcb72e5b00394
2018-11-22Bug 540373: Standard .settings auto appliedJonah Graham5-0/+812
The releng/scripts/apply_jdt_prefs_to_all_projects.sh was run to copy standard settings to all other projects. Change-Id: I4436c947d7f0142f56b709e661379c3eb54f666b
2018-11-22Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.shJonah Graham11-50/+91
Change-Id: Ifbb1d5af2a00bd5634dea200320e8c4303ffca6c
2018-11-22Bug 540371: normalize files before applying EPLv2Jonah Graham1-2/+2
Change-Id: I8bfd427bba1df18579d6d5e58ad1e5d704485050
2018-10-30Bug 540610 - Add Automatic-Module-Name headerKarsten Thoms1-0/+1
Change-Id: Ia990b24469751050dd9ec8f9b5550804816308b3 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>

Back to the top