diff -uNra iceweasel-17.0.1.orig/debian/changelog iceweasel-17.0.1/debian/changelog
--- iceweasel-17.0.1.orig/debian/changelog	2012-12-01 17:21:59.000000000 +0800
+++ iceweasel-17.0.1/debian/changelog	2012-12-08 01:58:30.898796959 +0800
@@ -1,3 +1,10 @@
+iceweasel (17.0.1-1loongson) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * loongson patch.
+
+ -- liu shiwei <liushiwei@gmail.com>  Sat, 08 Dec 2012 01:57:58 +0800
+
 iceweasel (17.0.1-1) experimental; urgency=low
 
   * New upstream release.
diff -uNra iceweasel-17.0.1.orig/debian/patches/porting/fix_loongson_PageSize.patch iceweasel-17.0.1/debian/patches/porting/fix_loongson_PageSize.patch
--- iceweasel-17.0.1.orig/debian/patches/porting/fix_loongson_PageSize.patch	1970-01-01 08:00:00.000000000 +0800
+++ iceweasel-17.0.1/debian/patches/porting/fix_loongson_PageSize.patch	2012-12-08 01:57:51.331384192 +0800
@@ -0,0 +1,14 @@
+    loongson2f pagesize is 16384
+      liushiwei@gmail.com
+        2012-12-07
+--- iceweasel-17.0.orig/js/src/gc/Heap.h	2012-12-06 02:13:50.729632056 +0800
++++ iceweasel-17.0/js/src/gc/Heap.h	2012-12-06 02:15:05.602630426 +0800
+@@ -110,6 +110,8 @@
+  */
+ #if defined(SOLARIS) && (defined(__sparc) || defined(__sparcv9))
+ const size_t PageShift = 13;
++#elif defined(__mips__)
++const size_t PageShift = 14; //loongson2f 16K pagesize
+ #else
+ const size_t PageShift = 12;
+ #endif
diff -uNra iceweasel-17.0.1.orig/debian/patches/series iceweasel-17.0.1/debian/patches/series
--- iceweasel-17.0.1.orig/debian/patches/series	2012-12-01 17:21:46.000000000 +0800
+++ iceweasel-17.0.1/debian/patches/series	2012-12-08 01:57:51.335290542 +0800
@@ -42,3 +42,4 @@
 debian-hacks/Preprocess-appstrings.properties.patch
 l10n/Place-google-and-gmail-before-yandex.patch
 configure.patch
+porting/fix_loongson_PageSize.patch
diff -uNra iceweasel-17.0.1.orig/debian/rules iceweasel-17.0.1/debian/rules
--- iceweasel-17.0.1.orig/debian/rules	2012-12-01 17:21:01.000000000 +0800
+++ iceweasel-17.0.1/debian/rules	2012-12-08 01:57:51.339196892 +0800
@@ -288,7 +288,7 @@
 	dh_install -piceweasel-l10n-$(call lc,$*) build-browser/dist/xpi-stage/locale-$*/searchplugins/* /etc/iceweasel/searchplugins/locale/$*/
 
 stamps/dh_install:: debian/dh/dh_xulrunner debian/noinstall build-xulrunner/dist/bin/npapi_getinfo
-	awk '{print "debian/tmp/" $$1 }' < debian/noinstall | xargs rm -r
+	awk '{print "debian/tmp/" $$1 }' < debian/noinstall | xargs rm -rf
 	dh_install --fail-missing
 
 #Install helpers
