rpms/zd1211-firmware/devel zd1211-firmware-1.4-build__from_headers.patch, NONE, 1.1 zd1211-firmware.spec, 1.2, 1.3 sources, 1.2, 1.3 .cvsignore, 1.2, 1.3

Chauvet (kwizart) fedora-extras-commits at redhat.com
Fri Oct 12 12:32:26 UTC 2007


Author: kwizart

Update of /cvs/pkgs/rpms/zd1211-firmware/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1375

Modified Files:
	zd1211-firmware.spec sources .cvsignore 
Added Files:
	zd1211-firmware-1.4-build__from_headers.patch 
Log Message:
Update to new zd1211-firmware


zd1211-firmware-1.4-build__from_headers.patch:

--- NEW FILE zd1211-firmware-1.4-build__from_headers.patch ---
diff -uNr zd1211-firmware/create_fw_files.c zd1211rw_fw_2007-03-19_snap/create_fw_files.c
--- zd1211-firmware/create_fw_files.c	1970-01-01 01:00:00.000000000 +0100
+++ zd1211rw_fw_2007-03-19_snap/create_fw_files.c	2006-12-25 11:02:17.000000000 +0100
@@ -0,0 +1,116 @@
+#include <errno.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <string.h>
+
+#define ZD1211 1
+
+const uint8_t ws11uph[]
+#include "WS11UPh.h"
+
+const uint8_t ws11uphr[]
+#include "WS11UPhR.h"
+
+const uint8_t ws11uphm[]
+#include "WS11UPhm.h"
+
+const uint8_t ws11ub[]
+#include "WS11Ub.h"
+
+const uint8_t ws11ur[]
+#include "WS11Ur.h"
+
+#undef ZD1211
+
+#define ZD1211B 1
+
+const uint8_t zd1211b_ws11uph[]
+#include "WS11UPh.h"
+
+const uint8_t zd1211b_ws11uphr[]
+#include "WS11UPhR.h"
+
+const uint8_t zd1211b_ws11uphm[]
+#include "WS11UPhm.h"
+
+const uint8_t zd1211b_ws11ub[]
+#include "WS11Ub.h"
+
+const uint8_t zd1211b_ws11ur[]
+#include "WS11Ur.h"
+
+#undef ZD1211B
+
+
+static int write_fw_file(const char *path, const uint8_t *bytes, size_t size)
+{
+	FILE *f = NULL;
+
+	fprintf(stderr,"Write file %s (%zu bytes) ... ", path, size);
+	fflush(stderr);
+	f = fopen(path, "w");
+	if (!f) {
+		fprintf(stderr, "couldn't open %s - error %s (%d)\n",
+			path, strerror(errno), errno);
+		goto error;
+	}
+
+	size_t s = fwrite(bytes, 1, size, f);
+	if (s != size) {
+		fprintf(stderr, "Error while writing.\n");
+		goto error;
+	}
+
+	fclose(f);
+	fprintf(stderr, "done\n");
+	return 0;
+error:
+	if (f)
+		fclose(f);
+	return 1;
+}
+
+int main (void)
+{
+	int r;
+
+	r = write_fw_file("zd1211_uph",  ws11uph,  sizeof(ws11uph));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211_uphr", ws11uphr, sizeof(ws11uphr));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211_uphm", ws11uphm, sizeof(ws11uphm));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211_ub",   ws11ub,   sizeof(ws11ub));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211_ur",   ws11ur,   sizeof(ws11ur));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211b_uph",  zd1211b_ws11uph,
+		                          sizeof(zd1211b_ws11uph));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211b_uphr", zd1211b_ws11uphr,
+		                          sizeof(zd1211b_ws11uphr));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211b_uphm", zd1211b_ws11uphm,
+		                          sizeof(zd1211b_ws11uphm));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211b_ub",   zd1211b_ws11ub,
+		                          sizeof(zd1211b_ws11ub));
+	if (r)
+		goto error;
+	r = write_fw_file("zd1211b_ur",   zd1211b_ws11ur,
+		                          sizeof(zd1211b_ws11ur));
+	if (r)
+		goto error;
+
+	return 0;
+error:
+	return 1;
+}
diff -uNr zd1211-firmware/Makefile zd1211rw_fw_2007-03-19_snap/Makefile
--- zd1211-firmware/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ zd1211rw_fw_2007-03-19_snap/Makefile	2007-10-12 12:44:58.000000000 +0200
@@ -0,0 +1,33 @@
+CC := gcc
+CFLAGS := -Wall
+
+ifneq ($(USER),root) 
+SUDO := 
+endif
+
+FW_DIR := /lib/firmware/zd1211
+
+FILES := zd1211_ub zd1211_uph zd1211_uphm zd1211_uphr zd1211_ur \
+                 zd1211b_ub zd1211b_uph zd1211b_uphm zd1211b_uphr zd1211b_ur
+
+all:: files
+
+create_fw_files:: create_fw_files.c WS11UPh.h WS11UPhR.h WS11UPhm.h WS11Ub.h \
+		 WS11Ur.h
+		 $(CC) $(CFLAGS) $< -o $@
+
+.PHONY: files clean tar
+files:: $(FILES)
+
+$(FILES):: create_fw_files
+	./create_fw_files
+
+clean::
+	rm -f create_fw_files *.o zd1211_u* zd1211b_u*
+
+distclean:: clean
+	rm -f WS11*.h
+
+install:: $(FILES)
+	test -d $(FW_DIR) || $(SUDO) mkdir -p $(FW_DIR)
+	$(SUDO) cp $(FILES) $(FW_DIR)



