Alex Hixon avatar 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;
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.