1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00
Commit graph

67 commits

Author SHA1 Message Date
Torbjörn Svensson
5249144c8c Bug 521515: Build ppc64le libraries on HIPP
Change-Id: Idd05e27e02b712a0eb6940ebf90a201509140681
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-09-02 20:27:03 -04:00
Jonah Graham
0cb1f7482a Bug 566511: [releng] Add missing UTF-8 encoding for all CDT projects
Includes updates to code cleanliness script

Change-Id: Ic495124285e3e002993f34dc12be5ad7337fe13b
2020-08-30 20:02:41 -04:00
Torbjörn Svensson
f6016c5e0b Fixed "The value for X attribute is not externalized" warning
Change-Id: Ib2f0d85a0428a1f59cc7ccab6ebb8fd91ffa2a41
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28 21:32:18 +02:00
Torbjörn Svensson
07b50ba2a2 Bug 521515: Do not rely on commit date for reproducible builds
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-27 15:42:44 -04:00
Jonah Graham
fd9382d8a9 Bug 562494: Update BREE to Java 11
Change-Id: I0c91aafc0cb1b179936acbd4c9df2d961899e3fa
2020-08-24 17:50:56 -04:00
Torbjörn Svensson
a025f75771 Bug 521515: Generate JNI header files as part of build
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-13 10:13:52 +02:00
Jonah Graham
149ccaffcc Bug 565836: Add linux aarch64 for natives
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-11 17:17:34 -04:00
Torbjörn Svensson
69acfe4819 Bug 521515: Align directory name of native source code
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-08-06 20:54:52 -04:00
Jonah Graham
da0d1d7df6 Bug 543122: Add additional baud rates for serial
Includes new API to allow, on platforms that support it, setting
and getting arbitrary rates.

Change-Id: I0b1134325f913bb09d1bf0cd902f89e968d80570
2020-05-15 14:32:47 -04:00
Jonah Graham
d39ea6ace6 [releng] Add missing API Analysis on Serial bundle
Change-Id: Idf6575eb13343d33e023d3c1fc4b7ee131651a37
2020-05-11 20:32:33 -04:00
Jonah Graham
69c551ab04 Bug 562494: Updated libraries due to updated tools
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-05-05 12:43:22 -04:00
Jonah Graham
d66d3e8e85 [releng] Bump version to 10.0.0
Change-Id: I32f6f61835bdbad3cffd713965045c5097c8619f
2020-04-11 17:46:58 -04:00
Marco Stornelli
c2f51a8d23 [releng] Bump CDT version to 9.12.0
org.eclipse.cdt.debug.gdbjtag is bumped because of Bug 561343

Change-Id: I6dac283b7e9093662f57ac5c804021c4201ad6f1
2020-03-22 14:05:17 -04:00
Jonah Graham
0c21abb3a6 Bug 521515: Bump version number of o.e.c.native.serial
Change-Id: I17b97079c7a3da6df78376b657014dbb81fe60ef
2020-02-18 11:34:11 -05:00
Jonah Graham
9204702e8d Bug 521515: Document current state of building natives via Maven
See also Bug 560273.

Change-Id: If34c4f00ff77efaeb74368c3231a3f475d6410ed
2020-02-18 11:02:02 -05:00
Jonah Graham
bd814fdaf9 [releng] Bump to CDT version 9.11.0
Change-Id: If729509efbddc71adb565e224437b76089d6e099
2019-12-07 15:24:34 -05:00
akhalid8lf
6fa96ca549 Bug 551458 Fixed distortion produced by serial terminal in Ubuntu
Revert serial.dll as the change does not impact windows

