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

Call InitChipStack from the device controller #1500

Conversation

vivien-apple
Copy link
Contributor

Problem

This is an example of how I would change the event loop code from the Darwin framework to ChipDeviceController if #1497 lands. The current code is not ready to be merged yet. It needs some more love since in the current shape it will likely break examples/chip-tool and we need to determine if CHIPDeviceController always expect a device layer or not.

@woody-apple woody-apple changed the title [DO NOT MERGE] Call InitChipStack from the device controller Call InitChipStack from the device controller Jul 9, 2020
@vivien-apple vivien-apple force-pushed the Darwin_AddPlatformCallInitChipStack branch from fb499b9 to 0e0f9bf Compare July 9, 2020 15:32
@vivien-apple
Copy link
Contributor Author

I have updated the patch. It will likely not compile well on CI yet since it depends on #1531 and #1534 though. Will force push an update once those lands. But the provided patch use the platform event loop for chip-tool and for the iOS app.

@woody-apple
Copy link
Contributor

@vivien-apple please rebase :)

@vivien-apple
Copy link
Contributor Author

@vivien-apple please rebase :)

This PR will work once #1534 has landed. Will rebased once I I finished fixing the build issues with #1534

@vivien-apple vivien-apple force-pushed the Darwin_AddPlatformCallInitChipStack branch from 0e0f9bf to d540971 Compare July 17, 2020 08:16
@vivien-apple vivien-apple force-pushed the Darwin_AddPlatformCallInitChipStack branch 4 times, most recently from fb499b9 to f57a8ca Compare July 17, 2020 16:12
@vivien-apple
Copy link
Contributor Author

I add to fight a bit the old build system and the gn build system to get it to work. Should be green now.

@woody-apple
Copy link
Contributor

@vivien-apple can you fix the merge conflicts here please?

@andy31415 @jelderton - can you review please?

@woody-apple woody-apple self-requested a review July 20, 2020 18:27
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.

  • deleted pull approve test

@pullapprove
Copy link

pullapprove bot commented Jul 20, 2020

@woody-apple woody-apple self-requested a review July 20, 2020 18:31
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.

  • deleted pull approve test

@woody-apple woody-apple self-requested a review July 20, 2020 18:32
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.

  • deleted pull approve test

@vivien-apple vivien-apple force-pushed the Darwin_AddPlatformCallInitChipStack branch from f57a8ca to d361620 Compare July 20, 2020 18:33
@pullapprove
Copy link

pullapprove bot commented Jul 20, 2020

@vivien-apple vivien-apple force-pushed the Darwin_AddPlatformCallInitChipStack branch 2 times, most recently from fb499b9 to 5f8e73f Compare July 20, 2020 18:45
@github-actions
Copy link

Size increase report for "nrf-example-build"

File Section File VM
Full report output
BLOAT REPORT

Files found only in the build output:
    report.csv

Comparing ./master_artifact/chip-nrf52840-lock-example.out and ./pull_artifact/chip-nrf52840-lock-example.out:

sections,vmsize,filesize


@github-actions
Copy link

Size increase report for "linux-example-build"

File Section File VM
Full report output
BLOAT REPORT

Files found only in the build output:
    report.csv

Comparing ./master_artifact/chip-standalone-demo.out and ./pull_artifact/chip-standalone-demo.out:

BLOAT EXECUTION FAILED WITH CODE 1:
bloaty: integer overflow


@github-actions
Copy link

Size increase report for "esp32-example-build"

File Section File VM
Full report output
BLOAT REPORT

Files found only in the build output:
    report.csv

Comparing ./master_artifact/chip-wifi-echo.elf and ./pull_artifact/chip-wifi-echo.elf:

sections,vmsize,filesize


@github-actions
Copy link

Size increase report for "gn_nrf-example-build"

File Section File VM
Full report output
BLOAT REPORT

Files found only in the build output:
    report.csv


@github-actions
Copy link

Size increase report for "gn_linux-example-build"

File Section File VM
Full report output
BLOAT REPORT

Files found only in the build output:
    report.csv


@woody-apple
Copy link
Contributor

@jelderton @robszewczyk @hawk248 ?

@woody-apple woody-apple merged commit 0320920 into project-chip:master Jul 21, 2020
mspang added a commit to mspang/connectedhomeip that referenced this pull request Jul 23, 2020
After 0320920 ("Call PlatformMgr::InitChipStack from the device
controller (project-chip#1500)") this fails due to trying to include a nonexistent
header.

Fix it by leaving CHIP_PLATFORM_CONFIG_INCLUDE et al undefined when
device_platform is "none".
andy31415 pushed a commit that referenced this pull request Jul 27, 2020
* Fix building with device_platform="none"

After 0320920 ("Call PlatformMgr::InitChipStack from the device
controller (#1500)") this fails due to trying to include a nonexistent
header.

Fix it by leaving CHIP_PLATFORM_CONFIG_INCLUDE et al undefined when
device_platform is "none".

* Add Darwin device layer to fix Mac build

* Update pigweed for objc toolchain

* darwin: Add frameworks via "frameworks", not "libs"

It turns out that putting frameworks in {{libs}} was deprecated and is
removed as of gn 3028c6a4 ("[apple] Remove support for frameworks in
libs"). Specify them separately via "frameworks".
kpschoedel pushed a commit to kpschoedel/connectedhomeip that referenced this pull request Jul 27, 2020
* Fix building with device_platform="none"

After 0320920 ("Call PlatformMgr::InitChipStack from the device
controller (project-chip#1500)") this fails due to trying to include a nonexistent
header.

Fix it by leaving CHIP_PLATFORM_CONFIG_INCLUDE et al undefined when
device_platform is "none".

* Add Darwin device layer to fix Mac build

* Update pigweed for objc toolchain

* darwin: Add frameworks via "frameworks", not "libs"

It turns out that putting frameworks in {{libs}} was deprecated and is
removed as of gn 3028c6a4 ("[apple] Remove support for frameworks in
libs"). Specify them separately via "frameworks".
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.

5 participants