Skip to content

Commit

Permalink
Parallel port does not work on Windows any more
Browse files Browse the repository at this point in the history
avrdude does not support parallel port usage on Windows XP or later,
so we can remove winppi.c.

avrdudes#1874 (comment)
  • Loading branch information
ndim committed Aug 8, 2024
1 parent 301318e commit d78880b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 325 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@ if(BUILD_DOC)
add_subdirectory(src/doc)
endif()

if(WIN32)
if(HAVE_PARPORT)
message(FATAL_ERROR "avrdude does not support parallel port on Windows")
endif()
endif()

# =====================================
# Configuration
# =====================================
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ add_library(libavrdude
pindefs.c
ppi.c
ppi.h
ppiwin.c
serbb.h
serbb_posix.c
serbb_win32.c
Expand Down
1 change: 0 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ libavrdude_la_SOURCES = \
pindefs.c \
ppi.c \
ppi.h \
ppiwin.c \
serbb.h \
serbb_posix.c \
serbb_win32.c \
Expand Down
8 changes: 8 additions & 0 deletions src/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,14 @@ AC_ARG_ENABLE(
esac],
[enabled_parport=no])

AS_IF([test "x$enabled_parport" = xyes], [dnl
case $target in
*-*-mingw32* | *-*-cygwin* | *-*-windows*)
AC_MSG_ERROR([avrdude does not support parallel port on Windows])
;;
esac
])

AC_ARG_ENABLE(
[linuxgpio],
AS_HELP_STRING([--enable-linuxgpio],
Expand Down
323 changes: 0 additions & 323 deletions src/ppiwin.c

This file was deleted.

0 comments on commit d78880b

Please sign in to comment.