rtc_test: do platform specific compilation

The source has machine specific code, so it needs the machine passed
in the compiler command line.

https://jira.digi.com/browse/DEL-863

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2013-11-14 11:36:36 +01:00
parent 1f4cc31331
commit fed71f0ce3
2 changed files with 4 additions and 2 deletions

View File

@ -9,10 +9,12 @@ PR = "${DISTRO}.r0"
SRC_URI = "file://rtc_test" SRC_URI = "file://rtc_test"
UPPER_PLAT = "${@'${MACHINE}'.upper()}"
S = "${WORKDIR}/rtc_test" S = "${WORKDIR}/rtc_test"
do_compile() { do_compile() {
${CC} -O2 -Wall rtc_test.c -o rtc_test ${CC} -O2 -Wall -D${UPPER_PLAT} rtc_test.c -o rtc_test
} }
do_install() { do_install() {

View File

@ -37,7 +37,7 @@
#define RTC_DEFAULT_TEST_OPS 0 /* None, pass it through the command line */ #define RTC_DEFAULT_TEST_OPS 0 /* None, pass it through the command line */
#if defined (DEL_CCWMX53JS) || defined (DEL_CCMX53JS) #if defined(CCIMX53JS)
#define RTC_ALARM_SECS 60 #define RTC_ALARM_SECS 60
#define RTC_ALARM_SECS_STR "60" #define RTC_ALARM_SECS_STR "60"
#else #else