<p dir="ltr">On 24 Jun 2013 07:28, &lt;<a href="mailto:jackie.huang@windriver.com">jackie.huang@windriver.com</a>&gt; wrote:<br>
&gt;<br>
&gt; From: Jackie Huang &lt;<a href="mailto:jackie.huang@windriver.com">jackie.huang@windriver.com</a>&gt;<br>
&gt;<br>
&gt; The code relies on hardware specific memory locations to access<br>
&gt; and modify the keyboard repeat rate.  It also requires read/write<br>
&gt; access to /dev/port which doesn&#39;t exist on every architecture&#39;s<br>
&gt; root fs.  The defect was raised for Qemu PowerPC but it also fails on<br>
&gt; ARM.  The keyboard emulation in qemuppc is for an ADB (Apple Desktop Bus)<br>
&gt; device and not compatible with an Intel driver.  There&#39;s also no<br>
&gt; indication in the documentation that the code should work on<br>
&gt; anything other than Intel architecture but it also works on MIPS.<br>
&gt;</p>
<p dir="ltr">&gt; ++#if !(  defined(__i386__)   \<br>
&gt; ++     || defined(__x86_64__) \<br>
&gt; ++     || defined(__mips__)   \<br>
&gt; ++     || defined(__sparc___))<br>
&gt; ++<br>
&gt; ++      fprintf(stderr,<br>
&gt; ++              &quot;ERROR:  %s should only be used on MIPS, x86 and Sparc archicture boards\n&quot;, basename(argv[0]));<br>
&gt; ++        exit(1);<br>
&gt; ++#endif</p>
<p dir="ltr">Would it be better to detect the target platform in the build system and skip building the kbdrate program for architectures it won&#39;t work on rather than building and installing a known broken program?</p>

<p dir="ltr">&gt; ++      set_progname(argv[0]);<br>
&gt; +       set_progname(argv[0]);</p>
<p dir="ltr">Accidental repeat?</p>
<p dir="ltr">--</p>
<p dir="ltr">Paul Barker</p>
<p dir="ltr">Email: <a href="mailto:paul@paulbarker.me.uk">paul@paulbarker.me.uk</a><br>
<a href="http://www.paulbarker.me.uk">http://www.paulbarker.me.uk</a></p>