Index: zd1211-firmware.spec
===================================================================
RCS file: /cvs/pkgs/rpms/zd1211-firmware/devel/zd1211-firmware.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- zd1211-firmware.spec	14 Aug 2007 15:57:09 -0000	1.2
+++ zd1211-firmware.spec	12 Oct 2007 12:31:53 -0000	1.3
@@ -1,14 +1,13 @@
 %define snap 2007-03-19
 Name:		zd1211-firmware
-Version:	1.3
-Release:	5
+Version:	1.4
+Release:	1
 Summary:	Firmware for wireless devices based on zd1211 chipset
 Group:		System Environment/Kernel
 License:	GPLv2
 URL:		http://zd1211.wiki.sourceforge.net
-#URL:		http://www.deine-taler.de/zd1211/
-Source0:	http://www.deine-taler.de/zd1211/snapshots/zd1211rw_fw_%{snap}.tar.bz2
-Patch0:		zd1211rw_fw-Makefile.patch
+Source0:	http://downloads.sourceforge.net/zd1211/zd1211-firmware-%{version}.tar.bz2
+Patch0:		zd1211-firmware-1.4-build__from_headers.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:	noarch
 
@@ -18,9 +17,9 @@
 
 
 %prep
-%setup -q -n zd1211rw_fw_%{snap}
-%patch0 -p1 -b .123
-
+%setup -q -n %{name}
+%patch0 -p1
+sed -i 's/\r//' *.h
 
 %build
 make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
@@ -37,10 +36,13 @@
 %defattr(-,root,root,-)
 %doc README COPYING
 %dir /lib/firmware/zd1211
-/lib/firmware/zd1211
+/lib/firmware/zd1211/*
 
 
 %changelog
+* Fri Oct 12 2007 kwizart < kwizart at gmail.com > - 1.4-1
+- Update to 1.4
+
 * Tue Aug 14 2007 kwizart < kwizart at gmail.com > - 1.3-5
 - Drop the dist tag
 - Update URL


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/zd1211-firmware/devel/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources	19 Apr 2007 18:37:59 -0000	1.2
+++ sources	12 Oct 2007 12:31:53 -0000	1.3
@@ -1 +1 @@
-d806c01716f30d80042519b0f070feab  zd1211rw_fw_2007-03-19.tar.bz2
+19f28781d76569af8551c9d11294c870  zd1211-firmware-1.4.tar.bz2


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/zd1211-firmware/devel/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore	19 Apr 2007 18:37:59 -0000	1.2
+++ .cvsignore	12 Oct 2007 12:31:53 -0000	1.3
@@ -1 +1 @@
-zd1211rw_fw_2007-03-19.tar.bz2
+zd1211-firmware-1.4.tar.bz2




More information about the fedora-extras-commits mailing list