Kamalesh Babulal wrote:
> -ifeq ($(shell uname -r | grep -c "^2\.6\.*"), 1)
> +all:
> + @set -e; $(MAKE) check_for_getcpu_support; \
> + if './check_for_getcpu_support' > /dev/null 2>&1; then \
> + $(MAKE) $(TARGETS); \
> + else echo "System does not support getcpu syscall support"; true; fi
>
[clip]
> -all install:
> - @echo "Warning: Kernel doesn't support this test case"
> -endif
>
> # cat check_for_getcpu_support.c
> #include <stdio.h>
> #include <test.h>
>
> int kernel_support_available(void) {
> if (tst_kvercmp(2,6,20) < 0)
> return 1;
> return 0;
> }
>
> int main() {
> exit(kernel_support_available());
> }
Testing for the kernel version at compile time is incorrect if cross compile is
to be supported.
Regards,
Vijay
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list