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:
parent
1f4cc31331
commit
fed71f0ce3
|
|
@ -9,10 +9,12 @@ PR = "${DISTRO}.r0"
|
|||
|
||||
SRC_URI = "file://rtc_test"
|
||||
|
||||
UPPER_PLAT = "${@'${MACHINE}'.upper()}"
|
||||
|
||||
S = "${WORKDIR}/rtc_test"
|
||||
|
||||
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() {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
#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_STR "60"
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in New Issue