-
Notifications
You must be signed in to change notification settings - Fork 2k
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
boards/mips: remove use of APPDEPS, un-export globally APPDEPS #14385
Conversation
@@ -109,9 +109,9 @@ UNEXPORTED_VARIABLES+=('JLINK_DEVICE' 'JLINK_IF') | |||
UNEXPORTED_VARIABLES+=('JLINK_PRE_FLASH' 'JLINK_RESET_FILE') | |||
UNEXPORTED_VARIABLES+=('GIT_CACHE' 'GIT_CACHE_DIR') | |||
UNEXPORTED_VARIABLES+=('LINKXX') | |||
UNEXPORTED_VARIABLES+=('APPDEPS' 'BUILDDEPS' 'DEBUGDEPS') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'BUILDDEPS' 'DEBUGDEPS' seem unrelated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but they are also not exported. I added them here as a guard, just in case. I can add them in a separate commit if you prefer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I would prefer a different commit
I wanted to test this by checking the compiled
|
I have the same issue but it's the same on master. |
@fjmolinas, I just noticed that it builds just fine when setting
|
Using With the following diff: git diff
diff --git a/Makefile.include b/Makefile.include
index 8056a026f3..271b9f847f 100644
--- a/Makefile.include
+++ b/Makefile.include
@@ -532,7 +532,7 @@ ifeq ($(RIOT_CI_BUILD),1)
# Don't build BINFILE on the CI to save some computation time
BUILD_FILES += $(ELFFILE) $(FLASHFILE)
else
- BUILD_FILES += $(ELFFILE) $(BINFILE) $(FLASHFILE)
+ BUILD_FILES += $(ELFFILE) $(FLASHFILE)
endif
# variables used to compile and link c++ The build works fine on master and this PR:
That also explains why it works when setting RIOT_CI_BUILD=1 to the build: the bin file is not generated in this case. |
My analysis is that the objcopy used by mips is the default host objcopy, not the toolchain one (because it's broken). And the host objcopy is not able to output a binary for mips architecture: RIOT/cpu/mips_pic32mz/Makefile.include Line 14 in e1d27cb
|
I think we should just skip BINFILE generation for MIPS until we have a fully working toolchain for it. |
see #14405 @fjmolinas |
Did as in #14385 (comment) forcing the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK!
Contribution description
This PR remove the use of APPDEPS to build the pic32 boards. The module generated from the $(CPU_MODEL).S files can be added to the build based on the regulars
USEMODULE
+DIRS
variables.There's also no need to export APPDEPS, since it's only used in the global Makefile.include:
RIOT/Makefile.include
Line 445 in ef4835a
RIOT/Makefile.include
Line 549 in ef4835a
RIOT/Makefile.include
Line 580 in ef4835a
As a result, it seems that APPDEPS doesn't need to be exported globally and this PR changes this as well (with a static check)
Testing procedure
A green Murdock
Issues/PRs references
None