diff --git a/packages/debug/test/build b/packages/debug/test/build new file mode 100755 index 0000000000..a06dddbba7 --- /dev/null +++ b/packages/debug/test/build @@ -0,0 +1,7 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain + +make -C $BUILD/$1 diff --git a/packages/debug/test/install b/packages/debug/test/install new file mode 100755 index 0000000000..776c4f13e0 --- /dev/null +++ b/packages/debug/test/install @@ -0,0 +1,8 @@ +#!/bin/sh + +. config/options + +PKG_DIR=`find $PACKAGES -type d -name $1` + +mkdir -p $INSTALL/usr/bin +cp -f $BUILD/$1/$1 $INSTALL/usr/bin/testprogramm diff --git a/packages/debug/test/sources/Makefile b/packages/debug/test/sources/Makefile new file mode 100644 index 0000000000..bc5f8ff909 --- /dev/null +++ b/packages/debug/test/sources/Makefile @@ -0,0 +1,14 @@ +CC ?= gcc +CFLAGS = -static -Wall -g3 -ggdb3 -Os +LDFLAGS = + +SRCS = test.c +PROG = test + +all: $(PROG) + +$(PROG): $(SRCS) + $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ + +clean: + rm -f $(PROG) diff --git a/packages/debug/test/sources/test.c b/packages/debug/test/sources/test.c new file mode 100644 index 0000000000..0ad7f8c423 --- /dev/null +++ b/packages/debug/test/sources/test.c @@ -0,0 +1,6 @@ +#include + +int main(void) { +char *msg = "works\n"; +return write(STDOUT_FILENO, msg, 6) != 6; +} \ No newline at end of file