Change Details
urjtag/Makefile |
26 | 26 | CATEGORY:=Utilities |
27 | 27 | TITLE:=Urjtag |
28 | 28 | URL:=http://urjtag.org/ |
29 | | DEPENDS:=+libusb-1.0 +libftdi $(INTL_DEPENDS) |
| 29 | DEPENDS:=+libusb +libusb-1.0 +libftdi $(INTL_DEPENDS) +libreadline +libncurses |
30 | 30 | endef |
31 | 31 | |
32 | 32 | TARGET_CFLAGS += $(INTL_CFLAGS) |
... | ... | |
41 | 41 | define Package/urjtag/install |
42 | 42 | $(INSTALL_DIR) \ |
43 | 43 | $(1)/usr/bin/ \ |
44 | | $(1)/usr/share/urjtag/ |
| 44 | $(1)/usr/share/urjtag/ \ |
| 45 | $(1)/usr/lib/liburjtag/ |
| 46 | |
| 47 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/jtag $(1)/usr/bin/ |
| 48 | $(CP) $(PKG_INSTALL_DIR)/usr/share/urjtag/* $(1)/usr/share/urjtag/ |
| 49 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburjtag.so.* $(1)/usr/lib/liburjtag/ |
45 | 50 | endef |
46 | 51 | |
47 | 52 | $(eval $(call BuildPackage,urjtag)) |
urjtag/patches/0001-disable-inb-outb.patch |
| 1 | diff --git a/urjtag/src/tap/parport/direct.c b/urjtag/src/tap/parport/direct.c |
| 2 | index 10bea4d..2be15b8 100644 |
| 3 | --- a/urjtag/src/tap/parport/direct.c |
| 4 | @@ -37,6 +37,20 @@ |
| 5 | #include <urjtag/cable.h> |
| 6 | #include "../parport.h" |
| 7 | |
| 8 | +#ifdef __linux__ |
| 9 | +#if defined(arm) || defined(__hppa__) || defined(__sparc__) || defined(__ppc__) \ |
| 10 | +|| defined(__powerpc__) || defined(__s390__) || defined(__s390x__)\ |
| 11 | +|| defined(__mips__) || defined(__mc68000__) || defined(__sh__) |
| 12 | + |
| 13 | +#define NO_SYSIO |
| 14 | + |
| 15 | +#define inb(foo) 0 |
| 16 | +#define outb(foo,bar) 0 |
| 17 | + |
| 18 | +#endif /* architechtures */ |
| 19 | +#endif /* __linux__ */ |
| 20 | + |
| 21 | + |
| 22 | #if defined(HAVE_INPOUTXX) |
| 23 | |
| 24 | static HINSTANCE inpout32_dll_handle = NULL; |
| 25 | @@ -50,7 +64,7 @@ static outfuncPtr Out32; |
| 26 | #define inb(p) (Inp32)(p) |
| 27 | #define outb(d,p) (Out32)(p,d) |
| 28 | |
| 29 | -#elif defined(HAVE_IOPERM) |
| 30 | +#elif defined(HAVE_IOPERM) && !defined(NO_SYSIO) |
| 31 | |
| 32 | #include <sys/io.h> |
| 33 | |
Download the corresponding diff file