summaryrefslogtreecommitdiffstats
path: root/meta-extras/packages
diff options
context:
space:
mode:
Diffstat (limited to 'meta-extras/packages')
-rw-r--r--meta-extras/packages/linux/linux-android-goldfish/binutils-buildid-arm.patch16
-rw-r--r--meta-extras/packages/linux/linux-android-goldfish/defconfig-android-goldfish1043
-rw-r--r--meta-extras/packages/linux/linux-android-goldfish_2.6.23-rc20.bb171
-rw-r--r--meta-extras/packages/qemu/qemu-android-native.bb25
-rw-r--r--meta-extras/packages/qemu/qemu-android-native/fixes.patch45
5 files changed, 1300 insertions, 0 deletions
diff --git a/meta-extras/packages/linux/linux-android-goldfish/binutils-buildid-arm.patch b/meta-extras/packages/linux/linux-android-goldfish/binutils-buildid-arm.patch
new file mode 100644
index 0000000000..68e35e89e1
--- /dev/null
+++ b/meta-extras/packages/linux/linux-android-goldfish/binutils-buildid-arm.patch
@@ -0,0 +1,16 @@
1---
2 arch/arm/kernel/vmlinux.lds.S | 1 +
3 1 file changed, 1 insertion(+)
4
5Index: linux-2.6.22/arch/arm/kernel/vmlinux.lds.S
6===================================================================
7--- linux-2.6.22.orig/arch/arm/kernel/vmlinux.lds.S 2007-09-11 18:32:29.000000000 +0200
8+++ linux-2.6.22/arch/arm/kernel/vmlinux.lds.S 2007-09-11 18:33:42.000000000 +0200
9@@ -94,6 +94,7 @@
10 TEXT_TEXT
11 SCHED_TEXT
12 LOCK_TEXT
13+ *(.note.*)
14 #ifdef CONFIG_MMU
15 *(.fixup)
16 #endif
diff --git a/meta-extras/packages/linux/linux-android-goldfish/defconfig-android-goldfish b/meta-extras/packages/linux/linux-android-goldfish/defconfig-android-goldfish
new file mode 100644
index 0000000000..cab2d89e0c
--- /dev/null
+++ b/meta-extras/packages/linux/linux-android-goldfish/defconfig-android-goldfish
@@ -0,0 +1,1043 @@
1
2#
3# Automatically generated make config: don't edit
4# Linux kernel version: 2.6.21
5# Fri Jun 29 20:16:53 2007
6#
7CONFIG_ARM=y
8CONFIG_SYS_SUPPORTS_APM_EMULATION=y
9# CONFIG_GENERIC_GPIO is not set
10# CONFIG_GENERIC_TIME is not set
11CONFIG_MMU=y
12# CONFIG_NO_IOPORT is not set
13CONFIG_GENERIC_HARDIRQS=y
14CONFIG_TRACE_IRQFLAGS_SUPPORT=y
15CONFIG_HARDIRQS_SW_RESEND=y
16CONFIG_GENERIC_IRQ_PROBE=y
17CONFIG_RWSEM_GENERIC_SPINLOCK=y
18# CONFIG_ARCH_HAS_ILOG2_U32 is not set
19# CONFIG_ARCH_HAS_ILOG2_U64 is not set
20CONFIG_GENERIC_HWEIGHT=y
21CONFIG_GENERIC_CALIBRATE_DELAY=y
22CONFIG_ZONE_DMA=y
23CONFIG_VECTORS_BASE=0xffff0000
24CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
25
26#
27# Code maturity level options
28#
29CONFIG_EXPERIMENTAL=y
30CONFIG_BROKEN_ON_SMP=y
31CONFIG_INIT_ENV_ARG_LIMIT=32
32
33#
34# General setup
35#
36CONFIG_LOCALVERSION=""
37CONFIG_LOCALVERSION_AUTO=y
38CONFIG_SWAP=y
39CONFIG_SYSVIPC=y
40# CONFIG_IPC_NS is not set
41CONFIG_SYSVIPC_SYSCTL=y
42# CONFIG_POSIX_MQUEUE is not set
43# CONFIG_BSD_PROCESS_ACCT is not set
44# CONFIG_TASKSTATS is not set
45# CONFIG_UTS_NS is not set
46# CONFIG_AUDIT is not set
47CONFIG_IKCONFIG=y
48CONFIG_IKCONFIG_PROC=y
49CONFIG_SYSFS_DEPRECATED=y
50# CONFIG_RELAY is not set
51CONFIG_BLK_DEV_INITRD=y
52CONFIG_INITRAMFS_SOURCE=""
53CONFIG_CC_OPTIMIZE_FOR_SIZE=y
54CONFIG_SYSCTL=y
55CONFIG_PANIC_TIMEOUT=0
56# CONFIG_EMBEDDED is not set
57CONFIG_UID16=y
58CONFIG_SYSCTL_SYSCALL=y
59CONFIG_KALLSYMS=y
60# CONFIG_KALLSYMS_ALL is not set
61# CONFIG_KALLSYMS_EXTRA_PASS is not set
62CONFIG_HOTPLUG=y
63CONFIG_PRINTK=y
64CONFIG_BUG=y
65CONFIG_ELF_CORE=y
66CONFIG_BASE_FULL=y
67CONFIG_FUTEX=y
68CONFIG_EPOLL=y
69CONFIG_SHMEM=y
70CONFIG_SLAB=y
71CONFIG_VM_EVENT_COUNTERS=y
72CONFIG_RT_MUTEXES=y
73# CONFIG_TINY_SHMEM is not set
74CONFIG_BASE_SMALL=0
75# CONFIG_SLOB is not set
76
77#
78# Loadable module support
79#
80# CONFIG_MODULES is not set
81
82#
83# Block layer
84#
85CONFIG_BLOCK=y
86# CONFIG_LBD is not set
87# CONFIG_BLK_DEV_IO_TRACE is not set
88# CONFIG_LSF is not set
89
90#
91# IO Schedulers
92#
93CONFIG_IOSCHED_NOOP=y
94CONFIG_IOSCHED_AS=y
95CONFIG_IOSCHED_DEADLINE=y
96CONFIG_IOSCHED_CFQ=y
97CONFIG_DEFAULT_AS=y
98# CONFIG_DEFAULT_DEADLINE is not set
99# CONFIG_DEFAULT_CFQ is not set
100# CONFIG_DEFAULT_NOOP is not set
101CONFIG_DEFAULT_IOSCHED="anticipatory"
102
103#
104# System Type
105#
106# CONFIG_ARCH_AAEC2000 is not set
107CONFIG_ARCH_GOLDFISH=y
108# CONFIG_ARCH_INTEGRATOR is not set
109# CONFIG_ARCH_REALVIEW is not set
110# CONFIG_ARCH_VERSATILE is not set
111# CONFIG_ARCH_AT91 is not set
112# CONFIG_ARCH_CLPS7500 is not set
113# CONFIG_ARCH_CLPS711X is not set
114# CONFIG_ARCH_CO285 is not set
115# CONFIG_ARCH_EBSA110 is not set
116# CONFIG_ARCH_EP93XX is not set
117# CONFIG_ARCH_FOOTBRIDGE is not set
118# CONFIG_ARCH_NETX is not set
119# CONFIG_ARCH_H720X is not set
120# CONFIG_ARCH_IMX is not set
121# CONFIG_ARCH_IOP32X is not set
122# CONFIG_ARCH_IOP33X is not set
123# CONFIG_ARCH_IOP13XX is not set
124# CONFIG_ARCH_IXP4XX is not set
125# CONFIG_ARCH_IXP2000 is not set
126# CONFIG_ARCH_IXP23XX is not set
127# CONFIG_ARCH_L7200 is not set
128# CONFIG_ARCH_NS9XXX is not set
129# CONFIG_ARCH_PNX4008 is not set
130# CONFIG_ARCH_PXA is not set
131# CONFIG_ARCH_RPC is not set
132# CONFIG_ARCH_SA1100 is not set
133# CONFIG_ARCH_S3C2410 is not set
134# CONFIG_ARCH_SHARK is not set
135# CONFIG_ARCH_LH7A40X is not set
136# CONFIG_ARCH_OMAP is not set
137
138#
139# Goldfish Options
140#
141CONFIG_MACH_GOLDFISH=y
142
143#
144# Processor Type
145#
146CONFIG_CPU_32=y
147CONFIG_CPU_ARM926T=y
148CONFIG_CPU_32v5=y
149CONFIG_CPU_ABRT_EV5TJ=y
150CONFIG_CPU_CACHE_VIVT=y
151CONFIG_CPU_COPY_V4WB=y
152CONFIG_CPU_TLB_V4WBI=y
153CONFIG_CPU_CP15=y
154CONFIG_CPU_CP15_MMU=y
155
156#
157# Processor Features
158#
159CONFIG_ARM_THUMB=y
160# CONFIG_CPU_ICACHE_DISABLE is not set
161# CONFIG_CPU_DCACHE_DISABLE is not set
162# CONFIG_CPU_DCACHE_WRITETHROUGH is not set
163# CONFIG_CPU_CACHE_ROUND_ROBIN is not set
164# CONFIG_OUTER_CACHE is not set
165
166#
167# Bus support
168#
169
170#
171# PCCARD (PCMCIA/CardBus) support
172#
173# CONFIG_PCCARD is not set
174
175#
176# Kernel Features
177#
178# CONFIG_PREEMPT is not set
179# CONFIG_NO_IDLE_HZ is not set
180CONFIG_HZ=100
181CONFIG_AEABI=y
182CONFIG_OABI_COMPAT=n
183# CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set
184CONFIG_SELECT_MEMORY_MODEL=y
185CONFIG_FLATMEM_MANUAL=y
186# CONFIG_DISCONTIGMEM_MANUAL is not set
187# CONFIG_SPARSEMEM_MANUAL is not set
188CONFIG_FLATMEM=y
189CONFIG_FLAT_NODE_MEM_MAP=y
190# CONFIG_SPARSEMEM_STATIC is not set
191CONFIG_SPLIT_PTLOCK_CPUS=4096
192# CONFIG_RESOURCES_64BIT is not set
193CONFIG_ZONE_DMA_FLAG=1
194CONFIG_ALIGNMENT_TRAP=y
195
196#
197# Boot options
198#
199CONFIG_ZBOOT_ROM_TEXT=0x0
200CONFIG_ZBOOT_ROM_BSS=0x0
201CONFIG_CMDLINE=""
202# CONFIG_XIP_KERNEL is not set
203# CONFIG_KEXEC is not set
204
205#
206# Floating point emulation
207#
208
209#
210# At least one emulation must be selected
211#
212CONFIG_FPE_NWFPE=y
213# CONFIG_FPE_NWFPE_XP is not set
214# CONFIG_FPE_FASTFPE is not set
215CONFIG_VFP=y
216
217#
218# Userspace binary formats
219#
220CONFIG_BINFMT_ELF=y
221# CONFIG_BINFMT_AOUT is not set
222CONFIG_BINFMT_MISC=y
223# CONFIG_ARTHUR is not set
224
225#
226# Power management options
227#
228CONFIG_PM=y
229CONFIG_PM_LEGACY=y
230# CONFIG_PM_DEBUG is not set
231# CONFIG_PM_SYSFS_DEPRECATED is not set
232# CONFIG_APM_EMULATION is not set
233
234#
235# Networking
236#
237CONFIG_NET=y
238
239#
240# Networking options
241#
242# CONFIG_NETDEBUG is not set
243CONFIG_PACKET=y
244CONFIG_PACKET_MMAP=y
245CONFIG_UNIX=y
246CONFIG_XFRM=y
247# CONFIG_XFRM_USER is not set
248# CONFIG_XFRM_SUB_POLICY is not set
249# CONFIG_XFRM_MIGRATE is not set
250# CONFIG_NET_KEY is not set
251CONFIG_INET=y
252CONFIG_IP_MULTICAST=y
253# CONFIG_IP_ADVANCED_ROUTER is not set
254CONFIG_IP_FIB_HASH=y
255CONFIG_IP_PNP=y
256CONFIG_IP_PNP_DHCP=y
257CONFIG_IP_PNP_BOOTP=y
258# CONFIG_IP_PNP_RARP is not set
259CONFIG_NET_IPIP=y
260CONFIG_NET_IPGRE=y
261CONFIG_NET_IPGRE_BROADCAST=y
262CONFIG_IP_MROUTE=y
263CONFIG_IP_PIMSM_V1=y
264CONFIG_IP_PIMSM_V2=y
265CONFIG_ARPD=y
266CONFIG_SYN_COOKIES=y
267CONFIG_INET_AH=y
268CONFIG_INET_ESP=y
269CONFIG_INET_IPCOMP=y
270CONFIG_INET_XFRM_TUNNEL=y
271CONFIG_INET_TUNNEL=y
272CONFIG_INET_XFRM_MODE_TRANSPORT=y
273CONFIG_INET_XFRM_MODE_TUNNEL=y
274CONFIG_INET_XFRM_MODE_BEET=y
275CONFIG_INET_DIAG=y
276CONFIG_INET_TCP_DIAG=y
277# CONFIG_TCP_CONG_ADVANCED is not set
278CONFIG_TCP_CONG_CUBIC=y
279CONFIG_DEFAULT_TCP_CONG="cubic"
280# CONFIG_TCP_MD5SIG is not set
281# CONFIG_IPV6 is not set
282# CONFIG_INET6_XFRM_TUNNEL is not set
283# CONFIG_INET6_TUNNEL is not set
284# CONFIG_NETWORK_SECMARK is not set
285# CONFIG_NETFILTER is not set
286
287#
288# DCCP Configuration (EXPERIMENTAL)
289#
290# CONFIG_IP_DCCP is not set
291
292#
293# SCTP Configuration (EXPERIMENTAL)
294#
295# CONFIG_IP_SCTP is not set
296
297#
298# TIPC Configuration (EXPERIMENTAL)
299#
300# CONFIG_TIPC is not set
301# CONFIG_ATM is not set
302CONFIG_BRIDGE=y
303CONFIG_VLAN_8021Q=y
304# CONFIG_DECNET is not set
305CONFIG_LLC=y
306# CONFIG_LLC2 is not set
307# CONFIG_IPX is not set
308# CONFIG_ATALK is not set
309# CONFIG_X25 is not set
310# CONFIG_LAPB is not set
311# CONFIG_ECONET is not set
312# CONFIG_WAN_ROUTER is not set
313
314#
315# QoS and/or fair queueing
316#
317# CONFIG_NET_SCHED is not set
318
319#
320# Network testing
321#
322# CONFIG_NET_PKTGEN is not set
323# CONFIG_HAMRADIO is not set
324# CONFIG_IRDA is not set
325# CONFIG_BT is not set
326# CONFIG_IEEE80211 is not set
327
328#
329# Device Drivers
330#
331
332#
333# Generic Driver Options
334#
335CONFIG_STANDALONE=y
336CONFIG_PREVENT_FIRMWARE_BUILD=y
337# CONFIG_FW_LOADER is not set
338# CONFIG_DEBUG_DRIVER is not set
339# CONFIG_DEBUG_DEVRES is not set
340# CONFIG_SYS_HYPERVISOR is not set
341
342#
343# Connector - unified userspace <-> kernelspace linker
344#
345CONFIG_CONNECTOR=y
346CONFIG_PROC_EVENTS=y
347
348#
349# Memory Technology Devices (MTD)
350#
351CONFIG_MTD=y
352# CONFIG_MTD_DEBUG is not set
353# CONFIG_MTD_CONCAT is not set
354# CONFIG_MTD_PARTITIONS is not set
355
356#
357# User Modules And Translation Layers
358#
359CONFIG_MTD_CHAR=y
360CONFIG_MTD_BLKDEVS=y
361CONFIG_MTD_BLOCK=y
362# CONFIG_FTL is not set
363# CONFIG_NFTL is not set
364# CONFIG_INFTL is not set
365# CONFIG_RFD_FTL is not set
366# CONFIG_SSFDC is not set
367
368#
369# RAM/ROM/Flash chip drivers
370#
371# CONFIG_MTD_CFI is not set
372# CONFIG_MTD_JEDECPROBE is not set
373CONFIG_MTD_MAP_BANK_WIDTH_1=y
374CONFIG_MTD_MAP_BANK_WIDTH_2=y
375CONFIG_MTD_MAP_BANK_WIDTH_4=y
376# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
377# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
378# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
379CONFIG_MTD_CFI_I1=y
380CONFIG_MTD_CFI_I2=y
381# CONFIG_MTD_CFI_I4 is not set
382# CONFIG_MTD_CFI_I8 is not set
383# CONFIG_MTD_RAM is not set
384# CONFIG_MTD_ROM is not set
385# CONFIG_MTD_ABSENT is not set
386# CONFIG_MTD_OBSOLETE_CHIPS is not set
387
388#
389# Mapping drivers for chip access
390#
391# CONFIG_MTD_COMPLEX_MAPPINGS is not set
392# CONFIG_MTD_PLATRAM is not set
393
394#
395# Self-contained MTD device drivers
396#
397# CONFIG_MTD_SLRAM is not set
398# CONFIG_MTD_PHRAM is not set
399# CONFIG_MTD_MTDRAM is not set
400# CONFIG_MTD_BLOCK2MTD is not set
401
402#
403# Disk-On-Chip Device Drivers
404#
405# CONFIG_MTD_DOC2000 is not set
406# CONFIG_MTD_DOC2001 is not set
407# CONFIG_MTD_DOC2001PLUS is not set
408CONFIG_MTD_GOLDFISH_NAND=y
409
410#
411# NAND Flash Device Drivers
412#
413# CONFIG_MTD_NAND is not set
414
415#
416# OneNAND Flash Device Drivers
417#
418# CONFIG_MTD_ONENAND is not set
419
420#
421# Parallel port support
422#
423# CONFIG_PARPORT is not set
424
425#
426# Plug and Play support
427#
428# CONFIG_PNPACPI is not set
429
430#
431# Block devices
432#
433# CONFIG_BLK_DEV_COW_COMMON is not set
434CONFIG_BLK_DEV_LOOP=y
435# CONFIG_BLK_DEV_CRYPTOLOOP is not set
436CONFIG_BLK_DEV_NBD=y
437CONFIG_BLK_DEV_RAM=y
438CONFIG_BLK_DEV_RAM_COUNT=16
439CONFIG_BLK_DEV_RAM_SIZE=8192
440CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
441# CONFIG_CDROM_PKTCDVD is not set
442# CONFIG_ATA_OVER_ETH is not set
443
444#
445# SCSI device support
446#
447# CONFIG_RAID_ATTRS is not set
448# CONFIG_SCSI is not set
449# CONFIG_SCSI_NETLINK is not set
450
451#
452# Serial ATA (prod) and Parallel ATA (experimental) drivers
453#
454# CONFIG_ATA is not set
455
456#
457# Multi-device support (RAID and LVM)
458#
459# CONFIG_MD is not set
460
461#
462# Fusion MPT device support
463#
464# CONFIG_FUSION is not set
465
466#
467# IEEE 1394 (FireWire) support
468#
469
470#
471# I2O device support
472#
473
474#
475# Network device support
476#
477CONFIG_NETDEVICES=y
478# CONFIG_DUMMY is not set
479# CONFIG_BONDING is not set
480# CONFIG_EQUALIZER is not set
481# CONFIG_TUN is not set
482
483#
484# PHY device support
485#
486# CONFIG_PHYLIB is not set
487
488#
489# Ethernet (10 or 100Mbit)
490#
491CONFIG_NET_ETHERNET=y
492CONFIG_MII=y
493CONFIG_SMC91X=y
494# CONFIG_DM9000 is not set
495
496#
497# Ethernet (1000 Mbit)
498#
499
500#
501# Ethernet (10000 Mbit)
502#
503
504#
505# Token Ring devices
506#
507
508#
509# Wireless LAN (non-hamradio)
510#
511# CONFIG_NET_RADIO is not set
512
513#
514# Wan interfaces
515#
516# CONFIG_WAN is not set
517# CONFIG_PPP is not set
518# CONFIG_SLIP is not set
519# CONFIG_SHAPER is not set
520# CONFIG_NETCONSOLE is not set
521# CONFIG_NETPOLL is not set
522# CONFIG_NET_POLL_CONTROLLER is not set
523
524#
525# ISDN subsystem
526#
527# CONFIG_ISDN is not set
528
529#
530# Input device support
531#
532CONFIG_INPUT=y
533# CONFIG_INPUT_FF_MEMLESS is not set
534
535#
536# Userland interfaces
537#
538CONFIG_INPUT_MOUSEDEV=y
539CONFIG_INPUT_MOUSEDEV_PSAUX=y
540CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
541CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
542# CONFIG_INPUT_JOYDEV is not set
543# CONFIG_INPUT_TSDEV is not set
544CONFIG_INPUT_EVDEV=y
545# CONFIG_INPUT_EVBUG is not set
546
547#
548# Input Device Drivers
549#
550CONFIG_INPUT_KEYBOARD=y
551CONFIG_KEYBOARD_ATKBD=y
552# CONFIG_KEYBOARD_SUNKBD is not set
553# CONFIG_KEYBOARD_LKKBD is not set
554# CONFIG_KEYBOARD_XTKBD is not set
555# CONFIG_KEYBOARD_NEWTON is not set
556# CONFIG_KEYBOARD_STOWAWAY is not set
557CONFIG_KEYBOARD_GOLDFISH_EVENTS=y
558# CONFIG_INPUT_MOUSE is not set
559# CONFIG_INPUT_JOYSTICK is not set
560# CONFIG_INPUT_TOUCHSCREEN is not set
561CONFIG_INPUT_MISC=y
562# CONFIG_INPUT_UINPUT is not set
563
564#
565# Hardware I/O ports
566#
567CONFIG_SERIO=y
568# CONFIG_SERIO_SERPORT is not set
569CONFIG_SERIO_LIBPS2=y
570# CONFIG_SERIO_RAW is not set
571# CONFIG_GAMEPORT is not set
572
573#
574# Character devices
575#
576CONFIG_VT=y
577CONFIG_VT_CONSOLE=y
578CONFIG_HW_CONSOLE=y
579# CONFIG_VT_HW_CONSOLE_BINDING is not set
580# CONFIG_SERIAL_NONSTANDARD is not set
581
582#
583# Serial drivers
584#
585# CONFIG_SERIAL_8250 is not set
586
587#
588# Non-8250 serial port support
589#
590CONFIG_UNIX98_PTYS=y
591# CONFIG_LEGACY_PTYS is not set
592
593#
594# IPMI
595#
596# CONFIG_IPMI_HANDLER is not set
597
598#
599# Watchdog Cards
600#
601# CONFIG_WATCHDOG is not set
602CONFIG_HW_RANDOM=y
603# CONFIG_NVRAM is not set
604# CONFIG_DTLK is not set
605# CONFIG_R3964 is not set
606# CONFIG_RAW_DRIVER is not set
607
608#
609# TPM devices
610#
611# CONFIG_TCG_TPM is not set
612CONFIG_GOLDFISH_TTY=y
613CONFIG_BINDER=y
614
615#
616# I2C support
617#
618# CONFIG_I2C is not set
619
620#
621# SPI support
622#
623# CONFIG_SPI is not set
624# CONFIG_SPI_MASTER is not set
625
626#
627# Dallas's 1-wire bus
628#
629# CONFIG_W1 is not set
630
631#
632# Hardware Monitoring support
633#
634# CONFIG_HWMON is not set
635# CONFIG_HWMON_VID is not set
636
637#
638# Misc devices
639#
640# CONFIG_PROC_EXMAP is not set
641CONFIG_LOW_MEMORY_KILLER=y
642
643#
644# Multifunction device drivers
645#
646# CONFIG_MFD_SM501 is not set
647
648#
649# LED devices
650#
651# CONFIG_NEW_LEDS is not set
652
653#
654# LED drivers
655#
656
657#
658# LED Triggers
659#
660
661#
662# Multimedia devices
663#
664# CONFIG_VIDEO_DEV is not set
665
666#
667# Digital Video Broadcasting Devices
668#
669# CONFIG_DVB is not set
670
671#
672# Graphics support
673#
674# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
675CONFIG_FB=y
676# CONFIG_FIRMWARE_EDID is not set
677# CONFIG_FB_DDC is not set
678CONFIG_FB_CFB_FILLRECT=y
679CONFIG_FB_CFB_COPYAREA=y
680CONFIG_FB_CFB_IMAGEBLIT=y
681# CONFIG_FB_SVGALIB is not set
682# CONFIG_FB_MACMODES is not set
683# CONFIG_FB_BACKLIGHT is not set
684CONFIG_FB_MODE_HELPERS=y
685CONFIG_FB_TILEBLITTING=y
686
687#
688# Frame buffer hardware drivers
689#
690# CONFIG_FB_S1D13XXX is not set
691CONFIG_FB_GOLDFISH=y
692# CONFIG_FB_VIRTUAL is not set
693
694#
695# Console display driver support
696#
697# CONFIG_VGA_CONSOLE is not set
698CONFIG_DUMMY_CONSOLE=y
699CONFIG_FRAMEBUFFER_CONSOLE=y
700# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
701# CONFIG_FONTS is not set
702CONFIG_FONT_8x8=y
703CONFIG_FONT_8x16=y
704
705#
706# Logo configuration
707#
708# CONFIG_LOGO is not set
709
710#
711# Sound
712#
713# CONFIG_SOUND is not set
714
715#
716# HID Devices
717#
718CONFIG_HID=y
719# CONFIG_HID_DEBUG is not set
720
721#
722# USB support
723#
724CONFIG_USB_ARCH_HAS_HCD=y
725# CONFIG_USB_ARCH_HAS_OHCI is not set
726# CONFIG_USB_ARCH_HAS_EHCI is not set
727# CONFIG_USB is not set
728
729#
730# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
731#
732
733#
734# USB Gadget Support
735#
736# CONFIG_USB_GADGET is not set
737
738#
739# MMC/SD Card support
740#
741CONFIG_MMC=y
742# CONFIG_MMC_DEBUG is not set
743CONFIG_MMC_BLOCK=y
744CONFIG_MMC_GOLDFISH=y
745
746#
747# Real Time Clock
748#
749CONFIG_RTC_LIB=y
750CONFIG_RTC_CLASS=y
751CONFIG_RTC_HCTOSYS=y
752CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
753# CONFIG_RTC_DEBUG is not set
754
755#
756# RTC interfaces
757#
758CONFIG_RTC_INTF_SYSFS=y
759CONFIG_RTC_INTF_PROC=y
760CONFIG_RTC_INTF_DEV=y
761# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
762
763#
764# RTC drivers
765#
766# CONFIG_RTC_DRV_CMOS is not set
767# CONFIG_RTC_DRV_DS1553 is not set
768# CONFIG_RTC_DRV_DS1742 is not set
769# CONFIG_RTC_DRV_M48T86 is not set
770# CONFIG_RTC_DRV_TEST is not set
771# CONFIG_RTC_DRV_V3020 is not set
772CONFIG_RTC_DRV_GOLDFISH=y
773
774#
775# Android
776#
777# CONFIG_ANDROID_GADGET is not set
778# CONFIG_ANDROID_RAM_CONSOLE is not set
779CONFIG_ANDROID_POWER=y
780CONFIG_ANDROID_LOGGER=y
781
782#
783# File systems
784#
785# CONFIG_EXT2_FS is not set
786# CONFIG_EXT3_FS is not set
787# CONFIG_EXT4DEV_FS is not set
788# CONFIG_REISERFS_FS is not set
789# CONFIG_JFS_FS is not set
790# CONFIG_FS_POSIX_ACL is not set
791# CONFIG_XFS_FS is not set
792# CONFIG_GFS2_FS is not set
793# CONFIG_OCFS2_FS is not set
794# CONFIG_MINIX_FS is not set
795# CONFIG_ROMFS_FS is not set
796CONFIG_INOTIFY=y
797CONFIG_INOTIFY_USER=y
798# CONFIG_QUOTA is not set
799CONFIG_DNOTIFY=y
800# CONFIG_AUTOFS_FS is not set
801# CONFIG_AUTOFS4_FS is not set
802# CONFIG_FUSE_FS is not set
803
804#
805# CD-ROM/DVD Filesystems
806#
807# CONFIG_ISO9660_FS is not set
808# CONFIG_UDF_FS is not set
809
810#
811# DOS/FAT/NT Filesystems
812#
813CONFIG_FAT_FS=y
814CONFIG_MSDOS_FS=y
815CONFIG_VFAT_FS=y
816CONFIG_FAT_DEFAULT_CODEPAGE=437
817CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
818# CONFIG_NTFS_FS is not set
819
820#
821# Pseudo filesystems
822#
823CONFIG_PROC_FS=y
824CONFIG_PROC_SYSCTL=y
825CONFIG_SYSFS=y
826CONFIG_TMPFS=y
827# CONFIG_TMPFS_POSIX_ACL is not set
828# CONFIG_HUGETLB_PAGE is not set
829CONFIG_RAMFS=y
830# CONFIG_CONFIGFS_FS is not set
831
832#
833# Miscellaneous filesystems
834#
835# CONFIG_ADFS_FS is not set
836# CONFIG_AFFS_FS is not set
837# CONFIG_HFS_FS is not set
838# CONFIG_HFSPLUS_FS is not set
839# CONFIG_BEFS_FS is not set
840# CONFIG_BFS_FS is not set
841# CONFIG_EFS_FS is not set
842CONFIG_YAFFS_FS=y
843CONFIG_YAFFS_YAFFS1=y
844# CONFIG_YAFFS_DOES_ECC is not set
845CONFIG_YAFFS_YAFFS2=y
846CONFIG_YAFFS_AUTO_YAFFS2=y
847# CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set
848CONFIG_YAFFS_CHECKPOINT_RESERVED_BLOCKS=10
849# CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set
850# CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED is not set
851CONFIG_YAFFS_SHORT_NAMES_IN_RAM=y
852# CONFIG_JFFS2_FS is not set
853# CONFIG_CRAMFS is not set
854# CONFIG_VXFS_FS is not set
855# CONFIG_HPFS_FS is not set
856# CONFIG_QNX4FS_FS is not set
857# CONFIG_SYSV_FS is not set
858# CONFIG_UFS_FS is not set
859
860#
861# Network File Systems
862#
863# CONFIG_NFS_FS is not set
864CONFIG_NFSD=y
865CONFIG_NFSD_V3=y
866# CONFIG_NFSD_V3_ACL is not set
867# CONFIG_NFSD_V4 is not set
868# CONFIG_NFSD_TCP is not set
869CONFIG_LOCKD=y
870CONFIG_LOCKD_V4=y
871CONFIG_EXPORTFS=y
872CONFIG_NFS_COMMON=y
873CONFIG_SUNRPC=y
874# CONFIG_RPCSEC_GSS_KRB5 is not set
875# CONFIG_RPCSEC_GSS_SPKM3 is not set
876CONFIG_SMB_FS=y
877# CONFIG_SMB_NLS_DEFAULT is not set
878# CONFIG_CIFS is not set
879# CONFIG_NCP_FS is not set
880# CONFIG_CODA_FS is not set
881# CONFIG_AFS_FS is not set
882# CONFIG_9P_FS is not set
883
884#
885# Partition Types
886#
887# CONFIG_PARTITION_ADVANCED is not set
888CONFIG_MSDOS_PARTITION=y
889
890#
891# Native Language Support
892#
893CONFIG_NLS=y
894CONFIG_NLS_DEFAULT="iso8859-1"
895CONFIG_NLS_CODEPAGE_437=y
896# CONFIG_NLS_CODEPAGE_737 is not set
897# CONFIG_NLS_CODEPAGE_775 is not set
898# CONFIG_NLS_CODEPAGE_850 is not set
899# CONFIG_NLS_CODEPAGE_852 is not set
900# CONFIG_NLS_CODEPAGE_855 is not set
901# CONFIG_NLS_CODEPAGE_857 is not set
902# CONFIG_NLS_CODEPAGE_860 is not set
903# CONFIG_NLS_CODEPAGE_861 is not set
904# CONFIG_NLS_CODEPAGE_862 is not set
905# CONFIG_NLS_CODEPAGE_863 is not set
906# CONFIG_NLS_CODEPAGE_864 is not set
907# CONFIG_NLS_CODEPAGE_865 is not set
908# CONFIG_NLS_CODEPAGE_866 is not set
909# CONFIG_NLS_CODEPAGE_869 is not set
910# CONFIG_NLS_CODEPAGE_936 is not set
911# CONFIG_NLS_CODEPAGE_950 is not set
912# CONFIG_NLS_CODEPAGE_932 is not set
913# CONFIG_NLS_CODEPAGE_949 is not set
914# CONFIG_NLS_CODEPAGE_874 is not set
915# CONFIG_NLS_ISO8859_8 is not set
916# CONFIG_NLS_CODEPAGE_1250 is not set
917# CONFIG_NLS_CODEPAGE_1251 is not set
918# CONFIG_NLS_ASCII is not set
919CONFIG_NLS_ISO8859_1=y
920# CONFIG_NLS_ISO8859_2 is not set
921# CONFIG_NLS_ISO8859_3 is not set
922# CONFIG_NLS_ISO8859_4 is not set
923# CONFIG_NLS_ISO8859_5 is not set
924# CONFIG_NLS_ISO8859_6 is not set
925# CONFIG_NLS_ISO8859_7 is not set
926# CONFIG_NLS_ISO8859_9 is not set
927# CONFIG_NLS_ISO8859_13 is not set
928# CONFIG_NLS_ISO8859_14 is not set
929# CONFIG_NLS_ISO8859_15 is not set
930# CONFIG_NLS_KOI8_R is not set
931# CONFIG_NLS_KOI8_U is not set
932# CONFIG_NLS_UTF8 is not set
933
934#
935# Distributed Lock Manager
936#
937# CONFIG_DLM is not set
938
939#
940# Profiling support
941#
942# CONFIG_PROFILING is not set
943
944#
945# Kernel hacking
946#
947# CONFIG_PRINTK_TIME is not set
948CONFIG_ENABLE_MUST_CHECK=y
949CONFIG_MAGIC_SYSRQ=y
950# CONFIG_UNUSED_SYMBOLS is not set
951# CONFIG_DEBUG_FS is not set
952# CONFIG_HEADERS_CHECK is not set
953CONFIG_DEBUG_KERNEL=y
954# CONFIG_DEBUG_SHIRQ is not set
955CONFIG_LOG_BUF_SHIFT=16
956# CONFIG_DETECT_SOFTLOCKUP is not set
957# CONFIG_SCHEDSTATS is not set
958# CONFIG_TIMER_STATS is not set
959# CONFIG_DEBUG_SLAB is not set
960# CONFIG_DEBUG_RT_MUTEXES is not set
961# CONFIG_RT_MUTEX_TESTER is not set
962# CONFIG_DEBUG_SPINLOCK is not set
963# CONFIG_DEBUG_MUTEXES is not set
964# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
965# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
966# CONFIG_DEBUG_KOBJECT is not set
967CONFIG_DEBUG_BUGVERBOSE=y
968# CONFIG_DEBUG_INFO is not set
969# CONFIG_DEBUG_VM is not set
970# CONFIG_DEBUG_LIST is not set
971CONFIG_FRAME_POINTER=y
972CONFIG_FORCED_INLINING=y
973# CONFIG_RCU_TORTURE_TEST is not set
974# CONFIG_FAULT_INJECTION is not set
975# CONFIG_DEBUG_USER is not set
976# CONFIG_DEBUG_ERRORS is not set
977# CONFIG_DEBUG_LL is not set
978
979#
980# Security options
981#
982# CONFIG_KEYS is not set
983# CONFIG_SECURITY is not set
984
985#
986# Cryptographic options
987#
988CONFIG_CRYPTO=y
989CONFIG_CRYPTO_ALGAPI=y
990CONFIG_CRYPTO_BLKCIPHER=y
991CONFIG_CRYPTO_HASH=y
992CONFIG_CRYPTO_MANAGER=y
993CONFIG_CRYPTO_HMAC=y
994# CONFIG_CRYPTO_XCBC is not set
995# CONFIG_CRYPTO_NULL is not set
996# CONFIG_CRYPTO_MD4 is not set
997CONFIG_CRYPTO_MD5=y
998CONFIG_CRYPTO_SHA1=y
999# CONFIG_CRYPTO_SHA256 is not set
1000# CONFIG_CRYPTO_SHA512 is not set
1001# CONFIG_CRYPTO_WP512 is not set
1002# CONFIG_CRYPTO_TGR192 is not set
1003# CONFIG_CRYPTO_GF128MUL is not set
1004CONFIG_CRYPTO_ECB=y
1005CONFIG_CRYPTO_CBC=y
1006CONFIG_CRYPTO_PCBC=y
1007# CONFIG_CRYPTO_LRW is not set
1008CONFIG_CRYPTO_DES=y
1009# CONFIG_CRYPTO_FCRYPT is not set
1010# CONFIG_CRYPTO_BLOWFISH is not set
1011# CONFIG_CRYPTO_TWOFISH is not set
1012# CONFIG_CRYPTO_SERPENT is not set
1013# CONFIG_CRYPTO_AES is not set
1014# CONFIG_CRYPTO_CAST5 is not set
1015# CONFIG_CRYPTO_CAST6 is not set
1016# CONFIG_CRYPTO_TEA is not set
1017# CONFIG_CRYPTO_ARC4 is not set
1018# CONFIG_CRYPTO_KHAZAD is not set
1019# CONFIG_CRYPTO_ANUBIS is not set
1020CONFIG_CRYPTO_DEFLATE=y
1021# CONFIG_CRYPTO_MICHAEL_MIC is not set
1022# CONFIG_CRYPTO_CRC32C is not set
1023# CONFIG_CRYPTO_CAMELLIA is not set
1024
1025#
1026# Hardware crypto devices
1027#
1028
1029#
1030# Library routines
1031#
1032CONFIG_BITREVERSE=y
1033# CONFIG_CRC_CCITT is not set
1034# CONFIG_CRC16 is not set
1035CONFIG_CRC32=y
1036# CONFIG_LIBCRC32C is not set
1037CONFIG_ZLIB_INFLATE=y
1038CONFIG_ZLIB_DEFLATE=y
1039CONFIG_PLIST=y
1040CONFIG_HAS_IOMEM=y
1041CONFIG_HAS_IOPORT=y
1042
1043CONFIG_QEMU_TRACE=y
diff --git a/meta-extras/packages/linux/linux-android-goldfish_2.6.23-rc20.bb b/meta-extras/packages/linux/linux-android-goldfish_2.6.23-rc20.bb
new file mode 100644
index 0000000000..a4512eeaca
--- /dev/null
+++ b/meta-extras/packages/linux/linux-android-goldfish_2.6.23-rc20.bb
@@ -0,0 +1,171 @@
1DESCRIPTION = "2.6 Linux Android Kernel from Google"
2SECTION = "kernel"
3LICENSE = "GPL"
4
5inherit kernel
6
7PR = "r0"
8
9SRC_URI = "http://android.googlecode.com/files/linux-2.6.23-android-m3-rc20.tar.gz \
10 file://binutils-buildid-arm.patch;patch=1 \
11 file://defconfig-android-goldfish"
12
13S = "${WORKDIR}/kernel"
14
15RPROVIDES_kernel-base += "hostap-modules"
16
17DOSRC = "http://www.do13.de/openzaurus/patches"
18RPSRC = "http://www.rpsys.net/openzaurus/patches/archive"
19JLSRC = "http://www.cs.wisc.edu/~lenz/zaurus/files"
20BASRC = "http://www.orca.cx/zaurus/patches"
21CHSRC = "http://oz.drigon.com/patches"
22TKSRC = "http://www.informatik.hu-berlin.de/~tkunze/zaurus/patches"
23
24COMPATIBLE_HOST = "arm.*-linux"
25COMPATIBLE_MACHINE = 'android'
26
27KERNEL_CUSTOM_NAME ?= ""
28KERNEL_DEPLOY_NAME ?= "${KERNEL_IMAGETYPE}-${PV}-${KERNEL_CUSTOM_NAME}${MACHINE}-${DATETIME}.bin"
29KERNEL_SYMLINK_NAME ?= "${KERNEL_IMAGETYPE}-${KERNEL_CUSTOM_NAME}${MACHINE}.bin"
30KERNEL_DEFCONFIG ?= "defconfig-${MACHINE}"
31
32CMDLINE_CON = "console=ttyS0,115200n8 console=tty1 noinitrd"
33CMDLINE_CON_collie = "console=ttySA0,115200n8 console=tty1 noinitrd"
34CMDLINE_CON_qemuarm = "console=ttyAMA0,115200n8 console=tty1 noinitrd"
35CMDLINE_CON_zylonite = "console=ttyS0,38400"
36CMDLINE_ROOT ?= "root=/dev/mtdblock2 rootfstype=jffs2"
37CMDLINE_ROOT_spitz ?= "root=/dev/hda1 rootfstype=ext3 rootdelay=1 rw"
38#CMDLINE_ROOT_spitz = "root=/dev/mmcblk0p2 rootfstype=ext2 rootdelay=3 rw"
39CMDLINE_OTHER = "dyntick=enable"
40CMDLINE_DEBUG = '${@base_contains("IMAGE_FEATURES", "debug-tweaks", "debug", "quiet", d)}'
41
42##############################################################
43# Configure memory/ramdisk split for collie
44#
45export mem = '${@bb.data.getVar("COLLIE_MEMORY_SIZE",d,1) or "32"}'
46export rd = '${@bb.data.getVar("COLLIE_RAMDISK_SIZE",d,1) or "32"}'
47
48CMDLINE_MEM_collie = "mem=${mem}M"
49CMDLINE_MEM_zylonite = "mem=64M"
50CMDLINE_ROTATE_spitz = "fbcon=rotate:1"
51CMDLINE_ROTATE_akita = "fbcon=rotate:1"
52CMDLINE_ROTATE_collie = "fbcon=rotate:1"
53CMDLINE_ROTATE_poodle = "fbcon=rotate:1"
54CMDLINE = "${CMDLINE_CON} ${CMDLINE_ROOT} ${CMDLINE_MEM} ${CMDLINE_ROTATE} ${CMDLINE_OTHER} ${CMDLINE_DEBUG}"
55
56
57do_configure() {
58 rm -f ${S}/.config
59
60 if [ "${MACHINE}" = "tosa" ]; then
61 gcc_version=`${KERNEL_CC} -dumpversion`
62 if [ "${gcc_version}" = "4.0.1" ] || [ "${gcc_version}" = "4.0.2" ]; then
63 die "tosa kernel wont work with gcc 4.0.x"
64 fi
65 fi
66
67 if [ ! -e ${WORKDIR}/${KERNEL_DEFCONFIG} ]; then
68 die "No default configuration for ${MACHINE} available."
69 fi
70
71 if [ "${MACHINE}" = "collie" ]; then
72 mempos=`echo "obase=16; $mem * 1024 * 1024" | bc`
73 rdsize=`echo "$rd * 1024" | bc`
74 total=`expr $mem + $rd`
75 addr=`echo "obase=16; ibase=16; C0000000 + $mempos" | bc`
76 if [ "$rd" = "0" ]
77 then
78 echo "No RAMDISK"
79 echo "# CONFIG_MTD_MTDRAM_SA1100 is not set" >> ${S}/.config
80 else
81 echo "RAMDIR = $rdsize on $addr"
82 echo "CONFIG_MTD_MTDRAM_SA1100=y" >> ${S}/.config
83 echo "CONFIG_MTDRAM_TOTAL_SIZE=$rdsize" >> ${S}/.config
84 echo "CONFIG_MTDRAM_ERASE_SIZE=1" >> ${S}/.config
85 echo "CONFIG_MTDRAM_ABS_POS=$addr" >> ${S}/.config
86 fi
87 fi
88
89 echo "CONFIG_CMDLINE=\"${CMDLINE}\"" >> ${S}/.config
90
91 if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then
92 echo "CONFIG_AEABI=y" >> ${S}/.config
93 echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config
94 else
95 echo "# CONFIG_AEABI is not set" >> ${S}/.config
96 echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config
97 fi
98
99 if [ "${DISTRO}" = "poky" -a "${MACHINE}" != "collie" ]; then
100 echo "CONFIG_LOGO=y" >> ${S}/.config
101 echo "CONFIG_LOGO_OHAND_CLUT224=y" >> ${S}/.config
102 echo "# CONFIG_LOGO_OZ240_CLUT224 is not set" >> ${S}/.config
103 echo "# CONFIG_LOGO_OZ480_CLUT224 is not set" >> ${S}/.config
104 echo "# CONFIG_LOGO_OZ640_CLUT224 is not set" >> ${S}/.config
105 echo "# CONFIG_LOGO_LINUX_CLUT224 is not set" >> ${S}/.config
106 else
107 echo "# CONFIG_LOGO is not set" >> ${S}/.config
108 echo "# CONFIG_LOGO_OHAND_CLUT224 is not set" >> ${S}/.config
109 echo "# CONFIG_LOGO_LINUX_CLUT224 is not set" >> ${S}/.config
110 echo "# CONFIG_LOGO_OZ240_CLUT224 is not set" >> ${S}/.config
111 echo "# CONFIG_LOGO_OZ480_CLUT224 is not set" >> ${S}/.config
112 echo "# CONFIG_LOGO_OZ640_CLUT224 is not set" >> ${S}/.config
113 fi
114
115 sed -e '/CONFIG_AEABI/d' \
116 -e '/CONFIG_OABI_COMPAT=/d' \
117 -e '/CONFIG_CMDLINE=/d' \
118 -e '/CONFIG_MTD_MTDRAM_SA1100=/d' \
119 -e '/CONFIG_MTDRAM_TOTAL_SIZE=/d' \
120 -e '/CONFIG_MTDRAM_ERASE_SIZE=/d' \
121 -e '/CONFIG_MTDRAM_ABS_POS=/d' \
122 -e '/CONFIG_LOGO=/d' \
123 -e '/CONFIG_LOGO_LINUX_CLUT224=/d' \
124 -e '/CONFIG_LOGO_OHAND_CLUT224=/d' \
125 -e '/CONFIG_LOGO_OZ240_CLUT224=/d' \
126 -e '/CONFIG_LOGO_OZ480_CLUT224=/d' \
127 -e '/CONFIG_LOGO_OZ640_CLUT224=/d' \
128 '${WORKDIR}/${KERNEL_DEFCONFIG}' >>'${S}/.config'
129
130 yes '' | oe_runmake oldconfig
131}
132
133# Check the kernel is below the 1264*1024 byte limit for the PXA Zaurii
134do_compile_append() {
135 case ${MACHINE} in
136 c7x0 | akita | poodle | spitz | tosa )
137 size=`ls -l arch/${ARCH}/boot/${KERNEL_IMAGETYPE} | awk '{ print $5}'`
138 if [ $size -ge 1294336 ]; then
139 rm arch/${ARCH}/boot/${KERNEL_IMAGETYPE}
140 echo "Size is $size"
141 die "This kernel is too big for your PXA Zaurus and will destroy data if you flash it. Please reduce the size of the kernel by making more of it modular."
142 fi
143 ;;
144 collie )
145 size=`ls -l arch/${ARCH}/boot/${KERNEL_IMAGETYPE} | awk '{ print $5}'`
146 if [ $size -ge 1048576 ]; then
147 rm arch/${ARCH}/boot/${KERNEL_IMAGETYPE}
148 echo "Size is $size"
149 die "This kernel is too big for your Collie and will not be flashed. Please reduce the size of the kernel by making more of it modular."
150 fi
151 ;;
152 *)
153 ;;
154 esac
155}
156
157do_deploy() {
158 install -d ${DEPLOY_DIR_IMAGE}
159 install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_DEPLOY_NAME}
160 cd ${DEPLOY_DIR_IMAGE}
161 ln -sf ${KERNEL_DEPLOY_NAME} ${KERNEL_SYMLINK_NAME}
162 #tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_VERSION}-${MACHINE}.tgz -C ${D} lib
163}
164
165do_deploy[dirs] = "${S}"
166
167addtask deploy before do_package after do_install
168
169# wlan-ng stuff need compiled kernel sources
170do_rm_work() {
171}
diff --git a/meta-extras/packages/qemu/qemu-android-native.bb b/meta-extras/packages/qemu/qemu-android-native.bb
new file mode 100644
index 0000000000..169d790864
--- /dev/null
+++ b/meta-extras/packages/qemu/qemu-android-native.bb
@@ -0,0 +1,25 @@
1LICENSE = "GPL"
2DEPENDS = "zlib-native"
3PV = "0.0-rc20"
4PR = "r0"
5
6SRC_URI = "http://android.googlecode.com/files/android-emulator-m3-rc20.tar.bz2 \
7 file://fixes.patch;patch=1"
8
9S = "${WORKDIR}/android-emulator-20071111/qemu"
10
11EXTRA_OECONF = "--disable-gfx-check --target-list=arm-softmmu --enable-nand --enable-skins --enable-trace --enable-shaper --use-sdl-config=${prefix}/hackedsdl/bin/sdl-config --disable-user --disable-kqemu --enable-sdl --static-png --static-sdl"
12
13inherit autotools
14inherit native
15
16do_unfubar () {
17 chmod -R u+w ${WORKDIR}/
18 cd ${WORKDIR}/android-emulator-20071111/sdl
19 configure --prefix=${prefix}/hackedsdl
20 make
21 make install
22}
23
24addtask unfubar after do_unpack before do_patch
25
diff --git a/meta-extras/packages/qemu/qemu-android-native/fixes.patch b/meta-extras/packages/qemu/qemu-android-native/fixes.patch
new file mode 100644
index 0000000000..5d16b6061d
--- /dev/null
+++ b/meta-extras/packages/qemu/qemu-android-native/fixes.patch
@@ -0,0 +1,45 @@
1Index: qemu/linux-user/elfload.c
2===================================================================
3--- qemu.orig/linux-user/elfload.c 2007-11-12 06:58:42.000000000 +0000
4+++ qemu/linux-user/elfload.c 2007-11-12 20:41:37.000000000 +0000
5@@ -12,6 +12,10 @@
6 #include "qemu.h"
7 #include "disas.h"
8
9+#ifndef O_BINARY
10+#define O_BINARY 0
11+#endif
12+
13 /* this flag is uneffective under linux too, should be deleted */
14 #ifndef MAP_DENYWRITE
15 #define MAP_DENYWRITE 0
16Index: qemu/linux-user/linuxload.c
17===================================================================
18--- qemu.orig/linux-user/linuxload.c 2007-11-12 06:58:42.000000000 +0000
19+++ qemu/linux-user/linuxload.c 2007-11-12 20:35:16.000000000 +0000
20@@ -12,6 +12,10 @@
21
22 #define NGROUPS 32
23
24+#ifndef O_BINARY
25+#define O_BINARY 0
26+#endif
27+
28 /* ??? This should really be somewhere else. */
29 void memcpy_to_target(target_ulong dest, const void *src,
30 unsigned long len)
31Index: qemu/hw/qfb_fs.c
32===================================================================
33--- qemu.orig/hw/qfb_fs.c 2007-11-12 06:58:41.000000000 +0000
34+++ qemu/hw/qfb_fs.c 2007-11-12 20:59:34.000000000 +0000
35@@ -14,6 +14,10 @@
36 #include <sys/xattr.h>
37 #include <errno.h>
38
39+#ifndef O_BINARY
40+#define O_BINARY 0
41+#endif
42+
43 /* all mount paths */
44 static int next_path_index = 0;
45 static struct mount_path mount_paths[MAX_MOUNT_PATHS];