forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3333 from hierophect/esp32-enable-ulab
Fix all assignments affected by inline makefile comments
- Loading branch information
Showing
6 changed files
with
73 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
filepath = '../py/circuitpy_mpconfig.mk' | ||
with open(filepath) as fp: | ||
line = fp.readline() | ||
cnt = 1 | ||
fullbuild = [] | ||
defon = [] | ||
defoff = [] | ||
while line: | ||
wordlist = line.split() | ||
if wordlist: | ||
if wordlist[-1] == "$(CIRCUITPY_FULL_BUILD)": | ||
fullbuild.append(wordlist[0]) | ||
elif wordlist[-1] == "0": | ||
defoff.append(wordlist[0]) | ||
elif wordlist[-1] == "1": | ||
defon.append(wordlist[0]) | ||
line = fp.readline() | ||
cnt += 1 | ||
|
||
print(str(cnt) + " Lines Read\n") | ||
print("\nFULL BUILDS ------------------------") | ||
for string in fullbuild: | ||
print(string) | ||
|
||
print("\nON BUILDS ------------------------") | ||
for string in defon: | ||
print(string) | ||
|
||
print("\nOFF BUILDS ------------------------") | ||
for string in defoff: | ||
print(string) |