aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-05-21 18:37:20 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-05-25 20:41:26 +0100
commit4c79292308ead42fc786c8e189921196ccc298ff (patch)
tree7d90e430646adbf366b4fdc13dc3077e0fcb3964
parent654c70dae35817b6a5f6dae553c5d4ef38d07195 (diff)
downloadlinux-firmware-4c79292308ead42fc786c8e189921196ccc298ff.tar.gz
build: Implement minimal GNOME Build API
One more step on the road to entirely eliminating the concept of packages. I adapted the installation rules from the Fedora spec file. They should clearly be less lame, but to do so we'd need more formal rules about which files should be installed. Maybe just limit it to things ending in ".bin" or ".fw"? See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Colin Walters <walters@verbum.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r--Makefile12
-rw-r--r--configure4
2 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..321a4e2b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+# This file implements the GNOME Build API:
+# http://people.gnome.org/~walters/docs/build-api.txt
+
+FIRMWAREDIR = /lib/firmware
+
+all:
+
+install:
+ mkdir -p $(DESTDIR)$(FIRMWAREDIR)
+ cp -r * $(DESTDIR)$(FIRMWAREDIR)
+ rm -f $(DESTDIR)/usbdux/*dux $(DESTDIR)/*/*.asm
+ rm $(DESTDIR)$(FIRMWAREDIR)/{WHENCE,LICENSE.*,LICENCE.*}
diff --git a/configure b/configure
new file mode 100644
index 00000000..3260f9a9
--- /dev/null
+++ b/configure
@@ -0,0 +1,4 @@
+#!/bin/bash
+# -*- mode: sh -*-
+# Our Makefile doesn't do srcdir != builddir
+#buildapi-variable-no-builddir