aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests/x86_emulator/blowfish.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tests/x86_emulator/blowfish.mk')
-rw-r--r--tools/tests/x86_emulator/blowfish.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/tests/x86_emulator/blowfish.mk b/tools/tests/x86_emulator/blowfish.mk
new file mode 100644
index 0000000000..85da259a5c
--- /dev/null
+++ b/tools/tests/x86_emulator/blowfish.mk
@@ -0,0 +1,17 @@
+
+XEN_ROOT = ../../..
+CFLAGS =
+include $(XEN_ROOT)/tools/Rules.mk
+
+$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
+
+CFLAGS += -fno-builtin -msoft-float
+
+.PHONY: all
+all: blowfish.bin
+
+blowfish.bin: blowfish.c
+ $(CC) $(CFLAGS) -c blowfish.c
+ $(LD) $(LDFLAGS_DIRECT) -N -Ttext 0x100000 -o blowfish.tmp blowfish.o
+ $(OBJCOPY) -O binary blowfish.tmp blowfish.bin
+ rm -f blowfish.tmp