From: Lawrence S. <ljs...@us...> - 2020-06-29 01:29:32
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via 04f43435c2c0203fa8cbca3bc5b340f708213cc7 (commit) from e2f90c1bfed59585029a09cb23454b70477b38d9 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 04f43435c2c0203fa8cbca3bc5b340f708213cc7 Author: Lawrence Sebald <ljs...@us...> Date: Sun Jun 28 21:29:01 2020 -0400 Remove lwip/dcload-ip-lwip-test and lwip/dns-client examples. ----------------------------------------------------------------------- Summary of changes: examples/dreamcast/lwip/Makefile | 19 ---------- .../dreamcast/lwip/dcload-ip-lwip-test/Makefile | 27 -------------- examples/dreamcast/lwip/dcload-ip-lwip-test/main.c | 42 ---------------------- examples/dreamcast/lwip/dns-client/Makefile | 29 --------------- examples/dreamcast/lwip/dns-client/dnslookup.c | 38 -------------------- 5 files changed, 155 deletions(-) delete mode 100644 examples/dreamcast/lwip/Makefile delete mode 100644 examples/dreamcast/lwip/dcload-ip-lwip-test/Makefile delete mode 100644 examples/dreamcast/lwip/dcload-ip-lwip-test/main.c delete mode 100644 examples/dreamcast/lwip/dns-client/Makefile delete mode 100644 examples/dreamcast/lwip/dns-client/dnslookup.c diff --git a/examples/dreamcast/lwip/Makefile b/examples/dreamcast/lwip/Makefile deleted file mode 100644 index 8fd5b87..0000000 --- a/examples/dreamcast/lwip/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# KallistiOS ##version## -# -# examples/dreamcast/lwip/Makefile -# - -all: - $(KOS_MAKE) -C dns-client - $(KOS_MAKE) -C httpd -# $(KOS_MAKE) -C dcload-ip-lwip-test - -clean: - $(KOS_MAKE) -C dns-client clean - $(KOS_MAKE) -C httpd clean -# $(KOS_MAKE) -C dcload-ip-lwip-test clean - -dist: - $(KOS_MAKE) -C dns-client dist - $(KOS_MAKE) -C httpd dist -# $(KOS_MAKE) -C dcload-ip-lwip-test dist diff --git a/examples/dreamcast/lwip/dcload-ip-lwip-test/Makefile b/examples/dreamcast/lwip/dcload-ip-lwip-test/Makefile deleted file mode 100644 index f50f624..0000000 --- a/examples/dreamcast/lwip/dcload-ip-lwip-test/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -TARGET = dcload-lwip.elf - -OBJS = main.o - -LWIPDIR := $(KOS_BASE)/addons/lwip/src -LWIPARCH := kos -KOS_CFLAGS := $(KOS_CFLAGS) -DIPv4 -DLWIP_DEBUG \ - -I$(LWIPDIR)/include -I$(LWIPDIR)/arch/$(LWIPARCH)/include \ - -I$(LWIPDIR)/include/ipv4 -I$(LWIPDIR)/.. - -all: rm-elf $(TARGET) - -include $(KOS_BASE)/Makefile.rules - -clean: - -rm -f $(TARGET) $(OBJS) romdisk.* - -rm-elf: - -rm -f $(TARGET) romdisk.* - -$(TARGET): $(OBJS) - $(KOS_CC) $(KOS_CFLAGS) $(KOS_LDFLAGS) -o $(TARGET) $(KOS_START) \ - $(OBJS) $(OBJEXTRA) -llwip4 $(KOS_LIBS) - -dist: - rm -f $(OBJS) - $(KOS_STRIP) $(TARGET) diff --git a/examples/dreamcast/lwip/dcload-ip-lwip-test/main.c b/examples/dreamcast/lwip/dcload-ip-lwip-test/main.c deleted file mode 100644 index 1080fd8..0000000 --- a/examples/dreamcast/lwip/dcload-ip-lwip-test/main.c +++ /dev/null @@ -1,42 +0,0 @@ -#include <kos.h> -#include <lwip/lwip.h> - -KOS_INIT_FLAGS(INIT_DEFAULT | INIT_NET); - -int main(int argc, char **argv) { - file_t d; - dirent_t *de; - - cont_btn_callback(0, CONT_START, (cont_btn_callback_t)arch_exit); - - lwip_init_dcload(); - - printf("this is a test of dcload-lwIP\n"); - - d = fs_open("/pc", O_RDONLY | O_DIR); - - if(d == 0) { - printf("Can't open /pc\r\n"); - return 0; - } - - while((de = fs_readdir(d))) { - printf("%s / ", de->name); - - if(de->size >= 0) { - printf("%d\r\n", de->size); - } - else { - printf("DIR\r\n"); - } - } - - fs_close(d); - - return 0; -} - - - - - diff --git a/examples/dreamcast/lwip/dns-client/Makefile b/examples/dreamcast/lwip/dns-client/Makefile deleted file mode 100644 index d09d5d3..0000000 --- a/examples/dreamcast/lwip/dns-client/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# Put the filename of the output binary here -TARGET = dns-client.elf - -# List all of your C files here, but change the extension to ".o" -OBJS = dnslookup.o - -LWIPDIR = $(KOS_BASE)/../kos-ports/lwip/lwip/src -ARCHDIR = $(LWIPDIR)/../../kos - -all: rm-elf $(TARGET) - -include $(KOS_BASE)/Makefile.rules - -KOS_CFLAGS += -DIPv4 \ - -I$(LWIPDIR)/include -I$(ARCHDIR)/include \ - -I$(LWIPDIR)/include/ipv4 - -clean: - rm -f $(TARGET) $(OBJS) - -rm-elf: - rm -f $(TARGET) - -$(TARGET): $(OBJS) - $(KOS_CC) $(KOS_CFLAGS) $(KOS_LDFLAGS) -o $(TARGET) $(KOS_START) \ - $(OBJS) $(OBJEXTRA) -llwip4 -lkosutils $(KOS_LIBS) - -run: $(TARGET) - dc-tool -n -x $(TARGET) diff --git a/examples/dreamcast/lwip/dns-client/dnslookup.c b/examples/dreamcast/lwip/dns-client/dnslookup.c deleted file mode 100644 index 7120ee2..0000000 --- a/examples/dreamcast/lwip/dns-client/dnslookup.c +++ /dev/null @@ -1,38 +0,0 @@ -/* KallistiOS ##version## - - dnslookup.c - Copyright (C)2004 Dan Potter - - Test DNS lookup util. - -*/ - -// Use these for KOS usage. -#include <kos.h> -#include <lwip/lwip.h> - -#include <stdio.h> - -int main(int argc, char **argv) { - uint8 ip[4]; - struct sockaddr_in dnssrv; - - // KOS code - net_init(); - lwip_kos_init(); - - // Do the query - dnssrv.sin_family = AF_INET; - dnssrv.sin_port = htons(53); - dnssrv.sin_addr.s_addr = htonl(0x0a030202); - - if(lwip_gethostbyname(&dnssrv, "www.allusion.net", ip) < 0) - perror("Can't look up name"); - else { - printf("www.allusion.net is %d.%d.%d.%d\n", - ip[0], ip[1], ip[2], ip[3]); - } - - return 0; -} - hooks/post-receive -- A pseudo Operating System for the Dreamcast. |