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

Cleanup scons mess #246

Merged
merged 21 commits into from
Feb 1, 2024
Merged

Cleanup scons mess #246

merged 21 commits into from
Feb 1, 2024

Conversation

ShiCheng-Lu
Copy link
Collaborator

No description provided.

type='choice',
choices=("arm", "x86"),
default='arm',
help="Specifies target platform. One of 'arm' or 'x86'. Defaults to 'arm' if not provided."
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

--platform=... is now checked by scons (optparse) to make sure it's either x86 or arm

'--library', '--project', '--smoke', '--python', '--py',
type="string", dest="name",
action='callback', callback=set_target,
help="Specify the target. e.g. --library=ms-common, --project=leds, --smoke=adc, --python=example",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

--library=... / --project=... is now a single option that stores the target in to TARGET.

'--name',
dest='name',
'--task',
dest='task',
type='string',
action='store'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changed the option for create new task to scons new --project=... --task=task_name

type='string',
action='store',
action='store_true',
help="(arm) Reports the memory space after a build."
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

--mem-report sets mem-report instead of having to specify --mem-report=1

type='choice',
choices=("asan", "tsan"),
default="none",
help="(x86) Specifies the sanitizer. One of 'asan' for Address sanitizer or 'tsan' for Thread sanitizer. Defaults to none."
Copy link
Collaborator Author

@ShiCheng-Lu ShiCheng-Lu Dec 13, 2023

Choose a reason for hiding this comment

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

update sanitizer argument to a choice

@ShiCheng-Lu ShiCheng-Lu marked this pull request as draft December 13, 2023 22:19
@@ -1,55 +1,50 @@
#include <stdio.h>
Copy link
Collaborator Author

@ShiCheng-Lu ShiCheng-Lu Dec 17, 2023

Choose a reason for hiding this comment

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

everything in smoke/... is just result of formatting. (smoke project were not formatted/linted before), there are no changes

@ShiCheng-Lu ShiCheng-Lu requested a review from Kyle02 December 27, 2023 06:42
Copy link
Collaborator

@Kyle02 Kyle02 left a comment

Choose a reason for hiding this comment

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

Pausing review at libraries/codegen/generator.py

SConstruct Show resolved Hide resolved
SConstruct Show resolved Hide resolved
SConstruct Show resolved Hide resolved
build_system.md Outdated Show resolved Hide resolved
libraries/codegen/boards/centre_console.yaml Outdated Show resolved Hide resolved
@ShiCheng-Lu ShiCheng-Lu marked this pull request as ready for review January 14, 2024 03:44
*can_board_ids.h
*can_codegen.h
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

these all reside in build/ folder, already ignored

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah they weren't before while I was testing. It's fine to get rid of them

*can_board_ids.h
*can_codegen.h
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah they weren't before while I was testing. It's fine to get rid of them

uint8_t icom0 : 4;
uint8_t d0 : 8;
uint8_t fcom0 : 4;
uint16_t icom0 : 4;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This shouldn't matter right? Since we're putting them to be 4 bits right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe the compiler was complaining about the uint8_t d0 : 8; packing 8 bits with 8 bits. since we are only using 4 bits, it doesn't matter as the packed output is the same

Kyle02
Kyle02 previously requested changes Jan 28, 2024
Copy link
Collaborator

@Kyle02 Kyle02 left a comment

Choose a reason for hiding this comment

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

Have you tried running scons sim yet? I'm trying to run this on a test branch but I'm not able to get scons leds to work.

@Kyle02
Copy link
Collaborator

Kyle02 commented Jan 29, 2024

Have you tried running scons sim yet? I'm trying to run this on a test branch but I'm not able to get scons leds to work.

We discovered there is an issue with this. I don't think we should merge this until all scons commands have been verified, so shi cheng will be responsible for testing scons flash and other commands

@ShiCheng-Lu ShiCheng-Lu merged commit f144ff6 into main Feb 1, 2024
1 check passed
@ShiCheng-Lu ShiCheng-Lu deleted the cleanup_scons_mess branch February 1, 2024 04:31
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.

3 participants