summaryrefslogtreecommitdiffstats
path: root/devices.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2007-04-02 13:54:11 +1000
committerJeremy Kerr <jk@ozlabs.org>2007-04-02 13:54:11 +1000
commitdb8001f511f8e8d928aa82113431067f968f4966 (patch)
treeebaff8f3ee26574b29f444674814987c604db10d /devices.c
parent49d43d590027df23d45d3cd99f83517eeab67a43 (diff)
downloadtalos-petitboot-db8001f511f8e8d928aa82113431067f968f4966.tar.gz
talos-petitboot-db8001f511f8e8d928aa82113431067f968f4966.zip
Make petitboot installable
Add an install target and PREFIX= option the makefile, and change the artwork loading code to use the prefixed-path. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'devices.c')
-rw-r--r--devices.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/devices.c b/devices.c
index ac93287..28cb3a3 100644
--- a/devices.c
+++ b/devices.c
@@ -9,12 +9,12 @@
#include <libtwin/twin_png.h>
#include "petitboot.h"
+#include "petitboot-paths.h"
#include "devices/message.h"
-#define PBOOT_DEVICE_SOCKET "/var/tmp/petitboot-dev"
-#define PBOOT_DEFAULT_ICON "artwork/usbpen.png"
+#define PBOOT_DEFAULT_ICON "usbpen.png"
-static const char *default_icon = PBOOT_DEFAULT_ICON;
+static const char *default_icon = artwork_pathname(PBOOT_DEFAULT_ICON);
struct discovery_context {
/* nothing at present */
OpenPOWER on IntegriCloud