Skip to content
Snippets Groups Projects
Commit 27361a5c authored by Hauke Petersen's avatar Hauke Petersen Committed by GitHub
Browse files

Merge pull request #6690 from lebrush/fix/export-features

make: fix export features
parents bc928eac ff76b60d
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,10 @@ export BINDIR # This is the folder where the application should b
export APPDIR # The base folder containing the application
export PKGDIRBASE # The base folder for building packages
export FEATURES_REQUIRED # List of required features by the application
export FEATURES_PROVIDED # List of provided features by the board
export FEATURES_OPTIONAL # List of nice to have features
export TARGET_ARCH # The target platform name, in GCC triple notation, e.g. "arm-none-eabi", "i686-elf", "avr"
export PREFIX # The prefix of the toolchain commands, usually "$(TARGET_ARCH)-", e.g. "arm-none-eabi-" or "msp430-".
export CC # The C compiler to use.
......
......@@ -68,11 +68,8 @@ ifneq (,$(filter conn_can,$(USEMODULE)))
SRC += sc_can.c
endif
# TODO
# Conditional building not possible at the moment due to
# https://github.com/RIOT-OS/RIOT/issues/2058
# The implementation is guarded in the source file instead, this
# should be changed once the issue has been resolved
SRC += sc_rtc.c
ifneq (,$(filter periph_rtc,$(FEATURES_PROVIDED)))
SRC += sc_rtc.c
endif
include $(RIOTBASE)/Makefile.base
......@@ -20,8 +20,6 @@
* @}
*/
#ifdef FEATURE_PERIPH_RTC
#include <stdio.h>
#include <stdint.h>
#include <string.h>
......@@ -189,18 +187,3 @@ int _rtc_handler(int argc, char **argv)
}
return 0;
}
#else
#include <stdio.h>
int _rtc_handler(int argc, char **argv)
{
(void) argc;
(void) argv;
puts("not implemented");
return 1;
}
#endif /* FEATURE_RTC */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment