]> www.vanbest.org Git - sasc-ng.git/commitdiff
More specific cpu optimisations
authorJan-Pascal van Best <janpascal@vanbest.org>
Mon, 28 Jan 2013 11:40:57 +0000 (12:40 +0100)
committerJan-Pascal van Best <janpascal@vanbest.org>
Mon, 28 Jan 2013 13:39:33 +0000 (14:39 +0100)
debian/changelog
debian/config.mak-athlon64 [new file with mode: 0644]
debian/config.mak-atom [new file with mode: 0644]
debian/config.mak-core2 [new file with mode: 0644]
debian/config.mak-sse2 [deleted file]
debian/control.source
debian/rules
debian/rules.defs

index 429ff3ab783ab84c5e2fd4b9be98561fec2c319b..07eaee8370ff459a044071a64e38de56591a7407 100644 (file)
@@ -1,3 +1,9 @@
+sasc-ng (620-6) local; urgency=low
+
+  * More specific CPU optimisations: atom, core2, athlon64 
+
+ -- Jan-Pascal van Best <janpascal@vanbest.org>  Mon, 28 Jan 2013 12:40:04 +0100
+
 sasc-ng (620-5) local; urgency=low
 
   * Added example configuration files
diff --git a/debian/config.mak-athlon64 b/debian/config.mak-athlon64
new file mode 100644 (file)
index 0000000..8f290c3
--- /dev/null
@@ -0,0 +1,4 @@
+# Automatically generated by configure - do not modify
+FFDECSA_OPTS = "FLAGS=-O3 -fexpensive-optimizations -funroll-loops -mmmx -msse -msse2 -march=athlon64" PARALLEL_MODE=PARALLEL_128_SSE2 COMPILER=g++-4.6
+DVB_DIR=#DVB_DIR#
+CXX=g++-4.6
diff --git a/debian/config.mak-atom b/debian/config.mak-atom
new file mode 100644 (file)
index 0000000..e49685e
--- /dev/null
@@ -0,0 +1,4 @@
+# FFdecsa configuration for Intel Atom cpus
+FFDECSA_OPTS = "FLAGS=-O3 -fexpensive-optimizations -funroll-loops -mmmx -msse -msse2 -march=atom" PARALLEL_MODE=PARALLEL_128_SSE2 COMPILER=g++-4.6
+DVB_DIR=#DVB_DIR#
+CXX=g++-4.6
diff --git a/debian/config.mak-core2 b/debian/config.mak-core2
new file mode 100644 (file)
index 0000000..73f0dcd
--- /dev/null
@@ -0,0 +1,4 @@
+# Automatically generated by configure - do not modify
+FFDECSA_OPTS = "FLAGS=-O3 -fexpensive-optimizations -funroll-loops -mmmx -msse -msse2 -march=core2" PARALLEL_MODE=PARALLEL_128_SSE2 COMPILER=g++-4.6
+DVB_DIR=#DVB_DIR#
+CXX=g++-4.6
diff --git a/debian/config.mak-sse2 b/debian/config.mak-sse2
deleted file mode 100644 (file)
index 68e8257..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-# Automatically generated by configure - do not modify
-FFDECSA_OPTS = "FLAGS=-O3 -fexpensive-optimizations -funroll-loops -mmmx -msse -msse2 -march=native" PARALLEL_MODE=PARALLEL_128_SSE2 COMPILER=g++
-DVB_DIR=#DVB_DIR#
-CXX=g++
index 72295ebb1b767bc390c49703e8e72fa64f3e7a15..083bbc96e6d7be951e538b7755340f56fee05e29 100644 (file)
@@ -3,7 +3,7 @@ Section: devel
 Priority: extra
 Maintainer: Jan-Pascal van Best <janpascal@vanbest.org>
 Standards-Version: 3.9.4
-Build-Depends: debhelper (>= 8), libssl-dev (>= 1.0),
+Build-Depends: debhelper (>= 8), libssl-dev (>= 1.0), gcc-4.6, g++-4.6,
  #LINUX_HEADERS#
 
 Package: sasc-ng-common
index e726f4902d8b36ef0e3be863b7012aee69cd1471..7309040c1d6d1671d5f5791b7d8f6d6d0fad3754 100755 (executable)
@@ -22,6 +22,8 @@ override_dh_auto_configure:
        
 override_dh_auto_clean:
        cd contrib/sasc-ng; if [ -r config.mak ]; then make clean module_clean; fi
+       rm -f contrib/sasc-ng/dvbloopback.o
+       rm -f contrib/sasc-ng/config.mak
        
 override_dh_auto_build:
        #cd contrib/sasc-ng; make module; make
@@ -34,8 +36,8 @@ build_%:
        sed -e "s|#DVB_DIR#|$(CURDIR)/debian/includes/$$KERNEL/|" < debian/config.mak-$$FLAVOR > contrib/sasc-ng/config.mak; \
        echo "Building $$VERSION - $$FLAVOR"; \
        cd contrib/sasc-ng; \
-       make module; \
-       make; \
+       make module CC=gcc-4.6 CXX=g++-4.6; \
+       make CC=gcc-4.6 CXX=g++-4.6; \
        mkdir -p $(CURDIR)/debian/tmp/$$KERNEL-$$FLAVOR/bin; \
        mkdir -p $(CURDIR)/debian/tmp/$$KERNEL-$$FLAVOR/modules; \
        mkdir -p $(CURDIR)/debian/tmp/$$KERNEL-$$FLAVOR/lib; \
@@ -83,7 +85,7 @@ debian/control-real: $(CONTROL_FILES)
        sed \
                -e 's/#LINUX_HEADERS#/$(LINUX_HEADERS)/g' \
                debian/control.source > debian/control.tmp
-       $(foreach f,$(KERNELS),$(call append-flavor-entries,$(f),$(KERNEL_VERSION_$(f)),sse2))
+       $(foreach kernel,$(KERNELS),$(foreach flav,$(FFDECSA_FLAVORS),$(call append-flavor-entries,$(kernel),$(KERNEL_VERSION_$(kernel)),$(flav))))
        mv debian/control.tmp debian/control
        $(foreach kernel,$(KERNELS),$(foreach flav,$(FFDECSA_FLAVORS),$(call create-flavor-install,$(kernel),$(flav))))
        md5sum debian/control $^ > debian/control.md5sum
index 5557168fa2197f7a8eeb1e2a0b336c5d24b9913d..f1dcbbcf22a33820ace9ed01ce58cbb5287a5949 100644 (file)
@@ -1,7 +1,7 @@
 KERNELS = 3.7-trunk-amd64
 KERNEL_VERSION_3.7-trunk-amd64 = 3.7.1-1~experimental.2.sasc1
 
-# Even Atoms do sse2
-FFDECSA_FLAVORS = sse2 #sse 
+FFDECSA_FLAVORS = core2 athlon64 atom #sse 
 
 # For the moment we just support amd64
+# .. so pentium4 is useless?