Change-Id: I968a3f40e8222a46d077aa5c6fde0a19740bd0a9
Signed-off-by: akhalid8lf <abdullah.dev0@gmail.com>
2019-11-04 07:19:51 -05:00
Jonah Graham
29369a555c Bug 521515: [releng] Build o.e.cdt.native.serial natives using docker
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-11-04 07:19:27 -05:00
Jonah Graham
2f5f4d50a2 [releng] Bump to CDT version 9.10.0
Change-Id: I027e7e5542fda3e599ee476814593fc4b464adca
2019-10-16 10:55:28 -04:00
Torbjörn SVENSSON
63e37acaac Bug 550702: Fixed memory leak in SerialPort.open0()
Change-Id: I2bb1cd8c19addda7955886b8cb582d0effe64f4e
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2019-09-05 15:03:25 +02:00
Torbjörn SVENSSON
764e42ef50 Bug 482946: Implement InputStream.available()
Change-Id: Iac15816fd4d68206184549c7b47670f9d3137527
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2019-09-05 15:02:05 +02:00
Torbjörn SVENSSON
1c4271836b Bug 550697: Also set DCB.Parity=NOPARITY on Windows
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-09-03 17:41:53 +02:00
Mat Booth
d07a2c5bf6 Remove remnants of no longer supported arches
Change-Id: I9fb7caf1345dff8dd33964bf62f1bc1b513fa8b3
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2019-06-19 16:10:21 -04:00
Jonah Graham
f3e8387a8e [releng] Bump version to 9.9.0
Change-Id: I6641e51a8bfdb44fa5c646d97debf2bf814c107a
2019-06-11 12:33:48 -04:00
Marc-Andre Laperle
040372be48 Build with Eclipse 2019-03 dependencies
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-18 20:44:27 -04:00
Jonah Graham
cdc99feef2 [releng] Bump version to 9.8.0
Change-Id: I3861d4c5d0eecaf9dd370f269a655e666b60561a
2019-03-01 13:25:21 +00:00
Waqas Ilyas
a05bc1a576 Bug 542849: List serial devices starting with ttyS
Change-Id: I874bdebaec7a04257a81aea4c8419f3a783cdf12
Signed-off-by: Waqas Ilyas <waqas.ilyas@gmail.com>
2019-01-08 15:14:07 -05:00
Jonah Graham
677cc2cf63 [releng] Bump version to 9.7.0
Change-Id: Icaa0b6acf73e3a19e0d102fa8ae784e631d8743a
2018-12-10 13:50:44 +00:00
Jonah Graham
37ed2c406d Bug 540373: Update the compiler warnings/ignores
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-24 10:55:06 +00:00
Jonah Graham
170e654b47 Bug 540373: Cleanup: Format & Remove trailing whitespace
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-22 21:47:02 +00:00
Jonah Graham
35996a5c5c Bug 540373: Standard .settings auto applied
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-22 21:47:02 +00:00
Jonah Graham
f70a8b35c1 Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh
Change-Id: Ifbb1d5af2a00bd5634dea200320e8c4303ffca6c
2018-11-22 20:31:51 +00:00
Jonah Graham
f0ce92d3b5 Bug 540371: normalize files before applying EPLv2
Change-Id: I8bfd427bba1df18579d6d5e58ad1e5d704485050
2018-11-22 20:30:13 +00:00
Karsten Thoms
652602febd Bug 540610 - Add Automatic-Module-Name header
Change-Id: Ia990b24469751050dd9ec8f9b5550804816308b3
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-10-30 15:49:15 +01:00
William Riley
f3ca365140 Bug 540367 - Increment version numbers
Change-Id: I4a355170a7075f0a98ba3c1a5131c235c89b07d2
2018-10-23 11:20:31 -04:00
Doug Schaefer
29ed1fa6c4 Revert "Bug 534286. Made read(byte[],int,int) blocking"
This reverts commit e5c7bb64f7.

Change-Id: I565f9eb2728d0ff0199e61f3f25df4aa0b64f17b
(cherry picked from commit e6550c7a10)
2018-06-17 00:13:56 -04:00
Jonah Graham
4d5204c771 [releng] Bump version to 9.6.0
Change-Id: I1618eaeab14b421155af733a73e36f6e37ea0b85
2018-06-05 22:13:24 +01:00
Waqas Ilyas
e5c7bb64f7 Bug 534286. Made read(byte[],int,int) blocking
Added a loop in read(byte[], int, int) to block until any input is
available. Or until the port is closed, or an exception occurs.

Change-Id: I1ead6f465571274e77e74de685b8185c8cdde108
Signed-off-by: Waqas Ilyas <waqas.ilyas@gmail.com>
2018-05-28 10:36:44 -04:00
Waqas Ilyas
b768556355 Bug 482950. Reset the read pointer when array is filled with new data
Change-Id: I4bc9d2969d4ef69657d8a825659cafbc3680119c
Signed-off-by: Waqas Ilyas <waqas.ilyas@gmail.com>
2018-05-02 21:54:05 +01:00
Jonah Graham
3afc828ae0 [releng] Bump version to 9.5.0
Change-Id: Ie342f02f7aae633f41a7ab7d39c21e056793a04a
2018-02-13 11:25:08 +00:00
Mat Booth
b50ba14831 Bug 530620 - Hook build of native serial port driver into maven build
In the same vein as commit dff6b3bae3, this commit adds profiles
to trigger the build of the serial port component for the current
architecture, only when the profile is activated.

The serial port makefile is also improved to support building for
ppc64 and ppc64le architectures and to honour CFLAGS and LDFLAGS
that might be set in the environment, such as during RPM build.

I also hooked in the makefile "clean" targets so that invoking
"mvn clean verify" will do the right thing.

This simplifies the build for downstreams building from source
significantly.

Change-Id: Ie8cea95d953b256a1f62b77c76370ed7b3d81cee
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2018-02-08 11:41:27 -05:00
Doug Schaefer
89d45ef7fd Bug 515305 - Fix 32-bit serial port dll
It was depending on the libgcc dll. Changed to link it
statically.

