Skip to content
Permalink
Browse files

Add udev backend, remove hal backend

debian/control: Replace hal dependency with gudev
I don't think the gadget scripts work right now, and they will be
replaced with configs and libusbgx, but this at least makes it show the
UI on plug.

Currently the device is hardcoded to the n900 drivers.
  • Loading branch information...
MerlijnWajer committed Mar 1, 2018
1 parent 5b8b709 commit fca950ff52094fe690cf6e8de00899ff92cb5cb1
Showing with 309 additions and 152 deletions.
  1. +2 −2 Makefile
  2. +1 −1 debian/control
  3. +0 −126 hal-helper.c
  4. +0 −12 hal-helper.h
  5. +258 −0 udev-helper.c
  6. +25 −0 udev-helper.h
  7. +23 −11 usb-plugin.c
@@ -9,7 +9,7 @@ install:
clean:
$(RM) usb_plugin.so

usb_plugin.so: usb-plugin.c hal-helper.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(shell pkg-config --cflags --libs hal libhildondesktop-1) -W -Wall -O2 -shared $^ -o $@
usb_plugin.so: usb-plugin.c udev-helper.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(shell pkg-config --cflags --libs gudev-1.0 libhildondesktop-1) -W -Wall -O2 -shared $^ -o $@

.PHONY: all install clean
@@ -2,7 +2,7 @@ Source: hildon-status-bar-usb
Section: misc
Priority: optional
Maintainer: Pali Rohár <pali.rohar@gmail.com>
Build-Depends: debhelper (>= 5), pkg-config, libhildondesktop1-dev, libhal-dev
Build-Depends: debhelper (>= 5), pkg-config, libhildondesktop1-dev, libgudev-1.0-dev

Package: hildon-status-bar-usb
Architecture: any

This file was deleted.

This file was deleted.

0 comments on commit fca950f

Please sign in to comment.
You can’t perform that action at this time.