Commits

Alex Hixon committed b733e92

Make mention to UCODE_PATH a bit more obvious - useful for packagers.

Comments (0)

Files changed (3)

 sbindir=/sbin
 libdir=/lib
 firmdir=$(libdir)/r5u87x/ucode
+UCODE_PATH=$(PREFIX)$(firmdir)/$(FIRMWARE_NAMESPEC)
 
 # For rules and make targets -------------------------------------------------|
 RULESFILE=contrib/90-r5u87x-loader.rules
 # Automake targets -----------------------------------------------------------|
 
 .c.o:
-	$(CC) -g -Wall -DHAVE_CONFIG_H -DUCODE_PATH=\"$(PREFIX)$(firmdir)/$(FIRMWARE_NAMESPEC)\" $(CFLAGS) $(INCS) -c $*.c $*.h
+	$(CC) -g -Wall -DHAVE_CONFIG_H -DUCODE_PATH=\"$(UCODE_PATH)\" $(CFLAGS) $(INCS) -c $*.c $*.h
 
 all: loader
 
 
 #define VERSION "0.2"
 
+// By default, defined in Makefile
 //#define UCODE_PATH "/usr/lib/r5u87x/ucode/r5u87x-%vid%-%pid%.fw"
 
 // Provide support for --reload argument in application
 #define R5U870_REG_VFLIP_EX	0x30
 #define R5U870_REG_HFLIP_EX	0x31
 
-static gchar    *firmware       = "ucode/r5u87x-%vid%-%pid%.fw";
+static gchar    *firmware       = "ucode/r5u87x-%vid%-%pid%.fw";	// relative path to firmware files
+                                                                    // if files are not found here, loader will look
+                                                                    // in UCODE_PATH for files - defined in Makefile
+                                                                    // and config.h
 static gboolean force_clear     = FALSE;
 static gboolean no_load         = FALSE;