Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix K32W platform build #4556

Merged
merged 1 commit into from
Jan 29, 2021
Merged

Conversation

mspang
Copy link
Contributor

@mspang mspang commented Jan 28, 2021

This fixes the following errors with the K32W build:

ERROR at //src/platform/K32W/BLEManagerImpl.cpp:29:11: Include not allowed.
#include <crypto/CHIPCryptoPAL.h>
^---------------------
It is not in any dependency of
//src/platform:platform
The include file is in the target(s):
//src/crypto:crypto
which should somehow be reachable.

and

../../src/platform/K32W/BLEManagerImpl.cpp: In member function 'void chip::DeviceLayer::Internal::BLEManagerImpl::HandleRXCharWrite(chip::DeviceLayer::Internal::BLEManagerImpl::blekw_msg_t*)':
../../src/platform/K32W/BLEManagerImpl.cpp:1097:11: error: 'PacketBuffer' has not been declared
1097 | buf = PacketBuffer::NewWithAvailableSize(writeLen);
| ^~~~~~~~~~~~
../../src/platform/K32W/BLEManagerImpl.cpp:1115:49: error: 'class chip::System::PacketBufferHandle' has no member named 'Release_ForNow'
1115 | event.CHIPoBLEWriteReceived.Data = buf.Release_ForNow();
|

This fixes the following errors with the K32W build:

  ERROR at //src/platform/K32W/BLEManagerImpl.cpp:29:11: Include not allowed.
  #include <crypto/CHIPCryptoPAL.h>
	    ^---------------------
  It is not in any dependency of
    //src/platform:platform
  The include file is in the target(s):
    //src/crypto:crypto
  which should somehow be reachable.

and

  ../../src/platform/K32W/BLEManagerImpl.cpp: In member function 'void chip::DeviceLayer::Internal::BLEManagerImpl::HandleRXCharWrite(chip::DeviceLayer::Internal::BLEManagerImpl::blekw_msg_t*)':
  ../../src/platform/K32W/BLEManagerImpl.cpp:1097:11: error: 'PacketBuffer' has not been declared
   1097 |     buf = PacketBuffer::NewWithAvailableSize(writeLen);
	|           ^~~~~~~~~~~~
  ../../src/platform/K32W/BLEManagerImpl.cpp:1115:49: error: 'class chip::System::PacketBufferHandle' has no member named 'Release_ForNow'
   1115 |         event.CHIPoBLEWriteReceived.Data  = buf.Release_ForNow();
	|
@mspang mspang added the hotfix urgent fix needed, can bypass review label Jan 28, 2021
Copy link
Contributor

@woody-apple woody-apple left a comment

Choose a reason for hiding this comment

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

@mspang Can you please file an issue (if you haven't already) for CI for this?

@woody-apple
Copy link
Contributor

Forcing this in, given hot fix.

@woody-apple woody-apple merged commit 4863248 into project-chip:master Jan 29, 2021
austinh0 pushed a commit to austinh0/connectedhomeip that referenced this pull request Feb 3, 2021
This fixes the following errors with the K32W build:

  ERROR at //src/platform/K32W/BLEManagerImpl.cpp:29:11: Include not allowed.
  #include <crypto/CHIPCryptoPAL.h>
	    ^---------------------
  It is not in any dependency of
    //src/platform:platform
  The include file is in the target(s):
    //src/crypto:crypto
  which should somehow be reachable.

and

  ../../src/platform/K32W/BLEManagerImpl.cpp: In member function 'void chip::DeviceLayer::Internal::BLEManagerImpl::HandleRXCharWrite(chip::DeviceLayer::Internal::BLEManagerImpl::blekw_msg_t*)':
  ../../src/platform/K32W/BLEManagerImpl.cpp:1097:11: error: 'PacketBuffer' has not been declared
   1097 |     buf = PacketBuffer::NewWithAvailableSize(writeLen);
	|           ^~~~~~~~~~~~
  ../../src/platform/K32W/BLEManagerImpl.cpp:1115:49: error: 'class chip::System::PacketBufferHandle' has no member named 'Release_ForNow'
   1115 |         event.CHIPoBLEWriteReceived.Data  = buf.Release_ForNow();
	|
austinh0 pushed a commit to austinh0/connectedhomeip that referenced this pull request Feb 3, 2021
This fixes the following errors with the K32W build:

  ERROR at //src/platform/K32W/BLEManagerImpl.cpp:29:11: Include not allowed.
  #include <crypto/CHIPCryptoPAL.h>
	    ^---------------------
  It is not in any dependency of
    //src/platform:platform
  The include file is in the target(s):
    //src/crypto:crypto
  which should somehow be reachable.

and

  ../../src/platform/K32W/BLEManagerImpl.cpp: In member function 'void chip::DeviceLayer::Internal::BLEManagerImpl::HandleRXCharWrite(chip::DeviceLayer::Internal::BLEManagerImpl::blekw_msg_t*)':
  ../../src/platform/K32W/BLEManagerImpl.cpp:1097:11: error: 'PacketBuffer' has not been declared
   1097 |     buf = PacketBuffer::NewWithAvailableSize(writeLen);
	|           ^~~~~~~~~~~~
  ../../src/platform/K32W/BLEManagerImpl.cpp:1115:49: error: 'class chip::System::PacketBufferHandle' has no member named 'Release_ForNow'
   1115 |         event.CHIPoBLEWriteReceived.Data  = buf.Release_ForNow();
	|
austinh0 pushed a commit to austinh0/connectedhomeip that referenced this pull request Feb 4, 2021
This fixes the following errors with the K32W build:

  ERROR at //src/platform/K32W/BLEManagerImpl.cpp:29:11: Include not allowed.
  #include <crypto/CHIPCryptoPAL.h>
	    ^---------------------
  It is not in any dependency of
    //src/platform:platform
  The include file is in the target(s):
    //src/crypto:crypto
  which should somehow be reachable.

and

  ../../src/platform/K32W/BLEManagerImpl.cpp: In member function 'void chip::DeviceLayer::Internal::BLEManagerImpl::HandleRXCharWrite(chip::DeviceLayer::Internal::BLEManagerImpl::blekw_msg_t*)':
  ../../src/platform/K32W/BLEManagerImpl.cpp:1097:11: error: 'PacketBuffer' has not been declared
   1097 |     buf = PacketBuffer::NewWithAvailableSize(writeLen);
	|           ^~~~~~~~~~~~
  ../../src/platform/K32W/BLEManagerImpl.cpp:1115:49: error: 'class chip::System::PacketBufferHandle' has no member named 'Release_ForNow'
   1115 |         event.CHIPoBLEWriteReceived.Data  = buf.Release_ForNow();
	|
@mspang mspang deleted the for-chip/k32w-build branch April 2, 2021 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotfix urgent fix needed, can bypass review k32w platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants