On 6/24/2013 3:23 PM, Paul Barker wrote:
On 24 Jun 2013 07:28, <jackie.hu...@windriver.com
<mailto:jackie.hu...@windriver.com>> wrote:
 >
 > From: Jackie Huang <jackie.hu...@windriver.com
<mailto:jackie.hu...@windriver.com>>
 >
 > The code relies on hardware specific memory locations to access
 > and modify the keyboard repeat rate.  It also requires read/write
 > access to /dev/port which doesn't exist on every architecture's
 > root fs.  The defect was raised for Qemu PowerPC but it also fails on
 > ARM.  The keyboard emulation in qemuppc is for an ADB (Apple Desktop Bus)
 > device and not compatible with an Intel driver.  There's also no
 > indication in the documentation that the code should work on
 > anything other than Intel architecture but it also works on MIPS.
 >

 > ++#if !(  defined(__i386__)   \
 > ++     || defined(__x86_64__) \
 > ++     || defined(__mips__)   \
 > ++     || defined(__sparc___))
 > ++
 > ++      fprintf(stderr,
 > ++              "ERROR:  %s should only be used on MIPS, x86 and
Sparc archicture boards\n", basename(argv[0]));
 > ++        exit(1);
 > ++#endif

Would it be better to detect the target platform in the build system and
skip building the kbdrate program for architectures it won't work on
rather than building and installing a known broken program?

Yeah, it should be better, I will check if we can do that.


 > ++      set_progname(argv[0]);
 > +       set_progname(argv[0]);

Accidental repeat?

Indeed, thanks for pointing this out.

Thanks,
Jackie


--

Paul Barker

Email: p...@paulbarker.me.uk <mailto:p...@paulbarker.me.uk>
http://www.paulbarker.me.uk


--
Jackie Huang
WIND RIVER | China Development Center
MSN:jackiel...@hotmail.com
Tel: +86 8477 8594
Mobile: +86 138 1027 4745
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to