Change-Id: Ifd8610c78d3861f3c4cd82fde3bb47f5c3afe594
2017-11-30 11:11:24 -05:00
Doug Schaefer
15c8bad95d Serial Flash Target and Launch. Clean up Generic Launch.
Adds target, launch classes, and launch bar support for targets
intended to upload their code to flash using a Serial Port. The
port is co-ordinated with the Serial Terminal so that the terminal
is paused during the upload.

Also cleaned up the Generic Launch so it's not using the
External Tools launch which has a number of UX issues. This
simplifies the settings and gives us more control. And it's made
reusable for the Serial Flash launch.

Change-Id: I31e9970243fbf1cf22d027bbdb892fde104dbefe
2017-11-13 15:56:57 -05:00
Doug Schaefer
11dcec43f2 Add UI tests plugin for CMake. Fix a couple of bugs it found.
Also restructures the pom.xmls to put the modules in the top level
so we can order them to have the test plugins build after them.

Change-Id: I2f0e4ebd252791fb8844cdf0f635d574946207aa
2017-10-06 16:36:51 -04:00
Doug Schaefer
d6dccc8558 Fix serial port naming on Windows to ensure get() method works.
Change-Id: Ida9b9568280b9530c8e7ff55b45e503889208dd1
(cherry picked from commit 34a3a01259)
2017-06-19 10:21:25 -04:00
Doug Schaefer
0880413e98 Bug 516836 Terminal support for Arduino.
Add Arduino Serial Monitor as a Terminal Connector type. It uses the
Terminal's new cdtserial connector for communication and adds a
config panel that lets you pick the Arduino remote connection to
auto select the serial port. Also switched the Arduino launch
to fetch the serial port out of the global registry to pause and
resume the port while launching. The Terminal does not use the
remote connection to get the serial port.

Note: also adding the terminal as a dependency for builds. Yes,
further adds to our build cycle, but we're dealing with it so far
with o.e.remote.

Change-Id: I5a7cc9ffbf8ae60cd86e0e5440547d12202acbac
2017-05-23 16:41:00 -04:00
Doug Schaefer
4b2e1e5b41 Add a registry of open Serial Ports.
This will be used by components that need to pause an open serial
port to run some other functionality over the port. For example,
Arduino needs to pause the port to run the bootloader. This removes
the need for Serial ports to use o.e.remote.

Change-Id: Idb14598541ccf4e87c702cf2e5442335c64a6c65
2017-05-15 16:06:39 -04:00
Zoltan Adasz
4572eb75f0 Bug 509118. Extend regexp to detect devices in /dev for Linux.
Change-Id: I1dfcca8f34019a210702473afb946b2a76cb37d7
Signed-off-by: Zoltan Adasz <adanrg@gmail.com>
2017-03-23 16:32:08 -04:00
Marc-Andre Laperle
0046099052 releng: Make use of Tycho POM-less functionality
This removes a lot of pom.xml from the source tree. This is using the
"POM-less" Tycho functionality.
See
https://wiki.eclipse.org/Tycho/Release_Notes/0.24#POM-less_Tycho_builds

One advantage of this is that you do not need to update the version in
the pom.xml when you change it in the MANIFEST.MF because the pom.xml is
automatically generated. This also reduces a lot of the duplicated
information and pom.xml repetition.

- Maven 3.3 and up is required.
- Only eclipse-plugins and eclipse-features can be pom-less.
Repositories, target and others still have pom.xml.
- New parent poms are added because a parent is necessary directly one
level above the plug-in/feature that will have its pom generated
- Some test plug-ins had to be renamed .test -> .tests because it's
required so that it detects that it's a test plug-in
- Some suites were renamed so that they all use the same consistent name
"AutomatedIntegrationSuite"
- Profiles were added for the more common test configurations. They are
activated by the presence of simple .properties files that only serve to
activate the correct profile. The profiles:
  - One for UI tests (UI present and start in UI thread)
  - One for SWTBot tests (UI present and do not start in UI thread)
Other test plug-ins that are too different are kept intact and still
have
a pom.xml
- Fragments are kept intact since they all have different target
platform configurations

Change-Id: I9d73380eb766f547830c552daf08053a30b1845c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-13 23:19:56 -04:00
Doug Schaefer
26569fbf72 Fixes for Windows Serial Port.
Cleaned up some error messages. Especially when a system has no
serial ports. Also added a delay when ports are closed since some
serial port drivers (FDTI in particular) take a bit longer to
properly close. Especially important in pause situations where we
want to use the serial port for some other purpose right away.

Change-Id: Ifc9b7171682962e0aed8e9ed9ebf5472fc9e8206
(cherry picked from commit db3d5974e6)
2017-01-20 09:59:51 -05:00