From db8001f511f8e8d928aa82113431067f968f4966 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 2 Apr 2007 13:54:11 +1000 Subject: 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 --- devices.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'devices.c') diff --git a/devices.c b/devices.c index ac93287..28cb3a3 100644 --- a/devices.c +++ b/devices.c @@ -9,12 +9,12 @@ #include #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 */ -- cgit v1.2.1