nspluginwrapper on arm linux
Joon-Cheol Park
jooncheol at gmail.com
Tue Feb 14 02:41:01 UTC 2012
Hi list,
I've tested nspluginwrapper on ubuntu arm machine.
During test nspluginwrapper on arm, I've added simple patch for this.
I've built using this configure parameters with this patch
$ ./configure --enable-viewer --target-os=linux --target-cpu=arm
It worked properly with FF and flash plugin.
So I want introduce to this patch to share my experience.
If you found any wrong, please correct me.
Best Regards,
JC
diff --git a/configure b/configure
index 09c400a..4d25e9e 100755
--- a/configure
+++ b/configure
@@ -985,6 +985,10 @@ elif test "$target_cpu" = "ppc" ; then
echo "TARGET_ARCH=ppc" >> $config_mak
echo "#define TARGET_ARCH \"ppc\"" >> $config_h
echo "#define TARGET_PPC 1" >> $config_h
+elif test "$target_cpu" = "arm" ; then
+ echo "TARGET_ARCH=arm" >> $config_mak
+ echo "#define TARGET_ARCH \"arm\"" >> $config_h
+ echo "#define TARGET_ARM 1" >> $config_h
else
echo "Unsupported target CPU"
exit 1
diff --git a/src/npw-config-template.h b/src/npw-config-template.h
index 84755e4..e0d007c 100644
--- a/src/npw-config-template.h
+++ b/src/npw-config-template.h
@@ -152,6 +152,7 @@ static bool FUNC(is_elf_plugin_fd)(int fd,
NPW_PluginInfo *out_plugin_info)
case EM_SPARC: target_arch = "sparc"; break;
case EM_PPC: target_arch = "ppc"; break;
case EM_PPC64: target_arch = "ppc64"; break;
+ case EM_ARM: target_arch = "arm"; break;
}
if (target_arch == NULL)
target_arch = "";
More information about the Nspluginwrapper-devel-list
mailing list