############################################################# # # eagle-usb # ############################################################# EAGLE-USB_VER:=2.3.2 EAGLE-USB_SOURCE_URL:=http://$(SF_DL_HOST)/sourceforge/eagle-usb EAGLE-USB_SOURCE:=eagle-usb-$(EAGLE-USB_VER).tar.bz2 EAGLE-USB_BUILD_DIR:=$(BUILD_DIR)/eagle-usb-$(EAGLE-USB_VER) # # download source # $(DL_DIR)/$(EAGLE-USB_SOURCE): $(WGET) -P $(DL_DIR) $(EAGLE-USB_SOURCE_URL)/$(EAGLE-USB_SOURCE) # # unpack source and potentially patch package; use bzcat for bz2 files # $(EAGLE-USB_BUILD_DIR)/Makefile.common.in: $(DL_DIR)/$(EAGLE-USB_SOURCE) bzcat $(DL_DIR)/$(EAGLE-USB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - $(PATCH) $(EAGLE-USB_BUILD_DIR) package/eagle-usb eagle-usb-*.patch $(SED) -i -e 's#^\(MODULESDIR=.*\)#\1/kernel#' $(EAGLE-USB_BUILD_DIR)/Makefile.common.in # # configure source, add additional options to configure as required # call ./configure --help to find out about additional options # $(EAGLE-USB_BUILD_DIR)/Makefile.common: $(EAGLE-USB_BUILD_DIR)/Makefile.common.in ( cd $(EAGLE-USB_BUILD_DIR) ; \ $(TARGET_CONFIGURE_OPTS) \ CC=$(TARGET_CC) \ PPPD=yes DHCP=yes PPPOE=yes \ ./configure --with-kernel-src=$(LINUX_DIR) \ --with-lang=de \ --disable-eagleconnect \ --disable-hotplug \ ) # # build package # $(EAGLE-USB_BUILD_DIR)/driver/eagle-usb.o: $(EAGLE-USB_BUILD_DIR)/Makefile.common $(MAKE) -C $(EAGLE-USB_BUILD_DIR)/driver driver \ CC=$(TARGET_CC) \ COPTS="$(TARGET_CONFIGURE_CFLAGS)" # # install package # $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/eagle-usb.o: $(EAGLE-USB_BUILD_DIR)/driver/eagle-usb.o $(FAKEROOT) $(MAKE) -C $(EAGLE-USB_BUILD_DIR)/driver \ DESTDIR=$(TARGET_DIR) installdriver # # to get eagle-usb, we need $(TARGET_DIR)/usr/sbin/eagle-usb # - to get $(TARGET_DIR)/usr/sbin/eagle-usb, we need $(EAGLE-USB_BUILD_DIR)/eagle-usb # - before trying to build eagle-usb, we need # $(EAGLE-USB_BUILD_DIR)/.configured # ... eagle-usb: $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/misc/eagle-usb.o eagle-usb-source: $(DL_DIR)/$(EAGLE-USB_SOURCE) eagle-usb-clean: $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(EAGLE-USB_BUILD_DIR) uninstall -$(MAKE) -C $(EAGLE-USB_BUILD_DIR) clean eagle-usb-dirclean: rm -rf $(EAGLE-USB_BUILD_DIR)