Skip to content

CMake changes from main branch [PR: #557, PR: #742]#803

Merged
tony-josi-aws merged 28 commits intoFreeRTOS:dev/IPv6_integrationfrom
tony-josi-aws:cpick_main_cmake_changes_v3
Mar 27, 2023
Merged

CMake changes from main branch [PR: #557, PR: #742]#803
tony-josi-aws merged 28 commits intoFreeRTOS:dev/IPv6_integrationfrom
tony-josi-aws:cpick_main_cmake_changes_v3

Conversation

@tony-josi-aws
Copy link
Copy Markdown
Member

@tony-josi-aws tony-josi-aws commented Mar 20, 2023

Description

This PR updates the cmake changes added to the main branch to the dev/IPv6_integration branch and related fix for warnings and build errors.

PRs:

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

Updating dev/IPv6_integration branch wrt. main.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tony-josi-aws tony-josi-aws requested a review from a team as a code owner March 20, 2023 10:51
@tony-josi-aws tony-josi-aws force-pushed the cpick_main_cmake_changes_v3 branch from 6625e59 to 12256f0 Compare March 20, 2023 11:03
@tony-josi-aws
Copy link
Copy Markdown
Member Author

/bot run uncrustify

@tony-josi-aws
Copy link
Copy Markdown
Member Author

/bot run uncrustify

@tony-josi-aws tony-josi-aws force-pushed the cpick_main_cmake_changes_v3 branch from 8bbe140 to edec1c9 Compare March 20, 2023 11:56
@tony-josi-aws
Copy link
Copy Markdown
Member Author

/bot run uncrustify

@tony-josi-aws tony-josi-aws force-pushed the cpick_main_cmake_changes_v3 branch from b22c45c to 65d7121 Compare March 20, 2023 15:33
Comment thread .github/workflows/ci.yml
Comment thread source/FreeRTOS_DHCPv6.c Outdated
Comment thread source/FreeRTOS_ND.c Outdated
@tony-josi-aws
Copy link
Copy Markdown
Member Author

/bot run uncrustify

@tony-josi-aws tony-josi-aws force-pushed the cpick_main_cmake_changes_v3 branch from 07f3255 to e0b9162 Compare March 22, 2023 06:38
Copy link
Copy Markdown
Contributor

@htibosch htibosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Tony for this PR.
I only have some minor comments, mostly about printf() formats for logging and some casts.

Comment thread source/FreeRTOS_DHCPv6.c Outdated
Comment thread source/FreeRTOS_DHCPv6.c Outdated
Comment thread source/FreeRTOS_IP_Utils.c
Comment thread source/include/FreeRTOS_Sockets.h
Comment thread source/FreeRTOS_DNS_Parser.c
Comment thread source/FreeRTOS_RA.c Outdated
Comment thread source/FreeRTOS_RA.c Outdated
Comment thread source/FreeRTOS_IPv6.c Outdated
Comment thread source/FreeRTOS_Routing.c Outdated
Comment thread source/FreeRTOS_TCP_Transmission.c
@tony-josi-aws
Copy link
Copy Markdown
Member Author

/bot run uncrustify

@tony-josi-aws tony-josi-aws force-pushed the cpick_main_cmake_changes_v3 branch from a4f9a46 to c5dc60d Compare March 24, 2023 09:08
Comment thread source/FreeRTOS_DHCPv6.c Outdated
else
{
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u byt4es\n", sizeof( *pxEndPoint->pxDHCPMessage ) ) );
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u bytes\n", ( unsigned ) sizeof( *pxEndPoint->pxDHCPMessage ) ) );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for consistency -

Suggested change
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u bytes\n", ( unsigned ) sizeof( *pxEndPoint->pxDHCPMessage ) ) );
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u bytes\n", ( unsigned int ) sizeof( *pxEndPoint->pxDHCPMessage ) ) );

xSet.usPortNumber = usPort;
xSet.ppxLastAddress = &( xSet.pxLastAddress );

#if ( ipconfigUSE_LLMNR == 1 )
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would the right change be to replace #ifndef _lint with #if ( ipconfigUSE_LLMNR == 1 )?

Comment thread source/FreeRTOS_DNS_Parser.c Outdated

/* Not used for now */
( void ) uxBufferLength;
( void ) uxBytesNeeded;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the local variables if they are not used.

Comment thread source/FreeRTOS_TCP_Utils_IPV6.c Outdated
uint32_t ulMSS = ipconfigTCP_MSS;

#if ( ipconfigHAS_DEBUG_PRINTF == 1 )
char cBuffer[ 40 ];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would cIPv6Address be a better name?


#endif

extern const struct xIPv6_Address FreeRTOS_in6addr_any;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good!

Comment thread test/build-combination/Common/main.c Outdated
}
/*-----------------------------------------------------------*/

void vLoggingPrintf( const char * pcFormat,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed as configPRINTF is defined to empty?

Comment thread test/build-combination/Common/main.c Outdated

void vAssertCalled( const char * pcFile,
uint32_t ulLine )
unsigned long ulLine )
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this function needed given the configASEERT is not defined?

@tony-josi-aws
Copy link
Copy Markdown
Member Author

/bot run uncrustify

@tony-josi-aws tony-josi-aws force-pushed the cpick_main_cmake_changes_v3 branch from 7417153 to 6e056ee Compare March 26, 2023 08:56
@tony-josi-aws tony-josi-aws merged commit 8926945 into FreeRTOS:dev/IPv6_integration Mar 27, 2023
HTRamsey pushed a commit to HTRamsey/FreeRTOS-Plus-TCP that referenced this pull request Jun 19, 2023
…reeRTOS#803)

* 556 Initial Cmake Module definition. FreeRTOS#557

* renaming variables that have conflicting names with MSC and *nix headers

* fix build issue for posix port

* Fix warning: -Waddress-of-packed-member when calculating checksum directly from network packets

* fix warnings with prvInitialiseTCPFields declaration

* removing macros that hides the structure fields

* Updating build check enable all config to enable all config macros

* CMake: Fix GIT_REPOSITORY and GIT_TAG (FreeRTOS#742)

* moving ipTRUE_BOOL and ipFALSE_BOOL out of #ifndef pdTRUE_SIGNED check as they are not defined in kernel

* minor fix to the cmake files and main file

* Uncrustify: triggered by comment.

* adding doxygen comments to new functions

* Uncrustify: triggered by comment

* Add more warnings check and fix warnings

* Uncrustify: triggered by comment

* fix review feedback and more debug printf warnings fix

* more warnings fix

* fix misra issues

* Uncrustify: triggered by comment

* replace sin_addr with sin_address.ulIP_IPv4 in +TCP demos

* replace sin_addr6 with sin_address.xIP_IPv6 in +TCP demos

* replace freertos_sockaddr6 with freertos_sockaddr in +TCP demos

* review feedback changes

* removing duplicate def for prvStreamBufferAdd from winpcap

* fix more warnings from MSVC

* Uncrustify: triggered by comment

* review feedback changes

* Uncrustify: triggered by comment

---------

Co-authored-by: phelter <paulheltera@gmail.com>
Co-authored-by: Nikhil Kamath <110539926+amazonKamath@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants