summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-09-06 09:25:43 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-09-06 09:25:43 (EDT)
commit9b7adbe1698fd580edd94f5713c23ba563325cd0 (patch)
tree789c40a4b1bad06fe270134eab45217d08686ec3
Initial commit
-rw-r--r--.gitignore11
-rwxr-xr-xbuild35
-rw-r--r--changelog5
-rw-r--r--config/internal30
-rw-r--r--control3
-rw-r--r--flashrom-common.pkg/control7
-rw-r--r--flashrom-common.pkg/docs0
-rw-r--r--flashrom-doc.pkg/control7
-rw-r--r--flashrom-internal.pkg/control8
-rw-r--r--format1
-rw-r--r--source.mk13
-rw-r--r--substvars5
12 files changed, 125 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..213a9bf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,11 @@
+# Swap and backup files
+.*.sw*
+.sw*
+*~
+Session.vim
+
+# Source archives
+*-*.orig.tar.*
+
+# Work area
+tmp/
diff --git a/build b/build
new file mode 100755
index 0000000..d8c2541
--- /dev/null
+++ b/build
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+configs = internal
+
+nop:
+ @:
+
+build:
+ set -e; \
+ for c in $(configs); do \
+ cp -Rp src/ "src-$${c}"; \
+ oh-autobuild -s "src-$${c}" -- $$(cat "../config/$${c}"); \
+ done
+ touch $@
+
+install: build
+ mkdir -p flashrom-doc.data/usr/share/man/man8
+ set -e; \
+ for c in $(configs); do \
+ oh-autoinstall -s "src-$${c}" -d "flashrom-$${c}.data" -- \
+ PREFIX=/usr; \
+ mv "flashrom-$${c}.data/usr/sbin/flashrom" \
+ "flashrom-$${c}.data/usr/sbin/flashrom.$${c}"; \
+ mv "flashrom-$${c}.data/usr/share/man/man8/flashrom.8" \
+ flashrom-doc.data/usr/share/man/man8; \
+ rmdir \
+ "flashrom-$${c}.data/usr/share/man/man8" \
+ "flashrom-$${c}.data/usr/share/man" \
+ "flashrom-$${c}.data/usr/share"; \
+ oh-fixperms -d "flashrom-$${c}.data"; \
+ oh-strip -d "flashrom-$${c}.data"; \
+ done
+ oh-fixperms -d flashrom-doc.data
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..a66733a
--- /dev/null
+++ b/changelog
@@ -0,0 +1,5 @@
+flashrom (0.9.8~r1896-1) trunk
+
+ * Initial release.
+
+ -- "P. J. McDermott" <pj@pehjota.net> Sun, 06 Sep 2015 08:13:07 -0400
diff --git a/config/internal b/config/internal
new file mode 100644
index 0000000..2f980f1
--- /dev/null
+++ b/config/internal
@@ -0,0 +1,30 @@
+CONFIG_INTERNAL=yes
+CONFIG_INTERNAL_DMI=yes
+CONFIG_SERPROG=no
+CONFIG_RAYER_SPI=no
+CONFIG_PONY_SPI=no
+CONFIG_NIC3COM=no
+CONFIG_GFXNVIDIA=no
+CONFIG_SATASII=no
+CONFIG_ATAHPT=no
+CONFIG_ATAVIA=no
+CONFIG_FT2232_SPI=no
+CONFIG_USBBLASTER_SPI=no
+CONFIG_MSTARDDC_SPI=no
+CONFIG_PICKIT2_SPI=no
+CONFIG_DUMMY=no
+CONFIG_DRKAISER=no
+CONFIG_NICREALTEK=no
+CONFIG_NICNATSEMI=no
+CONFIG_NICINTEL=no
+CONFIG_NICINTEL_SPI=no
+CONFIG_NICINTEL_EEPROM=no
+CONFIG_OGP_SPI=no
+CONFIG_BUSPIRATE_SPI=no
+CONFIG_DEDIPROG=no
+CONFIG_SATAMV=no
+CONFIG_LINUX_SPI=no
+CONFIG_IT8212=no
+CONFIG_PRINT_WIKI=no
+CONFIG_EVERYTHING=no
+CONFIG_BITBANG_SPI=no
diff --git a/control b/control
new file mode 100644
index 0000000..7ec5f14
--- /dev/null
+++ b/control
@@ -0,0 +1,3 @@
+Maintainer: "P. J. McDermott" <pj@pehjota.net>
+Build-Depends: opkhelper-3.0, libpci.3-dev
+Homepage: http://flashrom.org/
diff --git a/flashrom-common.pkg/control b/flashrom-common.pkg/control
new file mode 100644
index 0000000..70db7c3
--- /dev/null
+++ b/flashrom-common.pkg/control
@@ -0,0 +1,7 @@
+Architecture: all
+Platform: all
+Description: Utility to program flash chips - common files
+ ${Common-Description}
+ .
+ This package provides source package documentation files for the flashrom
+ utility.
diff --git a/flashrom-common.pkg/docs b/flashrom-common.pkg/docs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/flashrom-common.pkg/docs
diff --git a/flashrom-doc.pkg/control b/flashrom-doc.pkg/control
new file mode 100644
index 0000000..465f82d
--- /dev/null
+++ b/flashrom-doc.pkg/control
@@ -0,0 +1,7 @@
+Architecture: all
+Platform: all
+Depends: flashrom-common (= ${Binary-Version})
+Description: Utility to program flash chips - documentation
+ ${Common-Description}
+ .
+ This package provides documentation for the flashrom utility.
diff --git a/flashrom-internal.pkg/control b/flashrom-internal.pkg/control
new file mode 100644
index 0000000..b239d6e
--- /dev/null
+++ b/flashrom-internal.pkg/control
@@ -0,0 +1,8 @@
+Architecture: any
+Platform: all
+Depends: flashrom-common (>= ${Source-Version})
+Description: Utility to program flash chips - internal programmer
+ ${Common-Description}
+ .
+ This package provides the flashrom utility with support for the internal
+ programmer.
diff --git a/format b/format
new file mode 100644
index 0000000..cd5ac03
--- /dev/null
+++ b/format
@@ -0,0 +1 @@
+2.0
diff --git a/source.mk b/source.mk
new file mode 100644
index 0000000..8abd03f
--- /dev/null
+++ b/source.mk
@@ -0,0 +1,13 @@
+upstream_svn_uri = svn://flashrom.org/flashrom/trunk
+upstream_svn_rev = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \
+ sed 's/^.*[~+]r\([0-9][0-9]*\).*$$/\1/')
+source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2
+
+$(source_archive):
+ svn export -r "$(upstream_svn_rev)" "$(upstream_svn_uri)" \
+ '$(OPK_SOURCE)'
+ tar -cjf '$(@)' '$(OPK_SOURCE)'
+ rm -Rf src
+ mv '$(OPK_SOURCE)' src
+
+source: $(source_archive)
diff --git a/substvars b/substvars
new file mode 100644
index 0000000..a485099
--- /dev/null
+++ b/substvars
@@ -0,0 +1,5 @@
+Common-Description:
+ flashrom is a utility for identifying, reading, writing, verifying, and erasing
+ flash chips. It is designed to flash BIOS/EFI/coreboot/firmware/optionROM
+ images on mainboards, network/graphics/storage controller cards, and various
+ other programmer devices.