From: hschang Date: Tue, 17 Mar 2015 09:29:46 +0000 (+0900) Subject: Merge remote-tracking branch 'oe_21/master' into vuplus-3.0 X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openvuplus_3.0;a=commitdiff_plain;h=62c6cf38a4fc3b98419de1d11e50320c2acfd453;hp=2069ebf423d4a061a5bb67a3a938a92e4e3fc1f4 Merge remote-tracking branch 'oe_21/master' into vuplus-3.0 Conflicts: meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb --- diff --git a/.gitignore b/.gitignore index 13a193a..6000dee 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ bblayers.conf /tmp/ /bitbake.env +sources diff --git a/.gitmodules b/.gitmodules index 5f3029f..5e8b44d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,9 +1,9 @@ [submodule "openembedded-core"] path = openembedded-core - url = git://git.openembedded.org/openembedded-core-contrib + url = git://git.openembedded.org/openembedded-core [submodule "meta-openembedded"] path = meta-openembedded - url = git://git.openembedded.org/meta-openembedded-contrib + url = git://git.openembedded.org/meta-openembedded [submodule "bitbake"] path = bitbake url = git://git.openembedded.org/bitbake diff --git a/Makefile b/Makefile index 95df253..a8e7a31 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ # for the vuultimo, if it is not the default. MACHINE ?= vusolose -MULTI_TEMPORARILY ?= YES +MULTI_TEMPORARILY ?= NO # Adjust according to the number CPU cores to use for parallel build. # Default: Number of processors in /proc/cpuinfo, if present, or 1. @@ -43,7 +43,7 @@ XSUM ?= md5sum BUILD_DIR = $(CURDIR)/build TOPDIR = $(BUILD_DIR)/$(MACHINE) -DL_DIR = $(CURDIR)/resource/sources +DL_DIR = $(CURDIR)/sources ifeq ($(MULTI_TEMPORARILY), YES) SSTATE_DIR = $(TOPDIR)/sstate-cache @@ -60,6 +60,10 @@ BBLAYERS ?= \ $(CURDIR)/meta-bsp/common \ $(CURDIR)/meta-openvuplus \ $(CURDIR)/meta-openembedded/meta-oe \ + $(CURDIR)/meta-openembedded/meta-networking \ + $(CURDIR)/meta-openembedded/meta-multimedia \ + $(CURDIR)/meta-openembedded/meta-filesystems \ + $(CURDIR)/meta-openembedded/meta-python \ $(CURDIR)/openembedded-core/meta CONFFILES = \ @@ -86,6 +90,7 @@ $(BBLAYERS): [ -d $@ ] || $(MAKE) $(MFLAGS) update init: $(BBLAYERS) $(CONFFILES) + @if [ ! -e $(CURDIR)/sources ]; then mkdir -p $(CURDIR)/sources; fi help: @echo "Your options:" diff --git a/bitbake b/bitbake index 270a05b..207013b 160000 --- a/bitbake +++ b/bitbake @@ -1 +1 @@ -Subproject commit 270a05b0b4ba0959fe0624d2a4885d7b70426da5 +Subproject commit 207013b6dde82f9654f9be996695c8335b95a288 diff --git a/meta-bsp/bm750/recipes/linux/linux-vuplus-3.1.1/.config b/meta-bsp/bm750/recipes/linux/linux-vuplus-3.1.1/.config deleted file mode 100644 index fe8a00b..0000000 --- a/meta-bsp/bm750/recipes/linux/linux-vuplus-3.1.1/.config +++ /dev/null @@ -1,2685 +0,0 @@ -# -# Automatically generated file; DO NOT EDIT. -# Linux/mips 3.1.1 Kernel Configuration -# -CONFIG_MIPS=y - -# -# Machine selection -# -# CONFIG_MIPS_ALCHEMY is not set -# CONFIG_AR7 is not set -# CONFIG_ATH79 is not set -# CONFIG_BCM47XX is not set -# CONFIG_BCM63XX is not set -CONFIG_BRCMSTB=y -# CONFIG_MIPS_COBALT is not set -# CONFIG_MACH_DECSTATION is not set -# CONFIG_MACH_JAZZ is not set -# CONFIG_MACH_JZ4740 is not set -# CONFIG_LANTIQ is not set -# CONFIG_LASAT is not set -# CONFIG_MACH_LOONGSON is not set -# CONFIG_MIPS_MALTA is not set -# CONFIG_MIPS_SIM is not set -# CONFIG_NEC_MARKEINS is not set -# CONFIG_MACH_VR41XX is not set -# CONFIG_NXP_STB220 is not set -# CONFIG_NXP_STB225 is not set -# CONFIG_PNX8550_JBS is not set -# CONFIG_PNX8550_STB810 is not set -# CONFIG_PMC_MSP is not set -# CONFIG_PMC_YOSEMITE is not set -# CONFIG_POWERTV is not set -# CONFIG_SGI_IP22 is not set -# CONFIG_SGI_IP27 is not set -# CONFIG_SGI_IP28 is not set -# CONFIG_SGI_IP32 is not set -# CONFIG_SIBYTE_CRHINE is not set -# CONFIG_SIBYTE_CARMEL is not set -# CONFIG_SIBYTE_CRHONE is not set -# CONFIG_SIBYTE_RHONE is not set -# CONFIG_SIBYTE_SWARM is not set -# CONFIG_SIBYTE_LITTLESUR is not set -# CONFIG_SIBYTE_SENTOSA is not set -# CONFIG_SIBYTE_BIGSUR is not set -# CONFIG_SNI_RM is not set -# CONFIG_MACH_TX39XX is not set -# CONFIG_MACH_TX49XX is not set -# CONFIG_MIKROTIK_RB532 is not set -# CONFIG_WR_PPMC is not set -# CONFIG_CAVIUM_OCTEON_SIMULATOR is not set -# CONFIG_CAVIUM_OCTEON_REFERENCE_BOARD is not set -# CONFIG_NLM_XLR_BOARD is not set -# CONFIG_ALCHEMY_GPIO_INDIRECT is not set - -# -# Broadcom STB options -# -# CONFIG_BRCM_LEGACY is not set -# CONFIG_BCM3548B0 is not set -# CONFIG_BCM35125A0 is not set -# CONFIG_BCM35230C0 is not set -# CONFIG_BCM35330A0 is not set -# CONFIG_BCM7125C0 is not set -# CONFIG_BCM7135A0 is not set -# CONFIG_BCM7231A0 is not set -# CONFIG_BCM7325B0 is not set -CONFIG_BCM7335B0=y -# CONFIG_BCM7340B0 is not set -# CONFIG_BCM7342B0 is not set -# CONFIG_BCM7344A0 is not set -# CONFIG_BCM7346A0 is not set -# CONFIG_BCM7358A0 is not set -# CONFIG_BCM7405B0 is not set -# CONFIG_BCM7405D0 is not set -# CONFIG_BCM7408B0 is not set -# CONFIG_BCM7420C0 is not set -# CONFIG_BCM7422A0 is not set -# CONFIG_BCM7425A0 is not set -# CONFIG_BCM7468B0 is not set -# CONFIG_BCM7550A0 is not set -# CONFIG_BCM7550B0 is not set -# CONFIG_BCM7552A0 is not set -# CONFIG_BCM7601B0 is not set -# CONFIG_BCM7630B0 is not set -# CONFIG_BCM7631B0 is not set -# CONFIG_BCM7635A0 is not set -# CONFIG_BCM7640A0 is not set - -# -# Memory map -# -# CONFIG_BRCM_UPPER_MEMORY is not set -# CONFIG_BRCM_OVERRIDE_RAM_SIZE is not set - -# -# Onchip peripherals -# -CONFIG_BRCM_CONSOLE_DEVICE=0 -CONFIG_BRCM_FLASH=y -CONFIG_BRCM_FIXED_MTD_PARTITIONS=y -CONFIG_MTD_BRCMNAND=y -CONFIG_BRCMNAND_MTD_EXTENSION=y -# CONFIG_MTD_BRCMNAND_VERIFY_WRITE is not set -# CONFIG_MTD_BRCMNAND_CORRECTABLE_ERR_HANDLING is not set -CONFIG_BCMEMAC=y -CONFIG_SATA_BRCMSTB=y -CONFIG_BRCM_USB=y -# CONFIG_BRCM_OVERRIDE_USB is not set -CONFIG_BRCM_PM=y -CONFIG_CSRC_UPG=y - -# -# Miscellaneous options -# -# CONFIG_BRCM_FORCE_DOCSIS is not set -CONFIG_BRCM_LIBGCC=y -# CONFIG_BRCM_SCSI_NO_RW10_RETRIES is not set -# CONFIG_BRCM_DEBUG_OPTIONS is not set -CONFIG_BMIPS4380=y -CONFIG_BRCM_HAS_16550=y -CONFIG_BRCM_HAS_UARTA=y -CONFIG_BRCM_HAS_UARTB=y -CONFIG_BRCM_HAS_UARTC=y -CONFIG_BRCM_UARTA_IS_16550=y -CONFIG_BRCM_UARTB_IS_16550=y -CONFIG_BRCM_UARTC_IS_16550=y -CONFIG_BRCM_HAS_PCI23=y -CONFIG_BRCM_HAS_EMAC_0=y -CONFIG_BRCM_HAS_EMAC_1=y -CONFIG_BRCM_HAS_SATA=y -CONFIG_BRCM_HAS_SATA2=y -# CONFIG_BRCM_SATA_75MHZ_PLL is not set -# CONFIG_BRCM_SATA_SINGLE_PORT is not set -CONFIG_BRCM_HAS_NOR=y -CONFIG_BRCM_HAS_NAND_MINOR_1=y -CONFIG_BRCM_HAS_NAND_MAJOR_2=y -CONFIG_BRCMNAND_MAJOR_VERS=2 -CONFIG_BRCMNAND_MINOR_VERS=1 -CONFIG_BRCM_HAS_NAND=y -CONFIG_BRCM_CPU_DIV=y -CONFIG_BRCM_HAS_UPPER_MEMORY=y -CONFIG_BRCM_HAS_1GB_MEMC0=y -CONFIG_BRCM_PLATFORM_DEFAULTS=y -CONFIG_BCM7335=y -CONFIG_RWSEM_GENERIC_SPINLOCK=y -# CONFIG_ARCH_HAS_ILOG2_U32 is not set -# CONFIG_ARCH_HAS_ILOG2_U64 is not set -CONFIG_ARCH_SUPPORTS_OPROFILE=y -CONFIG_GENERIC_HWEIGHT=y -CONFIG_GENERIC_CALIBRATE_DELAY=y -CONFIG_GENERIC_CLOCKEVENTS=y -CONFIG_GENERIC_CMOS_UPDATE=y -CONFIG_SCHED_OMIT_FRAME_POINTER=y -CONFIG_BOOT_RAW=y -CONFIG_CEVT_R4K_LIB=y -CONFIG_CEVT_R4K=y -CONFIG_CFE=y -# CONFIG_ARCH_DMA_ADDR_T_64BIT is not set -CONFIG_DMA_NONCOHERENT=y -CONFIG_NEED_DMA_MAP_STATE=y -CONFIG_SYS_HAS_EARLY_PRINTK=y -# CONFIG_HOTPLUG_CPU is not set -CONFIG_SYS_SUPPORTS_HOTPLUG_CPU=y -# CONFIG_MIPS_MACHINE is not set -# CONFIG_NO_IOPORT is not set -# CONFIG_CPU_BIG_ENDIAN is not set -CONFIG_CPU_LITTLE_ENDIAN=y -CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y -CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y -CONFIG_IRQ_CPU=y -CONFIG_SWAP_IO_SPACE=y -CONFIG_MIPS_L1_CACHE_SHIFT=5 - -# -# CPU selection -# -CONFIG_CPU_MIPS32_R1=y -CONFIG_SYS_HAS_CPU_MIPS32_R1=y -CONFIG_WEAK_ORDERING=y -CONFIG_CPU_MIPS32=y -CONFIG_CPU_MIPSR1=y -CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y -CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y -CONFIG_HARDWARE_WATCHPOINTS=y - -# -# Kernel type -# -CONFIG_32BIT=y -CONFIG_PAGE_SIZE_4KB=y -# CONFIG_PAGE_SIZE_16KB is not set -# CONFIG_PAGE_SIZE_64KB is not set -CONFIG_FORCE_MAX_ZONEORDER=11 -CONFIG_CPU_HAS_PREFETCH=y -CONFIG_MIPS_MT_DISABLED=y -# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set -CONFIG_CPU_HAS_SYNC=y -CONFIG_CPU_SUPPORTS_HIGHMEM=y -CONFIG_ARCH_FLATMEM_ENABLE=y -CONFIG_ARCH_POPULATES_NODE_MAP=y -CONFIG_SELECT_MEMORY_MODEL=y -CONFIG_FLATMEM_MANUAL=y -# CONFIG_SPARSEMEM_MANUAL is not set -CONFIG_FLATMEM=y -CONFIG_FLAT_NODE_MEM_MAP=y -CONFIG_PAGEFLAGS_EXTENDED=y -CONFIG_SPLIT_PTLOCK_CPUS=4 -# CONFIG_COMPACTION is not set -# CONFIG_PHYS_ADDR_T_64BIT is not set -CONFIG_ZONE_DMA_FLAG=0 -CONFIG_VIRT_TO_BUS=y -# CONFIG_KSM is not set -CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 -# CONFIG_CLEANCACHE is not set -CONFIG_SMP=y -CONFIG_SYS_SUPPORTS_SMP=y -CONFIG_NR_CPUS=2 -CONFIG_TICK_ONESHOT=y -# CONFIG_NO_HZ is not set -CONFIG_HIGH_RES_TIMERS=y -CONFIG_GENERIC_CLOCKEVENTS_BUILD=y -# CONFIG_HZ_48 is not set -# CONFIG_HZ_100 is not set -# CONFIG_HZ_128 is not set -# CONFIG_HZ_250 is not set -# CONFIG_HZ_256 is not set -CONFIG_HZ_1000=y -# CONFIG_HZ_1024 is not set -CONFIG_SYS_SUPPORTS_ARBIT_HZ=y -CONFIG_HZ=1000 -CONFIG_PREEMPT_NONE=y -# CONFIG_PREEMPT_VOLUNTARY is not set -# CONFIG_PREEMPT is not set -# CONFIG_KEXEC is not set -# CONFIG_SECCOMP is not set -# CONFIG_USE_OF is not set -CONFIG_LOCKDEP_SUPPORT=y -CONFIG_STACKTRACE_SUPPORT=y -CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" -CONFIG_HAVE_IRQ_WORK=y - -# -# General setup -# -CONFIG_EXPERIMENTAL=y -CONFIG_INIT_ENV_ARG_LIMIT=32 -CONFIG_CROSS_COMPILE="" -CONFIG_LOCALVERSION="" -# CONFIG_LOCALVERSION_AUTO is not set -CONFIG_DEFAULT_HOSTNAME="(none)" -CONFIG_SWAP=y -CONFIG_SYSVIPC=y -CONFIG_SYSVIPC_SYSCTL=y -# CONFIG_POSIX_MQUEUE is not set -# CONFIG_BSD_PROCESS_ACCT is not set -# CONFIG_FHANDLE is not set -# CONFIG_TASKSTATS is not set -# CONFIG_AUDIT is not set -CONFIG_HAVE_GENERIC_HARDIRQS=y - -# -# IRQ subsystem -# -CONFIG_GENERIC_HARDIRQS=y -CONFIG_GENERIC_IRQ_PROBE=y -CONFIG_GENERIC_IRQ_SHOW=y -CONFIG_IRQ_FORCED_THREADING=y - -# -# RCU Subsystem -# -CONFIG_TREE_RCU=y -# CONFIG_PREEMPT_RCU is not set -# CONFIG_RCU_TRACE is not set -CONFIG_RCU_FANOUT=32 -# CONFIG_RCU_FANOUT_EXACT is not set -# CONFIG_TREE_RCU_TRACE is not set -# CONFIG_IKCONFIG is not set -CONFIG_LOG_BUF_SHIFT=14 -# CONFIG_CGROUPS is not set -# CONFIG_NAMESPACES is not set -# CONFIG_SCHED_AUTOGROUP is not set -CONFIG_SYSFS_DEPRECATED=y -CONFIG_SYSFS_DEPRECATED_V2=y -CONFIG_RELAY=y -CONFIG_BLK_DEV_INITRD=y -CONFIG_INITRAMFS_SOURCE="" -CONFIG_RD_GZIP=y -# CONFIG_RD_BZIP2 is not set -# CONFIG_RD_LZMA is not set -# CONFIG_RD_XZ is not set -# CONFIG_RD_LZO is not set -# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set -CONFIG_SYSCTL=y -CONFIG_ANON_INODES=y -CONFIG_EXPERT=y -CONFIG_SYSCTL_SYSCALL=y -CONFIG_KALLSYMS=y -# CONFIG_KALLSYMS_ALL is not set -CONFIG_HOTPLUG=y -CONFIG_PRINTK=y -CONFIG_BUG=y -CONFIG_ELF_CORE=y -CONFIG_BASE_FULL=y -CONFIG_FUTEX=y -CONFIG_EPOLL=y -CONFIG_SIGNALFD=y -CONFIG_TIMERFD=y -CONFIG_EVENTFD=y -CONFIG_SHMEM=y -CONFIG_AIO=y -CONFIG_EMBEDDED=y -CONFIG_HAVE_PERF_EVENTS=y -CONFIG_PERF_USE_VMALLOC=y - -# -# Kernel Performance Events And Counters -# -# CONFIG_PERF_EVENTS is not set -# CONFIG_PERF_COUNTERS is not set -CONFIG_VM_EVENT_COUNTERS=y -CONFIG_PCI_QUIRKS=y -CONFIG_COMPAT_BRK=y -CONFIG_SLAB=y -# CONFIG_SLUB is not set -# CONFIG_SLOB is not set -# CONFIG_PROFILING is not set -CONFIG_HAVE_OPROFILE=y -# CONFIG_KPROBES is not set -# CONFIG_JUMP_LABEL is not set -CONFIG_HAVE_KPROBES=y -CONFIG_HAVE_KRETPROBES=y -CONFIG_HAVE_DMA_ATTRS=y -CONFIG_USE_GENERIC_SMP_HELPERS=y -CONFIG_HAVE_DMA_API_DEBUG=y -CONFIG_HAVE_ARCH_JUMP_LABEL=y - -# -# GCOV-based kernel profiling -# -CONFIG_HAVE_GENERIC_DMA_COHERENT=y -CONFIG_SLABINFO=y -CONFIG_RT_MUTEXES=y -CONFIG_BASE_SMALL=0 -CONFIG_MODULES=y -CONFIG_MODULE_FORCE_LOAD=y -CONFIG_MODULE_UNLOAD=y -# CONFIG_MODULE_FORCE_UNLOAD is not set -# CONFIG_MODVERSIONS is not set -# CONFIG_MODULE_SRCVERSION_ALL is not set -CONFIG_STOP_MACHINE=y -CONFIG_BLOCK=y -CONFIG_LBDAF=y -# CONFIG_BLK_DEV_BSG is not set -# CONFIG_BLK_DEV_BSGLIB is not set -# CONFIG_BLK_DEV_INTEGRITY is not set - -# -# IO Schedulers -# -CONFIG_IOSCHED_NOOP=y -# CONFIG_IOSCHED_DEADLINE is not set -CONFIG_IOSCHED_CFQ=y -CONFIG_DEFAULT_CFQ=y -# CONFIG_DEFAULT_NOOP is not set -CONFIG_DEFAULT_IOSCHED="cfq" -# CONFIG_INLINE_SPIN_TRYLOCK is not set -# CONFIG_INLINE_SPIN_TRYLOCK_BH is not set -# CONFIG_INLINE_SPIN_LOCK is not set -# CONFIG_INLINE_SPIN_LOCK_BH is not set -# CONFIG_INLINE_SPIN_LOCK_IRQ is not set -# CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set -CONFIG_INLINE_SPIN_UNLOCK=y -# CONFIG_INLINE_SPIN_UNLOCK_BH is not set -CONFIG_INLINE_SPIN_UNLOCK_IRQ=y -# CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set -# CONFIG_INLINE_READ_TRYLOCK is not set -# CONFIG_INLINE_READ_LOCK is not set -# CONFIG_INLINE_READ_LOCK_BH is not set -# CONFIG_INLINE_READ_LOCK_IRQ is not set -# CONFIG_INLINE_READ_LOCK_IRQSAVE is not set -CONFIG_INLINE_READ_UNLOCK=y -# CONFIG_INLINE_READ_UNLOCK_BH is not set -CONFIG_INLINE_READ_UNLOCK_IRQ=y -# CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set -# CONFIG_INLINE_WRITE_TRYLOCK is not set -# CONFIG_INLINE_WRITE_LOCK is not set -# CONFIG_INLINE_WRITE_LOCK_BH is not set -# CONFIG_INLINE_WRITE_LOCK_IRQ is not set -# CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set -CONFIG_INLINE_WRITE_UNLOCK=y -# CONFIG_INLINE_WRITE_UNLOCK_BH is not set -CONFIG_INLINE_WRITE_UNLOCK_IRQ=y -# CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set -CONFIG_MUTEX_SPIN_ON_OWNER=y -# CONFIG_FREEZER is not set - -# -# Bus options (PCI, PCMCIA, EISA, ISA, TC) -# -CONFIG_HW_HAS_PCI=y -CONFIG_PCI=y -CONFIG_PCI_DOMAINS=y -# CONFIG_ARCH_SUPPORTS_MSI is not set -# CONFIG_PCI_DEBUG is not set -# CONFIG_PCI_STUB is not set -# CONFIG_PCI_IOV is not set -CONFIG_MMU=y -# CONFIG_PCCARD is not set -# CONFIG_HOTPLUG_PCI is not set -# CONFIG_RAPIDIO is not set - -# -# Executable file formats -# -CONFIG_BINFMT_ELF=y -# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set -# CONFIG_HAVE_AOUT is not set -# CONFIG_BINFMT_MISC is not set -CONFIG_TRAD_SIGNALS=y - -# -# Power management options -# -CONFIG_ARCH_HIBERNATION_POSSIBLE=y -CONFIG_ARCH_SUSPEND_POSSIBLE=y -# CONFIG_SUSPEND is not set -# CONFIG_HIBERNATION is not set -# CONFIG_PM_RUNTIME is not set -CONFIG_NET=y - -# -# Networking options -# -CONFIG_PACKET=y -CONFIG_UNIX=y -CONFIG_XFRM=y -# CONFIG_XFRM_USER is not set -# CONFIG_XFRM_SUB_POLICY is not set -# CONFIG_XFRM_MIGRATE is not set -# CONFIG_XFRM_STATISTICS is not set -CONFIG_XFRM_IPCOMP=m -# CONFIG_NET_KEY is not set -CONFIG_INET=y -CONFIG_IP_MULTICAST=y -# CONFIG_IP_ADVANCED_ROUTER is not set -CONFIG_IP_PNP=y -CONFIG_IP_PNP_DHCP=y -CONFIG_IP_PNP_BOOTP=y -CONFIG_IP_PNP_RARP=y -# CONFIG_NET_IPIP is not set -# CONFIG_NET_IPGRE_DEMUX is not set -# CONFIG_IP_MROUTE is not set -# CONFIG_ARPD is not set -# CONFIG_SYN_COOKIES is not set -# CONFIG_INET_AH is not set -# CONFIG_INET_ESP is not set -# CONFIG_INET_IPCOMP is not set -# CONFIG_INET_XFRM_TUNNEL is not set -CONFIG_INET_TUNNEL=m -# CONFIG_INET_XFRM_MODE_TRANSPORT is not set -# CONFIG_INET_XFRM_MODE_TUNNEL is not set -# CONFIG_INET_XFRM_MODE_BEET is not set -# CONFIG_INET_LRO is not set -CONFIG_INET_DIAG=y -CONFIG_INET_TCP_DIAG=y -# CONFIG_TCP_CONG_ADVANCED is not set -CONFIG_TCP_CONG_CUBIC=y -CONFIG_DEFAULT_TCP_CONG="cubic" -# CONFIG_TCP_MD5SIG is not set -CONFIG_IPV6=m -CONFIG_IPV6_PRIVACY=y -CONFIG_IPV6_ROUTER_PREF=y -# CONFIG_IPV6_ROUTE_INFO is not set -# CONFIG_IPV6_OPTIMISTIC_DAD is not set -CONFIG_INET6_AH=m -CONFIG_INET6_ESP=m -CONFIG_INET6_IPCOMP=m -CONFIG_IPV6_MIP6=m -CONFIG_INET6_XFRM_TUNNEL=m -CONFIG_INET6_TUNNEL=m -CONFIG_INET6_XFRM_MODE_TRANSPORT=m -CONFIG_INET6_XFRM_MODE_TUNNEL=m -CONFIG_INET6_XFRM_MODE_BEET=m -CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=m -CONFIG_IPV6_SIT=m -# CONFIG_IPV6_SIT_6RD is not set -CONFIG_IPV6_NDISC_NODETYPE=y -CONFIG_IPV6_TUNNEL=m -# CONFIG_IPV6_MULTIPLE_TABLES is not set -CONFIG_IPV6_MROUTE=y -# CONFIG_IPV6_MROUTE_MULTIPLE_TABLES is not set -CONFIG_IPV6_PIMSM_V2=y -# CONFIG_NETWORK_SECMARK is not set -# CONFIG_NETWORK_PHY_TIMESTAMPING is not set -# CONFIG_NETFILTER is not set -# CONFIG_IP_DCCP is not set -# CONFIG_IP_SCTP is not set -# CONFIG_RDS is not set -# CONFIG_TIPC is not set -# CONFIG_ATM is not set -# CONFIG_L2TP is not set -# CONFIG_BRIDGE is not set -# CONFIG_NET_DSA is not set -# CONFIG_VLAN_8021Q is not set -# CONFIG_DECNET is not set -# CONFIG_LLC2 is not set -# CONFIG_IPX is not set -# CONFIG_ATALK is not set -# CONFIG_X25 is not set -# CONFIG_LAPB is not set -# CONFIG_ECONET is not set -# CONFIG_WAN_ROUTER is not set -# CONFIG_PHONET is not set -# CONFIG_IEEE802154 is not set -# CONFIG_NET_SCHED is not set -# CONFIG_DCB is not set -# CONFIG_BATMAN_ADV is not set -CONFIG_RPS=y -CONFIG_RFS_ACCEL=y -CONFIG_XPS=y - -# -# Network testing -# -# CONFIG_NET_PKTGEN is not set -# CONFIG_HAMRADIO is not set -# CONFIG_CAN is not set -# CONFIG_IRDA is not set -CONFIG_BT=y -CONFIG_BT_L2CAP=y -# CONFIG_BT_SCO is not set -CONFIG_BT_RFCOMM=m -CONFIG_BT_RFCOMM_TTY=y -CONFIG_BT_BNEP=m -# CONFIG_BT_BNEP_MC_FILTER is not set -CONFIG_BT_BNEP_PROTO_FILTER=y -CONFIG_BT_HIDP=y - -# -# Bluetooth device drivers -# -CONFIG_BT_HCIBTUSB=y -CONFIG_BT_HCIUART=m -CONFIG_BT_HCIUART_H4=y -CONFIG_BT_HCIUART_BCSP=y -# CONFIG_BT_HCIUART_ATH3K is not set -CONFIG_BT_HCIUART_LL=y -CONFIG_BT_HCIBCM203X=m -CONFIG_BT_HCIBPA10X=m -CONFIG_BT_HCIBFUSB=m -CONFIG_BT_HCIVHCI=m -# CONFIG_BT_MRVL is not set -# CONFIG_BT_ATH3K is not set -# CONFIG_AF_RXRPC is not set -CONFIG_WIRELESS=y -CONFIG_WIRELESS_EXT=y -CONFIG_WEXT_CORE=y -CONFIG_WEXT_PROC=y -CONFIG_WEXT_SPY=y -CONFIG_WEXT_PRIV=y -CONFIG_CFG80211=y -# CONFIG_NL80211_TESTMODE is not set -# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set -# CONFIG_CFG80211_REG_DEBUG is not set -CONFIG_CFG80211_DEFAULT_PS=y -# CONFIG_CFG80211_INTERNAL_REGDB is not set -CONFIG_CFG80211_WEXT=y -CONFIG_WIRELESS_EXT_SYSFS=y -CONFIG_LIB80211=y -CONFIG_LIB80211_CRYPT_WEP=m -CONFIG_LIB80211_CRYPT_CCMP=m -CONFIG_LIB80211_CRYPT_TKIP=m -# CONFIG_LIB80211_DEBUG is not set -CONFIG_MAC80211=m -CONFIG_MAC80211_HAS_RC=y -# CONFIG_MAC80211_RC_PID is not set -CONFIG_MAC80211_RC_MINSTREL=y -CONFIG_MAC80211_RC_MINSTREL_HT=y -CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y -CONFIG_MAC80211_RC_DEFAULT="minstrel_ht" -# CONFIG_MAC80211_MESH is not set -CONFIG_MAC80211_LEDS=y -# CONFIG_MAC80211_DEBUG_MENU is not set -# CONFIG_WIMAX is not set -# CONFIG_RFKILL is not set -# CONFIG_NET_9P is not set -# CONFIG_CAIF is not set -# CONFIG_CEPH_LIB is not set -# CONFIG_NFC is not set - -# -# Device Drivers -# - -# -# Generic Driver Options -# -CONFIG_UEVENT_HELPER_PATH="" -# CONFIG_DEVTMPFS is not set -CONFIG_STANDALONE=y -CONFIG_PREVENT_FIRMWARE_BUILD=y -CONFIG_FW_LOADER=y -CONFIG_FIRMWARE_IN_KERNEL=y -CONFIG_EXTRA_FIRMWARE="" -# CONFIG_DEBUG_DRIVER is not set -# CONFIG_DEBUG_DEVRES is not set -# CONFIG_SYS_HYPERVISOR is not set -# CONFIG_CONNECTOR is not set -CONFIG_MTD=y -# CONFIG_MTD_DEBUG is not set -# CONFIG_MTD_TESTS is not set -# CONFIG_MTD_REDBOOT_PARTS is not set -# CONFIG_MTD_CMDLINE_PARTS is not set -# CONFIG_MTD_AR7_PARTS is not set - -# -# User Modules And Translation Layers -# -CONFIG_MTD_CHAR=y -CONFIG_MTD_BLKDEVS=y -CONFIG_MTD_BLOCK=y -# CONFIG_FTL is not set -# CONFIG_NFTL is not set -# CONFIG_INFTL is not set -# CONFIG_RFD_FTL is not set -# CONFIG_SSFDC is not set -# CONFIG_SM_FTL is not set -# CONFIG_MTD_OOPS is not set -# CONFIG_MTD_SWAP is not set - -# -# RAM/ROM/Flash chip drivers -# -CONFIG_MTD_CFI=y -CONFIG_MTD_JEDECPROBE=y -CONFIG_MTD_GEN_PROBE=y -# CONFIG_MTD_CFI_ADV_OPTIONS is not set -CONFIG_MTD_MAP_BANK_WIDTH_1=y -CONFIG_MTD_MAP_BANK_WIDTH_2=y -CONFIG_MTD_MAP_BANK_WIDTH_4=y -# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set -# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set -# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set -CONFIG_MTD_CFI_I1=y -CONFIG_MTD_CFI_I2=y -# CONFIG_MTD_CFI_I4 is not set -# CONFIG_MTD_CFI_I8 is not set -CONFIG_MTD_CFI_INTELEXT=y -CONFIG_MTD_CFI_AMDSTD=y -CONFIG_MTD_CFI_STAA=y -CONFIG_MTD_CFI_UTIL=y -# CONFIG_MTD_RAM is not set -CONFIG_MTD_ROM=y -CONFIG_MTD_ABSENT=y - -# -# Mapping drivers for chip access -# -# CONFIG_MTD_COMPLEX_MAPPINGS is not set -CONFIG_MTD_PHYSMAP=y -# CONFIG_MTD_PHYSMAP_COMPAT is not set -# CONFIG_MTD_INTEL_VR_NOR is not set -# CONFIG_MTD_PLATRAM is not set - -# -# Self-contained MTD device drivers -# -# CONFIG_MTD_PMC551 is not set -# CONFIG_MTD_SLRAM is not set -# CONFIG_MTD_PHRAM is not set -# CONFIG_MTD_MTDRAM is not set -# CONFIG_MTD_BLOCK2MTD is not set - -# -# Disk-On-Chip Device Drivers -# -# CONFIG_MTD_DOC2000 is not set -# CONFIG_MTD_DOC2001 is not set -# CONFIG_MTD_DOC2001PLUS is not set -CONFIG_MTD_NAND_ECC=y -# CONFIG_MTD_NAND_ECC_SMC is not set -CONFIG_MTD_NAND=y -# CONFIG_MTD_NAND_VERIFY_WRITE is not set -# CONFIG_MTD_NAND_ECC_BCH is not set -# CONFIG_MTD_SM_COMMON is not set -# CONFIG_MTD_NAND_MUSEUM_IDS is not set -# CONFIG_MTD_NAND_DENALI is not set -CONFIG_MTD_NAND_IDS=y -# CONFIG_MTD_NAND_RICOH is not set -# CONFIG_MTD_NAND_DISKONCHIP is not set -# CONFIG_MTD_NAND_CAFE is not set -# CONFIG_MTD_NAND_NANDSIM is not set -# CONFIG_MTD_NAND_PLATFORM is not set -# CONFIG_MTD_ALAUDA is not set -# CONFIG_MTD_ONENAND is not set - -# -# LPDDR flash memory drivers -# -# CONFIG_MTD_LPDDR is not set -CONFIG_MTD_UBI=y -CONFIG_MTD_UBI_WL_THRESHOLD=4096 -CONFIG_MTD_UBI_BEB_RESERVE=1 -# CONFIG_MTD_UBI_GLUEBI is not set -# CONFIG_MTD_UBI_DEBUG is not set -# CONFIG_PARPORT is not set -CONFIG_BLK_DEV=y -# CONFIG_BLK_CPQ_DA is not set -# CONFIG_BLK_CPQ_CISS_DA is not set -# CONFIG_BLK_DEV_DAC960 is not set -# CONFIG_BLK_DEV_UMEM is not set -# CONFIG_BLK_DEV_COW_COMMON is not set -CONFIG_BLK_DEV_LOOP=y -CONFIG_BLK_DEV_LOOP_MIN_COUNT=8 -# CONFIG_BLK_DEV_CRYPTOLOOP is not set - -# -# DRBD disabled because PROC_FS, INET or CONNECTOR not selected -# -# CONFIG_BLK_DEV_NBD is not set -# CONFIG_BLK_DEV_SX8 is not set -# CONFIG_BLK_DEV_UB is not set -CONFIG_BLK_DEV_RAM=m -CONFIG_BLK_DEV_RAM_COUNT=16 -CONFIG_BLK_DEV_RAM_SIZE=4096 -# CONFIG_BLK_DEV_XIP is not set -# CONFIG_CDROM_PKTCDVD is not set -# CONFIG_ATA_OVER_ETH is not set -# CONFIG_BLK_DEV_HD is not set -# CONFIG_BLK_DEV_RBD is not set -# CONFIG_SENSORS_LIS3LV02D is not set -CONFIG_MISC_DEVICES=y -# CONFIG_AD525X_DPOT is not set -# CONFIG_PHANTOM is not set -# CONFIG_INTEL_MID_PTI is not set -# CONFIG_SGI_IOC4 is not set -# CONFIG_TIFM_CORE is not set -# CONFIG_ICS932S401 is not set -# CONFIG_ENCLOSURE_SERVICES is not set -# CONFIG_HP_ILO is not set -# CONFIG_APDS9802ALS is not set -# CONFIG_ISL29003 is not set -# CONFIG_ISL29020 is not set -# CONFIG_SENSORS_TSL2550 is not set -# CONFIG_SENSORS_BH1780 is not set -# CONFIG_SENSORS_BH1770 is not set -# CONFIG_SENSORS_APDS990X is not set -# CONFIG_HMC6352 is not set -# CONFIG_DS1682 is not set -# CONFIG_BMP085 is not set -# CONFIG_PCH_PHUB is not set -# CONFIG_USB_SWITCH_FSA9480 is not set -# CONFIG_C2PORT is not set - -# -# EEPROM support -# -# CONFIG_EEPROM_AT24 is not set -# CONFIG_EEPROM_LEGACY is not set -# CONFIG_EEPROM_MAX6875 is not set -CONFIG_EEPROM_93CX6=y -# CONFIG_CB710_CORE is not set - -# -# Texas Instruments shared transport line discipline -# -# CONFIG_SENSORS_LIS3_I2C is not set -CONFIG_HAVE_IDE=y -# CONFIG_IDE is not set - -# -# SCSI device support -# -CONFIG_SCSI_MOD=y -# CONFIG_RAID_ATTRS is not set -CONFIG_SCSI=y -CONFIG_SCSI_DMA=y -# CONFIG_SCSI_TGT is not set -# CONFIG_SCSI_NETLINK is not set -CONFIG_SCSI_PROC_FS=y - -# -# SCSI support type (disk, tape, CD-ROM) -# -CONFIG_BLK_DEV_SD=y -# CONFIG_CHR_DEV_ST is not set -# CONFIG_CHR_DEV_OSST is not set -CONFIG_BLK_DEV_SR=y -# CONFIG_BLK_DEV_SR_VENDOR is not set -CONFIG_CHR_DEV_SG=y -# CONFIG_CHR_DEV_SCH is not set -# CONFIG_SCSI_MULTI_LUN is not set -# CONFIG_SCSI_CONSTANTS is not set -# CONFIG_SCSI_LOGGING is not set -# CONFIG_SCSI_SCAN_ASYNC is not set -CONFIG_SCSI_WAIT_SCAN=m - -# -# SCSI Transports -# -# CONFIG_SCSI_SPI_ATTRS is not set -# CONFIG_SCSI_FC_ATTRS is not set -# CONFIG_SCSI_ISCSI_ATTRS is not set -# CONFIG_SCSI_SAS_ATTRS is not set -# CONFIG_SCSI_SAS_LIBSAS is not set -# CONFIG_SCSI_SRP_ATTRS is not set -CONFIG_SCSI_LOWLEVEL=y -# CONFIG_ISCSI_TCP is not set -# CONFIG_ISCSI_BOOT_SYSFS is not set -# CONFIG_SCSI_CXGB3_ISCSI is not set -# CONFIG_SCSI_CXGB4_ISCSI is not set -# CONFIG_SCSI_BNX2_ISCSI is not set -# CONFIG_SCSI_BNX2X_FCOE is not set -# CONFIG_BE2ISCSI is not set -# CONFIG_BLK_DEV_3W_XXXX_RAID is not set -# CONFIG_SCSI_HPSA is not set -# CONFIG_SCSI_3W_9XXX is not set -# CONFIG_SCSI_3W_SAS is not set -# CONFIG_SCSI_ACARD is not set -# CONFIG_SCSI_AACRAID is not set -# CONFIG_SCSI_AIC7XXX is not set -# CONFIG_SCSI_AIC7XXX_OLD is not set -# CONFIG_SCSI_AIC79XX is not set -# CONFIG_SCSI_AIC94XX is not set -# CONFIG_SCSI_MVSAS is not set -# CONFIG_SCSI_DPT_I2O is not set -# CONFIG_SCSI_ADVANSYS is not set -# CONFIG_SCSI_ARCMSR is not set -# CONFIG_MEGARAID_NEWGEN is not set -# CONFIG_MEGARAID_LEGACY is not set -# CONFIG_MEGARAID_SAS is not set -# CONFIG_SCSI_MPT2SAS is not set -# CONFIG_SCSI_HPTIOP is not set -# CONFIG_LIBFC is not set -# CONFIG_LIBFCOE is not set -# CONFIG_FCOE is not set -# CONFIG_SCSI_DMX3191D is not set -# CONFIG_SCSI_FUTURE_DOMAIN is not set -# CONFIG_SCSI_IPS is not set -# CONFIG_SCSI_INITIO is not set -# CONFIG_SCSI_INIA100 is not set -# CONFIG_SCSI_STEX is not set -# CONFIG_SCSI_SYM53C8XX_2 is not set -# CONFIG_SCSI_IPR is not set -# CONFIG_SCSI_QLOGIC_1280 is not set -# CONFIG_SCSI_QLA_FC is not set -# CONFIG_SCSI_QLA_ISCSI is not set -# CONFIG_SCSI_LPFC is not set -# CONFIG_SCSI_DC395x is not set -# CONFIG_SCSI_DC390T is not set -# CONFIG_SCSI_NSP32 is not set -# CONFIG_SCSI_DEBUG is not set -# CONFIG_SCSI_PMCRAID is not set -# CONFIG_SCSI_PM8001 is not set -# CONFIG_SCSI_SRP is not set -# CONFIG_SCSI_BFA_FC is not set -# CONFIG_SCSI_DH is not set -# CONFIG_SCSI_OSD_INITIATOR is not set -CONFIG_ATA=y -# CONFIG_ATA_NONSTANDARD is not set -CONFIG_ATA_VERBOSE_ERROR=y -CONFIG_SATA_PMP=y - -# -# Controllers with non-SFF native interface -# -# CONFIG_SATA_AHCI is not set -# CONFIG_SATA_AHCI_PLATFORM is not set -# CONFIG_SATA_INIC162X is not set -# CONFIG_SATA_ACARD_AHCI is not set -# CONFIG_SATA_SIL24 is not set -CONFIG_ATA_SFF=y - -# -# SFF controllers with custom DMA interface -# -# CONFIG_PDC_ADMA is not set -# CONFIG_SATA_QSTOR is not set -# CONFIG_SATA_SX4 is not set -CONFIG_ATA_BMDMA=y - -# -# SATA SFF controllers with BMDMA -# -# CONFIG_ATA_PIIX is not set -# CONFIG_SATA_MV is not set -# CONFIG_SATA_NV is not set -# CONFIG_SATA_PROMISE is not set -# CONFIG_SATA_SIL is not set -# CONFIG_SATA_SIS is not set -# CONFIG_SATA_SVW is not set -# CONFIG_SATA_ULI is not set -# CONFIG_SATA_VIA is not set -# CONFIG_SATA_VITESSE is not set - -# -# PATA SFF controllers with BMDMA -# -# CONFIG_PATA_ALI is not set -# CONFIG_PATA_AMD is not set -# CONFIG_PATA_ARTOP is not set -# CONFIG_PATA_ATIIXP is not set -# CONFIG_PATA_ATP867X is not set -# CONFIG_PATA_CMD64X is not set -# CONFIG_PATA_CS5520 is not set -# CONFIG_PATA_CS5530 is not set -# CONFIG_PATA_CS5536 is not set -# CONFIG_PATA_CYPRESS is not set -# CONFIG_PATA_EFAR is not set -# CONFIG_PATA_HPT366 is not set -# CONFIG_PATA_HPT37X is not set -# CONFIG_PATA_HPT3X2N is not set -# CONFIG_PATA_HPT3X3 is not set -# CONFIG_PATA_IT8213 is not set -# CONFIG_PATA_IT821X is not set -# CONFIG_PATA_JMICRON is not set -# CONFIG_PATA_MARVELL is not set -# CONFIG_PATA_NETCELL is not set -# CONFIG_PATA_NINJA32 is not set -# CONFIG_PATA_NS87415 is not set -# CONFIG_PATA_OLDPIIX is not set -# CONFIG_PATA_OPTIDMA is not set -# CONFIG_PATA_PDC2027X is not set -# CONFIG_PATA_PDC_OLD is not set -# CONFIG_PATA_RADISYS is not set -# CONFIG_PATA_RDC is not set -# CONFIG_PATA_SC1200 is not set -# CONFIG_PATA_SCH is not set -# CONFIG_PATA_SERVERWORKS is not set -# CONFIG_PATA_SIL680 is not set -# CONFIG_PATA_SIS is not set -# CONFIG_PATA_TOSHIBA is not set -# CONFIG_PATA_TRIFLEX is not set -# CONFIG_PATA_VIA is not set -# CONFIG_PATA_WINBOND is not set - -# -# PIO-only SFF controllers -# -# CONFIG_PATA_CMD640_PCI is not set -# CONFIG_PATA_MPIIX is not set -# CONFIG_PATA_NS87410 is not set -# CONFIG_PATA_OPTI is not set -# CONFIG_PATA_PLATFORM is not set -# CONFIG_PATA_RZ1000 is not set - -# -# Generic fallback / legacy drivers -# -# CONFIG_ATA_GENERIC is not set -# CONFIG_PATA_LEGACY is not set -# CONFIG_MD is not set -# CONFIG_TARGET_CORE is not set -# CONFIG_FUSION is not set - -# -# IEEE 1394 (FireWire) support -# -# CONFIG_FIREWIRE is not set -# CONFIG_FIREWIRE_NOSY is not set -# CONFIG_I2O is not set -CONFIG_NETDEVICES=y -# CONFIG_DUMMY is not set -# CONFIG_BONDING is not set -# CONFIG_MACVLAN is not set -# CONFIG_EQUALIZER is not set -CONFIG_TUN=m -# CONFIG_VETH is not set -# CONFIG_ARCNET is not set -CONFIG_MII=y -# CONFIG_PHYLIB is not set -CONFIG_NET_ETHERNET=y -# CONFIG_AX88796 is not set -# CONFIG_HAPPYMEAL is not set -# CONFIG_SUNGEM is not set -# CONFIG_CASSINI is not set -# CONFIG_NET_VENDOR_3COM is not set -# CONFIG_SMC91X is not set -# CONFIG_DM9000 is not set -# CONFIG_ETHOC is not set -# CONFIG_SMSC911X is not set -# CONFIG_DNET is not set -# CONFIG_NET_TULIP is not set -# CONFIG_HP100 is not set -# CONFIG_IBM_NEW_EMAC_ZMII is not set -# CONFIG_IBM_NEW_EMAC_RGMII is not set -# CONFIG_IBM_NEW_EMAC_TAH is not set -# CONFIG_IBM_NEW_EMAC_EMAC4 is not set -# CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set -# CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set -# CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set -# CONFIG_NET_PCI is not set -# CONFIG_B44 is not set -# CONFIG_KS8851_MLL is not set -# CONFIG_ATL2 is not set -CONFIG_NETDEV_1000=y -# CONFIG_ACENIC is not set -# CONFIG_DL2K is not set -# CONFIG_E1000 is not set -# CONFIG_E1000E is not set -# CONFIG_IP1000 is not set -# CONFIG_IGB is not set -# CONFIG_IGBVF is not set -# CONFIG_NS83820 is not set -# CONFIG_HAMACHI is not set -# CONFIG_YELLOWFIN is not set -# CONFIG_R8169 is not set -# CONFIG_SIS190 is not set -# CONFIG_SKGE is not set -# CONFIG_SKY2 is not set -# CONFIG_VIA_VELOCITY is not set -# CONFIG_TIGON3 is not set -# CONFIG_BNX2 is not set -# CONFIG_CNIC is not set -# CONFIG_QLA3XXX is not set -# CONFIG_ATL1 is not set -# CONFIG_ATL1E is not set -# CONFIG_ATL1C is not set -# CONFIG_JME is not set -# CONFIG_STMMAC_ETH is not set -# CONFIG_PCH_GBE is not set -# CONFIG_NETDEV_10000 is not set -# CONFIG_TR is not set -CONFIG_WLAN=y -CONFIG_LIBERTAS_THINFIRM=m -# CONFIG_LIBERTAS_THINFIRM_DEBUG is not set -CONFIG_LIBERTAS_THINFIRM_USB=m -# CONFIG_ATMEL is not set -CONFIG_AT76C50X_USB=m -# CONFIG_PRISM54 is not set -CONFIG_USB_ZD1201=y -# CONFIG_USB_NET_RNDIS_WLAN is not set -# CONFIG_RTL8180 is not set -CONFIG_RTL8187=m -CONFIG_RTL8187_LEDS=y -# CONFIG_ADM8211 is not set -# CONFIG_MAC80211_HWSIM is not set -# CONFIG_MWL8K is not set -CONFIG_ATH_COMMON=m -# CONFIG_ATH_DEBUG is not set -# CONFIG_ATH5K is not set -# CONFIG_ATH5K_PCI is not set -CONFIG_ATH9K_HW=m -CONFIG_ATH9K_COMMON=m -CONFIG_ATH9K=m -# CONFIG_ATH9K_PCI is not set -# CONFIG_ATH9K_AHB is not set -CONFIG_ATH9K_RATE_CONTROL=y -CONFIG_ATH9K_HTC=m -CONFIG_CARL9170=m -CONFIG_CARL9170_LEDS=y -CONFIG_CARL9170_WPC=y -# CONFIG_B43 is not set -# CONFIG_B43LEGACY is not set -CONFIG_HOSTAP=m -CONFIG_HOSTAP_FIRMWARE=y -# CONFIG_HOSTAP_FIRMWARE_NVRAM is not set -# CONFIG_HOSTAP_PLX is not set -# CONFIG_HOSTAP_PCI is not set -# CONFIG_IPW2100 is not set -# CONFIG_IPW2200 is not set -# CONFIG_IWLAGN is not set -# CONFIG_IWL4965 is not set -# CONFIG_IWL3945 is not set -CONFIG_LIBERTAS=m -# CONFIG_LIBERTAS_USB is not set -# CONFIG_LIBERTAS_DEBUG is not set -# CONFIG_LIBERTAS_MESH is not set -# CONFIG_HERMES is not set -CONFIG_P54_COMMON=m -# CONFIG_P54_USB is not set -# CONFIG_P54_PCI is not set -CONFIG_P54_LEDS=y -CONFIG_RT2X00=m -# CONFIG_RT2400PCI is not set -# CONFIG_RT2500PCI is not set -# CONFIG_RT61PCI is not set -# CONFIG_RT2800PCI is not set -CONFIG_RT2500USB=m -CONFIG_RT73USB=m -CONFIG_RT2800USB=m -CONFIG_RT2800USB_RT33XX=y -CONFIG_RT2800USB_RT35XX=y -CONFIG_RT2800USB_RT53XX=y -CONFIG_RT2800USB_UNKNOWN=y -CONFIG_RT2800_LIB=m -CONFIG_RT2X00_LIB_USB=m -CONFIG_RT2X00_LIB=m -CONFIG_RT2X00_LIB_FIRMWARE=y -CONFIG_RT2X00_LIB_CRYPTO=y -CONFIG_RT2X00_LIB_LEDS=y -# CONFIG_RT2X00_DEBUG is not set -# CONFIG_RTL8192CE is not set -# CONFIG_RTL8192SE is not set -# CONFIG_RTL8192DE is not set -CONFIG_RTL8192CU=m -CONFIG_RTLWIFI=m -CONFIG_RTL8192C_COMMON=m -CONFIG_WL1251=m -# CONFIG_WL12XX_MENU is not set -CONFIG_ZD1211RW=m -# CONFIG_ZD1211RW_DEBUG is not set -CONFIG_MWIFIEX=y - -# -# Enable WiMAX (Networking options) to see the WiMAX drivers -# - -# -# USB Network Adapters -# -# CONFIG_USB_CATC is not set -# CONFIG_USB_KAWETH is not set -# CONFIG_USB_PEGASUS is not set -# CONFIG_USB_RTL8150 is not set -# CONFIG_USB_USBNET is not set -# CONFIG_USB_IPHETH is not set -# CONFIG_WAN is not set - -# -# CAIF transport drivers -# -# CONFIG_FDDI is not set -# CONFIG_HIPPI is not set -CONFIG_PPP=m -CONFIG_PPP_MULTILINK=y -CONFIG_PPP_FILTER=y -CONFIG_PPP_ASYNC=m -CONFIG_PPP_SYNC_TTY=m -CONFIG_PPP_DEFLATE=m -CONFIG_PPP_BSDCOMP=m -CONFIG_PPP_MPPE=m -CONFIG_PPPOE=m -# CONFIG_SLIP is not set -CONFIG_SLHC=m -# CONFIG_NET_FC is not set -# CONFIG_NETCONSOLE is not set -# CONFIG_NETPOLL is not set -# CONFIG_NET_POLL_CONTROLLER is not set -# CONFIG_VMXNET3 is not set -# CONFIG_ISDN is not set -# CONFIG_PHONE is not set - -# -# Input device support -# -CONFIG_INPUT=y -# CONFIG_INPUT_FF_MEMLESS is not set -CONFIG_INPUT_POLLDEV=m -# CONFIG_INPUT_SPARSEKMAP is not set - -# -# Userland interfaces -# -CONFIG_INPUT_MOUSEDEV=y -# CONFIG_INPUT_MOUSEDEV_PSAUX is not set -CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 -CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 -# CONFIG_INPUT_JOYDEV is not set -CONFIG_INPUT_EVDEV=y -# CONFIG_INPUT_EVBUG is not set - -# -# Input Device Drivers -# -CONFIG_INPUT_KEYBOARD=y -# CONFIG_KEYBOARD_ADP5588 is not set -# CONFIG_KEYBOARD_ADP5589 is not set -# CONFIG_KEYBOARD_ATKBD is not set -# CONFIG_KEYBOARD_QT1070 is not set -# CONFIG_KEYBOARD_QT2160 is not set -# CONFIG_KEYBOARD_LKKBD is not set -# CONFIG_KEYBOARD_TCA6416 is not set -# CONFIG_KEYBOARD_LM8323 is not set -# CONFIG_KEYBOARD_MAX7359 is not set -# CONFIG_KEYBOARD_MCS is not set -# CONFIG_KEYBOARD_MPR121 is not set -# CONFIG_KEYBOARD_NEWTON is not set -# CONFIG_KEYBOARD_OPENCORES is not set -# CONFIG_KEYBOARD_STOWAWAY is not set -# CONFIG_KEYBOARD_SUNKBD is not set -# CONFIG_KEYBOARD_XTKBD is not set -CONFIG_INPUT_MOUSE=y -# CONFIG_MOUSE_PS2 is not set -# CONFIG_MOUSE_SERIAL is not set -# CONFIG_MOUSE_APPLETOUCH is not set -# CONFIG_MOUSE_BCM5974 is not set -# CONFIG_MOUSE_VSXXXAA is not set -# CONFIG_MOUSE_SYNAPTICS_I2C is not set -# CONFIG_INPUT_JOYSTICK is not set -# CONFIG_INPUT_TABLET is not set -# CONFIG_INPUT_TOUCHSCREEN is not set -# CONFIG_INPUT_MISC is not set - -# -# Hardware I/O ports -# -# CONFIG_SERIO is not set -# CONFIG_GAMEPORT is not set - -# -# Character devices -# -# CONFIG_VT is not set -CONFIG_UNIX98_PTYS=y -# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set -# CONFIG_LEGACY_PTYS is not set -# CONFIG_SERIAL_NONSTANDARD is not set -# CONFIG_NOZOMI is not set -# CONFIG_N_GSM is not set -# CONFIG_TRACE_SINK is not set -CONFIG_DEVKMEM=y - -# -# Serial drivers -# -CONFIG_SERIAL_8250=y -CONFIG_SERIAL_8250_CONSOLE=y -CONFIG_SERIAL_8250_PCI=y -CONFIG_SERIAL_8250_NR_UARTS=4 -CONFIG_SERIAL_8250_RUNTIME_UARTS=4 -# CONFIG_SERIAL_8250_EXTENDED is not set - -# -# Non-8250 serial port support -# -# CONFIG_SERIAL_MFD_HSU is not set -CONFIG_SERIAL_CORE=y -CONFIG_SERIAL_CORE_CONSOLE=y -# CONFIG_SERIAL_JSM is not set -# CONFIG_SERIAL_TIMBERDALE is not set -# CONFIG_SERIAL_ALTERA_JTAGUART is not set -# CONFIG_SERIAL_ALTERA_UART is not set -# CONFIG_SERIAL_PCH_UART is not set -# CONFIG_SERIAL_XILINX_PS_UART is not set -# CONFIG_TTY_PRINTK is not set -# CONFIG_IPMI_HANDLER is not set -CONFIG_HW_RANDOM=y -# CONFIG_HW_RANDOM_TIMERIOMEM is not set -# CONFIG_R3964 is not set -# CONFIG_APPLICOM is not set -# CONFIG_RAW_DRIVER is not set -# CONFIG_TCG_TPM is not set -CONFIG_DEVPORT=y -# CONFIG_RAMOOPS is not set -CONFIG_I2C=y -CONFIG_I2C_BOARDINFO=y -CONFIG_I2C_COMPAT=y -CONFIG_I2C_CHARDEV=y -# CONFIG_I2C_MUX is not set -CONFIG_I2C_HELPER_AUTO=y - -# -# I2C Hardware Bus support -# - -# -# PC SMBus host controller drivers -# -# CONFIG_I2C_ALI1535 is not set -# CONFIG_I2C_ALI1563 is not set -# CONFIG_I2C_ALI15X3 is not set -# CONFIG_I2C_AMD756 is not set -# CONFIG_I2C_AMD8111 is not set -# CONFIG_I2C_I801 is not set -# CONFIG_I2C_ISCH is not set -# CONFIG_I2C_PIIX4 is not set -# CONFIG_I2C_NFORCE2 is not set -# CONFIG_I2C_SIS5595 is not set -# CONFIG_I2C_SIS630 is not set -# CONFIG_I2C_SIS96X is not set -# CONFIG_I2C_VIA is not set -# CONFIG_I2C_VIAPRO is not set - -# -# I2C system bus drivers (mostly embedded / system-on-chip) -# -# CONFIG_I2C_INTEL_MID is not set -# CONFIG_I2C_OCORES is not set -# CONFIG_I2C_PCA_PLATFORM is not set -# CONFIG_I2C_PXA_PCI is not set -# CONFIG_I2C_SIMTEC is not set -# CONFIG_I2C_XILINX is not set -# CONFIG_I2C_EG20T is not set - -# -# External I2C/SMBus adapter drivers -# -# CONFIG_I2C_DIOLAN_U2C is not set -# CONFIG_I2C_PARPORT_LIGHT is not set -# CONFIG_I2C_TAOS_EVM is not set -# CONFIG_I2C_TINY_USB is not set - -# -# Other I2C/SMBus bus drivers -# -# CONFIG_I2C_STUB is not set -# CONFIG_I2C_DEBUG_CORE is not set -# CONFIG_I2C_DEBUG_ALGO is not set -# CONFIG_I2C_DEBUG_BUS is not set -# CONFIG_SPI is not set - -# -# PPS support -# -# CONFIG_PPS is not set - -# -# PPS generators support -# - -# -# PTP clock support -# - -# -# Enable Device Drivers -> PPS to see the PTP clock options. -# -# CONFIG_W1 is not set -# CONFIG_POWER_SUPPLY is not set -# CONFIG_HWMON is not set -# CONFIG_THERMAL is not set -# CONFIG_WATCHDOG is not set -CONFIG_SSB_POSSIBLE=y - -# -# Sonics Silicon Backplane -# -# CONFIG_SSB is not set -CONFIG_BCMA_POSSIBLE=y - -# -# Broadcom specific AMBA -# -# CONFIG_BCMA is not set -CONFIG_MFD_SUPPORT=y -# CONFIG_MFD_CORE is not set -# CONFIG_MFD_88PM860X is not set -# CONFIG_MFD_SM501 is not set -# CONFIG_HTC_PASIC3 is not set -# CONFIG_TPS6105X is not set -# CONFIG_TPS6507X is not set -# CONFIG_TWL4030_CORE is not set -# CONFIG_MFD_STMPE is not set -# CONFIG_MFD_TC3589X is not set -# CONFIG_MFD_TMIO is not set -# CONFIG_PMIC_DA903X is not set -# CONFIG_PMIC_ADP5520 is not set -# CONFIG_MFD_MAX8925 is not set -# CONFIG_MFD_MAX8997 is not set -# CONFIG_MFD_MAX8998 is not set -# CONFIG_MFD_WM8400 is not set -# CONFIG_MFD_WM831X_I2C is not set -# CONFIG_MFD_WM8350_I2C is not set -# CONFIG_MFD_WM8994 is not set -# CONFIG_MFD_PCF50633 is not set -# CONFIG_ABX500_CORE is not set -# CONFIG_LPC_SCH is not set -# CONFIG_MFD_RDC321X is not set -# CONFIG_MFD_JANZ_CMODIO is not set -# CONFIG_MFD_VX855 is not set -# CONFIG_MFD_WL1273_CORE is not set -# CONFIG_REGULATOR is not set -CONFIG_MEDIA_SUPPORT=y - -# -# Multimedia core support -# -# CONFIG_MEDIA_CONTROLLER is not set -CONFIG_VIDEO_DEV=y -CONFIG_VIDEO_V4L2_COMMON=y -CONFIG_DVB_CORE=y -CONFIG_DVB_NET=y -CONFIG_VIDEO_MEDIA=y - -# -# Multimedia drivers -# -CONFIG_RC_CORE=y -CONFIG_LIRC=y -CONFIG_RC_MAP=y -CONFIG_IR_NEC_DECODER=y -CONFIG_IR_RC5_DECODER=y -CONFIG_IR_RC6_DECODER=y -CONFIG_IR_JVC_DECODER=y -CONFIG_IR_SONY_DECODER=y -CONFIG_IR_RC5_SZ_DECODER=y -CONFIG_IR_MCE_KBD_DECODER=y -CONFIG_IR_LIRC_CODEC=y -# CONFIG_IR_IMON is not set -# CONFIG_IR_MCEUSB is not set -# CONFIG_IR_REDRAT3 is not set -# CONFIG_IR_STREAMZAP is not set -# CONFIG_RC_LOOPBACK is not set -CONFIG_MEDIA_ATTACH=y -CONFIG_MEDIA_TUNER=y -CONFIG_MEDIA_TUNER_CUSTOMISE=y - -# -# Customize TV tuners -# -CONFIG_MEDIA_TUNER_SIMPLE=m -CONFIG_MEDIA_TUNER_TDA8290=m -CONFIG_MEDIA_TUNER_TDA827X=m -CONFIG_MEDIA_TUNER_TDA18271=m -CONFIG_MEDIA_TUNER_TDA9887=m -CONFIG_MEDIA_TUNER_TEA5761=m -CONFIG_MEDIA_TUNER_TEA5767=m -CONFIG_MEDIA_TUNER_MT20XX=m -CONFIG_MEDIA_TUNER_MT2060=m -CONFIG_MEDIA_TUNER_MT2266=m -CONFIG_MEDIA_TUNER_MT2131=m -CONFIG_MEDIA_TUNER_QT1010=m -CONFIG_MEDIA_TUNER_XC2028=m -CONFIG_MEDIA_TUNER_XC5000=m -CONFIG_MEDIA_TUNER_XC4000=m -CONFIG_MEDIA_TUNER_MXL5005S=m -CONFIG_MEDIA_TUNER_MXL5007T=m -CONFIG_MEDIA_TUNER_MC44S803=m -CONFIG_MEDIA_TUNER_MAX2165=m -CONFIG_MEDIA_TUNER_TDA18218=m -CONFIG_MEDIA_TUNER_TDA18212=m -CONFIG_VIDEO_V4L2=y -CONFIG_VIDEOBUF_GEN=m -CONFIG_VIDEOBUF_VMALLOC=m -CONFIG_VIDEOBUF_DVB=m -CONFIG_VIDEO_TVEEPROM=m -CONFIG_VIDEO_TUNER=m -CONFIG_VIDEO_CAPTURE_DRIVERS=y -# CONFIG_VIDEO_ADV_DEBUG is not set -# CONFIG_VIDEO_FIXED_MINOR_RANGES is not set -# CONFIG_VIDEO_HELPER_CHIPS_AUTO is not set -CONFIG_VIDEO_IR_I2C=y - -# -# Encoders, decoders, sensors and other helper chips -# - -# -# Audio decoders, processors and mixers -# -# CONFIG_VIDEO_TVAUDIO is not set -# CONFIG_VIDEO_TDA7432 is not set -# CONFIG_VIDEO_TDA9840 is not set -# CONFIG_VIDEO_TEA6415C is not set -# CONFIG_VIDEO_TEA6420 is not set -# CONFIG_VIDEO_MSP3400 is not set -# CONFIG_VIDEO_CS5345 is not set -# CONFIG_VIDEO_CS53L32A is not set -# CONFIG_VIDEO_TLV320AIC23B is not set -# CONFIG_VIDEO_WM8775 is not set -# CONFIG_VIDEO_WM8739 is not set -# CONFIG_VIDEO_VP27SMPX is not set - -# -# RDS decoders -# -# CONFIG_VIDEO_SAA6588 is not set - -# -# Video decoders -# -# CONFIG_VIDEO_ADV7180 is not set -# CONFIG_VIDEO_BT819 is not set -# CONFIG_VIDEO_BT856 is not set -# CONFIG_VIDEO_BT866 is not set -# CONFIG_VIDEO_KS0127 is not set -# CONFIG_VIDEO_SAA7110 is not set -# CONFIG_VIDEO_SAA711X is not set -# CONFIG_VIDEO_SAA7191 is not set -# CONFIG_VIDEO_TVP514X is not set -# CONFIG_VIDEO_TVP5150 is not set -# CONFIG_VIDEO_TVP7002 is not set -# CONFIG_VIDEO_VPX3220 is not set - -# -# Video and audio decoders -# -# CONFIG_VIDEO_SAA717X is not set -# CONFIG_VIDEO_CX25840 is not set - -# -# MPEG video encoders -# -# CONFIG_VIDEO_CX2341X is not set - -# -# Video encoders -# -# CONFIG_VIDEO_SAA7127 is not set -# CONFIG_VIDEO_SAA7185 is not set -# CONFIG_VIDEO_ADV7170 is not set -# CONFIG_VIDEO_ADV7175 is not set -# CONFIG_VIDEO_ADV7343 is not set -# CONFIG_VIDEO_AK881X is not set - -# -# Camera sensor devices -# -# CONFIG_VIDEO_OV7670 is not set -# CONFIG_VIDEO_MT9V011 is not set -# CONFIG_VIDEO_TCM825X is not set - -# -# Flash devices -# - -# -# Video improvement chips -# -# CONFIG_VIDEO_UPD64031A is not set -# CONFIG_VIDEO_UPD64083 is not set - -# -# Miscelaneous helper chips -# -# CONFIG_VIDEO_THS7303 is not set -# CONFIG_VIDEO_M52790 is not set -# CONFIG_VIDEO_BT848 is not set -# CONFIG_VIDEO_CPIA2 is not set -# CONFIG_VIDEO_SAA7134 is not set -# CONFIG_VIDEO_MXB is not set -# CONFIG_VIDEO_HEXIUM_ORION is not set -# CONFIG_VIDEO_HEXIUM_GEMINI is not set -# CONFIG_VIDEO_CX88 is not set -# CONFIG_VIDEO_CX23885 is not set -# CONFIG_VIDEO_AU0828 is not set -# CONFIG_VIDEO_IVTV is not set -# CONFIG_VIDEO_CX18 is not set -# CONFIG_VIDEO_SAA7164 is not set -# CONFIG_VIDEO_CAFE_CCIC is not set -# CONFIG_VIDEO_SR030PC30 is not set -# CONFIG_VIDEO_NOON010PC30 is not set -# CONFIG_SOC_CAMERA is not set -CONFIG_V4L_USB_DRIVERS=y -# CONFIG_USB_VIDEO_CLASS is not set -CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y -CONFIG_USB_GSPCA=m -# CONFIG_USB_M5602 is not set -# CONFIG_USB_STV06XX is not set -# CONFIG_USB_GL860 is not set -# CONFIG_USB_GSPCA_BENQ is not set -# CONFIG_USB_GSPCA_CONEX is not set -# CONFIG_USB_GSPCA_CPIA1 is not set -# CONFIG_USB_GSPCA_ETOMS is not set -# CONFIG_USB_GSPCA_FINEPIX is not set -# CONFIG_USB_GSPCA_JEILINJ is not set -# CONFIG_USB_GSPCA_KINECT is not set -# CONFIG_USB_GSPCA_KONICA is not set -# CONFIG_USB_GSPCA_MARS is not set -# CONFIG_USB_GSPCA_MR97310A is not set -# CONFIG_USB_GSPCA_NW80X is not set -# CONFIG_USB_GSPCA_OV519 is not set -# CONFIG_USB_GSPCA_OV534 is not set -# CONFIG_USB_GSPCA_OV534_9 is not set -# CONFIG_USB_GSPCA_PAC207 is not set -# CONFIG_USB_GSPCA_PAC7302 is not set -# CONFIG_USB_GSPCA_PAC7311 is not set -# CONFIG_USB_GSPCA_SE401 is not set -# CONFIG_USB_GSPCA_SN9C2028 is not set -# CONFIG_USB_GSPCA_SN9C20X is not set -# CONFIG_USB_GSPCA_SONIXB is not set -# CONFIG_USB_GSPCA_SONIXJ is not set -# CONFIG_USB_GSPCA_SPCA500 is not set -# CONFIG_USB_GSPCA_SPCA501 is not set -# CONFIG_USB_GSPCA_SPCA505 is not set -# CONFIG_USB_GSPCA_SPCA506 is not set -# CONFIG_USB_GSPCA_SPCA508 is not set -# CONFIG_USB_GSPCA_SPCA561 is not set -# CONFIG_USB_GSPCA_SPCA1528 is not set -# CONFIG_USB_GSPCA_SQ905 is not set -# CONFIG_USB_GSPCA_SQ905C is not set -# CONFIG_USB_GSPCA_SQ930X is not set -# CONFIG_USB_GSPCA_STK014 is not set -# CONFIG_USB_GSPCA_STV0680 is not set -# CONFIG_USB_GSPCA_SUNPLUS is not set -# CONFIG_USB_GSPCA_T613 is not set -# CONFIG_USB_GSPCA_TV8532 is not set -# CONFIG_USB_GSPCA_VC032X is not set -# CONFIG_USB_GSPCA_VICAM is not set -# CONFIG_USB_GSPCA_XIRLINK_CIT is not set -# CONFIG_USB_GSPCA_ZC3XX is not set -# CONFIG_VIDEO_PVRUSB2 is not set -# CONFIG_VIDEO_HDPVR is not set -CONFIG_VIDEO_EM28XX=m -CONFIG_VIDEO_EM28XX_ALSA=m -CONFIG_VIDEO_EM28XX_DVB=m -CONFIG_VIDEO_EM28XX_RC=y -# CONFIG_VIDEO_TLG2300 is not set -# CONFIG_VIDEO_CX231XX is not set -# CONFIG_VIDEO_USBVISION is not set -# CONFIG_USB_ET61X251 is not set -# CONFIG_USB_SN9C102 is not set -# CONFIG_USB_PWC is not set -# CONFIG_USB_ZR364XX is not set -# CONFIG_USB_STKWEBCAM is not set -# CONFIG_USB_S2255 is not set -# CONFIG_V4L_MEM2MEM_DRIVERS is not set -CONFIG_RADIO_ADAPTERS=y -# CONFIG_RADIO_MAXIRADIO is not set -# CONFIG_I2C_SI4713 is not set -# CONFIG_RADIO_SI4713 is not set -# CONFIG_USB_DSBR is not set -# CONFIG_RADIO_SI470X is not set -# CONFIG_USB_MR800 is not set -# CONFIG_RADIO_TEA5764 is not set -# CONFIG_RADIO_SAA7706H is not set -# CONFIG_RADIO_TEF6862 is not set -# CONFIG_RADIO_WL1273 is not set - -# -# Texas Instruments WL128x FM driver (ST based) -# -CONFIG_DVB_MAX_ADAPTERS=8 -CONFIG_DVB_DYNAMIC_MINORS=y -CONFIG_DVB_CAPTURE_DRIVERS=y - -# -# Supported SAA7146 based PCI Adapters -# -# CONFIG_TTPCI_EEPROM is not set -# CONFIG_DVB_AV7110 is not set -# CONFIG_DVB_BUDGET_CORE is not set - -# -# Supported USB Adapters -# -CONFIG_DVB_USB=m -# CONFIG_DVB_USB_DEBUG is not set -CONFIG_DVB_USB_A800=m -CONFIG_DVB_USB_DIBUSB_MB=m -CONFIG_DVB_USB_DIBUSB_MB_FAULTY=y -CONFIG_DVB_USB_DIBUSB_MC=m -CONFIG_DVB_USB_DIB0700=m -CONFIG_DVB_USB_UMT_010=m -CONFIG_DVB_USB_CXUSB=m -CONFIG_DVB_USB_M920X=m -CONFIG_DVB_USB_GL861=m -CONFIG_DVB_USB_AU6610=m -CONFIG_DVB_USB_DIGITV=m -CONFIG_DVB_USB_VP7045=m -CONFIG_DVB_USB_VP702X=m -CONFIG_DVB_USB_GP8PSK=m -CONFIG_DVB_USB_NOVA_T_USB2=m -CONFIG_DVB_USB_TTUSB2=m -CONFIG_DVB_USB_DTT200U=m -CONFIG_DVB_USB_OPERA1=m -CONFIG_DVB_USB_AF9005=m -CONFIG_DVB_USB_AF9005_REMOTE=m -CONFIG_DVB_USB_DW2102=m -CONFIG_DVB_USB_CINERGY_T2=m -CONFIG_DVB_USB_ANYSEE=m -CONFIG_DVB_USB_DTV5100=m -CONFIG_DVB_USB_AF9015=m -CONFIG_DVB_USB_CE6230=m -CONFIG_DVB_USB_FRIIO=m -CONFIG_DVB_USB_EC168=m -CONFIG_DVB_USB_AZ6027=m -CONFIG_DVB_USB_LME2510=m -CONFIG_DVB_USB_TECHNISAT_USB2=m -CONFIG_DVB_TTUSB_BUDGET=m -# CONFIG_DVB_TTUSB_DEC is not set -CONFIG_SMS_SIANO_MDTV=m - -# -# Siano module components -# -CONFIG_SMS_USB_DRV=m - -# -# Supported FlexCopII (B2C2) Adapters -# -# CONFIG_DVB_B2C2_FLEXCOP is not set - -# -# Supported BT878 Adapters -# - -# -# Supported Pluto2 Adapters -# -# CONFIG_DVB_PLUTO2 is not set - -# -# Supported SDMC DM1105 Adapters -# -# CONFIG_DVB_DM1105 is not set - -# -# Supported Earthsoft PT1 Adapters -# -# CONFIG_DVB_PT1 is not set - -# -# Supported Mantis Adapters -# -# CONFIG_MANTIS_CORE is not set - -# -# Supported nGene Adapters -# -# CONFIG_DVB_NGENE is not set - -# -# Supported ddbridge ('Octopus') Adapters -# -# CONFIG_DVB_DDBRIDGE is not set - -# -# Supported DVB Frontends -# -CONFIG_DVB_FE_CUSTOMISE=y - -# -# Customise DVB Frontends -# - -# -# Multistandard (satellite) frontends -# -CONFIG_DVB_STB0899=m -CONFIG_DVB_STB6100=m -CONFIG_DVB_STV090x=m -CONFIG_DVB_STV6110x=m - -# -# Multistandard (cable + terrestrial) frontends -# -CONFIG_DVB_DRXK=m -CONFIG_DVB_TDA18271C2DD=m - -# -# DVB-S (satellite) frontends -# -CONFIG_DVB_CX24110=m -CONFIG_DVB_CX24123=m -CONFIG_DVB_MT312=m -CONFIG_DVB_ZL10036=m -CONFIG_DVB_ZL10039=m -CONFIG_DVB_S5H1420=m -CONFIG_DVB_STV0288=m -CONFIG_DVB_STB6000=m -CONFIG_DVB_STV0299=m -CONFIG_DVB_STV6110=m -CONFIG_DVB_STV0900=m -CONFIG_DVB_TDA8083=m -CONFIG_DVB_TDA10086=m -CONFIG_DVB_TDA8261=m -CONFIG_DVB_VES1X93=m -CONFIG_DVB_TUNER_ITD1000=m -CONFIG_DVB_TUNER_CX24113=m -CONFIG_DVB_TDA826X=m -CONFIG_DVB_TUA6100=m -CONFIG_DVB_CX24116=m -CONFIG_DVB_SI21XX=m -CONFIG_DVB_DS3000=m -CONFIG_DVB_MB86A16=m - -# -# DVB-T (terrestrial) frontends -# -CONFIG_DVB_SP8870=m -CONFIG_DVB_SP887X=m -CONFIG_DVB_CX22700=m -CONFIG_DVB_CX22702=m -CONFIG_DVB_S5H1432=m -CONFIG_DVB_DRXD=m -CONFIG_DVB_L64781=m -CONFIG_DVB_TDA1004X=m -CONFIG_DVB_NXT6000=m -CONFIG_DVB_MT352=m -CONFIG_DVB_ZL10353=m -CONFIG_DVB_DIB3000MB=m -CONFIG_DVB_DIB3000MC=m -CONFIG_DVB_DIB7000M=m -CONFIG_DVB_DIB7000P=m -CONFIG_DVB_DIB9000=m -CONFIG_DVB_TDA10048=m -CONFIG_DVB_AF9013=m -CONFIG_DVB_EC100=m -CONFIG_DVB_STV0367=m -CONFIG_DVB_CXD2820R=m - -# -# DVB-C (cable) frontends -# -CONFIG_DVB_VES1820=m -CONFIG_DVB_TDA10021=m -CONFIG_DVB_TDA10023=m -CONFIG_DVB_STV0297=m - -# -# ATSC (North American/Korean Terrestrial/Cable DTV) frontends -# -CONFIG_DVB_NXT200X=m -CONFIG_DVB_OR51211=m -CONFIG_DVB_OR51132=m -CONFIG_DVB_BCM3510=m -CONFIG_DVB_LGDT330X=m -CONFIG_DVB_LGDT3305=m -CONFIG_DVB_S5H1409=m -CONFIG_DVB_AU8522=m -CONFIG_DVB_S5H1411=m - -# -# ISDB-T (terrestrial) frontends -# -CONFIG_DVB_S921=m -CONFIG_DVB_DIB8000=m -CONFIG_DVB_MB86A20S=m - -# -# Digital terrestrial only tuners/PLL -# -CONFIG_DVB_PLL=m -CONFIG_DVB_TUNER_DIB0070=m -CONFIG_DVB_TUNER_DIB0090=m - -# -# SEC control devices for DVB-S -# -CONFIG_DVB_LNBP21=m -CONFIG_DVB_ISL6405=m -CONFIG_DVB_ISL6421=m -CONFIG_DVB_ISL6423=m -CONFIG_DVB_LGS8GL5=m -CONFIG_DVB_LGS8GXX=m -CONFIG_DVB_ATBM8830=m -CONFIG_DVB_TDA665x=m -CONFIG_DVB_IX2505V=m - -# -# Tools to develop new frontends -# -# CONFIG_DVB_DUMMY_FE is not set - -# -# Graphics support -# -# CONFIG_VGA_ARB is not set -# CONFIG_DRM is not set -# CONFIG_STUB_POULSBO is not set -# CONFIG_VGASTATE is not set -# CONFIG_VIDEO_OUTPUT_CONTROL is not set -CONFIG_FB=y -# CONFIG_FIRMWARE_EDID is not set -# CONFIG_FB_DDC is not set -# CONFIG_FB_BOOT_VESA_SUPPORT is not set -# CONFIG_FB_CFB_FILLRECT is not set -# CONFIG_FB_CFB_COPYAREA is not set -# CONFIG_FB_CFB_IMAGEBLIT is not set -# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set -# CONFIG_FB_SYS_FILLRECT is not set -# CONFIG_FB_SYS_COPYAREA is not set -# CONFIG_FB_SYS_IMAGEBLIT is not set -# CONFIG_FB_FOREIGN_ENDIAN is not set -# CONFIG_FB_SYS_FOPS is not set -# CONFIG_FB_WMT_GE_ROPS is not set -# CONFIG_FB_SVGALIB is not set -# CONFIG_FB_MACMODES is not set -# CONFIG_FB_BACKLIGHT is not set -# CONFIG_FB_MODE_HELPERS is not set -# CONFIG_FB_TILEBLITTING is not set - -# -# Frame buffer hardware drivers -# -# CONFIG_FB_CIRRUS is not set -# CONFIG_FB_PM2 is not set -# CONFIG_FB_CYBER2000 is not set -# CONFIG_FB_ASILIANT is not set -# CONFIG_FB_IMSTT is not set -# CONFIG_FB_S1D13XXX is not set -# CONFIG_FB_NVIDIA is not set -# CONFIG_FB_RIVA is not set -# CONFIG_FB_MATROX is not set -# CONFIG_FB_RADEON is not set -# CONFIG_FB_ATY128 is not set -# CONFIG_FB_ATY is not set -# CONFIG_FB_S3 is not set -# CONFIG_FB_SAVAGE is not set -# CONFIG_FB_SIS is not set -# CONFIG_FB_NEOMAGIC is not set -# CONFIG_FB_KYRO is not set -# CONFIG_FB_3DFX is not set -# CONFIG_FB_VOODOO1 is not set -# CONFIG_FB_VT8623 is not set -# CONFIG_FB_TRIDENT is not set -# CONFIG_FB_ARK is not set -# CONFIG_FB_PM3 is not set -# CONFIG_FB_CARMINE is not set -# CONFIG_FB_UDL is not set -# CONFIG_FB_VIRTUAL is not set -# CONFIG_FB_METRONOME is not set -# CONFIG_FB_MB862XX is not set -# CONFIG_FB_BROADSHEET is not set -# CONFIG_BACKLIGHT_LCD_SUPPORT is not set - -# -# Display device support -# -# CONFIG_DISPLAY_SUPPORT is not set -# CONFIG_LOGO is not set -CONFIG_SOUND=y -CONFIG_SOUND_OSS_CORE=y -CONFIG_SOUND_OSS_CORE_PRECLAIM=y -CONFIG_SND=y -CONFIG_SND_TIMER=y -CONFIG_SND_PCM=y -CONFIG_SND_SEQUENCER=y -# CONFIG_SND_SEQ_DUMMY is not set -CONFIG_SND_OSSEMUL=y -CONFIG_SND_MIXER_OSS=y -CONFIG_SND_PCM_OSS=y -# CONFIG_SND_PCM_OSS_PLUGINS is not set -# CONFIG_SND_SEQUENCER_OSS is not set -# CONFIG_SND_HRTIMER is not set -# CONFIG_SND_DYNAMIC_MINORS is not set -CONFIG_SND_SUPPORT_OLD_API=y -CONFIG_SND_VERBOSE_PROCFS=y -# CONFIG_SND_VERBOSE_PRINTK is not set -# CONFIG_SND_DEBUG is not set -# CONFIG_SND_RAWMIDI_SEQ is not set -# CONFIG_SND_OPL3_LIB_SEQ is not set -# CONFIG_SND_OPL4_LIB_SEQ is not set -# CONFIG_SND_SBAWE_SEQ is not set -# CONFIG_SND_EMU10K1_SEQ is not set -# CONFIG_SND_DRIVERS is not set -# CONFIG_SND_PCI is not set -# CONFIG_SND_MIPS is not set -# CONFIG_SND_USB is not set -# CONFIG_SND_SOC is not set -# CONFIG_SOUND_PRIME is not set -CONFIG_HID_SUPPORT=y -CONFIG_HID=y -CONFIG_HIDRAW=y - -# -# USB Input Devices -# -CONFIG_USB_HID=y -# CONFIG_HID_PID is not set -CONFIG_USB_HIDDEV=y - -# -# Special HID drivers -# -# CONFIG_HID_A4TECH is not set -# CONFIG_HID_ACRUX is not set -# CONFIG_HID_APPLE is not set -# CONFIG_HID_BELKIN is not set -# CONFIG_HID_CHERRY is not set -# CONFIG_HID_CHICONY is not set -# CONFIG_HID_PRODIKEYS is not set -# CONFIG_HID_CYPRESS is not set -# CONFIG_HID_DRAGONRISE is not set -# CONFIG_HID_EMS_FF is not set -# CONFIG_HID_ELECOM is not set -# CONFIG_HID_EZKEY is not set -# CONFIG_HID_HOLTEK is not set -# CONFIG_HID_KEYTOUCH is not set -# CONFIG_HID_KYE is not set -# CONFIG_HID_UCLOGIC is not set -# CONFIG_HID_WALTOP is not set -# CONFIG_HID_GYRATION is not set -# CONFIG_HID_TWINHAN is not set -# CONFIG_HID_KENSINGTON is not set -# CONFIG_HID_LCPOWER is not set -# CONFIG_HID_LOGITECH is not set -# CONFIG_HID_MAGICMOUSE is not set -# CONFIG_HID_MICROSOFT is not set -# CONFIG_HID_MONTEREY is not set -# CONFIG_HID_MULTITOUCH is not set -# CONFIG_HID_NTRIG is not set -# CONFIG_HID_ORTEK is not set -# CONFIG_HID_PANTHERLORD is not set -# CONFIG_HID_PETALYNX is not set -# CONFIG_HID_PICOLCD is not set -# CONFIG_HID_QUANTA is not set -# CONFIG_HID_ROCCAT is not set -# CONFIG_HID_SAMSUNG is not set -# CONFIG_HID_SONY is not set -# CONFIG_HID_SPEEDLINK is not set -# CONFIG_HID_SUNPLUS is not set -# CONFIG_HID_GREENASIA is not set -# CONFIG_HID_SMARTJOYPLUS is not set -# CONFIG_HID_TOPSEED is not set -# CONFIG_HID_THRUSTMASTER is not set -CONFIG_HID_WACOM=m -# CONFIG_HID_WACOM_POWER_SUPPLY is not set -# CONFIG_HID_WIIMOTE is not set -# CONFIG_HID_ZEROPLUS is not set -# CONFIG_HID_ZYDACRON is not set -CONFIG_USB_SUPPORT=y -CONFIG_USB_ARCH_HAS_HCD=y -CONFIG_USB_ARCH_HAS_OHCI=y -CONFIG_USB_ARCH_HAS_EHCI=y -CONFIG_USB=y -# CONFIG_USB_DEBUG is not set -# CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set - -# -# Miscellaneous USB options -# -CONFIG_USB_DEVICEFS=y -CONFIG_USB_DEVICE_CLASS=y -# CONFIG_USB_DYNAMIC_MINORS is not set -# CONFIG_USB_OTG_WHITELIST is not set -# CONFIG_USB_OTG_BLACKLIST_HUB is not set -# CONFIG_USB_MON is not set -# CONFIG_USB_WUSB is not set -# CONFIG_USB_WUSB_CBAF is not set - -# -# USB Host Controller Drivers -# -# CONFIG_USB_C67X00_HCD is not set -# CONFIG_USB_XHCI_HCD is not set -# CONFIG_USB_EHCI_HCD is not set -# CONFIG_USB_OXU210HP_HCD is not set -# CONFIG_USB_ISP116X_HCD is not set -# CONFIG_USB_ISP1760_HCD is not set -# CONFIG_USB_ISP1362_HCD is not set -# CONFIG_USB_OHCI_HCD is not set -# CONFIG_USB_UHCI_HCD is not set -# CONFIG_USB_SL811_HCD is not set -# CONFIG_USB_R8A66597_HCD is not set -# CONFIG_USB_WHCI_HCD is not set -# CONFIG_USB_HWA_HCD is not set - -# -# USB Device Class drivers -# -CONFIG_USB_ACM=m -# CONFIG_USB_PRINTER is not set -# CONFIG_USB_WDM is not set -# CONFIG_USB_TMC is not set - -# -# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may -# - -# -# also be needed; see USB_STORAGE Help for more info -# -CONFIG_USB_STORAGE=y -# CONFIG_USB_STORAGE_DEBUG is not set -# CONFIG_USB_STORAGE_REALTEK is not set -# CONFIG_USB_STORAGE_DATAFAB is not set -# CONFIG_USB_STORAGE_FREECOM is not set -# CONFIG_USB_STORAGE_ISD200 is not set -# CONFIG_USB_STORAGE_USBAT is not set -# CONFIG_USB_STORAGE_SDDR09 is not set -# CONFIG_USB_STORAGE_SDDR55 is not set -# CONFIG_USB_STORAGE_JUMPSHOT is not set -# CONFIG_USB_STORAGE_ALAUDA is not set -# CONFIG_USB_STORAGE_ONETOUCH is not set -# CONFIG_USB_STORAGE_KARMA is not set -# CONFIG_USB_STORAGE_CYPRESS_ATACB is not set -# CONFIG_USB_STORAGE_ENE_UB6250 is not set -# CONFIG_USB_UAS is not set -# CONFIG_USB_LIBUSUAL is not set - -# -# USB Imaging devices -# -# CONFIG_USB_MDC800 is not set -# CONFIG_USB_MICROTEK is not set - -# -# USB port drivers -# -CONFIG_USB_SERIAL=m -CONFIG_USB_EZUSB=y -CONFIG_USB_SERIAL_GENERIC=y -# CONFIG_USB_SERIAL_AIRCABLE is not set -CONFIG_USB_SERIAL_ARK3116=m -CONFIG_USB_SERIAL_BELKIN=m -# CONFIG_USB_SERIAL_CH341 is not set -# CONFIG_USB_SERIAL_WHITEHEAT is not set -# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set -# CONFIG_USB_SERIAL_CP210X is not set -# CONFIG_USB_SERIAL_CYPRESS_M8 is not set -# CONFIG_USB_SERIAL_EMPEG is not set -CONFIG_USB_SERIAL_FTDI_SIO=m -# CONFIG_USB_SERIAL_FUNSOFT is not set -# CONFIG_USB_SERIAL_VISOR is not set -# CONFIG_USB_SERIAL_IPAQ is not set -# CONFIG_USB_SERIAL_IR is not set -# CONFIG_USB_SERIAL_EDGEPORT is not set -# CONFIG_USB_SERIAL_EDGEPORT_TI is not set -# CONFIG_USB_SERIAL_GARMIN is not set -# CONFIG_USB_SERIAL_IPW is not set -# CONFIG_USB_SERIAL_IUU is not set -# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set -CONFIG_USB_SERIAL_KEYSPAN=m -# CONFIG_USB_SERIAL_KEYSPAN_MPR is not set -# CONFIG_USB_SERIAL_KEYSPAN_USA28 is not set -# CONFIG_USB_SERIAL_KEYSPAN_USA28X is not set -# CONFIG_USB_SERIAL_KEYSPAN_USA28XA is not set -# CONFIG_USB_SERIAL_KEYSPAN_USA28XB is not set -# CONFIG_USB_SERIAL_KEYSPAN_USA19 is not set -# CONFIG_USB_SERIAL_KEYSPAN_USA18X is not set -# CONFIG_USB_SERIAL_KEYSPAN_USA19W is not set -# CONFIG_USB_SERIAL_KEYSPAN_USA19QW is not set -# CONFIG_USB_SERIAL_KEYSPAN_USA19QI is not set -# CONFIG_USB_SERIAL_KEYSPAN_USA49W is not set -# CONFIG_USB_SERIAL_KEYSPAN_USA49WLC is not set -# CONFIG_USB_SERIAL_KLSI is not set -# CONFIG_USB_SERIAL_KOBIL_SCT is not set -# CONFIG_USB_SERIAL_MCT_U232 is not set -# CONFIG_USB_SERIAL_MOS7720 is not set -# CONFIG_USB_SERIAL_MOS7840 is not set -# CONFIG_USB_SERIAL_MOTOROLA is not set -# CONFIG_USB_SERIAL_NAVMAN is not set -CONFIG_USB_SERIAL_PL2303=m -# CONFIG_USB_SERIAL_OTI6858 is not set -# CONFIG_USB_SERIAL_QCAUX is not set -# CONFIG_USB_SERIAL_QUALCOMM is not set -# CONFIG_USB_SERIAL_SPCP8X5 is not set -# CONFIG_USB_SERIAL_HP4X is not set -# CONFIG_USB_SERIAL_SAFE is not set -# CONFIG_USB_SERIAL_SIEMENS_MPI is not set -# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set -# CONFIG_USB_SERIAL_SYMBOL is not set -# CONFIG_USB_SERIAL_TI is not set -# CONFIG_USB_SERIAL_CYBERJACK is not set -# CONFIG_USB_SERIAL_XIRCOM is not set -CONFIG_USB_SERIAL_WWAN=m -CONFIG_USB_SERIAL_OPTION=m -# CONFIG_USB_SERIAL_OMNINET is not set -# CONFIG_USB_SERIAL_OPTICON is not set -# CONFIG_USB_SERIAL_VIVOPAY_SERIAL is not set -# CONFIG_USB_SERIAL_ZIO is not set -# CONFIG_USB_SERIAL_SSU100 is not set -# CONFIG_USB_SERIAL_DEBUG is not set - -# -# USB Miscellaneous drivers -# -# CONFIG_USB_EMI62 is not set -# CONFIG_USB_EMI26 is not set -# CONFIG_USB_ADUTUX is not set -# CONFIG_USB_SEVSEG is not set -# CONFIG_USB_RIO500 is not set -# CONFIG_USB_LEGOTOWER is not set -# CONFIG_USB_LCD is not set -# CONFIG_USB_LED is not set -# CONFIG_USB_CYPRESS_CY7C63 is not set -# CONFIG_USB_CYTHERM is not set -# CONFIG_USB_IDMOUSE is not set -# CONFIG_USB_FTDI_ELAN is not set -# CONFIG_USB_APPLEDISPLAY is not set -# CONFIG_USB_LD is not set -# CONFIG_USB_TRANCEVIBRATOR is not set -# CONFIG_USB_IOWARRIOR is not set -# CONFIG_USB_TEST is not set -# CONFIG_USB_ISIGHTFW is not set -# CONFIG_USB_YUREX is not set -# CONFIG_USB_GADGET is not set - -# -# OTG and related infrastructure -# -# CONFIG_NOP_USB_XCEIV is not set -# CONFIG_UWB is not set -# CONFIG_MMC is not set -# CONFIG_MEMSTICK is not set -CONFIG_NEW_LEDS=y -CONFIG_LEDS_CLASS=y - -# -# LED drivers -# -# CONFIG_LEDS_LM3530 is not set -# CONFIG_LEDS_PCA9532 is not set -# CONFIG_LEDS_LP3944 is not set -# CONFIG_LEDS_LP5521 is not set -# CONFIG_LEDS_LP5523 is not set -# CONFIG_LEDS_PCA955X is not set -# CONFIG_LEDS_BD2802 is not set -CONFIG_LEDS_TRIGGERS=y - -# -# LED Triggers -# -# CONFIG_LEDS_TRIGGER_TIMER is not set -# CONFIG_LEDS_TRIGGER_HEARTBEAT is not set -# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set -# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set - -# -# iptables trigger is under Netfilter config (LED target) -# -# CONFIG_ACCESSIBILITY is not set -# CONFIG_INFINIBAND is not set -CONFIG_RTC_LIB=y -# CONFIG_RTC_CLASS is not set -# CONFIG_DMADEVICES is not set -# CONFIG_AUXDISPLAY is not set -# CONFIG_UIO is not set - -# -# Virtio drivers -# -# CONFIG_VIRTIO_PCI is not set -# CONFIG_VIRTIO_BALLOON is not set -CONFIG_STAGING=y -# CONFIG_ET131X is not set -# CONFIG_VIDEO_GO7007 is not set -# CONFIG_VIDEO_CX25821 is not set -# CONFIG_VIDEO_TM6000 is not set -# CONFIG_DVB_CXD2099 is not set -# CONFIG_USBIP_CORE is not set -CONFIG_W35UND=m -CONFIG_PRISM2_USB=m -# CONFIG_ECHO is not set -# CONFIG_BRCMUTIL is not set -# CONFIG_BRCMSMAC is not set -# CONFIG_ASUS_OLED is not set -CONFIG_R8187SE=m -CONFIG_RTL8192U=m -# CONFIG_RTL8192E is not set -CONFIG_R8712U=m -# CONFIG_R8712_AP is not set -# CONFIG_RTS_PSTOR is not set -# CONFIG_TRANZPORT is not set -# CONFIG_POHMELFS is not set -# CONFIG_IDE_PHISON is not set -# CONFIG_LINE6_USB is not set -# CONFIG_USB_SERIAL_QUATECH2 is not set -# CONFIG_USB_SERIAL_QUATECH_USB2 is not set -# CONFIG_VT6655 is not set -# CONFIG_VT6656 is not set -# CONFIG_VME_BUS is not set -# CONFIG_DX_SEP is not set -# CONFIG_IIO is not set -# CONFIG_XVMALLOC is not set -# CONFIG_ZRAM is not set -# CONFIG_FB_SM7XX is not set -# CONFIG_VIDEO_DT3155 is not set -# CONFIG_CRYSTALHD is not set -# CONFIG_FB_XGI is not set -# CONFIG_LIRC_STAGING is not set -# CONFIG_EASYCAP is not set -# CONFIG_SOLO6X10 is not set -# CONFIG_USB_ENESTORAGE is not set -# CONFIG_BCM_WIMAX is not set -# CONFIG_FT1000 is not set - -# -# Speakup console speech -# -# CONFIG_TOUCHSCREEN_SYNAPTICS_I2C_RMI4 is not set -# CONFIG_ALTERA_STAPL is not set -CONFIG_IOMMU_SUPPORT=y -# CONFIG_VIRT_DRIVERS is not set - -# -# File systems -# -CONFIG_EXT2_FS=m -# CONFIG_EXT2_FS_XATTR is not set -# CONFIG_EXT2_FS_XIP is not set -CONFIG_EXT3_FS=y -# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set -# CONFIG_EXT3_FS_XATTR is not set -CONFIG_EXT4_FS=y -# CONFIG_EXT4_FS_XATTR is not set -# CONFIG_EXT4_DEBUG is not set -CONFIG_JBD=y -CONFIG_JBD2=y -# CONFIG_REISERFS_FS is not set -# CONFIG_JFS_FS is not set -# CONFIG_XFS_FS is not set -# CONFIG_GFS2_FS is not set -# CONFIG_BTRFS_FS is not set -# CONFIG_NILFS2_FS is not set -# CONFIG_FS_POSIX_ACL is not set -CONFIG_EXPORTFS=m -CONFIG_FILE_LOCKING=y -CONFIG_FSNOTIFY=y -CONFIG_DNOTIFY=y -CONFIG_INOTIFY_USER=y -# CONFIG_FANOTIFY is not set -# CONFIG_QUOTA is not set -# CONFIG_QUOTACTL is not set -CONFIG_AUTOFS4_FS=y -CONFIG_FUSE_FS=m -# CONFIG_CUSE is not set - -# -# Caches -# -# CONFIG_FSCACHE is not set - -# -# CD-ROM/DVD Filesystems -# -CONFIG_ISO9660_FS=y -CONFIG_JOLIET=y -# CONFIG_ZISOFS is not set -CONFIG_UDF_FS=y -CONFIG_UDF_NLS=y - -# -# DOS/FAT/NT Filesystems -# -CONFIG_FAT_FS=y -CONFIG_MSDOS_FS=y -CONFIG_VFAT_FS=y -CONFIG_FAT_DEFAULT_CODEPAGE=437 -CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" -CONFIG_NTFS_FS=y -# CONFIG_NTFS_DEBUG is not set -CONFIG_NTFS_RW=y - -# -# Pseudo filesystems -# -CONFIG_PROC_FS=y -CONFIG_PROC_KCORE=y -CONFIG_PROC_SYSCTL=y -CONFIG_PROC_PAGE_MONITOR=y -CONFIG_SYSFS=y -CONFIG_TMPFS=y -# CONFIG_TMPFS_POSIX_ACL is not set -# CONFIG_TMPFS_XATTR is not set -# CONFIG_HUGETLB_PAGE is not set -# CONFIG_CONFIGFS_FS is not set -CONFIG_MISC_FILESYSTEMS=y -# CONFIG_ADFS_FS is not set -# CONFIG_AFFS_FS is not set -# CONFIG_HFS_FS is not set -# CONFIG_HFSPLUS_FS is not set -# CONFIG_BEFS_FS is not set -# CONFIG_BFS_FS is not set -# CONFIG_EFS_FS is not set -CONFIG_JFFS2_FS=m -CONFIG_JFFS2_FS_DEBUG=0 -CONFIG_JFFS2_FS_WRITEBUFFER=y -# CONFIG_JFFS2_FS_WBUF_VERIFY is not set -CONFIG_JFFS2_SUMMARY=y -# CONFIG_JFFS2_FS_XATTR is not set -CONFIG_JFFS2_COMPRESSION_OPTIONS=y -CONFIG_JFFS2_ZLIB=y -CONFIG_JFFS2_LZO=y -CONFIG_JFFS2_RTIME=y -CONFIG_JFFS2_RUBIN=y -# CONFIG_JFFS2_CMODE_NONE is not set -# CONFIG_JFFS2_CMODE_PRIORITY is not set -# CONFIG_JFFS2_CMODE_SIZE is not set -CONFIG_JFFS2_CMODE_FAVOURLZO=y -CONFIG_UBIFS_FS=y -# CONFIG_UBIFS_FS_XATTR is not set -# CONFIG_UBIFS_FS_ADVANCED_COMPR is not set -CONFIG_UBIFS_FS_LZO=y -CONFIG_UBIFS_FS_ZLIB=y -# CONFIG_UBIFS_FS_DEBUG is not set -# CONFIG_LOGFS is not set -# CONFIG_CRAMFS is not set -CONFIG_SQUASHFS=m -# CONFIG_SQUASHFS_XATTR is not set -CONFIG_SQUASHFS_ZLIB=y -# CONFIG_SQUASHFS_LZO is not set -# CONFIG_SQUASHFS_XZ is not set -# CONFIG_SQUASHFS_EMBEDDED is not set -CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3 -# CONFIG_VXFS_FS is not set -# CONFIG_MINIX_FS is not set -# CONFIG_MINIX_FS_NATIVE_ENDIAN is not set -# CONFIG_OMFS_FS is not set -# CONFIG_HPFS_FS is not set -# CONFIG_QNX4FS_FS is not set -# CONFIG_ROMFS_FS is not set -# CONFIG_PSTORE is not set -# CONFIG_SYSV_FS is not set -# CONFIG_UFS_FS is not set -CONFIG_NETWORK_FILESYSTEMS=y -CONFIG_NFS_FS=y -CONFIG_NFS_V3=y -# CONFIG_NFS_V3_ACL is not set -# CONFIG_NFS_V4 is not set -CONFIG_ROOT_NFS=y -CONFIG_NFSD=m -CONFIG_NFSD_V3=y -# CONFIG_NFSD_V3_ACL is not set -# CONFIG_NFSD_V4 is not set -CONFIG_LOCKD=y -CONFIG_LOCKD_V4=y -CONFIG_NFS_COMMON=y -CONFIG_SUNRPC=y -# CONFIG_CEPH_FS is not set -CONFIG_CIFS=y -# CONFIG_CIFS_STATS is not set -# CONFIG_CIFS_WEAK_PW_HASH is not set -# CONFIG_CIFS_XATTR is not set -# CONFIG_CIFS_DEBUG2 is not set -# CONFIG_NCP_FS is not set -# CONFIG_CODA_FS is not set -# CONFIG_AFS_FS is not set - -# -# Partition Types -# -CONFIG_PARTITION_ADVANCED=y -# CONFIG_ACORN_PARTITION is not set -# CONFIG_OSF_PARTITION is not set -# CONFIG_AMIGA_PARTITION is not set -# CONFIG_ATARI_PARTITION is not set -CONFIG_MAC_PARTITION=y -CONFIG_MSDOS_PARTITION=y -# CONFIG_BSD_DISKLABEL is not set -# CONFIG_MINIX_SUBPARTITION is not set -# CONFIG_SOLARIS_X86_PARTITION is not set -# CONFIG_UNIXWARE_DISKLABEL is not set -# CONFIG_LDM_PARTITION is not set -# CONFIG_SGI_PARTITION is not set -# CONFIG_ULTRIX_PARTITION is not set -# CONFIG_SUN_PARTITION is not set -# CONFIG_KARMA_PARTITION is not set -CONFIG_EFI_PARTITION=y -# CONFIG_SYSV68_PARTITION is not set -CONFIG_NLS=y -CONFIG_NLS_DEFAULT="iso8859-15" -CONFIG_NLS_CODEPAGE_437=y -CONFIG_NLS_CODEPAGE_737=m -CONFIG_NLS_CODEPAGE_775=m -CONFIG_NLS_CODEPAGE_850=m -CONFIG_NLS_CODEPAGE_852=m -CONFIG_NLS_CODEPAGE_855=m -CONFIG_NLS_CODEPAGE_857=m -CONFIG_NLS_CODEPAGE_860=m -CONFIG_NLS_CODEPAGE_861=m -CONFIG_NLS_CODEPAGE_862=m -CONFIG_NLS_CODEPAGE_863=m -CONFIG_NLS_CODEPAGE_864=m -CONFIG_NLS_CODEPAGE_865=m -CONFIG_NLS_CODEPAGE_866=m -CONFIG_NLS_CODEPAGE_869=m -CONFIG_NLS_CODEPAGE_936=m -CONFIG_NLS_CODEPAGE_950=m -CONFIG_NLS_CODEPAGE_932=m -CONFIG_NLS_CODEPAGE_949=m -CONFIG_NLS_CODEPAGE_874=m -CONFIG_NLS_ISO8859_8=m -CONFIG_NLS_CODEPAGE_1250=m -CONFIG_NLS_CODEPAGE_1251=m -CONFIG_NLS_ASCII=y -CONFIG_NLS_ISO8859_1=y -CONFIG_NLS_ISO8859_2=m -CONFIG_NLS_ISO8859_3=m -CONFIG_NLS_ISO8859_4=m -CONFIG_NLS_ISO8859_5=m -CONFIG_NLS_ISO8859_6=m -CONFIG_NLS_ISO8859_7=m -CONFIG_NLS_ISO8859_9=m -CONFIG_NLS_ISO8859_13=m -CONFIG_NLS_ISO8859_14=m -CONFIG_NLS_ISO8859_15=y -CONFIG_NLS_KOI8_R=m -CONFIG_NLS_KOI8_U=m -CONFIG_NLS_UTF8=y - -# -# Kernel hacking -# -CONFIG_TRACE_IRQFLAGS_SUPPORT=y -# CONFIG_PRINTK_TIME is not set -CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4 -# CONFIG_ENABLE_WARN_DEPRECATED is not set -# CONFIG_ENABLE_MUST_CHECK is not set -CONFIG_FRAME_WARN=0 -# CONFIG_MAGIC_SYSRQ is not set -# CONFIG_STRIP_ASM_SYMS is not set -# CONFIG_UNUSED_SYMBOLS is not set -# CONFIG_DEBUG_FS is not set -# CONFIG_HEADERS_CHECK is not set -# CONFIG_DEBUG_SECTION_MISMATCH is not set -CONFIG_DEBUG_KERNEL=y -# CONFIG_DEBUG_SHIRQ is not set -# CONFIG_LOCKUP_DETECTOR is not set -# CONFIG_HARDLOCKUP_DETECTOR is not set -# CONFIG_DETECT_HUNG_TASK is not set -CONFIG_SCHED_DEBUG=y -# CONFIG_SCHEDSTATS is not set -# CONFIG_TIMER_STATS is not set -# CONFIG_DEBUG_OBJECTS is not set -# CONFIG_DEBUG_SLAB is not set -# CONFIG_DEBUG_KMEMLEAK is not set -# CONFIG_DEBUG_RT_MUTEXES is not set -# CONFIG_RT_MUTEX_TESTER is not set -# CONFIG_DEBUG_SPINLOCK is not set -# CONFIG_DEBUG_MUTEXES is not set -# CONFIG_DEBUG_LOCK_ALLOC is not set -# CONFIG_PROVE_LOCKING is not set -# CONFIG_SPARSE_RCU_POINTER is not set -# CONFIG_LOCK_STAT is not set -# CONFIG_DEBUG_ATOMIC_SLEEP is not set -# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set -# CONFIG_DEBUG_STACK_USAGE is not set -# CONFIG_DEBUG_KOBJECT is not set -# CONFIG_DEBUG_INFO is not set -# CONFIG_DEBUG_VM is not set -# CONFIG_DEBUG_WRITECOUNT is not set -# CONFIG_DEBUG_MEMORY_INIT is not set -# CONFIG_DEBUG_LIST is not set -# CONFIG_TEST_LIST_SORT is not set -# CONFIG_DEBUG_SG is not set -# CONFIG_DEBUG_NOTIFIERS is not set -# CONFIG_DEBUG_CREDENTIALS is not set -# CONFIG_BOOT_PRINTK_DELAY is not set -# CONFIG_RCU_TORTURE_TEST is not set -CONFIG_RCU_CPU_STALL_TIMEOUT=60 -# CONFIG_BACKTRACE_SELF_TEST is not set -# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set -# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set -# CONFIG_DEBUG_PER_CPU_MAPS is not set -# CONFIG_FAULT_INJECTION is not set -# CONFIG_SYSCTL_SYSCALL_CHECK is not set -# CONFIG_DEBUG_PAGEALLOC is not set -CONFIG_HAVE_FUNCTION_TRACER=y -CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y -CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=y -CONFIG_HAVE_DYNAMIC_FTRACE=y -CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y -CONFIG_HAVE_C_RECORDMCOUNT=y -CONFIG_TRACING_SUPPORT=y -# CONFIG_FTRACE is not set -# CONFIG_DMA_API_DEBUG is not set -# CONFIG_ATOMIC64_SELFTEST is not set -# CONFIG_SAMPLES is not set -CONFIG_HAVE_ARCH_KGDB=y -# CONFIG_KGDB is not set -# CONFIG_TEST_KSTRTOX is not set -CONFIG_EARLY_PRINTK=y -CONFIG_CMDLINE_BOOL=y -CONFIG_CMDLINE="" -# CONFIG_CMDLINE_OVERRIDE is not set -# CONFIG_DEBUG_STACKOVERFLOW is not set -# CONFIG_RUNTIME_DEBUG is not set - -# -# Security options -# -# CONFIG_KEYS is not set -# CONFIG_SECURITY_DMESG_RESTRICT is not set -# CONFIG_SECURITY is not set -# CONFIG_SECURITYFS is not set -CONFIG_DEFAULT_SECURITY_DAC=y -CONFIG_DEFAULT_SECURITY="" -CONFIG_CRYPTO=y - -# -# Crypto core or helper -# -CONFIG_CRYPTO_ALGAPI=y -CONFIG_CRYPTO_ALGAPI2=y -CONFIG_CRYPTO_AEAD=m -CONFIG_CRYPTO_AEAD2=y -CONFIG_CRYPTO_BLKCIPHER=y -CONFIG_CRYPTO_BLKCIPHER2=y -CONFIG_CRYPTO_HASH=y -CONFIG_CRYPTO_HASH2=y -CONFIG_CRYPTO_RNG2=y -CONFIG_CRYPTO_PCOMP2=y -CONFIG_CRYPTO_MANAGER=y -CONFIG_CRYPTO_MANAGER2=y -CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y -# CONFIG_CRYPTO_GF128MUL is not set -# CONFIG_CRYPTO_NULL is not set -# CONFIG_CRYPTO_PCRYPT is not set -CONFIG_CRYPTO_WORKQUEUE=y -# CONFIG_CRYPTO_CRYPTD is not set -CONFIG_CRYPTO_AUTHENC=m -# CONFIG_CRYPTO_TEST is not set - -# -# Authenticated Encryption with Associated Data -# -# CONFIG_CRYPTO_CCM is not set -# CONFIG_CRYPTO_GCM is not set -# CONFIG_CRYPTO_SEQIV is not set - -# -# Block modes -# -CONFIG_CRYPTO_CBC=m -# CONFIG_CRYPTO_CTR is not set -# CONFIG_CRYPTO_CTS is not set -CONFIG_CRYPTO_ECB=y -# CONFIG_CRYPTO_LRW is not set -# CONFIG_CRYPTO_PCBC is not set -# CONFIG_CRYPTO_XTS is not set - -# -# Hash modes -# -CONFIG_CRYPTO_HMAC=y -# CONFIG_CRYPTO_XCBC is not set -# CONFIG_CRYPTO_VMAC is not set - -# -# Digest -# -# CONFIG_CRYPTO_CRC32C is not set -# CONFIG_CRYPTO_GHASH is not set -CONFIG_CRYPTO_MD4=y -CONFIG_CRYPTO_MD5=y -CONFIG_CRYPTO_MICHAEL_MIC=m -# CONFIG_CRYPTO_RMD128 is not set -# CONFIG_CRYPTO_RMD160 is not set -# CONFIG_CRYPTO_RMD256 is not set -# CONFIG_CRYPTO_RMD320 is not set -CONFIG_CRYPTO_SHA1=m -# CONFIG_CRYPTO_SHA256 is not set -# CONFIG_CRYPTO_SHA512 is not set -# CONFIG_CRYPTO_TGR192 is not set -# CONFIG_CRYPTO_WP512 is not set - -# -# Ciphers -# -CONFIG_CRYPTO_AES=y -# CONFIG_CRYPTO_ANUBIS is not set -CONFIG_CRYPTO_ARC4=y -# CONFIG_CRYPTO_BLOWFISH is not set -# CONFIG_CRYPTO_CAMELLIA is not set -# CONFIG_CRYPTO_CAST5 is not set -# CONFIG_CRYPTO_CAST6 is not set -CONFIG_CRYPTO_DES=y -# CONFIG_CRYPTO_FCRYPT is not set -# CONFIG_CRYPTO_KHAZAD is not set -# CONFIG_CRYPTO_SALSA20 is not set -# CONFIG_CRYPTO_SEED is not set -# CONFIG_CRYPTO_SERPENT is not set -# CONFIG_CRYPTO_TEA is not set -# CONFIG_CRYPTO_TWOFISH is not set - -# -# Compression -# -CONFIG_CRYPTO_DEFLATE=y -# CONFIG_CRYPTO_ZLIB is not set -CONFIG_CRYPTO_LZO=y - -# -# Random Number Generation -# -# CONFIG_CRYPTO_ANSI_CPRNG is not set -# CONFIG_CRYPTO_USER_API_HASH is not set -# CONFIG_CRYPTO_USER_API_SKCIPHER is not set -CONFIG_CRYPTO_HW=y -# CONFIG_CRYPTO_DEV_HIFN_795X is not set -# CONFIG_BINARY_PRINTF is not set - -# -# Library routines -# -CONFIG_BITREVERSE=y -CONFIG_CRC_CCITT=y -CONFIG_CRC16=y -# CONFIG_CRC_T10DIF is not set -CONFIG_CRC_ITU_T=y -CONFIG_CRC32=y -CONFIG_CRC7=m -# CONFIG_LIBCRC32C is not set -# CONFIG_CRC8 is not set -CONFIG_ZLIB_INFLATE=y -CONFIG_ZLIB_DEFLATE=y -CONFIG_LZO_COMPRESS=y -CONFIG_LZO_DECOMPRESS=y -# CONFIG_XZ_DEC is not set -# CONFIG_XZ_DEC_BCJ is not set -CONFIG_DECOMPRESS_GZIP=y -CONFIG_HAS_IOMEM=y -CONFIG_HAS_IOPORT=y -CONFIG_HAS_DMA=y -CONFIG_CPU_RMAP=y -CONFIG_NLATTR=y -CONFIG_GENERIC_ATOMIC64=y -CONFIG_AVERAGE=y -# CONFIG_CORDIC is not set diff --git a/meta-bsp/bm750/recipes/linux/linux-vuplus-3.1.1/bm750_defconfig b/meta-bsp/bm750/recipes/linux/linux-vuplus-3.1.1/bm750_defconfig index 48fee4f..a82a620 100644 --- a/meta-bsp/bm750/recipes/linux/linux-vuplus-3.1.1/bm750_defconfig +++ b/meta-bsp/bm750/recipes/linux/linux-vuplus-3.1.1/bm750_defconfig @@ -600,6 +600,7 @@ CONFIG_MAC80211_LEDS=y # CONFIG_UEVENT_HELPER_PATH="" CONFIG_DEVTMPFS=y +CONFIG_DEVTMPFS_MOUNT=y CONFIG_STANDALONE=y CONFIG_PREVENT_FIRMWARE_BUILD=y CONFIG_FW_LOADER=y diff --git a/meta-bsp/bm750/recipes/linux/linux-vuplus_3.1.1.bbappend b/meta-bsp/bm750/recipes/linux/linux-vuplus_3.1.1.bbappend index 049d83c..1018335 100644 --- a/meta-bsp/bm750/recipes/linux/linux-vuplus_3.1.1.bbappend +++ b/meta-bsp/bm750/recipes/linux/linux-vuplus_3.1.1.bbappend @@ -1,8 +1,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" -PR .= "-bsp12" +PR .= "-bsp13" SRC_URI += "\ - file://linux_3.1.1_bm750.patch;patch=1;pnum=1 \ - file://linux-sata_brcm.patch;patch=1;pnum=1 \ + file://linux_3.1.1_bm750.patch \ + file://linux-sata_brcm.patch \ " diff --git a/meta-bsp/common/conf/machine/include/vuplus.inc b/meta-bsp/common/conf/machine/include/vuplus.inc index c46dd9e..6d12c46 100644 --- a/meta-bsp/common/conf/machine/include/vuplus.inc +++ b/meta-bsp/common/conf/machine/include/vuplus.inc @@ -7,6 +7,8 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "vuplus-bootlogo" MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${@base_contains("VUPLUS_FEATURES", "dvbproxy", "vuplus-dvb-proxy", "vuplus-dvb-modules", d)}" MACHINE_FEATURES += "kernel26 alsa pci wifi" +MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc" + PREFERRED_PROVIDER_virtual/kernel = "linux-vuplus" PREFERRED_VERSION_linux-vuplus = "${VUPLUS_KERNEL_VERSION}" diff --git a/meta-bsp/common/recipes/linux/linux-vuplus-3.1.1/kernel_miscompilation_with_gcc_4_8.patch b/meta-bsp/common/recipes/linux/linux-vuplus-3.1.1/kernel_miscompilation_with_gcc_4_8.patch new file mode 100644 index 0000000..013384b --- /dev/null +++ b/meta-bsp/common/recipes/linux/linux-vuplus-3.1.1/kernel_miscompilation_with_gcc_4_8.patch @@ -0,0 +1,251 @@ +commit 8511b7b083db01ad0538bea6a8af79f88fe02a8b +Author: hschang +Date: Wed Jan 8 20:32:42 2014 +0900 + + MIPS: Refactor 'clear_page' and 'copy_page' functions. + + Remove usage of the '__attribute__((alias("...")))' hack that aliased + to integer arrays containing micro-assembled instructions. This hack + breaks when building a microMIPS kernel. It also makes the code much + easier to understand. + + [ralf@linux-mips.org: Added back export of the clear_page and copy_page + symbols so certain modules will work again. Also fixed build with + CONFIG_SIBYTE_DMA_PAGEOPS enabled.] + + Signed-off-by: Steven J. Hill + Cc: linux-mips@linux-mips.org + Patchwork: https://patchwork.linux-mips.org/patch/3866/ + Acked-by: David Daney + Signed-off-by: Ralf Baechle + +diff --git a/arch/mips/kernel/mips_ksyms.c b/arch/mips/kernel/mips_ksyms.c +index 1d04807..17160bf 100644 +--- a/arch/mips/kernel/mips_ksyms.c ++++ b/arch/mips/kernel/mips_ksyms.c +@@ -5,7 +5,7 @@ + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * +- * Copyright (C) 1996, 97, 98, 99, 2000, 01, 03, 04, 05 by Ralf Baechle ++ * Copyright (C) 1996, 97, 98, 99, 2000, 01, 03, 04, 05, 12 by Ralf Baechle + * Copyright (C) 1999, 2000, 01 Silicon Graphics, Inc. + */ + #include +@@ -35,6 +35,13 @@ EXPORT_SYMBOL(memmove); + EXPORT_SYMBOL(kernel_thread); + + /* ++ * Functions that operate on entire pages. Mostly used by memory management. ++ */ ++ ++EXPORT_SYMBOL(clear_page); ++EXPORT_SYMBOL(copy_page); ++ ++/* + * Userspace access stuff. + */ + EXPORT_SYMBOL(__copy_user); +diff --git a/arch/mips/mm/Makefile b/arch/mips/mm/Makefile +index 95e5ccb..2f2dc25 100644 +--- a/arch/mips/mm/Makefile ++++ b/arch/mips/mm/Makefile +@@ -4,7 +4,7 @@ + + obj-y += cache.o dma-default.o extable.o fault.o \ + init.o mmap.o tlbex.o tlbex-fault.o uasm.o \ +- page.o ++ page.o page-funcs.o + + obj-$(CONFIG_32BIT) += ioremap.o pgtable-32.o + obj-$(CONFIG_64BIT) += pgtable-64.o +diff --git a/arch/mips/mm/page-funcs.S b/arch/mips/mm/page-funcs.S +new file mode 100644 +index 0000000..48a6b38 +--- /dev/null ++++ b/arch/mips/mm/page-funcs.S +@@ -0,0 +1,50 @@ ++/* ++ * This file is subject to the terms and conditions of the GNU General Public ++ * License. See the file "COPYING" in the main directory of this archive ++ * for more details. ++ * ++ * Micro-assembler generated clear_page/copy_page functions. ++ * ++ * Copyright (C) 2012 MIPS Technologies, Inc. ++ * Copyright (C) 2012 Ralf Baechle ++ */ ++#include ++#include ++ ++#ifdef CONFIG_SIBYTE_DMA_PAGEOPS ++#define cpu_clear_page_function_name clear_page_cpu ++#define cpu_copy_page_function_name copy_page_cpu ++#else ++#define cpu_clear_page_function_name clear_page ++#define cpu_copy_page_function_name copy_page ++#endif ++ ++/* ++ * Maximum sizes: ++ * ++ * R4000 128 bytes S-cache: 0x058 bytes ++ * R4600 v1.7: 0x05c bytes ++ * R4600 v2.0: 0x060 bytes ++ * With prefetching, 16 word strides 0x120 bytes ++ */ ++EXPORT(__clear_page_start) ++LEAF(cpu_clear_page_function_name) ++1: j 1b /* Dummy, will be replaced. */ ++ .space 288 ++END(cpu_clear_page_function_name) ++EXPORT(__clear_page_end) ++ ++/* ++ * Maximum sizes: ++ * ++ * R4000 128 bytes S-cache: 0x11c bytes ++ * R4600 v1.7: 0x080 bytes ++ * R4600 v2.0: 0x07c bytes ++ * With prefetching, 16 word strides 0x540 bytes ++ */ ++EXPORT(__copy_page_start) ++LEAF(cpu_copy_page_function_name) ++1: j 1b /* Dummy, will be replaced. */ ++ .space 1344 ++END(cpu_copy_page_function_name) ++EXPORT(__copy_page_end) +diff --git a/arch/mips/mm/page.c b/arch/mips/mm/page.c +index 36272f7..a22bd40 100644 +--- a/arch/mips/mm/page.c ++++ b/arch/mips/mm/page.c +@@ -6,6 +6,7 @@ + * Copyright (C) 2003, 04, 05 Ralf Baechle (ralf@linux-mips.org) + * Copyright (C) 2007 Maciej W. Rozycki + * Copyright (C) 2008 Thiemo Seufer ++ * Copyright (C) 2012 MIPS Technologies, Inc. + */ + #include + #include +@@ -72,45 +73,6 @@ static struct uasm_reloc __cpuinitdata relocs[5]; + #define cpu_is_r4600_v1_x() ((read_c0_prid() & 0xfffffff0) == 0x00002010) + #define cpu_is_r4600_v2_x() ((read_c0_prid() & 0xfffffff0) == 0x00002020) + +-/* +- * Maximum sizes: +- * +- * R4000 128 bytes S-cache: 0x058 bytes +- * R4600 v1.7: 0x05c bytes +- * R4600 v2.0: 0x060 bytes +- * With prefetching, 16 word strides 0x120 bytes +- */ +- +-static u32 clear_page_array[0x120 / 4]; +- +-#ifdef CONFIG_SIBYTE_DMA_PAGEOPS +-void clear_page_cpu(void *page) __attribute__((alias("clear_page_array"))); +-#else +-void clear_page(void *page) __attribute__((alias("clear_page_array"))); +-#endif +- +-EXPORT_SYMBOL(clear_page); +- +-/* +- * Maximum sizes: +- * +- * R4000 128 bytes S-cache: 0x11c bytes +- * R4600 v1.7: 0x080 bytes +- * R4600 v2.0: 0x07c bytes +- * With prefetching, 16 word strides 0x540 bytes +- */ +-static u32 copy_page_array[0x540 / 4]; +- +-#ifdef CONFIG_SIBYTE_DMA_PAGEOPS +-void +-copy_page_cpu(void *to, void *from) __attribute__((alias("copy_page_array"))); +-#else +-void copy_page(void *to, void *from) __attribute__((alias("copy_page_array"))); +-#endif +- +-EXPORT_SYMBOL(copy_page); +- +- + static int pref_bias_clear_store __cpuinitdata; + static int pref_bias_copy_load __cpuinitdata; + static int pref_bias_copy_store __cpuinitdata; +@@ -283,10 +245,15 @@ static inline void __cpuinit build_clear_pref(u32 **buf, int off) + } + } + ++extern u32 __clear_page_start; ++extern u32 __clear_page_end; ++extern u32 __copy_page_start; ++extern u32 __copy_page_end; ++ + void __cpuinit build_clear_page(void) + { + int off; +- u32 *buf = (u32 *)&clear_page_array; ++ u32 *buf = &__clear_page_start; + struct uasm_label *l = labels; + struct uasm_reloc *r = relocs; + int i; +@@ -357,17 +324,17 @@ void __cpuinit build_clear_page(void) + uasm_i_jr(&buf, RA); + uasm_i_nop(&buf); + +- BUG_ON(buf > clear_page_array + ARRAY_SIZE(clear_page_array)); ++ BUG_ON(buf > &__clear_page_end); + + uasm_resolve_relocs(relocs, labels); + + pr_debug("Synthesized clear page handler (%u instructions).\n", +- (u32)(buf - clear_page_array)); ++ (u32)(buf - &__clear_page_start)); + + pr_debug("\t.set push\n"); + pr_debug("\t.set noreorder\n"); +- for (i = 0; i < (buf - clear_page_array); i++) +- pr_debug("\t.word 0x%08x\n", clear_page_array[i]); ++ for (i = 0; i < (buf - &__clear_page_start); i++) ++ pr_debug("\t.word 0x%08x\n", (&__clear_page_start)[i]); + pr_debug("\t.set pop\n"); + } + +@@ -428,7 +395,7 @@ static inline void build_copy_store_pref(u32 **buf, int off) + void __cpuinit build_copy_page(void) + { + int off; +- u32 *buf = (u32 *)©_page_array; ++ u32 *buf = &__copy_page_start; + struct uasm_label *l = labels; + struct uasm_reloc *r = relocs; + int i; +@@ -596,21 +563,23 @@ void __cpuinit build_copy_page(void) + uasm_i_jr(&buf, RA); + uasm_i_nop(&buf); + +- BUG_ON(buf > copy_page_array + ARRAY_SIZE(copy_page_array)); ++ BUG_ON(buf > &__copy_page_end); + + uasm_resolve_relocs(relocs, labels); + + pr_debug("Synthesized copy page handler (%u instructions).\n", +- (u32)(buf - copy_page_array)); ++ (u32)(buf - &__copy_page_start)); + + pr_debug("\t.set push\n"); + pr_debug("\t.set noreorder\n"); +- for (i = 0; i < (buf - copy_page_array); i++) +- pr_debug("\t.word 0x%08x\n", copy_page_array[i]); ++ for (i = 0; i < (buf - &__copy_page_start); i++) ++ pr_debug("\t.word 0x%08x\n", (&__copy_page_start)[i]); + pr_debug("\t.set pop\n"); + } + + #ifdef CONFIG_SIBYTE_DMA_PAGEOPS ++extern void clear_page_cpu(void *page); ++extern void copy_page_cpu(void *to, void *from); + + /* + * Pad descriptors to cacheline, since each is exclusively owned by a diff --git a/meta-bsp/common/recipes/linux/linux-vuplus-3.3.8/kernel_miscompilation_with_gcc_4_8.patch b/meta-bsp/common/recipes/linux/linux-vuplus-3.3.8/kernel_miscompilation_with_gcc_4_8.patch new file mode 100644 index 0000000..ba69abe --- /dev/null +++ b/meta-bsp/common/recipes/linux/linux-vuplus-3.3.8/kernel_miscompilation_with_gcc_4_8.patch @@ -0,0 +1,252 @@ +commit c022630633624a75b3b58f43dd3c6cc896a56cff +Author: Steven J. Hill +Date: Fri Jul 6 21:56:01 2012 +0200 + + MIPS: Refactor 'clear_page' and 'copy_page' functions. + + Remove usage of the '__attribute__((alias("...")))' hack that aliased + to integer arrays containing micro-assembled instructions. This hack + breaks when building a microMIPS kernel. It also makes the code much + easier to understand. + + [ralf@linux-mips.org: Added back export of the clear_page and copy_page + symbols so certain modules will work again. Also fixed build with + CONFIG_SIBYTE_DMA_PAGEOPS enabled.] + + Signed-off-by: Steven J. Hill + Cc: linux-mips@linux-mips.org + Patchwork: https://patchwork.linux-mips.org/patch/3866/ + Acked-by: David Daney + Signed-off-by: Ralf Baechle + +diff --git a/arch/mips/kernel/mips_ksyms.c b/arch/mips/kernel/mips_ksyms.c +index 57ba13e..3fc1691 100644 +--- a/arch/mips/kernel/mips_ksyms.c ++++ b/arch/mips/kernel/mips_ksyms.c +@@ -5,7 +5,7 @@ + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * +- * Copyright (C) 1996, 97, 98, 99, 2000, 01, 03, 04, 05 by Ralf Baechle ++ * Copyright (C) 1996, 97, 98, 99, 2000, 01, 03, 04, 05, 12 by Ralf Baechle + * Copyright (C) 1999, 2000, 01 Silicon Graphics, Inc. + */ + #include +@@ -35,6 +35,12 @@ EXPORT_SYMBOL(memmove); + EXPORT_SYMBOL(kernel_thread); + + /* ++ * Functions that operate on entire pages. Mostly used by memory management. ++ */ ++EXPORT_SYMBOL(clear_page); ++EXPORT_SYMBOL(copy_page); ++ ++/* + * Userspace access stuff. + */ + EXPORT_SYMBOL(__copy_user); +diff --git a/arch/mips/mm/Makefile b/arch/mips/mm/Makefile +index 4aa2028..fd6203f 100644 +--- a/arch/mips/mm/Makefile ++++ b/arch/mips/mm/Makefile +@@ -3,8 +3,8 @@ + # + + obj-y += cache.o dma-default.o extable.o fault.o \ +- gup.o init.o mmap.o page.o tlbex.o \ +- tlbex-fault.o uasm.o ++ gup.o init.o mmap.o page.o page-funcs.o \ ++ tlbex.o tlbex-fault.o uasm.o + + obj-$(CONFIG_32BIT) += ioremap.o pgtable-32.o + obj-$(CONFIG_64BIT) += pgtable-64.o +diff --git a/arch/mips/mm/page-funcs.S b/arch/mips/mm/page-funcs.S +new file mode 100644 +index 0000000..48a6b38 +--- /dev/null ++++ b/arch/mips/mm/page-funcs.S +@@ -0,0 +1,50 @@ ++/* ++ * This file is subject to the terms and conditions of the GNU General Public ++ * License. See the file "COPYING" in the main directory of this archive ++ * for more details. ++ * ++ * Micro-assembler generated clear_page/copy_page functions. ++ * ++ * Copyright (C) 2012 MIPS Technologies, Inc. ++ * Copyright (C) 2012 Ralf Baechle ++ */ ++#include ++#include ++ ++#ifdef CONFIG_SIBYTE_DMA_PAGEOPS ++#define cpu_clear_page_function_name clear_page_cpu ++#define cpu_copy_page_function_name copy_page_cpu ++#else ++#define cpu_clear_page_function_name clear_page ++#define cpu_copy_page_function_name copy_page ++#endif ++ ++/* ++ * Maximum sizes: ++ * ++ * R4000 128 bytes S-cache: 0x058 bytes ++ * R4600 v1.7: 0x05c bytes ++ * R4600 v2.0: 0x060 bytes ++ * With prefetching, 16 word strides 0x120 bytes ++ */ ++EXPORT(__clear_page_start) ++LEAF(cpu_clear_page_function_name) ++1: j 1b /* Dummy, will be replaced. */ ++ .space 288 ++END(cpu_clear_page_function_name) ++EXPORT(__clear_page_end) ++ ++/* ++ * Maximum sizes: ++ * ++ * R4000 128 bytes S-cache: 0x11c bytes ++ * R4600 v1.7: 0x080 bytes ++ * R4600 v2.0: 0x07c bytes ++ * With prefetching, 16 word strides 0x540 bytes ++ */ ++EXPORT(__copy_page_start) ++LEAF(cpu_copy_page_function_name) ++1: j 1b /* Dummy, will be replaced. */ ++ .space 1344 ++END(cpu_copy_page_function_name) ++EXPORT(__copy_page_end) +diff --git a/arch/mips/mm/page.c b/arch/mips/mm/page.c +index cc0b626..98f530e 100644 +--- a/arch/mips/mm/page.c ++++ b/arch/mips/mm/page.c +@@ -6,6 +6,7 @@ + * Copyright (C) 2003, 04, 05 Ralf Baechle (ralf@linux-mips.org) + * Copyright (C) 2007 Maciej W. Rozycki + * Copyright (C) 2008 Thiemo Seufer ++ * Copyright (C) 2012 MIPS Technologies, Inc. + */ + #include + #include +@@ -71,45 +72,6 @@ static struct uasm_reloc __cpuinitdata relocs[5]; + #define cpu_is_r4600_v1_x() ((read_c0_prid() & 0xfffffff0) == 0x00002010) + #define cpu_is_r4600_v2_x() ((read_c0_prid() & 0xfffffff0) == 0x00002020) + +-/* +- * Maximum sizes: +- * +- * R4000 128 bytes S-cache: 0x058 bytes +- * R4600 v1.7: 0x05c bytes +- * R4600 v2.0: 0x060 bytes +- * With prefetching, 16 word strides 0x120 bytes +- */ +- +-static u32 clear_page_array[0x120 / 4]; +- +-#ifdef CONFIG_SIBYTE_DMA_PAGEOPS +-void clear_page_cpu(void *page) __attribute__((alias("clear_page_array"))); +-#else +-void clear_page(void *page) __attribute__((alias("clear_page_array"))); +-#endif +- +-EXPORT_SYMBOL(clear_page); +- +-/* +- * Maximum sizes: +- * +- * R4000 128 bytes S-cache: 0x11c bytes +- * R4600 v1.7: 0x080 bytes +- * R4600 v2.0: 0x07c bytes +- * With prefetching, 16 word strides 0x540 bytes +- */ +-static u32 copy_page_array[0x540 / 4]; +- +-#ifdef CONFIG_SIBYTE_DMA_PAGEOPS +-void +-copy_page_cpu(void *to, void *from) __attribute__((alias("copy_page_array"))); +-#else +-void copy_page(void *to, void *from) __attribute__((alias("copy_page_array"))); +-#endif +- +-EXPORT_SYMBOL(copy_page); +- +- + static int pref_bias_clear_store __cpuinitdata; + static int pref_bias_copy_load __cpuinitdata; + static int pref_bias_copy_store __cpuinitdata; +@@ -282,10 +244,15 @@ static inline void __cpuinit build_clear_pref(u32 **buf, int off) + } + } + ++extern u32 __clear_page_start; ++extern u32 __clear_page_end; ++extern u32 __copy_page_start; ++extern u32 __copy_page_end; ++ + void __cpuinit build_clear_page(void) + { + int off; +- u32 *buf = (u32 *)&clear_page_array; ++ u32 *buf = &__clear_page_start; + struct uasm_label *l = labels; + struct uasm_reloc *r = relocs; + int i; +@@ -356,17 +323,17 @@ void __cpuinit build_clear_page(void) + uasm_i_jr(&buf, RA); + uasm_i_nop(&buf); + +- BUG_ON(buf > clear_page_array + ARRAY_SIZE(clear_page_array)); ++ BUG_ON(buf > &__clear_page_end); + + uasm_resolve_relocs(relocs, labels); + + pr_debug("Synthesized clear page handler (%u instructions).\n", +- (u32)(buf - clear_page_array)); ++ (u32)(buf - &__clear_page_start)); + + pr_debug("\t.set push\n"); + pr_debug("\t.set noreorder\n"); +- for (i = 0; i < (buf - clear_page_array); i++) +- pr_debug("\t.word 0x%08x\n", clear_page_array[i]); ++ for (i = 0; i < (buf - &__clear_page_start); i++) ++ pr_debug("\t.word 0x%08x\n", (&__clear_page_start)[i]); + pr_debug("\t.set pop\n"); + } + +@@ -427,7 +394,7 @@ static inline void build_copy_store_pref(u32 **buf, int off) + void __cpuinit build_copy_page(void) + { + int off; +- u32 *buf = (u32 *)©_page_array; ++ u32 *buf = &__copy_page_start; + struct uasm_label *l = labels; + struct uasm_reloc *r = relocs; + int i; +@@ -595,21 +562,23 @@ void __cpuinit build_copy_page(void) + uasm_i_jr(&buf, RA); + uasm_i_nop(&buf); + +- BUG_ON(buf > copy_page_array + ARRAY_SIZE(copy_page_array)); ++ BUG_ON(buf > &__copy_page_end); + + uasm_resolve_relocs(relocs, labels); + + pr_debug("Synthesized copy page handler (%u instructions).\n", +- (u32)(buf - copy_page_array)); ++ (u32)(buf - &__copy_page_start)); + + pr_debug("\t.set push\n"); + pr_debug("\t.set noreorder\n"); +- for (i = 0; i < (buf - copy_page_array); i++) +- pr_debug("\t.word 0x%08x\n", copy_page_array[i]); ++ for (i = 0; i < (buf - &__copy_page_start); i++) ++ pr_debug("\t.word 0x%08x\n", (&__copy_page_start)[i]); + pr_debug("\t.set pop\n"); + } + + #ifdef CONFIG_SIBYTE_DMA_PAGEOPS ++extern void clear_page_cpu(void *page); ++extern void copy_page_cpu(void *to, void *from); + + /* + * Pad descriptors to cacheline, since each is exclusively owned by a diff --git a/meta-bsp/common/recipes/linux/linux-vuplus-3.9.6/rt2800usb_fix_warn_tx_status_timeout_to_dbg.patch b/meta-bsp/common/recipes/linux/linux-vuplus-3.9.6/rt2800usb_fix_warn_tx_status_timeout_to_dbg.patch new file mode 100644 index 0000000..95d3a23 --- /dev/null +++ b/meta-bsp/common/recipes/linux/linux-vuplus-3.9.6/rt2800usb_fix_warn_tx_status_timeout_to_dbg.patch @@ -0,0 +1,13 @@ +diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c +index 098613e..a659677 100644 +--- a/drivers/net/wireless/rt2x00/rt2800usb.c ++++ b/drivers/net/wireless/rt2x00/rt2800usb.c +@@ -128,7 +128,7 @@ static inline bool rt2800usb_entry_txstatus_timeout(struct queue_entry *entry) + + tout = time_after(jiffies, entry->last_action + msecs_to_jiffies(100)); + if (unlikely(tout)) +- WARNING(entry->queue->rt2x00dev, ++ DEBUG(entry->queue->rt2x00dev, + "TX status timeout for entry %d in queue %d\n", + entry->entry_idx, entry->queue->qid); + return tout; diff --git a/meta-bsp/common/recipes/linux/linux-vuplus_2.6.37.bb b/meta-bsp/common/recipes/linux/linux-vuplus_2.6.37.bb index e816bef..68e059e 100644 --- a/meta-bsp/common/recipes/linux/linux-vuplus_2.6.37.bb +++ b/meta-bsp/common/recipes/linux/linux-vuplus_2.6.37.bb @@ -11,11 +11,11 @@ SRCREV = "" MODULE = "linux-2.6.37" SRC_URI += " http://archive.vuplus.com/download/kernel/stblinux-2.6.37-3.1.tar.bz2 \ - file://dvb-core.patch;patch=1;pnum=1 \ - file://fix_cpu_proc.patch;patch=1;pnum=1 \ - file://brcm_disable_enet1.patch;patch=1;pnum=1 \ - file://bcmgenet_oobctrl.patch;patch=1;pnum=1 \ - file://brcm_mtd_mac.patch;patch=1;pnum=1 \ + file://dvb-core.patch \ + file://fix_cpu_proc.patch \ + file://brcm_disable_enet1.patch \ + file://bcmgenet_oobctrl.patch \ + file://brcm_mtd_mac.patch \ file://${MACHINE}_defconfig \ " diff --git a/meta-bsp/common/recipes/linux/linux-vuplus_3.1.1.bb b/meta-bsp/common/recipes/linux/linux-vuplus_3.1.1.bb index cd98980..853fc55 100644 --- a/meta-bsp/common/recipes/linux/linux-vuplus_3.1.1.bb +++ b/meta-bsp/common/recipes/linux/linux-vuplus_3.1.1.bb @@ -10,10 +10,11 @@ SRCREV = "r2" MODULE = "linux-3.1.1" SRC_URI += "http://archive.vuplus.com/download/kernel/linux-${KV}_${SRCREV}.tar.bz2 \ - file://fix_cpu_proc.patch;patch=1;pnum=1 \ + file://fix_cpu_proc.patch \ + file://igmp.patch \ + file://rt5372_kernel_3.1.1.patch \ + file://kernel_miscompilation_with_gcc_4_8.patch \ file://${MACHINE}_defconfig \ - file://igmp.patch;patch=1;pnum=1 \ - file://rt5372_kernel_3.1.1.patch \ " SRC_URI[md5sum] = "4dc3ac322453abbfaade7020cddea205" diff --git a/meta-bsp/common/recipes/linux/linux-vuplus_3.13.5.bb b/meta-bsp/common/recipes/linux/linux-vuplus_3.13.5.bb index f64b62b..99ff507 100644 --- a/meta-bsp/common/recipes/linux/linux-vuplus_3.13.5.bb +++ b/meta-bsp/common/recipes/linux/linux-vuplus_3.13.5.bb @@ -15,15 +15,15 @@ KERNEL_CONFIG = "${@base_contains("VUPLUS_FEATURES", "dvbproxy", "${MACHINE}_def SRC_URI += "http://archive.vuplus.com/download/kernel/stblinux-${KV}.tar.bz2 \ file://rt2800usb_fix_warn_tx_status_timeout_to_dbg.patch \ file://linux-tcp_output.patch \ - file://${KERNEL_CONFIG} \ + file://${KERNEL_CONFIG} \ " SRC_URI += "${@base_contains("VUPLUS_FEATURES", "dvbproxy", "file://linux_dvb_adapter.patch;patch=1;pnum=1", "", d)}" -S = "${WORKDIR}/linux" - inherit kernel +S = "${WORKDIR}/linux" + export OS = "Linux" KERNEL_IMAGETYPE = "vmlinux" KERNEL_OUTPUT = "vmlinux" @@ -33,8 +33,7 @@ KERNEL_IMAGEDEST = "tmp" FILES_kernel-image = "/${KERNEL_IMAGEDEST}/vmlinux.gz /${KERNEL_IMAGEDEST}/autoexec.bat" do_configure_prepend() { - oe_machinstall -m 0644 ${WORKDIR}/${KERNEL_CONFIG} ${S}/.config - oe_runmake oldconfig + oe_machinstall -m 0644 ${WORKDIR}/${KERNEL_CONFIG} ${WORKDIR}/defconfig } kernel_do_install_append() { diff --git a/meta-bsp/common/recipes/linux/linux-vuplus_3.3.6.bb b/meta-bsp/common/recipes/linux/linux-vuplus_3.3.6.bb index 9555656..a6acaf7 100644 --- a/meta-bsp/common/recipes/linux/linux-vuplus_3.3.6.bb +++ b/meta-bsp/common/recipes/linux/linux-vuplus_3.3.6.bb @@ -11,11 +11,11 @@ SRCREV = "" MODULE = "linux-3.3.6" SRC_URI += "http://archive.vuplus.com/download/kernel/stblinux-3.3.6-1.2.tar.bz2 \ - file://brcm_3.3.patch;patch=1;pnum=1 \ - file://fix_cpu_proc.patch;patch=1;pnum=1 \ - file://brcm_mtd_mac.patch;patch=1;pnum=1 \ - file://dvb_core_5.5.patch;patch=1;pnum=1 \ - file://brcm_remove_entire_mtd.patch;patch=1;pnum=1 \ + file://brcm_3.3.patch \ + file://fix_cpu_proc.patch \ + file://brcm_mtd_mac.patch \ + file://dvb_core_5.5.patch \ + file://brcm_remove_entire_mtd.patch \ file://${MACHINE}_defconfig \ " diff --git a/meta-bsp/common/recipes/linux/linux-vuplus_3.3.8.bb b/meta-bsp/common/recipes/linux/linux-vuplus_3.3.8.bb index 1c60f38..14f5462 100644 --- a/meta-bsp/common/recipes/linux/linux-vuplus_3.3.8.bb +++ b/meta-bsp/common/recipes/linux/linux-vuplus_3.3.8.bb @@ -11,15 +11,16 @@ SRCREV = "" MODULE = "linux-3.3.8" SRC_URI += "http://archive.vuplus.com/download/kernel/stblinux-3.3.6-2.0.tar.bz2 \ - file://brcm_3.3.patch;patch=1;pnum=1 \ - file://fix_cpu_proc.patch;patch=1;pnum=1 \ - file://brcm_mtd_mac.patch;patch=1;pnum=1 \ - file://dvb_core_5.5.patch;patch=1;pnum=1 \ - file://dvb_backport.patch;patch=1;pnum=1 \ - file://bmips-no-array-bounds.patch;patch=1;pnum=1 \ + file://brcm_3.3.patch \ + file://fix_cpu_proc.patch \ + file://brcm_mtd_mac.patch \ + file://dvb_core_5.5.patch \ + file://dvb_backport.patch \ + file://bmips-no-array-bounds.patch \ file://${MACHINE}_defconfig \ file://rt5372_kernel_3.3.8.patch \ - " + file://kernel_miscompilation_with_gcc_4_8.patch \ +" S = "${WORKDIR}/linux" diff --git a/meta-bsp/common/recipes/linux/linux-vuplus_3.9.6.bb b/meta-bsp/common/recipes/linux/linux-vuplus_3.9.6.bb index d06d348..44144fc 100644 --- a/meta-bsp/common/recipes/linux/linux-vuplus_3.9.6.bb +++ b/meta-bsp/common/recipes/linux/linux-vuplus_3.9.6.bb @@ -5,20 +5,21 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" KV = "3.9.6" -PR = "r2" +PR = "r4" SRCREV = "" MODULE = "linux-3.9.6" SRC_URI += "http://archive.vuplus.com/download/kernel/stblinux-${KV}.tar.bz2 \ file://fix_fuse_for_linux_mips_3-9.patch \ + file://rt2800usb_fix_warn_tx_status_timeout_to_dbg.patch \ file://${MACHINE}_defconfig \ " -S = "${WORKDIR}/linux" - inherit kernel +S = "${WORKDIR}/linux" + export OS = "Linux" KERNEL_IMAGETYPE = "vmlinux" KERNEL_OUTPUT = "vmlinux" @@ -28,8 +29,7 @@ KERNEL_IMAGEDEST = "tmp" FILES_kernel-image = "/${KERNEL_IMAGEDEST}/vmlinux.gz /${KERNEL_IMAGEDEST}/autoexec.bat" do_configure_prepend() { - oe_machinstall -m 0644 ${WORKDIR}/${MACHINE}_defconfig ${S}/.config - oe_runmake oldconfig + oe_machinstall -m 0644 ${WORKDIR}/${MACHINE}_defconfig ${WORKDIR}/defconfig } kernel_do_install_append() { diff --git a/meta-bsp/common/recipes/vuplus/vuplus-dvb-modules.bb b/meta-bsp/common/recipes/vuplus/vuplus-dvb-modules.bb index bdf850b..5fac239 100755 --- a/meta-bsp/common/recipes/vuplus/vuplus-dvb-modules.bb +++ b/meta-bsp/common/recipes/vuplus/vuplus-dvb-modules.bb @@ -8,9 +8,6 @@ PR = "r22-${SRCDATE}" SRC_URI = "http://archive.vuplus.com/download/drivers/vuplus-dvb-modules-${MACHINE}-${PV}-${SRCDATE}.tar.gz " -DEPENDS += "virtual/kernel module-init-tools" -RDEPENDS_${PN} += "module-init-tools-depmod" - S = "${WORKDIR}" inherit module-base diff --git a/meta-bsp/common/recipes/vuplus/vuplus-dvb-proxy.bb b/meta-bsp/common/recipes/vuplus/vuplus-dvb-proxy.bb index f924559..527d5ed 100644 --- a/meta-bsp/common/recipes/vuplus/vuplus-dvb-proxy.bb +++ b/meta-bsp/common/recipes/vuplus/vuplus-dvb-proxy.bb @@ -8,9 +8,6 @@ PR = "${SRCDATE}.${SRCDATE_PR}" SRC_URI = "http://archive.vuplus.com/download/build_support/vuplus/vuplus-dvb-proxy-${MACHINE}-${PV}-${PR}.tar.gz " -DEPENDS += "virtual/kernel module-init-tools" -RDEPENDS_${PN} += "module-init-tools-depmod" - S = "${WORKDIR}" inherit module-base diff --git a/meta-bsp/vuduo2/recipes/linux/linux-vuplus_2.6.37.bbappend b/meta-bsp/vuduo2/recipes/linux/linux-vuplus_2.6.37.bbappend index 669c3c1..bf4b79c 100644 --- a/meta-bsp/vuduo2/recipes/linux/linux-vuplus_2.6.37.bbappend +++ b/meta-bsp/vuduo2/recipes/linux/linux-vuplus_2.6.37.bbappend @@ -2,5 +2,5 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" PR .= "-bsp9" -SRC_URI += "file://bmips-no-array-bounds.patch;patch=1;pnum=1 " +SRC_URI += "file://bmips-no-array-bounds.patch " diff --git a/meta-bsp/vuduo2/recipes/linux/linux-vuplus_3.3.8.bbappend b/meta-bsp/vuduo2/recipes/linux/linux-vuplus_3.3.8.bbappend index 16bf74d..181af9d 100644 --- a/meta-bsp/vuduo2/recipes/linux/linux-vuplus_3.3.8.bbappend +++ b/meta-bsp/vuduo2/recipes/linux/linux-vuplus_3.3.8.bbappend @@ -2,7 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" PR .= "-bsp4" -SRC_URI += "file://remove_genet1.patch;patch=1;pnum=1 \ - file://nand_base.patch;patch=1;pnum=1 \ - file://brcm_s3_wol.patch;patch=1;pnum=1 \ +SRC_URI += "file://remove_genet1.patch \ + file://nand_base.patch \ + file://brcm_s3_wol.patch \ " diff --git a/meta-bsp/vuduo2/recipes/vuplus/vuplus-dvb-proxy.bbappend b/meta-bsp/vuduo2/recipes/vuplus/vuplus-dvb-proxy.bbappend index c3b4973..07953c1 100644 --- a/meta-bsp/vuduo2/recipes/vuplus/vuplus-dvb-proxy.bbappend +++ b/meta-bsp/vuduo2/recipes/vuplus/vuplus-dvb-proxy.bbappend @@ -1,8 +1,8 @@ SRCDATE = "20150317" SRCDATE_PR = "r0" -do_install_append(){ - ln -s /lib/modules/${KERNEL_VERSION}/extra/dvb-bcm7424.ko ${D}/lib/modules/${KERNEL_VERSION}/extra/dvb-bcm.ko +pkg_postinst_${PN}_append () { + ln -s /lib/modules/${KERNEL_VERSION}/extra/dvb-bcm7424.ko $D/lib/modules/${KERNEL_VERSION}/extra/dvb-bcm.ko } diff --git a/meta-bsp/vusolo/recipes/linux/linux-vuplus-3.1.1/vusolo_defconfig b/meta-bsp/vusolo/recipes/linux/linux-vuplus-3.1.1/vusolo_defconfig index 6f8a1e8..7575d42 100644 --- a/meta-bsp/vusolo/recipes/linux/linux-vuplus-3.1.1/vusolo_defconfig +++ b/meta-bsp/vusolo/recipes/linux/linux-vuplus-3.1.1/vusolo_defconfig @@ -591,7 +591,8 @@ CONFIG_MAC80211_LEDS=y # Generic Driver Options # CONFIG_UEVENT_HELPER_PATH="" -# CONFIG_DEVTMPFS is not set +CONFIG_DEVTMPFS=y +CONFIG_DEVTMPFS_MOUNT=y CONFIG_STANDALONE=y CONFIG_PREVENT_FIRMWARE_BUILD=y CONFIG_FW_LOADER=y diff --git a/meta-bsp/vusolo/recipes/linux/linux-vuplus_3.1.1.bbappend b/meta-bsp/vusolo/recipes/linux/linux-vuplus_3.1.1.bbappend index 7422a02..b193d71 100644 --- a/meta-bsp/vusolo/recipes/linux/linux-vuplus_3.1.1.bbappend +++ b/meta-bsp/vusolo/recipes/linux/linux-vuplus_3.1.1.bbappend @@ -1,8 +1,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" -PR .= "-bsp9" +PR .= "-bsp10" SRC_URI += "\ - file://linux_3.1.1_vusolo.patch;patch=1;pnum=1 \ - file://fix_cpu_proc_solo.patch;patch=1;pnum=1 \ + file://linux_3.1.1_vusolo.patch \ + file://fix_cpu_proc_solo.patch \ " diff --git a/meta-bsp/vusolo/recipes/vuplus/enigma2.bbappend b/meta-bsp/vusolo/recipes/vuplus/enigma2.bbappend index 7bee522..24f52c0 100644 --- a/meta-bsp/vusolo/recipes/vuplus/enigma2.bbappend +++ b/meta-bsp/vusolo/recipes/vuplus/enigma2.bbappend @@ -1,3 +1,3 @@ PR .= "-bsp1" -SRC_URI_append = " file://enigma2_vuplus_misc.patch;patch=1;pnum=1" +SRC_URI_append = " file://enigma2_vuplus_misc.patch" diff --git a/meta-bsp/vusolo2/recipes/linux/linux-vuplus_3.3.6.bbappend b/meta-bsp/vusolo2/recipes/linux/linux-vuplus_3.3.6.bbappend index 66faca5..596685f 100644 --- a/meta-bsp/vusolo2/recipes/linux/linux-vuplus_3.3.6.bbappend +++ b/meta-bsp/vusolo2/recipes/linux/linux-vuplus_3.3.6.bbappend @@ -2,5 +2,5 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" PR .= "-bsp10" -SRC_URI += "file://bmips-no-array-bounds.patch;patch=1;pnum=1 " -SRC_URI += "file://dvb_backport.patch;patch=1;pnum=1 " +SRC_URI += "file://bmips-no-array-bounds.patch " +SRC_URI += "file://dvb_backport.patch " diff --git a/meta-bsp/vusolo2/recipes/vuplus/vuplus-dvb-proxy.bbappend b/meta-bsp/vusolo2/recipes/vuplus/vuplus-dvb-proxy.bbappend index fe34595..9ee05b9 100644 --- a/meta-bsp/vusolo2/recipes/vuplus/vuplus-dvb-proxy.bbappend +++ b/meta-bsp/vusolo2/recipes/vuplus/vuplus-dvb-proxy.bbappend @@ -1,8 +1,8 @@ SRCDATE = "20150317" SRCDATE_PR = "r0" -do_install_append(){ - ln -s /lib/modules/${KERNEL_VERSION}/extra/dvb-bcm7356.ko ${D}/lib/modules/${KERNEL_VERSION}/extra/dvb-bcm.ko +pkg_postinst_${PN}_append () { + ln -s /lib/modules/${KERNEL_VERSION}/extra/dvb-bcm7356.ko $D/lib/modules/${KERNEL_VERSION}/extra/dvb-bcm.ko } diff --git a/meta-bsp/vusolose/recipes/vuplus/vuplus-dvb-proxy.bbappend b/meta-bsp/vusolose/recipes/vuplus/vuplus-dvb-proxy.bbappend index 66ad901..6f0bffc 100644 --- a/meta-bsp/vusolose/recipes/vuplus/vuplus-dvb-proxy.bbappend +++ b/meta-bsp/vusolose/recipes/vuplus/vuplus-dvb-proxy.bbappend @@ -1,8 +1,8 @@ SRCDATE = "20150317" SRCDATE_PR = "r0" -do_install_append(){ - ln -s /lib/modules/${KERNEL_VERSION}/extra/dvb-bcm7241.ko ${D}/lib/modules/${KERNEL_VERSION}/extra/dvb-bcm.ko +pkg_postinst_${PN}_append () { + ln -s /lib/modules/${KERNEL_VERSION}/extra/dvb-bcm7241.ko $D/lib/modules/${KERNEL_VERSION}/extra/dvb-bcm.ko } SRC_URI[md5sum] = "bbd29f3c5a7915cae04ffeb6cf89a6cc" diff --git a/meta-bsp/vuultimo/recipes/linux/linux-vuplus-3.1.1/vuultimo_defconfig b/meta-bsp/vuultimo/recipes/linux/linux-vuplus-3.1.1/vuultimo_defconfig index 74ff50e..0fb748e 100644 --- a/meta-bsp/vuultimo/recipes/linux/linux-vuplus-3.1.1/vuultimo_defconfig +++ b/meta-bsp/vuultimo/recipes/linux/linux-vuplus-3.1.1/vuultimo_defconfig @@ -603,7 +603,8 @@ CONFIG_MAC80211_LEDS=y # Generic Driver Options # CONFIG_UEVENT_HELPER_PATH="" -# CONFIG_DEVTMPFS is not set +CONFIG_DEVTMPFS=y +CONFIG_DEVTMPFS_MOUNT=y CONFIG_STANDALONE=y CONFIG_PREVENT_FIRMWARE_BUILD=y CONFIG_FW_LOADER=y diff --git a/meta-bsp/vuultimo/recipes/linux/linux-vuplus_3.1.1.bbappend b/meta-bsp/vuultimo/recipes/linux/linux-vuplus_3.1.1.bbappend index 5b4429c..40a1ef4 100644 --- a/meta-bsp/vuultimo/recipes/linux/linux-vuplus_3.1.1.bbappend +++ b/meta-bsp/vuultimo/recipes/linux/linux-vuplus_3.1.1.bbappend @@ -1,8 +1,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" -PR .= "-bsp0" +PR .= "-bsp1" SRC_URI += "\ - file://linux-sata_brcm.patch;patch=1;pnum=1 \ + file://linux-sata_brcm.patch \ " diff --git a/meta-bsp/vuuno/recipes/linux/linux-vuplus-3.1.1/vuuno_defconfig b/meta-bsp/vuuno/recipes/linux/linux-vuplus-3.1.1/vuuno_defconfig index ca83ae0..42d96ef 100644 --- a/meta-bsp/vuuno/recipes/linux/linux-vuplus-3.1.1/vuuno_defconfig +++ b/meta-bsp/vuuno/recipes/linux/linux-vuplus-3.1.1/vuuno_defconfig @@ -603,7 +603,8 @@ CONFIG_MAC80211_LEDS=y # Generic Driver Options # CONFIG_UEVENT_HELPER_PATH="" -# CONFIG_DEVTMPFS is not set +CONFIG_DEVTMPFS=y +CONFIG_DEVTMPFS_MOUNT=y CONFIG_STANDALONE=y CONFIG_PREVENT_FIRMWARE_BUILD=y CONFIG_FW_LOADER=y diff --git a/meta-bsp/vuuno/recipes/linux/linux-vuplus_3.1.1.bbappend b/meta-bsp/vuuno/recipes/linux/linux-vuplus_3.1.1.bbappend index 6628b1f..3cba553 100644 --- a/meta-bsp/vuuno/recipes/linux/linux-vuplus_3.1.1.bbappend +++ b/meta-bsp/vuuno/recipes/linux/linux-vuplus_3.1.1.bbappend @@ -1,8 +1,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" -PR .= "-bsp11" +PR .= "-bsp12" SRC_URI += "\ - file://linux_3.1.1_vuuno.patch;patch=1;pnum=1 \ - file://linux-sata_brcm.patch;patch=1;pnum=1 \ + file://linux_3.1.1_vuuno.patch \ + file://linux-sata_brcm.patch \ " diff --git a/meta-openembedded b/meta-openembedded index 835745d..9c926ef 160000 --- a/meta-openembedded +++ b/meta-openembedded @@ -1 +1 @@ -Subproject commit 835745de3fc9ad367d82a79983ca22f8694cf7ce +Subproject commit 9c926ef2d463e643fb0dc87f6535a12e35d039ab diff --git a/meta-openvuplus/classes/autotools.bbclass b/meta-openvuplus/classes/autotools.bbclass deleted file mode 100644 index 658ae66..0000000 --- a/meta-openvuplus/classes/autotools.bbclass +++ /dev/null @@ -1,192 +0,0 @@ -def autotools_dep_prepend(d): - if d.getVar('INHIBIT_AUTOTOOLS_DEPS', True): - return '' - - pn = d.getVar('PN', True) - deps = '' - - if pn in ['autoconf-native', 'automake-native', 'help2man-native']: - return deps - deps += 'autoconf-native automake-native ' - - if not pn in ['libtool', 'libtool-native'] and not pn.endswith("libtool-cross"): - deps += 'libtool-native ' - if not bb.data.inherits_class('native', d) \ - and not bb.data.inherits_class('nativesdk', d) \ - and not bb.data.inherits_class('cross', d) \ - and not d.getVar('INHIBIT_DEFAULT_DEPS', True): - deps += 'libtool-cross ' - - return deps + 'gnu-config-native ' - -EXTRA_OEMAKE = "" - -DEPENDS_prepend = "${@autotools_dep_prepend(d)}" - -inherit siteinfo - -# Space separated list of shell scripts with variables defined to supply test -# results for autoconf tests we cannot run at build time. -export CONFIG_SITE = "${@siteinfo_get_files(d)}" - -acpaths = "default" -EXTRA_AUTORECONF = "--exclude=autopoint" - -export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir}" - -def autotools_set_crosscompiling(d): - if not bb.data.inherits_class('native', d): - return " cross_compiling=yes" - return "" - -def append_libtool_sysroot(d): - # Only supply libtool sysroot option for non-native packages - if not bb.data.inherits_class('native', d): - return '--with-libtool-sysroot=${STAGING_DIR_HOST}' - return "" - -# EXTRA_OECONF_append = "${@autotools_set_crosscompiling(d)}" - -CONFIGUREOPTS = " --build=${BUILD_SYS} \ - --host=${HOST_SYS} \ - --target=${TARGET_SYS} \ - --prefix=${prefix} \ - --exec_prefix=${exec_prefix} \ - --bindir=${bindir} \ - --sbindir=${sbindir} \ - --libexecdir=${libexecdir} \ - --datadir=${datadir} \ - --sysconfdir=${sysconfdir} \ - --sharedstatedir=${sharedstatedir} \ - --localstatedir=${localstatedir} \ - --libdir=${libdir} \ - --includedir=${includedir} \ - --oldincludedir=${oldincludedir} \ - --infodir=${infodir} \ - --mandir=${mandir} \ - --disable-silent-rules \ - ${CONFIGUREOPT_DEPTRACK} \ - ${@append_libtool_sysroot(d)}" -CONFIGUREOPT_DEPTRACK = "--disable-dependency-tracking" - - -oe_runconf () { - cfgscript="${S}/configure" - if [ -x "$cfgscript" ] ; then - bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" - ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed" - else - bbfatal "no configure script found at $cfgscript" - fi -} - -AUTOTOOLS_AUXDIR ?= "${S}" - -autotools_do_configure() { - case ${PN} in - autoconf*) - ;; - automake*) - ;; - *) - # WARNING: gross hack follows: - # An autotools built package generally needs these scripts, however only - # automake or libtoolize actually install the current versions of them. - # This is a problem in builds that do not use libtool or automake, in the case - # where we -need- the latest version of these scripts. e.g. running a build - # for a package whose autotools are old, on an x86_64 machine, which the old - # config.sub does not support. Work around this by installing them manually - # regardless. - ( for ac in `find ${S} -name configure.in -o -name configure.ac`; do - rm -f `dirname $ac`/configure - done ) - if [ -e ${S}/configure.in -o -e ${S}/configure.ac ]; then - olddir=`pwd` - cd ${S} - # Remove any previous copy of the m4 macros - rm -rf ${B}/aclocal-copy/ - if [ x"${acpaths}" = xdefault ]; then - acpaths= - for i in `find ${S} -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \ - grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do - acpaths="$acpaths -I $i" - done - else - acpaths="${acpaths}" - fi - AUTOV=`automake --version |head -n 1 |sed "s/.* //;s/\.[0-9]\+$//"` - automake --version - echo "AUTOV is $AUTOV" - if [ -d ${STAGING_DATADIR_NATIVE}/aclocal-$AUTOV ]; then - acpaths="$acpaths -I${STAGING_DATADIR_NATIVE}/aclocal-$AUTOV" - fi - # The aclocal directory could get modified by other processes - # uninstalling data from the sysroot. See Yocto #861 for details. - # We avoid this by taking a copy here and then files cannot disappear. - if [ -d ${STAGING_DATADIR}/aclocal ]; then - mkdir -p ${B}/aclocal-copy/ - # for scratch build this directory can be empty - # so avoid cp's no files to copy error - cp -r ${STAGING_DATADIR}/aclocal/. ${B}/aclocal-copy/ - acpaths="$acpaths -I ${B}/aclocal-copy/" - fi - # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look - # like it was auto-generated. Work around this by blowing it away - # by hand, unless the package specifically asked not to run aclocal. - if ! echo ${EXTRA_AUTORECONF} | grep -q "aclocal"; then - rm -f aclocal.m4 - fi - if [ -e configure.in ]; then - CONFIGURE_AC=configure.in - else - CONFIGURE_AC=configure.ac - fi - if ! echo ${EXTRA_OECONF} | grep -q "\-\-disable-nls"; then - if grep "^[[:space:]]*AM_GLIB_GNU_GETTEXT" $CONFIGURE_AC >/dev/null; then - if grep "sed.*POTFILES" $CONFIGURE_AC >/dev/null; then - : do nothing -- we still have an old unmodified configure.ac - else - bbnote Executing glib-gettextize --force --copy - echo "no" | glib-gettextize --force --copy - fi - else if grep "^[[:space:]]*AM_GNU_GETTEXT" $CONFIGURE_AC >/dev/null; then - # We'd call gettextize here if it wasn't so broken... - cp ${STAGING_DATADIR}/gettext/config.rpath ${AUTOTOOLS_AUXDIR}/ - if [ -d ${S}/po/ -a ! -e ${S}/po/Makefile.in.in ]; then - cp ${STAGING_DATADIR}/gettext/po/Makefile.in.in ${S}/po/ - if [ ! -e ${S}/po/remove-potcdate.sin ]; then - cp ${STAGING_DATADIR_NATIVE}/gettext/po/remove-potcdate.sin ${S}/po/ - fi - fi - fi - fi - fi - mkdir -p m4 - if grep "^[[:space:]]*[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then - bbnote Executing intltoolize --copy --force --automake - intltoolize --copy --force --automake - fi - bbnote Executing autoreconf --verbose --install --force ${EXTRA_AUTORECONF} $acpaths - autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || bbfatal "autoreconf execution failed." - cd $olddir - fi - ;; - esac - if [ -e ${S}/configure ]; then - oe_runconf - else - bbnote "nothing to configure" - fi -} - -autotools_do_install() { - oe_runmake 'DESTDIR=${D}' install - # Info dir listing isn't interesting at this point so remove it if it exists. - if [ -e "${D}${infodir}/dir" ]; then - rm -f ${D}${infodir}/dir - fi -} - -inherit siteconfig - -EXPORT_FUNCTIONS do_configure do_install diff --git a/meta-openvuplus/classes/distutils-openplugins.bbclass b/meta-openvuplus/classes/distutils-openplugins.bbclass new file mode 100644 index 0000000..73b016f --- /dev/null +++ b/meta-openvuplus/classes/distutils-openplugins.bbclass @@ -0,0 +1,16 @@ +inherit distutils + +# Scripts want to install "/etc", so we need "--root" instead of setting install-data stuff +# to remain compatible with previous versions. + +DISTUTILS_INSTALL_ARGS = "\ + --root=${D} \ + --install-data=${datadir} \ + --install-lib=${libdir}/enigma2/python/Plugins \ + " + +# Remove "egg-info" files. If datadir or site-packages dir is empty, remove it. +distutils_do_install_append() { + rm -f ${D}${libdir}/enigma2/python/Plugins/*.egg-info + rmdir -p --ignore-fail-on-non-empty ${D}${datadir} ${D}/${PYTHON_SITEPACKAGES_DIR} || true +} diff --git a/meta-openvuplus/classes/opendreambox-git.bbclass b/meta-openvuplus/classes/opendreambox-git.bbclass deleted file mode 100644 index ac25009..0000000 --- a/meta-openvuplus/classes/opendreambox-git.bbclass +++ /dev/null @@ -1,5 +0,0 @@ -OPENDREAMBOX_PROJECT ?= "${BPN}" - -SRC_URI += "git://git.opendreambox.org/git/${OPENDREAMBOX_PROJECT}.git;protocol=git" - -inherit git-project diff --git a/meta-openvuplus/conf/distro/vuplus.conf b/meta-openvuplus/conf/distro/vuplus.conf index 129303a..8ee5c4f 100644 --- a/meta-openvuplus/conf/distro/vuplus.conf +++ b/meta-openvuplus/conf/distro/vuplus.conf @@ -2,15 +2,15 @@ #@NAME: OpenVuplus #@DESCRIPTION: Distribution configuration for OpenVuplus -QA_LOG = "1" +QA_LOGFILE = "${TMPDIR}/qa.log" #USER_CLASSES += "image-prelink" SANITY_REQUIRED_UTILITIES = "patch diffstat texi2html makeinfo svn bzip2 tar gzip gawk chrpath wget cpio sshpass" -INHERIT += "buildhistory recipe_sanity testlab" +INHERIT += "buildhistory recipe_sanity" BUILDHISTORY_COMMIT = "1" DISTRO = "vuplus" DISTRO_NAME = "vuplus" -DISTRO_VERSION = "2.1.0" +DISTRO_VERSION = "3.0.0" DISTRO_PR ?= "" # meta/conf/distro/include/default-distrovars.inc @@ -19,7 +19,7 @@ DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio" # extra packages needed if opkg is used DISTRO_FEED_PREFIX ?= "official" -DISTRO_FEED_URI = "http://code.vuplus.com/packages/openvuplus/${DISTRO_VERSION}/vuplus/feeds/stable" +DISTRO_FEED_URI = "http://code.vuplus.com/packages/openvuplus/${DISTRO_VERSION}/vuplus/feeds/experimental" EXTRAOPKGCONFIG = "distro-feed-configs" # meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb @@ -28,21 +28,22 @@ SYSVINIT_ENABLED_GETTYS = "" # meta/classes/image_types.bbclass IMAGE_FSTYPES =+ "tar.bz2" - # package versions +GST_VERSION = "1.0" PREFERRED_VERSION_pango ?= "1.28.4" -PREFERRED_VERSION_wpa-supplicant ?= "0.7.3" - PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}" PREFERRED_VERSION_linux-libc-headers-nativesdk ?= "${LINUXLIBCVERSION}" -#PREFERRED_VERSION_linux-libc-headers = "3.1" -#PREFERRED_VERSION_linux-libc-headers-nativesdk = "3.1" -#PREFERRED_VERSION_linux-libc-headers = "3.1.1" -#PREFERRED_VERSION_linux-libc-headers-nativesdk = "3.1.1" -# chang : udev_182 is not working with linux-libc-headers_2.6.31. -PREFERRED_VERSION_udev ?= "124" +PREFERRED_VERSION_freetype ?= "2.4.12" + +PREFERRED_VERSION_udev ?= "182" + +PREFERRED_VERSION_elfutils ?= "0.148" + +PREFERRED_VERSION_libmicrohttpd ?= "0.4.6" +PREFERRED_VERSION_libdvdcss ?= "1.2.10" +PREFERRED_VERSION_taglib ?= "1.8" PREFERRED_PROVIDER_jpeg = "jpeg" PREFERRED_PROVIDER_jpeg-native = "jpeg-native" @@ -53,9 +54,8 @@ PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}gcc-intermediate:gcc-cross-inter PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}gcc:gcc-cross" PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}g++:gcc-cross" -LICENSE_FLAGS_WHITELIST = "commercial_gst-plugins-ugly commercial_lame commercial_libmad commercial_mpeg2dec" -COMMERCIAL_AUDIO_PLUGINS ?= "gst-plugins-ugly-mad gst-plugins-ugly-mpegaudioparse" -COMMERCIAL_VIDEO_PLUGINS ?= "gst-plugins-ugly-mpeg2dec gst-plugins-ugly-mpegstream gst-plugins-bad-mpegvideoparse" +LICENSE_FLAGS_WHITELIST = "commercial_gst-plugins-ugly commercial_lame commercial_libmad commercial_mpeg2dec commercial_libav" +LICENSE_FLAGS_WHITELIST += "commercial_gstreamer1.0-plugins-ugly" FULL_OPTIMIZATION = "-Os -pipe ${DEBUG_FLAGS}" # build some core libs with better compiler optimization for better performance @@ -90,7 +90,6 @@ PR_append_pn-zlib = "-opt1" # Disable installing ldconfig USE_LDCONFIG = "0" -TCLIBC = "eglibc" TCLIBCAPPEND = "" # Drop unused PACKAGE_EXTRA_ARCHS diff --git a/meta-openvuplus/recipes-connectivity/autofs/autofs_4.1.4.bb b/meta-openvuplus/recipes-connectivity/autofs/autofs_4.1.4.bb index f8d9bff..9357907 100644 --- a/meta-openvuplus/recipes-connectivity/autofs/autofs_4.1.4.bb +++ b/meta-openvuplus/recipes-connectivity/autofs/autofs_4.1.4.bb @@ -50,7 +50,7 @@ SRC_URI[sha256sum] = "e25caa0e9639ea54dd7c4f21e8146ac9859a61fa126f397edf874b5fdc S = "${WORKDIR}/${BP}" -inherit autotools update-rc.d +inherit autotools-brokensep update-rc.d do_configure_prepend () { if [ ! -e acinclude.m4 ]; then diff --git a/meta-openvuplus/recipes-connectivity/bridge-utils/bridge-utils.inc b/meta-openvuplus/recipes-connectivity/bridge-utils/bridge-utils.inc deleted file mode 100644 index 75bf2a9..0000000 --- a/meta-openvuplus/recipes-connectivity/bridge-utils/bridge-utils.inc +++ /dev/null @@ -1,28 +0,0 @@ -DESCRIPTION = "Tools for ethernet bridging." -HOMEPAGE = "http://bridge.sourceforge.net/" -SECTION = "console/network" -LICENSE = "GPLv2" - -SRC_URI = "${SOURCEFORGE_MIRROR}/bridge/bridge-utils-${PV}.tar.gz" - -inherit autotools - -EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}" - -do_install_append () { - mv ${D}${sbindir}/brctl ${D}${sbindir}/brctl.${PN} - install -d ${D}/${datadir}/bridge-utils - install -d ${D}/${sysconfdir}/network/if-pre-up.d - install -d ${D}/${sysconfdir}/network/if-post-down.d -} - -DEPENDS = "sysfsutils" -RRECOMMENDS_${PN} = "kernel-module-bridge" - -pkg_postinst_${PN} () { - update-alternatives --install ${sbindir}/brctl brctl brctl.${PN} 100 -} - -pkg_prerm_${PN} () { - update-alternatives --remove brctl brctl.${PN} -} diff --git a/meta-openvuplus/recipes-connectivity/bridge-utils/bridge-utils/kernel-headers.patch b/meta-openvuplus/recipes-connectivity/bridge-utils/bridge-utils/kernel-headers.patch deleted file mode 100644 index de36f05..0000000 --- a/meta-openvuplus/recipes-connectivity/bridge-utils/bridge-utils/kernel-headers.patch +++ /dev/null @@ -1,22 +0,0 @@ -include missing kernel header - -Fixes errors like - -| /b/kraj/jlinux-next/poky/build/tmp-eglibc/sysroots/re-64b/usr/include/linux/if_bridge.h:172:20: error: field 'ip6' has incomplete type -| In file included from ../libbridge/libbridge.h:24:0, - -Signed-off-by: Khem Raj -Upstream-Status: Pending - -Index: bridge-utils-1.5/libbridge/libbridge.h -=================================================================== ---- bridge-utils-1.5.orig/libbridge/libbridge.h 2011-03-28 17:52:54.000000000 -0700 -+++ bridge-utils-1.5/libbridge/libbridge.h 2013-03-04 21:16:25.781188309 -0800 -@@ -20,6 +20,7 @@ - #define _LIBBRIDGE_H - - #include -+#include - #include - #include - diff --git a/meta-openvuplus/recipes-connectivity/bridge-utils/bridge-utils_1.5.bb b/meta-openvuplus/recipes-connectivity/bridge-utils/bridge-utils_1.5.bb deleted file mode 100644 index 04f863b..0000000 --- a/meta-openvuplus/recipes-connectivity/bridge-utils/bridge-utils_1.5.bb +++ /dev/null @@ -1,11 +0,0 @@ -require bridge-utils.inc - -SRC_URI += "file://kernel-headers.patch" - -PARALLEL_MAKE = "" - -LIC_FILES_CHKSUM = "file://COPYING;md5=f9d20a453221a1b7e32ae84694da2c37" - -SRC_URI[md5sum] = "ec7b381160b340648dede58c31bb2238" -SRC_URI[sha256sum] = "42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688" - diff --git a/meta-openvuplus/recipes-connectivity/djmount/djmount_0.71.bb b/meta-openvuplus/recipes-connectivity/djmount/djmount_0.71.bb index 9dd1cae..42c06e7 100644 --- a/meta-openvuplus/recipes-connectivity/djmount/djmount_0.71.bb +++ b/meta-openvuplus/recipes-connectivity/djmount/djmount_0.71.bb @@ -3,14 +3,14 @@ HOMEPAGE = "http://djmount.sourceforge.net/" LICENSE = "GPLv2+" DEPENDS = "libupnp fuse" RDEPENDS_${PN} = "fuse" -PR = "r4" +PR = "r5" LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" INITSCRIPT_NAME = "djmount" INITSCRIPT_PARAMS = "defaults" -inherit autotools +inherit autotools pkgconfig gettext EXTRA_OECONF = "--with-external-libupnp --with-fuse-prefix='${STAGING_LIBDIR}'" diff --git a/meta-openvuplus/recipes-connectivity/djmount/files/configure.ac.patch b/meta-openvuplus/recipes-connectivity/djmount/files/configure.ac.patch index 6f9592e..587603c 100644 --- a/meta-openvuplus/recipes-connectivity/djmount/files/configure.ac.patch +++ b/meta-openvuplus/recipes-connectivity/djmount/files/configure.ac.patch @@ -1,12 +1,15 @@ ---- djmount-0.71/configure.ac.orig 2006-08-27 22:12:33.000000000 +0200 -+++ djmount-0.71/configure.ac 2012-04-19 08:56:31.412327597 +0200 -@@ -14,8 +14,8 @@ +diff --git a/configure.ac b/configure.ac +index f1a5b10..28fd78f 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -13,9 +13,9 @@ AC_INIT(djmount, 0.71, r3mi@users.sourceforge.net) + # share auxiliary files with sub-configure in "libupnp" AC_CONFIG_AUX_DIR(libupnp/config.aux) - AC_CONFIG_MACRO_DIR(libupnp/m4) --AC_CONFIG_MACRO_DIR(m4) +-AC_CONFIG_MACRO_DIR(libupnp/m4) + AC_CONFIG_MACRO_DIR(m4) AC_CONFIG_MACRO_DIR(gl/m4) -+AC_CONFIG_MACRO_DIR(m4) ++AC_CONFIG_MACRO_DIR(libupnp/m4) AC_CONFIG_SRCDIR(djmount/djfs.c) diff --git a/meta-openvuplus/recipes-connectivity/fuse/curlftpfs_0.9.2.bb b/meta-openvuplus/recipes-connectivity/fuse/curlftpfs_0.9.2.bb index d69844d..7fab53f 100644 --- a/meta-openvuplus/recipes-connectivity/fuse/curlftpfs_0.9.2.bb +++ b/meta-openvuplus/recipes-connectivity/fuse/curlftpfs_0.9.2.bb @@ -13,7 +13,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/curlftpfs/${P}.tar.gz" S = "${WORKDIR}/${P}" -inherit autotools +inherit autotools pkgconfig SRC_URI[md5sum] = "b452123f755114cd4461d56c648d9f12" SRC_URI[sha256sum] = "4eb44739c7078ba0edde177bdd266c4cfb7c621075f47f64c85a06b12b3c6958" diff --git a/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon-0.7.3/defconfig b/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon-0.7.3/defconfig deleted file mode 100644 index 1f3c6f4..0000000 --- a/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon-0.7.3/defconfig +++ /dev/null @@ -1,145 +0,0 @@ -# Example hostapd build time configuration -# -# This file lists the configuration options that are used when building the -# hostapd binary. All lines starting with # are ignored. Configuration option -# lines must be commented out complete, if they are not to be included, i.e., -# just setting VARIABLE=n is not disabling that variable. -# -# This file is included in Makefile, so variables like CFLAGS and LIBS can also -# be modified from here. In most cass, these lines should use += in order not -# to override previous values of the variables. - -# Driver interface for Host AP driver -CONFIG_DRIVER_HOSTAP=y - -# Driver interface for wired authenticator -CONFIG_DRIVER_WIRED=y - -# Driver interface for madwifi driver -#CONFIG_DRIVER_MADWIFI=y -#CFLAGS += -I../../madwifi # change to the madwifi source directory - -# Driver interface for Prism54 driver -CONFIG_DRIVER_PRISM54=y - -# Driver interface for drivers using the nl80211 kernel interface -CONFIG_DRIVER_NL80211=y -CONFIG_LIBNL20=y -# driver_nl80211.c requires a rather new libnl (version 1.1) which may not be -# shipped with your distribution yet. If that is the case, you need to build -# newer libnl version and point the hostapd build to use it. -#LIBNL=/usr/src/libnl -#CFLAGS += -I$(LIBNL)/include -#LIBS += -L$(LIBNL)/lib - -# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver) -#CONFIG_DRIVER_BSD=y -#CFLAGS += -I/usr/local/include -#LIBS += -L/usr/local/lib - -# Driver interface for no driver (e.g., RADIUS server only) -#CONFIG_DRIVER_NONE=y - -# IEEE 802.11F/IAPP -CONFIG_IAPP=y - -# WPA2/IEEE 802.11i RSN pre-authentication -CONFIG_RSN_PREAUTH=y - -# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS) -CONFIG_PEERKEY=y - -# IEEE 802.11w (management frame protection) -# This version is an experimental implementation based on IEEE 802.11w/D1.0 -# draft and is subject to change since the standard has not yet been finalized. -# Driver support is also needed for IEEE 802.11w. -#CONFIG_IEEE80211W=y - -# Integrated EAP server -CONFIG_EAP=y - -# EAP-MD5 for the integrated EAP server -CONFIG_EAP_MD5=y - -# EAP-TLS for the integrated EAP server -CONFIG_EAP_TLS=y - -# EAP-MSCHAPv2 for the integrated EAP server -CONFIG_EAP_MSCHAPV2=y - -# EAP-PEAP for the integrated EAP server -CONFIG_EAP_PEAP=y - -# EAP-GTC for the integrated EAP server -CONFIG_EAP_GTC=y - -# EAP-TTLS for the integrated EAP server -CONFIG_EAP_TTLS=y - -# EAP-SIM for the integrated EAP server -#CONFIG_EAP_SIM=y - -# EAP-AKA for the integrated EAP server -#CONFIG_EAP_AKA=y - -# EAP-AKA' for the integrated EAP server -# This requires CONFIG_EAP_AKA to be enabled, too. -#CONFIG_EAP_AKA_PRIME=y - -# EAP-PAX for the integrated EAP server -#CONFIG_EAP_PAX=y - -# EAP-PSK for the integrated EAP server (this is _not_ needed for WPA-PSK) -#CONFIG_EAP_PSK=y - -# EAP-SAKE for the integrated EAP server -#CONFIG_EAP_SAKE=y - -# EAP-GPSK for the integrated EAP server -#CONFIG_EAP_GPSK=y -# Include support for optional SHA256 cipher suite in EAP-GPSK -#CONFIG_EAP_GPSK_SHA256=y - -# EAP-FAST for the integrated EAP server -# Note: Default OpenSSL package does not include support for all the -# functionality needed for EAP-FAST. If EAP-FAST is enabled with OpenSSL, -# the OpenSSL library must be patched (openssl-0.9.9-session-ticket.patch) -# to add the needed functions. -#CONFIG_EAP_FAST=y - -# Wi-Fi Protected Setup (WPS) -CONFIG_WPS=y -# Enable UPnP support for external WPS Registrars -#CONFIG_WPS_UPNP=y - -# EAP-IKEv2 -#CONFIG_EAP_IKEV2=y - -# Trusted Network Connect (EAP-TNC) -#CONFIG_EAP_TNC=y - -# PKCS#12 (PFX) support (used to read private key and certificate file from -# a file that usually has extension .p12 or .pfx) -CONFIG_PKCS12=y - -# RADIUS authentication server. This provides access to the integrated EAP -# server from external hosts using RADIUS. -CONFIG_RADIUS_SERVER=y - -# Build IPv6 support for RADIUS operations -CONFIG_IPV6=y - -# IEEE Std 802.11r-2008 (Fast BSS Transition) -#CONFIG_IEEE80211R=y - -# Use the hostapd's IEEE 802.11 authentication (ACL), but without -# the IEEE 802.11 Management capability (e.g., madwifi or FreeBSD/net80211) -CONFIG_DRIVER_RADIUS_ACL=y - -# IEEE 802.11n (High Throughput) support -CONFIG_IEEE80211N=y - -# Remove debugging code that is printing out debug messages to stdout. -# This can be used to reduce the size of the hostapd considerably if debugging -# code is not needed. -#CONFIG_NO_STDOUT_DEBUG=y diff --git a/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon-0.7.3/init b/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon-0.7.3/init deleted file mode 100644 index 79f74b6..0000000 --- a/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon-0.7.3/init +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -DAEMON=/usr/sbin/hostapd -NAME=hostapd -DESC="HOSTAP Daemon" -ARGS="/etc/hostapd.conf -B" - -test -f $DAEMON || exit 0 - -set -e - -case "$1" in - start) - echo -n "Starting $DESC: " - start-stop-daemon -S -x $DAEMON -- $ARGS - echo "$NAME." - ;; - stop) - echo -n "Stopping $DESC: " - start-stop-daemon -K -x $DAEMON - echo "$NAME." - ;; - restart) - $0 stop - $0 start - ;; - reload) - echo -n "Reloading $DESC: " - killall -HUP $(basename ${DAEMON}) - echo "$NAME." - ;; - *) - echo "Usage: $0 {start|stop|restart|reload}" - exit 1 - ;; -esac - -exit 0 diff --git a/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon-0.7.inc b/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon-0.7.inc deleted file mode 100644 index 0eb678a..0000000 --- a/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon-0.7.inc +++ /dev/null @@ -1,25 +0,0 @@ -HOMEPAGE = "http://hostap.epitest.fi" -SECTION = "kernel/userland" -PRIORITY = "optional" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://${WORKDIR}/hostapd-0.7.3/COPYING;md5=c54ce9345727175ff66d17b67ff51f58" -DEPENDS = "libnl openssl" - -inherit update-rc.d -INITSCRIPT_NAME="hostapd" - -do_configure() { - install -m 0644 ${WORKDIR}/defconfig ${S}/.config -} - -do_compile() { - make -} - -do_install() { - install -d ${D}${sbindir} ${D}${sysconfdir}/init.d - install -m 0755 ${S}/hostapd ${D}${sbindir} - install -m 0755 ${S}/hostapd_cli ${D}${sbindir} - install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hostapd -} - diff --git a/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon_0.7.3.bb b/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon_0.7.3.bb deleted file mode 100644 index 99297a9..0000000 --- a/meta-openvuplus/recipes-connectivity/hostap/hostap-daemon_0.7.3.bb +++ /dev/null @@ -1,17 +0,0 @@ -DESCRIPTION = "User space daemon for extended IEEE 802.11 management" - -require hostap-daemon-0.7.inc - -PR = "r4" - -DEFAULT_PREFERENCE = "-1" - -SRC_URI = "http://hostap.epitest.fi/releases/hostapd-${PV}.tar.gz \ - file://defconfig \ - file://init" -SRC_URI[md5sum] = "91a7c8d0f090b7104152d3455a84c112" -SRC_URI[sha256sum] = "31eb2781f37e1a4c27969d1594f8019c0ca87779349c099ab812833289961567" - -S = "${WORKDIR}/hostapd-${PV}/hostapd" - - diff --git a/meta-openvuplus/recipes-connectivity/hostapd/hostapd_2.%.bbappend b/meta-openvuplus/recipes-connectivity/hostapd/hostapd_2.%.bbappend new file mode 100644 index 0000000..b20dda0 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/hostapd/hostapd_2.%.bbappend @@ -0,0 +1,9 @@ +PR .= "-vuplus0" + +do_install() { + install -d ${D}${sbindir} ${D}${sysconfdir}/init.d + install -m 0755 ${S}/hostapd ${D}${sbindir} + install -m 0755 ${S}/hostapd_cli ${D}${sbindir} + install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hostapd +} + diff --git a/meta-openvuplus/recipes-connectivity/libmicrohttpd/libmicrohttpd_0.4.6.bb b/meta-openvuplus/recipes-connectivity/libmicrohttpd/libmicrohttpd_0.4.6.bb new file mode 100644 index 0000000..0fb9b4e --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/libmicrohttpd/libmicrohttpd_0.4.6.bb @@ -0,0 +1,15 @@ +DESCRIPTION = "GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application." +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=9331186f4f80db7da0e724bdd6554ee5" + +DEPENDS = "libgcrypt curl" + +SRC_URI = "ftp://ftp.nluug.nl/pub/gnu/libmicrohttpd//libmicrohttpd-${PV}.tar.gz" +SRC_URI[md5sum] = "61698da6aa04744ea076c327f66fc05a" +SRC_URI[sha256sum] = "0cb09e26678d1531a4fd40a748abff5142bfdad3ae11cfe3bb7ad7317a99e371" + +inherit autotools lib_package + +do_compile_append() { + sed -i s:-L${STAGING_LIBDIR}::g libmicrohttpd.pc +} diff --git a/meta-openvuplus/recipes-connectivity/minidlna/minidlna_cvs.bb b/meta-openvuplus/recipes-connectivity/minidlna/minidlna_cvs.bb index 49f8d86..0c37c33 100644 --- a/meta-openvuplus/recipes-connectivity/minidlna/minidlna_cvs.bb +++ b/meta-openvuplus/recipes-connectivity/minidlna/minidlna_cvs.bb @@ -15,7 +15,11 @@ SRC_URI = "cvs://anonymous@minidlna.cvs.sourceforge.net/cvsroot/minidlna;module= S = "${WORKDIR}/${PN}" -inherit autotools gettext +do_configure_prepend() { + sed -i 's/AM_INIT_AUTOMAKE.*$/AM_INIT_AUTOMAKE([foreign subdir-objects])/' ${S}/configure.ac +} + +inherit autotools-brokensep gettext PACKAGES =+ "${PN}-utils" diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/configure-targets.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/configure-targets.patch deleted file mode 100644 index 2317949..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/configure-targets.patch +++ /dev/null @@ -1,25 +0,0 @@ -Upstream-Status: Inappropriate [embedded specific] - -The number of colons are important :) - -Index: openssl-0.9.8g/Configure -=================================================================== ---- openssl-0.9.8g.orig/Configure 2008-04-12 04:27:22.000000000 +0200 -+++ openssl-0.9.8g/Configure 2008-04-12 04:38:56.000000000 +0200 -@@ -395,6 +395,16 @@ - "linux-alpha-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${no_asm}", - "linux-alpha+bwx-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${no_asm}", - -+ # Linux on ARM -+"linux-elf-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"linux-elf-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"linux-gnueabi-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"linux-gnueabi-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"linux-uclibceabi-arm","$ENV{'CC'}:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"linux-uclibceabi-armeb","$ENV{'CC'}:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+ -+"linux-avr32","$ENV{'CC'}:-DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).", -+ - #### *BSD [do see comment about ${BSDthreads} above!] - "BSD-generic32","gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall::${BSDthreads}:::BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", - "BSD-x86", "gcc:-DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -Wall::${BSDthreads}:::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:dlfcn:bsd-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/ca.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/ca.patch deleted file mode 100644 index aba4d42..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/ca.patch +++ /dev/null @@ -1,22 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8m/apps/CA.pl.in -=================================================================== ---- openssl-0.9.8m.orig/apps/CA.pl.in 2006-04-28 00:28:51.000000000 +0000 -+++ openssl-0.9.8m/apps/CA.pl.in 2010-02-27 00:36:51.000000000 +0000 -@@ -65,6 +65,7 @@ - foreach (@ARGV) { - if ( /^(-\?|-h|-help)$/ ) { - print STDERR "usage: CA -newcert|-newreq|-newreq-nodes|-newca|-sign|-verify\n"; -+ print STDERR "usage: CA -signcert certfile keyfile|-newcert|-newreq|-newca|-sign|-verify\n"; - exit 0; - } elsif (/^-newcert$/) { - # create a certificate -@@ -165,6 +166,7 @@ - } else { - print STDERR "Unknown arg $_\n"; - print STDERR "usage: CA -newcert|-newreq|-newreq-nodes|-newca|-sign|-verify\n"; -+ print STDERR "usage: CA -signcert certfile keyfile|-newcert|-newreq|-newca|-sign|-verify\n"; - exit 1; - } - } diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/config-hurd.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/config-hurd.patch deleted file mode 100644 index 2359d15..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/config-hurd.patch +++ /dev/null @@ -1,17 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/config -=================================================================== ---- openssl-0.9.8k.orig/config 2009-02-16 09:43:41.000000000 +0100 -+++ openssl-0.9.8k/config 2009-07-19 11:32:41.000000000 +0200 -@@ -162,8 +162,8 @@ - echo "${MACHINE}-whatever-linux1"; exit 0 - ;; - -- GNU*) -- echo "hurd-x86"; exit 0; -+ GNU:*|GNU/*:*) -+ echo "${MACHINE}-gnuish"; exit 0; - ;; - - LynxOS:*) diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/debian-targets.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/debian-targets.patch deleted file mode 100644 index 5720988..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/debian-targets.patch +++ /dev/null @@ -1,56 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/Configure -=================================================================== ---- openssl-0.9.8k.orig/Configure 2009-12-09 16:09:41.000000000 +0000 -+++ openssl-0.9.8k/Configure 2009-12-09 16:09:55.000000000 +0000 -@@ -320,6 +320,49 @@ - "osf1-alpha-cc", "cc:-std1 -tune host -O4 -readonly_strings::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${no_asm}:dlfcn:alpha-osf1-shared:::.so", - "tru64-alpha-cc", "cc:-std1 -tune host -fast -readonly_strings::-pthread:::SIXTY_FOUR_BIT_LONG RC4_CHUNK:${no_asm}:dlfcn:alpha-osf1-shared::-msym:.so", - -+# Debian GNU/* (various architectures) -+"debian-alpha","gcc:-DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-alpha-ev4","gcc:-DTERMIO -O3 -Wa,--noexecstack -mcpu=ev4 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-alpha-ev5","gcc:-DTERMIO -O3 -Wa,--noexecstack -mcpu=ev5 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-arm","gcc:-DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-armeb","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-armel","gcc:-DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+#"debian-amd64","gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-amd64", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm_linux}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-avr32", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG_BF_PTR::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-kfreebsd-amd64","gcc:-m64 -DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK BF_PTR2 DES_INT DES_UNROLL:${x86_64_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+#"debian-freebsd-alpha","gcc:-DTERMIOS -O -Wa,--noexecstack -fomit-frame-pointer::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC2::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-kfreebsd-i386","gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -march=i486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-hppa","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-hurd-i386","gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -mtune=i486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-ia64","gcc:-DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+#"debian-i386","gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -fomit-frame-pointer -m486 -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::dlfcn:linux-shared:-fPIC", -+"debian-i386","gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-i386-i486","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i486 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-i386-i586","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i586 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-i386-i686/cmov","gcc:-DL_ENDIAN -DTERMIO -O3 -march=i686 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-m68k","gcc:-DB_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG MD2_CHAR RC4_INDEX::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-mips", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-mipsel", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL DES_RISC2::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-netbsd-i386", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486 -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-netbsd-m68k", "gcc:-DB_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-netbsd-sparc", "gcc:-DB_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -mv8 -Wall::(unknown):::BN_LLONG MD2_CHAR RC4_INDEX DES_UNROLL::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-openbsd-alpha","gcc:-DTERMIOS -O3 -Wa,--noexecstack -g::(unknown):::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-openbsd-i386", "gcc:-DL_ENDIAN -DTERMIOS -O3 -Wa,--noexecstack -g -m486::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-openbsd-mips","gcc:-O2 -Wa,--noexecstack -g -DL_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC2 DES_PTR BF_PTR:::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-powerpc","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_UNROLL DES_RISC2 DES_PTR MD2_CHAR RC4_INDEX::linux_ppc32.o::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-ppc64","gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::linux_ppc64.o::::::::::dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-s390","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-sh3", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-sh4", "gcc:-DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-sh3eb", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-sh4eb", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-m32r","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-sparc","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-sparc-v8","gcc:-DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -mcpu=v8 -g -Wall -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8.o:des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-sparc-v9","gcc:-DB_ENDIAN -DTERMIO -O3 -mcpu=v9 -Wa,--noexecstack -Wa,-Av8plus -g -Wall -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::sparcv8plus.o:des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-sparc64","gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall -DULTRASPARC -DBN_DIV2W::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR:::des_enc-sparc.o fcrypt_b.o:::::::::dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+ - #### - #### Variety of LINUX:-) - #### diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/engines-path.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/engines-path.patch deleted file mode 100644 index 5b4c7d5..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/engines-path.patch +++ /dev/null @@ -1,49 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8m/Makefile.org -=================================================================== ---- openssl-0.9.8m.orig/Makefile.org 2010-01-27 16:06:36.000000000 +0000 -+++ openssl-0.9.8m/Makefile.org 2010-02-27 00:43:04.000000000 +0000 -@@ -620,7 +620,7 @@ - install_sw: - @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \ - $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \ -- $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines \ -+ $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines \ - $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig \ - $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \ - $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \ -Index: openssl-0.9.8m/engines/Makefile -=================================================================== ---- openssl-0.9.8m.orig/engines/Makefile 2009-11-10 01:53:02.000000000 +0000 -+++ openssl-0.9.8m/engines/Makefile 2010-02-27 00:45:03.000000000 +0000 -@@ -101,13 +101,13 @@ - *DSO_DL*) sfx="sl";; \ - *) sfx="bad";; \ - esac; \ -- cp lib$$l.$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new; \ -+ cp lib$$l.$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/lib$$l.$$sfx.new; \ - else \ - sfx="so"; \ - cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new; \ - fi; \ -- chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new; \ -- mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx ); \ -+ chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/lib$$l.$$sfx.new; \ -+ mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx ); \ - done; \ - fi - -Index: openssl-0.9.8m/Configure -=================================================================== ---- openssl-0.9.8m.orig/Configure 2010-02-27 00:40:42.000000000 +0000 -+++ openssl-0.9.8m/Configure 2010-02-27 00:46:47.000000000 +0000 -@@ -1738,7 +1738,7 @@ - # $foo is to become "$prefix/lib$multilib/engines"; - # as Makefile.org and engines/Makefile are adapted for - # $multilib suffix. -- my $foo = "$prefix/lib/engines"; -+ my $foo = "$prefix/lib/ssl/engines"; - $foo =~ s/\\/\\\\/g; - print OUT "#define ENGINESDIR \"$foo\"\n"; - } diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/kfreebsd-pipe.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/kfreebsd-pipe.patch deleted file mode 100644 index b0312f3..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/kfreebsd-pipe.patch +++ /dev/null @@ -1,15 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/crypto/perlasm/x86_64-xlate.pl -=================================================================== ---- openssl-0.9.8k.orig/crypto/perlasm/x86_64-xlate.pl 2008-02-13 21:01:48.000000000 +0100 -+++ openssl-0.9.8k/crypto/perlasm/x86_64-xlate.pl 2009-07-19 11:37:23.000000000 +0200 -@@ -62,7 +62,7 @@ - my ($outdev,$outino,@junk)=stat($output); - - open STDOUT,">$output" || die "can't open $output: $!" -- if ($stddev!=$outdev || $stdino!=$outino); -+# if ($stddev!=$outdev || $stdino!=$outino); - } - - my $masmref=8 + 50727*2**-32; # 8.00.50727 shipped with VS2005 diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/make-targets.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/make-targets.patch deleted file mode 100644 index 91207d8..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/make-targets.patch +++ /dev/null @@ -1,15 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/Makefile.org -=================================================================== ---- openssl-0.9.8k.orig/Makefile.org 2009-07-19 11:32:41.000000000 +0200 -+++ openssl-0.9.8k/Makefile.org 2009-07-19 11:37:31.000000000 +0200 -@@ -131,7 +131,7 @@ - - BASEADDR= - --DIRS= crypto fips ssl engines apps test tools -+DIRS= crypto fips ssl engines apps tools - SHLIBDIRS= crypto ssl fips - - # dirs in crypto to build diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/man-dir.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/man-dir.patch deleted file mode 100644 index 358f8cd..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/man-dir.patch +++ /dev/null @@ -1,15 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/Makefile.org -=================================================================== ---- openssl-0.9.8k.orig/Makefile.org 2009-07-19 11:32:41.000000000 +0200 -+++ openssl-0.9.8k/Makefile.org 2009-07-19 11:37:29.000000000 +0200 -@@ -152,7 +152,7 @@ - - MAKEFILE= Makefile - --MANDIR=$(OPENSSLDIR)/man -+MANDIR=/usr/share/man - MAN1=1 - MAN3=3 - MANSUFFIX= diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/man-section.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/man-section.patch deleted file mode 100644 index b74b12e..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/man-section.patch +++ /dev/null @@ -1,34 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/Makefile.org -=================================================================== ---- openssl-0.9.8k.orig/Makefile.org 2009-07-19 11:34:06.000000000 +0200 -+++ openssl-0.9.8k/Makefile.org 2009-07-19 11:37:21.000000000 +0200 -@@ -155,7 +155,8 @@ - MANDIR=/usr/share/man - MAN1=1 - MAN3=3 --MANSUFFIX= -+MANSUFFIX=ssl -+MANSECTION=SSL - SHELL=/bin/sh - - TOP= . -@@ -694,7 +695,7 @@ - echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \ - (cd `$(PERL) util/dirname.pl $$i`; \ - sh -c "$$pod2man \ -- --section=$$sec --center=OpenSSL \ -+ --section=$${sec}$(MANSECTION) --center=OpenSSL \ - --release=$(VERSION) `basename $$i`") \ - > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \ - $(PERL) util/extract-names.pl < $$i | \ -@@ -711,7 +712,7 @@ - echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \ - (cd `$(PERL) util/dirname.pl $$i`; \ - sh -c "$$pod2man \ -- --section=$$sec --center=OpenSSL \ -+ --section=$${sec}$(MANSECTION) --center=OpenSSL \ - --release=$(VERSION) `basename $$i`") \ - > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \ - $(PERL) util/extract-names.pl < $$i | \ diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/no-rpath.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/no-rpath.patch deleted file mode 100644 index 53b7614..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/no-rpath.patch +++ /dev/null @@ -1,15 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/Makefile.shared -=================================================================== ---- openssl-0.9.8k.orig/Makefile.shared 2008-09-17 17:56:40.000000000 +0200 -+++ openssl-0.9.8k/Makefile.shared 2009-07-19 11:37:25.000000000 +0200 -@@ -151,7 +151,7 @@ - NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \ - SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" - --DO_GNU_APP=LDFLAGS="$(CFLAGS) -Wl,-rpath,$(LIBRPATH)" -+DO_GNU_APP=LDFLAGS="$(CFLAGS)" - - #This is rather special. It's a special target with which one can link - #applications without bothering with any features that have anything to diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/no-symbolic.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/no-symbolic.patch deleted file mode 100644 index 87eadac..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/no-symbolic.patch +++ /dev/null @@ -1,15 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/Makefile.shared -=================================================================== ---- openssl-0.9.8k.orig/Makefile.shared 2009-07-19 11:35:02.000000000 +0200 -+++ openssl-0.9.8k/Makefile.shared 2009-07-19 11:35:48.000000000 +0200 -@@ -149,7 +149,7 @@ - SHLIB_SUFFIX=; \ - ALLSYMSFLAGS='-Wl,--whole-archive'; \ - NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \ -- SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" -+ SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" - - DO_GNU_APP=LDFLAGS="$(CFLAGS)" - diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/perl-path.diff b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/perl-path.diff deleted file mode 100644 index ced45a3..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/perl-path.diff +++ /dev/null @@ -1,762 +0,0 @@ -Upstream-Status: Backport [debian] - -From: Kurt Roeckx -Subject: Change the perl path's to /usr/bin/perl - -This is the result of running: -perl util/perlpath.pl /usr/bin - -The upstream sources have this set to various different paths. - ---- openssl-0.9.8m.orig/Configure -+++ openssl-0.9.8m/Configure -@@ -1,4 +1,4 @@ --: -+#!/usr/bin/perl - eval 'exec perl -S $0 ${1+"$@"}' - if $running_under_some_shell; - ## ---- openssl-0.9.8m.orig/VMS/VMSify-conf.pl -+++ openssl-0.9.8m/VMS/VMSify-conf.pl -@@ -1,4 +1,4 @@ --#! /usr/bin/perl -+#!/usr/bin/perl - - use strict; - use warnings; ---- openssl-0.9.8m.orig/Netware/do_tests.pl -+++ openssl-0.9.8m/Netware/do_tests.pl -@@ -1,4 +1,4 @@ --# perl script to run OpenSSL tests -+#!/usr/bin/perl - - - my $base_path = "\\openssl"; ---- openssl-0.9.8m.orig/apps/progs.pl -+++ openssl-0.9.8m/apps/progs.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - print "/* apps/progs.h */\n"; - print "/* automatically generated by progs.pl for openssl.c */\n\n"; ---- openssl-0.9.8m.orig/os2/backwardify.pl -+++ openssl-0.9.8m/os2/backwardify.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/perl -w -+#!/usr/bin/perl - use strict; - - # Use as $0 ---- openssl-0.9.8m.orig/times/091/mips-rel.pl -+++ openssl-0.9.8m/times/091/mips-rel.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - &doit(100,"Pentium 100 32",0.0195,0.1000,0.6406,4.6100); # pentium-100 - &doit(200,"PPro 200 32",0.0070,0.0340,0.2087,1.4700); # pentium-100 ---- openssl-0.9.8m.orig/fips/mkfipsscr.pl -+++ openssl-0.9.8m/fips/mkfipsscr.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -w -+#!/usr/bin/perl - # Quick & dirty utility to generate a script for executing the - # FIPS 140-2 CMVP algorithm tests based on the pathnames of - # input algorithm test files actually present (the unqualified ---- openssl-0.9.8m.orig/fips/fipsalgtest.pl -+++ openssl-0.9.8m/fips/fipsalgtest.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/perl -w -+#!/usr/bin/perl - # Perl utility to run or verify FIPS 140-2 CMVP algorithm tests based on the - # pathnames of input algorithm test files actually present (the unqualified - # file names are consistent but the pathnames are not). ---- openssl-0.9.8m.orig/ms/uplink.pl -+++ openssl-0.9.8m/ms/uplink.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - # - # For Microsoft CL this is implemented as inline assembler. So that - # even though this script can generate even Win32 code, we'll be ---- openssl-0.9.8m.orig/ms/segrenam.pl -+++ openssl-0.9.8m/ms/segrenam.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - - my $quiet = 1; - ---- openssl-0.9.8m.orig/ms/cmp.pl -+++ openssl-0.9.8m/ms/cmp.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - ($#ARGV == 1) || die "usage: cmp.pl \n"; - ---- openssl-0.9.8m.orig/test/cms-test.pl -+++ openssl-0.9.8m/test/cms-test.pl -@@ -1,4 +1,4 @@ --# test/cms-test.pl -+#!/usr/bin/perl - # Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL - # project. - # ---- openssl-0.9.8m.orig/test/cms-examples.pl -+++ openssl-0.9.8m/test/cms-examples.pl -@@ -1,4 +1,4 @@ --# test/cms-examples.pl -+#!/usr/bin/perl - # Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL - # project. - # ---- openssl-0.9.8m.orig/demos/b64.pl -+++ openssl-0.9.8m/demos/b64.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - # - # Make PEM encoded data have lines of 64 bytes of data ---- openssl-0.9.8m.orig/demos/tunala/configure.in -+++ openssl-0.9.8m/demos/tunala/configure.in -@@ -1,4 +1,4 @@ --dnl Process this file with autoconf to produce a configure script. -+#!/usr/bin/perl - AC_INIT(tunala.c) - AM_CONFIG_HEADER(config.h) - AM_INIT_AUTOMAKE(tunala, 0.0.1-dev) ---- openssl-0.9.8m.orig/crypto/x86cpuid.pl -+++ openssl-0.9.8m/crypto/x86cpuid.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - - push(@INC,"perlasm"); - require "x86asm.pl"; ---- openssl-0.9.8m.orig/crypto/x86_64cpuid.pl -+++ openssl-0.9.8m/crypto/x86_64cpuid.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - - $output=shift; - $masm=1 if ($output =~ /\.asm/); ---- openssl-0.9.8m.orig/crypto/md5/asm/md5-586.pl -+++ openssl-0.9.8m/crypto/md5/asm/md5-586.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - # Normal is the - # md5_block_x86(MD5_CTX *c, ULONG *X); ---- openssl-0.9.8m.orig/crypto/md5/asm/md5-x86_64.pl -+++ openssl-0.9.8m/crypto/md5/asm/md5-x86_64.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/perl -w -+#!/usr/bin/perl - # - # MD5 optimized for AMD64. - # ---- openssl-0.9.8m.orig/crypto/sha/asm/sha1-ia64.pl -+++ openssl-0.9.8m/crypto/sha/asm/sha1-ia64.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - # - # ==================================================================== - # Written by Andy Polyakov for the OpenSSL ---- openssl-0.9.8m.orig/crypto/sha/asm/sha1-x86_64.pl -+++ openssl-0.9.8m/crypto/sha/asm/sha1-x86_64.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - # - # ==================================================================== - # Written by Andy Polyakov for the OpenSSL ---- openssl-0.9.8m.orig/crypto/sha/asm/sha512-sse2.pl -+++ openssl-0.9.8m/crypto/sha/asm/sha512-sse2.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - # - # ==================================================================== - # Written by Andy Polyakov for the OpenSSL ---- openssl-0.9.8m.orig/crypto/sha/asm/sha512-ia64.pl -+++ openssl-0.9.8m/crypto/sha/asm/sha512-ia64.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - # - # ==================================================================== - # Written by Andy Polyakov for the OpenSSL ---- openssl-0.9.8m.orig/crypto/sha/asm/sha512-x86_64.pl -+++ openssl-0.9.8m/crypto/sha/asm/sha512-x86_64.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - # - # ==================================================================== - # Written by Andy Polyakov for the OpenSSL ---- openssl-0.9.8m.orig/crypto/sha/asm/sha1-586.pl -+++ openssl-0.9.8m/crypto/sha/asm/sha1-586.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - - # ==================================================================== - # [Re]written by Andy Polyakov for the OpenSSL ---- openssl-0.9.8m.orig/crypto/des/asm/des-586.pl -+++ openssl-0.9.8m/crypto/des/asm/des-586.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # The inner loop instruction sequence and the IP/FP modifications are from - # Svend Olaf Mikkelsen ---- openssl-0.9.8m.orig/crypto/des/asm/desboth.pl -+++ openssl-0.9.8m/crypto/des/asm/desboth.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - $L="edi"; - $R="esi"; ---- openssl-0.9.8m.orig/crypto/des/asm/des686.pl -+++ openssl-0.9.8m/crypto/des/asm/des686.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - $prog="des686.pl"; - ---- openssl-0.9.8m.orig/crypto/des/asm/crypt586.pl -+++ openssl-0.9.8m/crypto/des/asm/crypt586.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # The inner loop instruction sequence and the IP/FP modifications are from - # Svend Olaf Mikkelsen ---- openssl-0.9.8m.orig/crypto/lhash/num.pl -+++ openssl-0.9.8m/crypto/lhash/num.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - #node 10 -> 4 - ---- openssl-0.9.8m.orig/crypto/ripemd/asm/rmd-586.pl -+++ openssl-0.9.8m/crypto/ripemd/asm/rmd-586.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - # Normal is the - # ripemd160_block_asm_data_order(RIPEMD160_CTX *c, ULONG *X,int blocks); ---- openssl-0.9.8m.orig/crypto/rc4/asm/rc4-586.pl -+++ openssl-0.9.8m/crypto/rc4/asm/rc4-586.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - # At some point it became apparent that the original SSLeay RC4 - # assembler implementation performs suboptimaly on latest IA-32 ---- openssl-0.9.8m.orig/crypto/rc4/asm/rc4-x86_64.pl -+++ openssl-0.9.8m/crypto/rc4/asm/rc4-x86_64.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - # - # ==================================================================== - # Written by Andy Polyakov for the OpenSSL ---- openssl-0.9.8m.orig/crypto/cast/asm/cast-586.pl -+++ openssl-0.9.8m/crypto/cast/asm/cast-586.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - # define for pentium pro friendly version - $ppro=1; ---- openssl-0.9.8m.orig/crypto/rc5/asm/rc5-586.pl -+++ openssl-0.9.8m/crypto/rc5/asm/rc5-586.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - push(@INC,"perlasm","../../perlasm"); - require "x86asm.pl"; ---- openssl-0.9.8m.orig/crypto/perlasm/x86ms.pl -+++ openssl-0.9.8m/crypto/perlasm/x86ms.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - package x86ms; - ---- openssl-0.9.8m.orig/crypto/perlasm/x86asm.pl -+++ openssl-0.9.8m/crypto/perlasm/x86asm.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - # require 'x86asm.pl'; - # &asm_init("cpp","des-586.pl"); ---- openssl-0.9.8m.orig/crypto/perlasm/x86nasm.pl -+++ openssl-0.9.8m/crypto/perlasm/x86nasm.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - package x86nasm; - ---- openssl-0.9.8m.orig/crypto/perlasm/x86unix.pl -+++ openssl-0.9.8m/crypto/perlasm/x86unix.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - package x86unix; # GAS actually... - ---- openssl-0.9.8m.orig/crypto/perlasm/cbc.pl -+++ openssl-0.9.8m/crypto/perlasm/cbc.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - # void des_ncbc_encrypt(input, output, length, schedule, ivec, enc) - # des_cblock (*input); ---- openssl-0.9.8m.orig/crypto/perlasm/x86_64-xlate.pl -+++ openssl-0.9.8m/crypto/perlasm/x86_64-xlate.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - - # Ascetic x86_64 AT&T to MASM assembler translator by . - # ---- openssl-0.9.8m.orig/crypto/bf/asm/bf-686.pl -+++ openssl-0.9.8m/crypto/bf/asm/bf-686.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - push(@INC,"perlasm","../../perlasm"); - require "x86asm.pl"; ---- openssl-0.9.8m.orig/crypto/bf/asm/bf-586.pl -+++ openssl-0.9.8m/crypto/bf/asm/bf-586.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - push(@INC,"perlasm","../../perlasm"); - require "x86asm.pl"; ---- openssl-0.9.8m.orig/crypto/objects/objects.pl -+++ openssl-0.9.8m/crypto/objects/objects.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - open (NUMIN,"$ARGV[1]") || die "Can't open number file $ARGV[1]"; - $max_nid=0; ---- openssl-0.9.8m.orig/crypto/objects/obj_dat.pl -+++ openssl-0.9.8m/crypto/objects/obj_dat.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - # fixes bug in floating point emulation on sparc64 when - # this script produces off-by-one output on sparc64 ---- openssl-0.9.8m.orig/crypto/conf/keysets.pl -+++ openssl-0.9.8m/crypto/conf/keysets.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - $NUMBER=0x01; - $UPPER=0x02; ---- openssl-0.9.8m.orig/crypto/bn/bn_prime.pl -+++ openssl-0.9.8m/crypto/bn/bn_prime.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # bn_prime.pl - - $num=2048; ---- openssl-0.9.8m.orig/crypto/bn/asm/x86.pl -+++ openssl-0.9.8m/crypto/bn/asm/x86.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - push(@INC,"perlasm","../../perlasm"); - require "x86asm.pl"; ---- openssl-0.9.8m.orig/crypto/bn/asm/ppc.pl -+++ openssl-0.9.8m/crypto/bn/asm/ppc.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - # - # Implemented as a Perl wrapper as we want to support several different - # architectures with single file. We pick up the target based on the ---- openssl-0.9.8m.orig/crypto/bn/asm/co-586.pl -+++ openssl-0.9.8m/crypto/bn/asm/co-586.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - push(@INC,"perlasm","../../perlasm"); - require "x86asm.pl"; ---- openssl-0.9.8m.orig/crypto/bn/asm/bn-586.pl -+++ openssl-0.9.8m/crypto/bn/asm/bn-586.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - push(@INC,"perlasm","../../perlasm"); - require "x86asm.pl"; ---- openssl-0.9.8m.orig/crypto/bn/asm/mo-586.pl -+++ openssl-0.9.8m/crypto/bn/asm/mo-586.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - - # This is crypto/bn/asm/x86-mont.pl (with asciz from crypto/perlasm/x86asm.pl) - # from OpenSSL 0.9.9-dev ---- openssl-0.9.8m.orig/crypto/bn/asm/x86_64-mont.pl -+++ openssl-0.9.8m/crypto/bn/asm/x86_64-mont.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - - # ==================================================================== - # Written by Andy Polyakov for the OpenSSL ---- openssl-0.9.8m.orig/crypto/bn/asm/x86/comba.pl -+++ openssl-0.9.8m/crypto/bn/asm/x86/comba.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # x86 assember - - sub mul_add_c ---- openssl-0.9.8m.orig/crypto/bn/asm/x86/add.pl -+++ openssl-0.9.8m/crypto/bn/asm/x86/add.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # x86 assember - - sub bn_add_words ---- openssl-0.9.8m.orig/crypto/bn/asm/x86/mul.pl -+++ openssl-0.9.8m/crypto/bn/asm/x86/mul.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # x86 assember - - sub bn_mul_words ---- openssl-0.9.8m.orig/crypto/bn/asm/x86/mul_add.pl -+++ openssl-0.9.8m/crypto/bn/asm/x86/mul_add.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # x86 assember - - sub bn_mul_add_words ---- openssl-0.9.8m.orig/crypto/bn/asm/x86/sqr.pl -+++ openssl-0.9.8m/crypto/bn/asm/x86/sqr.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # x86 assember - - sub bn_sqr_words ---- openssl-0.9.8m.orig/crypto/bn/asm/x86/sub.pl -+++ openssl-0.9.8m/crypto/bn/asm/x86/sub.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # x86 assember - - sub bn_sub_words ---- openssl-0.9.8m.orig/crypto/bn/asm/x86/div.pl -+++ openssl-0.9.8m/crypto/bn/asm/x86/div.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # x86 assember - - sub bn_div_words ---- openssl-0.9.8m.orig/crypto/aes/asm/aes-586.pl -+++ openssl-0.9.8m/crypto/aes/asm/aes-586.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - # - # ==================================================================== - # Written by Andy Polyakov for the OpenSSL ---- openssl-0.9.8m.orig/crypto/aes/asm/aes-x86_64.pl -+++ openssl-0.9.8m/crypto/aes/asm/aes-x86_64.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/env perl -+#!/usr/bin/perl - # - # ==================================================================== - # Written by Andy Polyakov for the OpenSSL ---- openssl-0.9.8m.orig/crypto/asn1/charmap.pl -+++ openssl-0.9.8m/crypto/asn1/charmap.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -w -+#!/usr/bin/perl - - use strict; - ---- openssl-0.9.8m.orig/util/mksdef.pl -+++ openssl-0.9.8m/util/mksdef.pl -@@ -1,4 +1,4 @@ -- -+#!/usr/bin/perl - # Perl script to split libeay32.def into two distinct DEF files for use in - # fipdso mode. It works out symbols in each case by running "link" command and - # parsing the output to find the list of missing symbols then splitting ---- openssl-0.9.8m.orig/util/dirname.pl -+++ openssl-0.9.8m/util/dirname.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - if ($#ARGV < 0) { - die "dirname.pl: too few arguments\n"; ---- openssl-0.9.8m.orig/util/tab_num.pl -+++ openssl-0.9.8m/util/tab_num.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - $num=1; - $width=40; ---- openssl-0.9.8m.orig/util/sp-diff.pl -+++ openssl-0.9.8m/util/sp-diff.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # This file takes as input, the files that have been output from - # ssleay speed. ---- openssl-0.9.8m.orig/util/mkerr.pl -+++ openssl-0.9.8m/util/mkerr.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -w -+#!/usr/bin/perl - - my $config = "crypto/err/openssl.ec"; - my $debug = 0; ---- openssl-0.9.8m.orig/util/clean-depend.pl -+++ openssl-0.9.8m/util/clean-depend.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -w -+#!/usr/bin/perl - # Clean the dependency list in a makefile of standard includes... - # Written by Ben Laurie 19 Jan 1999 - ---- openssl-0.9.8m.orig/util/add_cr.pl -+++ openssl-0.9.8m/util/add_cr.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # This adds a copyright message to a souce code file. - # It also gets the file name correct. ---- openssl-0.9.8m.orig/util/pod2man.pl -+++ openssl-0.9.8m/util/pod2man.pl -@@ -1,4 +1,4 @@ --: #!/usr/bin/perl-5.005 -+#!/usr/bin/perl - eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' - if $running_under_some_shell; - ---- openssl-0.9.8m.orig/util/mkstack.pl -+++ openssl-0.9.8m/util/mkstack.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -w -+#!/usr/bin/perl - - # This is a utility that searches out "DECLARE_STACK_OF()" - # declarations in .h and .c files, and updates/creates/replaces ---- openssl-0.9.8m.orig/util/selftest.pl -+++ openssl-0.9.8m/util/selftest.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -w -+#!/usr/bin/perl - # - # Run the test suite and generate a report - # ---- openssl-0.9.8m.orig/util/ck_errf.pl -+++ openssl-0.9.8m/util/ck_errf.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # This is just a quick script to scan for cases where the 'error' - # function name in a XXXerr() macro is wrong. ---- openssl-0.9.8m.orig/util/mklink.pl -+++ openssl-0.9.8m/util/mklink.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - # mklink.pl - ---- openssl-0.9.8m.orig/util/src-dep.pl -+++ openssl-0.9.8m/util/src-dep.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - # we make up an array of - # $file{function_name}=filename; ---- openssl-0.9.8m.orig/util/deleof.pl -+++ openssl-0.9.8m/util/deleof.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - while (<>) - { ---- openssl-0.9.8m.orig/util/arx.pl -+++ openssl-0.9.8m/util/arx.pl -@@ -1,4 +1,4 @@ --#!/bin/perl -+#!/usr/bin/perl - - # Simple perl script to wrap round "ar" program and exclude any - # object files in the environment variable EXCL_OBJ ---- openssl-0.9.8m.orig/util/copy.pl -+++ openssl-0.9.8m/util/copy.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - use Fcntl; - ---- openssl-0.9.8m.orig/util/mkdir-p.pl -+++ openssl-0.9.8m/util/mkdir-p.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - - # mkdir-p.pl - ---- openssl-0.9.8m.orig/util/mkdef.pl -+++ openssl-0.9.8m/util/mkdef.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -w -+#!/usr/bin/perl - # - # generate a .def file - # ---- openssl-0.9.8m.orig/util/files.pl -+++ openssl-0.9.8m/util/files.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # used to generate the file MINFO for use by util/mk1mf.pl - # It is basically a list of all variables from the passed makefile ---- openssl-0.9.8m.orig/util/mkfiles.pl -+++ openssl-0.9.8m/util/mkfiles.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # This is a hacked version of files.pl for systems that can't do a 'make files'. - # Do a perl util/mkminfo.pl >MINFO to build MINFO ---- openssl-0.9.8m.orig/util/perlpath.pl -+++ openssl-0.9.8m/util/perlpath.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # modify the '#!/usr/local/bin/perl' - # line in all scripts that rely on perl. ---- openssl-0.9.8m.orig/util/mk1mf.pl -+++ openssl-0.9.8m/util/mk1mf.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # A bit of an evil hack but it post processes the file ../MINFO which - # is generated by `make files` in the top directory. - # This script outputs one mega makefile that has no shell stuff or any ---- openssl-0.9.8m.orig/util/err-ins.pl -+++ openssl-0.9.8m/util/err-ins.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # tack error codes onto the end of a file - # ---- openssl-0.9.8m.orig/util/pl/Mingw32.pl -+++ openssl-0.9.8m/util/pl/Mingw32.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # Mingw32.pl -- Mingw - # ---- openssl-0.9.8m.orig/util/pl/unix.pl -+++ openssl-0.9.8m/util/pl/unix.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # unix.pl - the standard unix makefile stuff. - # ---- openssl-0.9.8m.orig/util/pl/netware.pl -+++ openssl-0.9.8m/util/pl/netware.pl -@@ -1,4 +1,4 @@ --# Metrowerks Codewarrior or gcc / nlmconv for NetWare -+#!/usr/bin/perl - # - - $version_header = "crypto/opensslv.h"; ---- openssl-0.9.8m.orig/util/pl/VC-32.pl -+++ openssl-0.9.8m/util/pl/VC-32.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # VC-32.pl - unified script for Microsoft Visual C++, covering Win32, - # Win64 and WinCE [follow $FLAVOR variable to trace the differences]. - # ---- openssl-0.9.8m.orig/util/pl/OS2-EMX.pl -+++ openssl-0.9.8m/util/pl/OS2-EMX.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # OS2-EMX.pl - for EMX GCC on OS/2 - # ---- openssl-0.9.8m.orig/util/pl/ultrix.pl -+++ openssl-0.9.8m/util/pl/ultrix.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # linux.pl - the standard unix makefile stuff. - # ---- openssl-0.9.8m.orig/util/pl/linux.pl -+++ openssl-0.9.8m/util/pl/linux.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # - # linux.pl - the standard unix makefile stuff. - # ---- openssl-0.9.8m.orig/util/pl/BC-32.pl -+++ openssl-0.9.8m/util/pl/BC-32.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # Borland C++ builder 3 and 4 -- Janez Jere - # - diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/pic.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/pic.patch deleted file mode 100644 index 5fc8f65..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/pic.patch +++ /dev/null @@ -1,303 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8o/crypto/Makefile -=================================================================== ---- openssl-0.9.8o.orig/crypto/Makefile 2008-09-17 17:10:55.000000000 +0000 -+++ openssl-0.9.8o/crypto/Makefile 2010-06-06 13:09:28.000000000 +0000 -@@ -57,7 +57,7 @@ - echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \ - echo '#endif' ) >buildinf.h - --x86cpuid-elf.s: x86cpuid.pl perlasm/x86asm.pl -+x86cpuid-elf.S: x86cpuid.pl perlasm/x86asm.pl - $(PERL) x86cpuid.pl elf $(CFLAGS) $(PROCESSOR) > $@ - x86cpuid-cof.s: x86cpuid.pl perlasm/x86asm.pl - $(PERL) x86cpuid.pl coff $(CFLAGS) $(PROCESSOR) > $@ -@@ -70,7 +70,7 @@ - uplink-cof.s: ../ms/uplink.pl - $(PERL) ../ms/uplink.pl coff > $@ - --x86_64cpuid.s: x86_64cpuid.pl -+x86_64cpuid.S: x86_64cpuid.pl - $(PERL) x86_64cpuid.pl $@ - ia64cpuid.s: ia64cpuid.S - $(CC) $(CFLAGS) -E ia64cpuid.S > $@ -Index: openssl-0.9.8o/crypto/x86_64cpuid.pl -=================================================================== ---- openssl-0.9.8o.orig/crypto/x86_64cpuid.pl 2007-11-11 16:25:00.000000000 +0000 -+++ openssl-0.9.8o/crypto/x86_64cpuid.pl 2010-06-06 13:09:28.000000000 +0000 -@@ -95,7 +95,11 @@ - .size OPENSSL_wipe_cpu,.-OPENSSL_wipe_cpu - - .section .init -+#ifdef OPENSSL_PIC -+ call OPENSSL_cpuid_setup\@PLT -+#else - call OPENSSL_cpuid_setup -+#endif - - ___ - -Index: openssl-0.9.8o/crypto/md5/Makefile -=================================================================== ---- openssl-0.9.8o.orig/crypto/md5/Makefile 2008-09-17 17:11:02.000000000 +0000 -+++ openssl-0.9.8o/crypto/md5/Makefile 2010-06-06 13:09:28.000000000 +0000 -@@ -52,7 +52,8 @@ - mx86-out.s: asm/md5-586.pl ../perlasm/x86asm.pl - (cd asm; $(PERL) md5-586.pl a.out $(CFLAGS) > ../$@) - --md5-x86_64.s: asm/md5-x86_64.pl; $(PERL) asm/md5-x86_64.pl $@ -+md5-x86_64.s: asm/md5-x86_64.pl -+ $(PERL) asm/md5-x86_64.pl $@ - - files: - $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO -Index: openssl-0.9.8o/crypto/des/asm/desboth.pl -=================================================================== ---- openssl-0.9.8o.orig/crypto/des/asm/desboth.pl 2001-10-24 21:20:56.000000000 +0000 -+++ openssl-0.9.8o/crypto/des/asm/desboth.pl 2010-06-06 13:09:28.000000000 +0000 -@@ -16,6 +16,11 @@ - - &push("edi"); - -+ &call (&label("pic_point0")); -+ &set_label("pic_point0"); -+ &blindpop("ebp"); -+ &add ("ebp", "\$_GLOBAL_OFFSET_TABLE_+[.-" . &label("pic_point0") . "]"); -+ - &comment(""); - &comment("Load the data words"); - &mov($L,&DWP(0,"ebx","",0)); -@@ -47,15 +52,21 @@ - &mov(&swtmp(2), (DWC(($enc)?"1":"0"))); - &mov(&swtmp(1), "eax"); - &mov(&swtmp(0), "ebx"); -- &call("DES_encrypt2"); -+ &exch("ebx", "ebp"); -+ &call("DES_encrypt2\@PLT"); -+ &exch("ebx", "ebp"); - &mov(&swtmp(2), (DWC(($enc)?"0":"1"))); - &mov(&swtmp(1), "edi"); - &mov(&swtmp(0), "ebx"); -- &call("DES_encrypt2"); -+ &exch("ebx", "ebp"); -+ &call("DES_encrypt2\@PLT"); -+ &exch("ebx", "ebp"); - &mov(&swtmp(2), (DWC(($enc)?"1":"0"))); - &mov(&swtmp(1), "esi"); - &mov(&swtmp(0), "ebx"); -- &call("DES_encrypt2"); -+ &exch("ebx", "ebp"); -+ &call("DES_encrypt2\@PLT"); -+ &exch("ebx", "ebp"); - - &stack_pop(3); - &mov($L,&DWP(0,"ebx","",0)); -Index: openssl-0.9.8o/crypto/rc4/Makefile -=================================================================== ---- openssl-0.9.8o.orig/crypto/rc4/Makefile 2008-11-19 16:03:50.000000000 +0000 -+++ openssl-0.9.8o/crypto/rc4/Makefile 2010-06-06 13:09:28.000000000 +0000 -@@ -51,7 +51,7 @@ - rx86-out.s: asm/rc4-586.pl ../perlasm/x86asm.pl - (cd asm; $(PERL) rc4-586.pl a.out $(CFLAGS) > ../$@) - --rc4-x86_64.s: asm/rc4-x86_64.pl; $(PERL) asm/rc4-x86_64.pl $@ -+rc4-x86_64.S: asm/rc4-x86_64.pl; $(PERL) asm/rc4-x86_64.pl $@ - - rc4-ia64.s: asm/rc4-ia64.S - @case `awk '/^#define RC4_INT/{print$$NF}' $(TOP)/include/openssl/opensslconf.h` in \ -Index: openssl-0.9.8o/crypto/rc4/asm/rc4-x86_64.pl -=================================================================== ---- openssl-0.9.8o.orig/crypto/rc4/asm/rc4-x86_64.pl 2008-09-16 10:47:27.000000000 +0000 -+++ openssl-0.9.8o/crypto/rc4/asm/rc4-x86_64.pl 2010-06-06 13:09:28.000000000 +0000 -@@ -270,7 +270,11 @@ - xor %r10,%r10 - xor %r11,%r11 - -+#ifdef OPENSSL_PIC -+ mov OPENSSL_ia32cap_P\@GOTPCREL(%rip),$idx#d -+#else - mov OPENSSL_ia32cap_P(%rip),$idx#d -+#endif - bt \$20,$idx#d - jnc .Lw1stloop - bt \$30,$idx#d -@@ -338,7 +342,11 @@ - RC4_options: - .picmeup %rax - lea .Lopts-.(%rax),%rax -+#ifdef OPENSSL_PIC -+ mov OPENSSL_ia32cap_P\@GOTPCREL(%rip),%edx -+#else - mov OPENSSL_ia32cap_P(%rip),%edx -+#endif - bt \$20,%edx - jnc .Ldone - add \$12,%rax -Index: openssl-0.9.8o/crypto/perlasm/x86unix.pl -=================================================================== ---- openssl-0.9.8o.orig/crypto/perlasm/x86unix.pl 2008-05-01 23:11:32.000000000 +0000 -+++ openssl-0.9.8o/crypto/perlasm/x86unix.pl 2010-06-06 13:09:28.000000000 +0000 -@@ -400,6 +400,29 @@ - $stack=4; - } - -+sub main'function_begin_B_static -+ { -+ local($func,$extra)=@_; -+ -+ &main'external_label($func); -+ $func=$under.$func; -+ -+ local($tmp)=<<"EOF"; -+.text -+EOF -+ push(@out,$tmp); -+ if ($main'cpp) -+ { push(@out,"TYPE($func,\@function)\n"); } -+ elsif ($main'coff) -+ { $tmp=push(@out,".def\t$func;\t.scl\t2;\t.type\t32;\t.endef\n"); } -+ elsif ($main'aout and !$main'pic) -+ { } -+ else { push(@out,".type $func,\@function\n"); } -+ push(@out,".align\t$align\n"); -+ push(@out,"$func:\n"); -+ $stack=4; -+ } -+ - sub main'function_end - { - local($func)=@_; -@@ -694,7 +717,17 @@ - { - $tmp=<<___; - .section .init -+#ifdef OPENSSL_PIC -+ pushl %ebx -+ call .pic_point0 -+.pic_point0: -+ popl %ebx -+ addl \$_GLOBAL_OFFSET_TABLE_+[.-.pic_point0],%ebx -+ call $under$f\@PLT -+ popl %ebx -+#else - call $under$f -+#endif - jmp .Linitalign - .align $align - .Linitalign: -Index: openssl-0.9.8o/crypto/perlasm/cbc.pl -=================================================================== ---- openssl-0.9.8o.orig/crypto/perlasm/cbc.pl 2005-05-09 21:48:00.000000000 +0000 -+++ openssl-0.9.8o/crypto/perlasm/cbc.pl 2010-06-06 13:09:28.000000000 +0000 -@@ -122,7 +122,11 @@ - &mov(&DWP($data_off,"esp","",0), "eax"); # put in array for call - &mov(&DWP($data_off+4,"esp","",0), "ebx"); # - -- &call($enc_func); -+ &call (&label("pic_point0")); -+ &set_label("pic_point0"); -+ &blindpop("ebx"); -+ &add ("ebx", "\$_GLOBAL_OFFSET_TABLE_+[.-" . &label("pic_point0") . "]"); -+ &call("$enc_func\@PLT"); - - &mov("eax", &DWP($data_off,"esp","",0)); - &mov("ebx", &DWP($data_off+4,"esp","",0)); -@@ -187,7 +191,11 @@ - &mov(&DWP($data_off,"esp","",0), "eax"); # put in array for call - &mov(&DWP($data_off+4,"esp","",0), "ebx"); # - -- &call($enc_func); -+ &call (&label("pic_point1")); -+ &set_label("pic_point1"); -+ &blindpop("ebx"); -+ &add ("ebx", "\$_GLOBAL_OFFSET_TABLE_+[.-" . &label("pic_point1") . "]"); -+ &call("$enc_func\@PLT"); - - &mov("eax", &DWP($data_off,"esp","",0)); - &mov("ebx", &DWP($data_off+4,"esp","",0)); -@@ -220,7 +228,11 @@ - &mov(&DWP($data_off,"esp","",0), "eax"); # put back - &mov(&DWP($data_off+4,"esp","",0), "ebx"); # - -- &call($dec_func); -+ &call (&label("pic_point2")); -+ &set_label("pic_point2"); -+ &blindpop("ebx"); -+ &add ("ebx", "\$_GLOBAL_OFFSET_TABLE_+[.-" . &label("pic_point2") . "]"); -+ &call("$dec_func\@PLT"); - - &mov("eax", &DWP($data_off,"esp","",0)); # get return - &mov("ebx", &DWP($data_off+4,"esp","",0)); # -@@ -263,7 +275,11 @@ - &mov(&DWP($data_off,"esp","",0), "eax"); # put back - &mov(&DWP($data_off+4,"esp","",0), "ebx"); # - -- &call($dec_func); -+ &call (&label("pic_point3")); -+ &set_label("pic_point3"); -+ &blindpop("ebx"); -+ &add ("ebx", "\$_GLOBAL_OFFSET_TABLE_+[.-" . &label("pic_point3") . "]"); -+ &call("$dec_func\@PLT"); - - &mov("eax", &DWP($data_off,"esp","",0)); # get return - &mov("ebx", &DWP($data_off+4,"esp","",0)); # -Index: openssl-0.9.8o/crypto/perlasm/x86_64-xlate.pl -=================================================================== ---- openssl-0.9.8o.orig/crypto/perlasm/x86_64-xlate.pl 2010-06-06 13:09:00.000000000 +0000 -+++ openssl-0.9.8o/crypto/perlasm/x86_64-xlate.pl 2010-06-06 13:09:28.000000000 +0000 -@@ -435,7 +435,7 @@ - - chomp($line); - -- $line =~ s|[#!].*$||; # get rid of asm-style comments... -+# $line =~ s|[#!].*$||; # get rid of asm-style comments... - $line =~ s|/\*.*\*/||; # ... and C-style comments... - $line =~ s|^\s+||; # ... and skip white spaces in beginning - -Index: openssl-0.9.8o/crypto/aes/asm/aes-586.pl -=================================================================== ---- openssl-0.9.8o.orig/crypto/aes/asm/aes-586.pl 2008-12-17 14:14:51.000000000 +0000 -+++ openssl-0.9.8o/crypto/aes/asm/aes-586.pl 2010-06-06 13:09:28.000000000 +0000 -@@ -250,7 +250,7 @@ - sub _data_word() { my $i; while(defined($i=shift)) { &data_word($i,$i); } } - - &public_label("AES_Te"); --&function_begin_B("_x86_AES_encrypt"); -+&function_begin_B_static("_x86_AES_encrypt"); - if ($vertical_spin) { - # I need high parts of volatile registers to be accessible... - &exch ($s1="edi",$key="ebx"); -@@ -539,7 +539,7 @@ - } - - &public_label("AES_Td"); --&function_begin_B("_x86_AES_decrypt"); -+&function_begin_B_static("_x86_AES_decrypt"); - # note that caller is expected to allocate stack frame for me! - &mov (&DWP(12,"esp"),$key); # save key - -@@ -1461,15 +1461,22 @@ - &public_label("AES_Td"); - &public_label("AES_Te"); - &function_begin_B("AES_set_decrypt_key"); -+ &push ("ebx"); - &mov ("eax",&wparam(0)); - &mov ("ecx",&wparam(1)); - &mov ("edx",&wparam(2)); - &sub ("esp",12); -+ -+ &call (&label("pic_point0")); -+ &set_label("pic_point0"); -+ &blindpop("ebx"); -+ &add ("ebx", "\$_GLOBAL_OFFSET_TABLE_+[.-" . &label("pic_point0") . "]"); - &mov (&DWP(0,"esp"),"eax"); - &mov (&DWP(4,"esp"),"ecx"); - &mov (&DWP(8,"esp"),"edx"); -- &call ("AES_set_encrypt_key"); -+ &call ("AES_set_encrypt_key\@PLT"); - &add ("esp",12); -+ &pop ("ebx"); - &cmp ("eax",0); - &je (&label("proceed")); - &ret (); diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/pkg-config.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/pkg-config.patch deleted file mode 100644 index 46c6f03..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/pkg-config.patch +++ /dev/null @@ -1,36 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/Makefile.org -=================================================================== ---- openssl-0.9.8k.orig/Makefile.org 2009-07-19 11:34:56.000000000 +0200 -+++ openssl-0.9.8k/Makefile.org 2009-07-19 11:36:02.000000000 +0200 -@@ -444,7 +444,8 @@ - echo 'Description: OpenSSL cryptography library'; \ - echo 'Version: '$(VERSION); \ - echo 'Requires: '; \ -- echo 'Libs: -L$${libdir} -lcrypto $(EX_LIBS)'; \ -+ echo 'Libs: -L$${libdir} -lcrypto'; \ -+ echo 'Libs.private: $(EX_LIBS)'; \ - echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libcrypto.pc - - libssl.pc: Makefile -@@ -457,7 +458,8 @@ - echo 'Description: Secure Sockets Layer and cryptography libraries'; \ - echo 'Version: '$(VERSION); \ - echo 'Requires: '; \ -- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \ -+ echo 'Libs: -L$${libdir} -lssl'; \ -+ echo 'Libs.private: -lcrypto $(EX_LIBS)'; \ - echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libssl.pc - - openssl.pc: Makefile -@@ -470,7 +472,8 @@ - echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \ - echo 'Version: '$(VERSION); \ - echo 'Requires: '; \ -- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \ -+ echo 'Libs: -L$${libdir} -lssl -lcrypto'; \ -+ echo 'Libs.private: $(EX_LIBS)'; \ - echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > openssl.pc - - Makefile: Makefile.org Configure config diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/rc4-amd64.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/rc4-amd64.patch deleted file mode 100644 index f57fbc9..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/rc4-amd64.patch +++ /dev/null @@ -1,16 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/Configure -=================================================================== ---- openssl-0.9.8k.orig/Configure 2009-07-19 11:32:41.000000000 +0200 -+++ openssl-0.9.8k/Configure 2009-07-19 11:37:10.000000000 +0200 -@@ -128,6 +128,9 @@ - my $x86_out_asm="x86cpuid-out.o:bn86-out.o co86-out.o MAYBE-MO86-out.o:dx86-out.o yx86-out.o:ax86-out.o:bx86-out.o:mx86-out.o:sx86-out.o s512sse2-out.o:cx86-out.o:rx86-out.o rc4_skey.o:rm86-out.o:r586-out.o"; - - my $x86_64_asm="x86_64cpuid.o:x86_64-gcc.o x86_64-mont.o::aes-x86_64.o::md5-x86_64.o:sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o::rc4-x86_64.o::"; -+# rc4 asm is disabled on amd64 because we configured it with RC4_CHAR while -+# the assembler only works with int -+my $x86_64_asm_linux="x86_64cpuid.o:x86_64-gcc.o x86_64-mont.o::aes-x86_64.o::md5-x86_64.o:sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o::::"; - my $ia64_asm=":bn-ia64.o::aes_core.o aes_cbc.o aes-ia64.o:::sha1-ia64.o sha256-ia64.o sha512-ia64.o::rc4-ia64.o rc4_skey.o::"; - - my $no_asm="::::::::::"; diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/rehash-crt.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/rehash-crt.patch deleted file mode 100644 index d9d6b70..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/rehash-crt.patch +++ /dev/null @@ -1,35 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/tools/c_rehash.in -=================================================================== ---- openssl-0.9.8k.orig/tools/c_rehash.in 2002-10-11 22:31:27.000000000 +0200 -+++ openssl-0.9.8k/tools/c_rehash.in 2009-07-19 11:36:26.000000000 +0200 -@@ -59,12 +59,15 @@ - } - } - closedir DIR; -- FILE: foreach $fname (grep {/\.pem$/} @flist) { -+ FILE: foreach $fname (grep {/\.pem$|\.crt$/} @flist) { - # Check to see if certificates and/or CRLs present. - my ($cert, $crl) = check_file($fname); - if(!$cert && !$crl) { -- print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n"; -- next; -+ ($cert, $crl) = check_file("$openssl x509 -in \"$fname\" -inform der -outform pem | "); -+ if(!$cert && !$crl) { -+ print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n"; -+ next; -+ } - } - link_hash_cert($fname) if($cert); - link_hash_crl($fname) if($crl); -@@ -102,6 +105,9 @@ - my $fname = $_[0]; - $fname =~ s/'/'\\''/g; - my ($hash, $fprint) = `"$openssl" x509 -hash -fingerprint -noout -in '$fname'`; -+ if(!$hash || !fprint) { -+ ($hash, $fprint) = `"$openssl" x509 -hash -fingerprint -noout -in '$fname' -inform der`; -+ } - chomp $hash; - chomp $fprint; - $fprint =~ s/^.*=//; diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/rehash_pod.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/rehash_pod.patch deleted file mode 100644 index 3426ba8..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/rehash_pod.patch +++ /dev/null @@ -1,62 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/doc/apps/c_rehash.pod -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ openssl-0.9.8k/doc/apps/c_rehash.pod 2009-07-19 11:36:27.000000000 +0200 -@@ -0,0 +1,55 @@ -+ -+=pod -+ -+=head1 NAME -+ -+c_rehash - Create symbolic links to files named by the hash values -+ -+=head1 SYNOPSIS -+ -+B -+[directory] ... -+ -+=head1 DESCRIPTION -+ -+c_rehash scans directories and takes a hash value of each .pem and .crt file in the directory. It then creates symbolic links for each of the files named by the hash value. This is useful as many programs require directories to be set up like this in order to find the certificates they require. -+ -+If any directories are named on the command line then these directories are processed in turn. If not then and the environment variable SSL_CERT_DIR is defined then that is consulted. This variable should be a colon (:) separated list of directories, all of which will be processed. If neither of these conditions are true then /usr/lib/ssl/certs is processed. -+ -+For each directory that is to be processed he user must have write permissions on the directory, if they do not then nothing will be printed for that directory. -+ -+Note that this program deletes all the symbolic links that look like ones that it creates before processing a directory. Beware that if you run the program on a directory that contains symbolic links for other purposes that are named in the same format as those created by this program they will be lost. -+ -+The hashes for certificate files are of the form . where n is an integer. If the hash value already exists then n will be incremented, unless the file is a duplicate. Duplicates are detected using the fingerprint of the certificate. A warning will be printed if a duplicate is detected. The hashes for CRL files are of the form .r and have the same behavior. -+ -+The program will also warn if there are files with extension .pem which are not certificate or CRL files. -+ -+The program uses the openssl program to compute the hashes and fingerprints. It expects the executable to be named openssl and be on the PATH, or in the /usr/lib/ssl/bin directory. If the OPENSSL environment variable is defined then this is used instead as the executable that provides the hashes and fingerprints. When called as $OPENSSL x509 -hash -fingerprint -noout -in $file it must output the hash of $file on the first line followed by the fingerprint on the second line, optionally prefixed with some text and an equals sign (=). -+ -+=head1 OPTIONS -+ -+None -+ -+=head1 ENVIRONMENT -+ -+=over 4 -+ -+=item B -+ -+The name (and path) of an executable to use to generate hashes and fingerprints (see above). -+ -+=item B -+ -+Colon separated list of directories to operate on. Ignored if directories are listed on the command line. -+ -+=head1 SEE ALSO -+ -+L, L -+ -+=back -+ -+=head1 BUGS -+ -+No known bugs -+ -+=cut diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/series b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/series deleted file mode 100644 index b764c04..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/series +++ /dev/null @@ -1,20 +0,0 @@ -ca.patch -config-hurd.patch -debian-targets.patch -engines-path.patch -kfreebsd-pipe.patch -make-targets.patch -man-dir.patch -man-section.patch -no-rpath.patch -no-symbolic.patch -pic.patch -pkg-config.patch -valgrind.patch -rc4-amd64.patch -rehash-crt.patch -rehash_pod.patch -shared-lib-ext.patch -stddef.patch -version-script.patch -perl-path.diff diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/shared-lib-ext.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/shared-lib-ext.patch deleted file mode 100644 index 79eb39f..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/shared-lib-ext.patch +++ /dev/null @@ -1,16 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/Configure -=================================================================== ---- openssl-0.9.8k.orig/Configure 2009-07-19 11:36:24.000000000 +0200 -+++ openssl-0.9.8k/Configure 2009-07-19 11:37:03.000000000 +0200 -@@ -1568,7 +1568,8 @@ - elsif ($shared_extension ne "" && $shared_extension =~ /^\.s([ol])\.[^\.]*\.[^\.]*$/) - { - my $sotmp = $1; -- s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/; -+# s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/; -+ s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp/; - } - elsif ($shared_extension ne "" && $shared_extension =~ /^\.[^\.]*\.[^\.]*\.dylib$/) - { diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/stddef.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/stddef.patch deleted file mode 100644 index 3436b29..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/stddef.patch +++ /dev/null @@ -1,14 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8k/crypto/sha/sha.h -=================================================================== ---- openssl-0.9.8k.orig/crypto/sha/sha.h 2008-09-16 12:47:28.000000000 +0200 -+++ openssl-0.9.8k/crypto/sha/sha.h 2009-07-19 11:36:28.000000000 +0200 -@@ -59,6 +59,7 @@ - #ifndef HEADER_SHA_H - #define HEADER_SHA_H - -+#include - #include - #include - diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/version-script.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/version-script.patch deleted file mode 100644 index 6fa3d75..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/debian/version-script.patch +++ /dev/null @@ -1,35 +0,0 @@ -Upstream-Status: Backport [debian] - -Index: openssl-0.9.8m/Configure -=================================================================== ---- openssl-0.9.8m.orig/Configure 2010-02-27 12:28:32.000000000 +0100 -+++ openssl-0.9.8m/Configure 2010-02-27 12:28:35.000000000 +0100 -@@ -1512,6 +1512,8 @@ - } - } - -+$shared_ldflag .= " -Wl,--version-script=openssl.ld"; -+ - open(IN,'$Makefile.new") || die "unable to create $Makefile.new:$!\n"; -Index: openssl-0.9.8m/openssl.ld -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ openssl-0.9.8m/openssl.ld 2010-02-27 12:28:35.000000000 +0100 -@@ -0,0 +1,5 @@ -+OPENSSL_0.9.8 { -+ global: -+ *; -+}; -+ -Index: openssl-0.9.8m/engines/openssl.ld -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ openssl-0.9.8m/engines/openssl.ld 2010-02-27 12:28:35.000000000 +0100 -@@ -0,0 +1,5 @@ -+OPENSSL_0.9.8 { -+ global: -+ *; -+}; -+ diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/find.pl b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/find.pl deleted file mode 100644 index 8e1b42c..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/find.pl +++ /dev/null @@ -1,54 +0,0 @@ -warn "Legacy library @{[(caller(0))[6]]} will be removed from the Perl core distribution in the next major release. Please install it from the CPAN distribution Perl4::CoreLibs. It is being used at @{[(caller)[1]]}, line @{[(caller)[2]]}.\n"; - -# This library is deprecated and unmaintained. It is included for -# compatibility with Perl 4 scripts which may use it, but it will be -# removed in a future version of Perl. Please use the File::Find module -# instead. - -# Usage: -# require "find.pl"; -# -# &find('/foo','/bar'); -# -# sub wanted { ... } -# where wanted does whatever you want. $dir contains the -# current directory name, and $_ the current filename within -# that directory. $name contains "$dir/$_". You are cd'ed -# to $dir when the function is called. The function may -# set $prune to prune the tree. -# -# For example, -# -# find / -name .nfs\* -mtime +7 -exec rm -f {} \; -o -fstype nfs -prune -# -# corresponds to this -# -# sub wanted { -# /^\.nfs.*$/ && -# (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) && -# int(-M _) > 7 && -# unlink($_) -# || -# ($nlink || (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_))) && -# $dev < 0 && -# ($prune = 1); -# } -# -# Set the variable $dont_use_nlink if you're using AFS, since AFS cheats. - -use File::Find (); - -*name = *File::Find::name; -*prune = *File::Find::prune; -*dir = *File::Find::dir; -*topdir = *File::Find::topdir; -*topdev = *File::Find::topdev; -*topino = *File::Find::topino; -*topmode = *File::Find::topmode; -*topnlink = *File::Find::topnlink; - -sub find { - &File::Find::find(\&wanted, @_); -} - -1; diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/parallel-make-fix.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/parallel-make-fix.patch deleted file mode 100644 index 82857f5..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/parallel-make-fix.patch +++ /dev/null @@ -1,20 +0,0 @@ -Upstream-Status: Submitted - -fix the parallel build regarding shared libraries. - -Signed-off-by: Qing He - -diff --git a/Makefile.org b/Makefile.org -index 2fb0309..8bec3d0 100644 ---- a/Makefile.org -+++ b/Makefile.org -@@ -352,6 +352,9 @@ all_testapps: build_libs build_testapps - build_testapps: - @dir=crypto; target=testapps; $(BUILD_ONE_CMD) - -+libcrypto.a: build_crypto -+libssl.a: build_ssl -+ - build_shared: $(SHARED_LIBS) - libcrypto$(SHLIB_EXT): libcrypto.a $(SHARED_FIPS) - @if [ "$(SHLIB_TARGET)" != "" ]; then \ diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/shared-libs.patch b/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/shared-libs.patch deleted file mode 100644 index 19de112..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl-0.9.8x/shared-libs.patch +++ /dev/null @@ -1,50 +0,0 @@ -Upstream-Status: Inappropriate [configuration] - -diff --git a/Makefile.org b/Makefile.org -index e87d623..25ff367 100644 ---- a/Makefile.org -+++ b/Makefile.org -@@ -355,7 +355,7 @@ libcrypto$(SHLIB_EXT): libcrypto.a $(SHARED_FIPS) - @if [ "$(SHLIB_TARGET)" != "" ]; then \ - if [ "$(FIPSCANLIB)" = "libfips" ]; then \ - $(ARD) libcrypto.a fipscanister.o ; \ -- $(MAKE) SHLIBDIRS='crypto' SHLIBDEPS='-lfips' build-shared; \ -+ $(MAKE) -e SHLIBDIRS='crypto' SHLIBDEPS='-lfips' build-shared; \ - $(AR) libcrypto.a fips/fipscanister.o ; \ - else \ - if [ "$(FIPSCANLIB)" = "libcrypto" ]; then \ -@@ -373,7 +373,7 @@ libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a - @if [ "$(SHLIB_TARGET)" != "" ]; then \ - shlibdeps=-lcrypto; \ - [ "$(FIPSCANLIB)" = "libfips" ] && shlibdeps="$$shlibdeps -lfips"; \ -- $(MAKE) SHLIBDIRS=ssl SHLIBDEPS="$$shlibdeps" build-shared; \ -+ $(MAKE) -e SHLIBDIRS=ssl SHLIBDEPS="$$shlibdeps" build-shared; \ - else \ - echo "There's no support for shared libraries on this platform" >&2 ; \ - exit 1; \ -diff --git a/crypto/Makefile b/crypto/Makefile -index 6557f2b..a69bf7c 100644 ---- a/crypto/Makefile -+++ b/crypto/Makefile -@@ -103,7 +103,7 @@ $(LIB): $(LIBOBJ) - - shared: buildinf.h lib subdirs - if [ -n "$(SHARED_LIBS)" ]; then \ -- (cd ..; $(MAKE) $(SHARED_LIB)); \ -+ (cd ..; $(MAKE) -e $(SHARED_LIB)); \ - fi - - libs: -diff --git a/ssl/Makefile b/ssl/Makefile -index 5ac3507..77ea2bd 100644 ---- a/ssl/Makefile -+++ b/ssl/Makefile -@@ -62,7 +62,7 @@ lib: $(LIBOBJ) - - shared: lib - if [ -n "$(SHARED_LIBS)" ]; then \ -- (cd ..; $(MAKE) $(SHARED_LIB)); \ -+ (cd ..; $(MAKE) -e $(SHARED_LIB)); \ - fi - - files: diff --git a/meta-openvuplus/recipes-connectivity/openssl/openssl_0.9.8x.bb b/meta-openvuplus/recipes-connectivity/openssl/openssl_0.9.8x.bb deleted file mode 100644 index b341267..0000000 --- a/meta-openvuplus/recipes-connectivity/openssl/openssl_0.9.8x.bb +++ /dev/null @@ -1,43 +0,0 @@ -require recipes-connectivity/openssl/openssl.inc - -PR = "${INC_PR}.1" - -LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8" - -SRC_URI += "file://debian/ca.patch \ - file://debian/config-hurd.patch;apply=no \ - file://debian/debian-targets.patch \ - file://debian/engines-path.patch \ - file://debian/kfreebsd-pipe.patch;apply=no \ - file://debian/make-targets.patch \ - file://debian/man-dir.patch \ - file://debian/man-section.patch \ - file://debian/no-rpath.patch \ - file://debian/no-symbolic.patch \ - file://debian/pic.patch \ - file://debian/pkg-config.patch \ - file://debian/rc4-amd64.patch \ - file://debian/rehash-crt.patch \ - file://debian/rehash_pod.patch \ - file://debian/shared-lib-ext.patch \ - file://debian/stddef.patch \ - file://debian/version-script.patch \ - file://debian/perl-path.diff" - -SRC_URI += "file://configure-targets.patch \ - file://shared-libs.patch \ - file://parallel-make-fix.patch \ - file://find.pl" - -SRC_URI[md5sum] = "ee17e9bc805c8cc7d0afac3b0ef78eda" -SRC_URI[sha256sum] = "7ce0c7f2c451070b4497ea7ca6f23eba6cef1a56db2e86e433f65926a7bc7497" - -EXTRA_OECONF += "no-idea no-mdc2 no-rc5" - -do_configure_prepend() { - cp ${WORKDIR}/find.pl ${S}/util/find.pl -} - -BBCLASSEXTEND = "native nativesdk" - -PARALLEL_MAKEINST = "" diff --git a/meta-openvuplus/recipes-connectivity/packagegroups/packagegroup-vuplus-wlan.bb b/meta-openvuplus/recipes-connectivity/packagegroups/packagegroup-vuplus-wlan.bb new file mode 100644 index 0000000..c1a3450 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/packagegroups/packagegroup-vuplus-wlan.bb @@ -0,0 +1,57 @@ +DESCRIPTION = "Vuplus: W-LAN package group for the Vuplus Distribution" +SECTION = "vuplus/base" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +PR = "r16" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit packagegroup + +DEPENDS_${PN} = "enigma2" +RDEPENDS_${PN} = "\ + enigma2-plugin-systemplugins-wirelesslansetup \ + wireless-tools \ + wpa-supplicant \ +" + +WIFI_FIRMWARES = "\ + rt73-firmware \ + zd1211-firmware \ + firmware-htc9271 \ + firmware-rt2561 \ + firmware-rtl8721u \ + firmware-rt3070 \ +" + +KERNEL_WIFI_MODULES = " \ + kernel-module-ath9k-htc \ + kernel-module-carl9170 \ + kernel-module-prism2-usb \ + kernel-module-rt73usb \ + kernel-module-rt2500usb \ + kernel-module-rtl8187 \ + kernel-module-r8712u \ + kernel-module-w35und \ + kernel-module-zd1211rw \ + kernel-module-llc \ + kernel-module-stp \ + kernel-module-bridge \ + kernel-module-hostap \ + kernel-module-rt2800usb \ +" + +KERNEL_WIFI_MODULES += "${@base_version_less_or_equal('VUPLUS_KERNEL_VERSION', '3.1.1', 'kernel-module-r8192u-usb', '', d)}" + +LEGACY_MODULES = " \ + rt3070 \ + r8192cu \ +" + +RDEPENDS_${PN}_append = "\ + ${WIFI_FIRMWARES} \ + ${KERNEL_WIFI_MODULES} \ + ${LEGACY_MODULES} \ + rt2870sta \ +" + diff --git a/meta-openvuplus/recipes-connectivity/ppp/ppp_2.4.5.bbappend b/meta-openvuplus/recipes-connectivity/ppp/ppp_2.4.5.bbappend deleted file mode 100644 index e6587d2..0000000 --- a/meta-openvuplus/recipes-connectivity/ppp/ppp_2.4.5.bbappend +++ /dev/null @@ -1,8 +0,0 @@ -PR .= "-vuplus0" - -do_install_append() { - rm ${D}/${sysconfdir}/ppp/options - rm ${D}/${sysconfdir}/ppp/pap-secrets -} - -CONFFILES_${PN} = "${sysconfdir}/ppp/chap-secrets" diff --git a/meta-openvuplus/recipes-connectivity/ppp/ppp_2.4.7.bbappend b/meta-openvuplus/recipes-connectivity/ppp/ppp_2.4.7.bbappend new file mode 100644 index 0000000..e6587d2 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/ppp/ppp_2.4.7.bbappend @@ -0,0 +1,8 @@ +PR .= "-vuplus0" + +do_install_append() { + rm ${D}/${sysconfdir}/ppp/options + rm ${D}/${sysconfdir}/ppp/pap-secrets +} + +CONFFILES_${PN} = "${sysconfdir}/ppp/chap-secrets" diff --git a/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.1.2590.20110922/linux_3.1.patch b/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.1.2590.20110922/linux_3.1.patch deleted file mode 100644 index 3d6e3d2..0000000 --- a/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.1.2590.20110922/linux_3.1.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --git a/include/osdep_service.h b/include/osdep_service.h -index 4aa6478..c15539b 100755 ---- a/include/osdep_service.h -+++ b/include/osdep_service.h -@@ -46,7 +46,6 @@ - #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,5)) - #include - #endif -- #include - #include - #include - #include -diff --git a/include/rtw_io.h b/include/rtw_io.h -index 15065c6..dab90b7 100755 ---- a/include/rtw_io.h -+++ b/include/rtw_io.h -@@ -33,7 +33,6 @@ - #include - #endif - #include --#include - #include - #include - diff --git a/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.1.2590.20110922/makefile.patch b/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.1.2590.20110922/makefile.patch deleted file mode 100755 index a8539ca..0000000 --- a/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.1.2590.20110922/makefile.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/Makefile b/Makefile -index b3ccaf2..9e44425 100755 ---- a/Makefile -+++ b/Makefile -@@ -39,7 +39,7 @@ CONFIG_PLATFORM_ANDROID_X86 = n - CONFIG_PLATFORM_ARM_S3C2K4 = n - CONFIG_PLATFORM_ARM_PXA2XX = n - CONFIG_PLATFORM_ARM_S3C6K4 = n --CONFIG_PLATFORM_MIPS_RMI = n -+CONFIG_PLATFORM_MIPS_RMI = y - CONFIG_PLATFORM_RTD2880B = n - CONFIG_PLATFORM_MIPS_AR9132 = n - CONFIG_PLATFORM_RTK_DMP = n -@@ -288,9 +288,9 @@ endif - ifeq ($(CONFIG_PLATFORM_MIPS_RMI), y) - EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN - ARCH:=mips --CROSS_COMPILE:=mipsisa32r2-uclibc- --KVER:= --KSRC:= /root/work/kernel_realtek -+#CROSS_COMPILE:=mipsisa32r2-uclibc- -+#KVER:= -+#KSRC:= /root/work/kernel_realtek - endif - - ifeq ($(CONFIG_PLATFORM_MIPS_PLM), y) diff --git a/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.1.2590.20110922/rtl8192_8188CU_linux_v3.1.2590.20110922.tar.gz b/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.1.2590.20110922/rtl8192_8188CU_linux_v3.1.2590.20110922.tar.gz deleted file mode 100644 index 5b3a020..0000000 Binary files a/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.1.2590.20110922/rtl8192_8188CU_linux_v3.1.2590.20110922.tar.gz and /dev/null differ diff --git a/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.4.4.4749.20121105/r8192cu_build_fix.patch b/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.4.4.4749.20121105/r8192cu_build_fix.patch deleted file mode 100644 index 9979e51..0000000 --- a/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.4.4.4749.20121105/r8192cu_build_fix.patch +++ /dev/null @@ -1,1614 +0,0 @@ -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) -# -# OpenELEC is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 2 of the License, or -# (at your option) any later version. -# -# OpenELEC is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC. If not, see . -################################################################################ -commit 710c9ba0aab6c2d50b046b22f1405b12b7ebbff3 -Author: hschang -Date: Tue Feb 25 16:49:51 2014 +0900 - - patch for lastest kernel(>= 3.10.0) - -diff --git a/core/rtw_debug.c b/core/rtw_debug.c -index 04e472d..d4f6e7d 100644 ---- a/core/rtw_debug.c -+++ b/core/rtw_debug.c -@@ -62,6 +62,7 @@ - #ifdef CONFIG_PROC_DEBUG - #include - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_drv_version(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -75,7 +76,15 @@ int proc_get_drv_version(char *page, char **start, - *eof = 1; - return len; - } -+#else -+int proc_get_drv_version(struct seq_file *m, void* data) -+{ -+ seq_printf(m, "%s\n", DRIVERVERSION); -+ return 0; -+} -+#endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_write_reg(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -83,7 +92,14 @@ int proc_get_write_reg(char *page, char **start, - *eof = 1; - return 0; - } -+#else -+int proc_get_write_reg(struct seq_file *m, void* data) -+{ -+ return 0; -+} -+#endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_set_write_reg(struct file *file, const char *buffer, - unsigned long count, void *data) - { -@@ -128,10 +144,59 @@ int proc_set_write_reg(struct file *file, const char *buffer, - return count; - - } -+#else -+int proc_set_write_reg_open(struct seq_file *m, void* data) -+{ -+ return 0; -+} -+ -+ssize_t proc_set_write_reg(struct file *file, const char *buffer, size_t count, loff_t *pos) -+{ -+ struct net_device *dev = (struct net_device *)pos; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ char tmp[32]; -+ u32 addr, val, len; -+ -+ if (count < 3) -+ { -+ DBG_8192C("argument size is less than 3\n"); -+ return -EFAULT; -+ } -+ len = min(count, sizeof(tmp)-1); -+ if (buffer && !copy_from_user(tmp, buffer, len)) { -+ tmp[len] = '\0'; -+ -+ if(sscanf(tmp, "%x %x %x", &addr, &val, &len)!=3) { -+ DBG_8192C("invalid write_reg parameter!\n"); -+ return -EFAULT; -+ } -+ -+ switch(len) -+ { -+ case 1: -+ rtw_write8(padapter, addr, (u8)val); -+ break; -+ case 2: -+ rtw_write16(padapter, addr, (u16)val); -+ break; -+ case 4: -+ rtw_write32(padapter, addr, val); -+ break; -+ default: -+ DBG_8192C("error write length=%d", len); -+ break; -+ } -+ -+ } -+ -+ return count; -+} -+#endif - - static u32 proc_get_read_addr=0xeeeeeeee; - static u32 proc_get_read_len=0x4; - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_read_reg(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -199,7 +264,77 @@ int proc_set_read_reg(struct file *file, const char *buffer, - return count; - - } -+#else -+int proc_get_read_reg(struct seq_file *m, void* data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); - -+ if(proc_get_read_addr==0xeeeeeeee) -+ { -+ return 0; -+ } -+ -+ switch(proc_get_read_len) -+ { -+ case 1: -+ seq_printf(m, "rtw_read8(0x%x)=0x%x\n", proc_get_read_addr, rtw_read8(padapter, proc_get_read_addr)); -+ break; -+ case 2: -+ seq_printf(m, "rtw_read16(0x%x)=0x%x\n", proc_get_read_addr, rtw_read16(padapter, proc_get_read_addr)); -+ break; -+ case 4: -+ seq_printf(m, "rtw_read32(0x%x)=0x%x\n", proc_get_read_addr, rtw_read32(padapter, proc_get_read_addr)); -+ break; -+ default: -+ seq_printf(m, "error read length=%d\n", proc_get_read_len); -+ break; -+ } -+ return 0; -+} -+ -+ssize_t proc_set_read_reg(struct file *file, const char *buf, -+ size_t count, loff_t *pos) -+{ -+ struct net_device *dev = (struct net_device *)pos; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ -+ char *cmd, *buffer; -+ -+ u32 addr, len, num; -+ -+ if (count < 2) -+ { -+ DBG_8192C("argument size is less than 2\n"); -+ return -EFAULT; -+ } -+ cmd = kmalloc(count+1, GFP_KERNEL); -+ if(!cmd) -+ return -ENOMEM; -+ if(!copy_from_user(cmd, buf, count)) { -+ -+ cmd[count]='\0'; -+ buffer = cmd; -+ -+ num = sscanf(buffer, "%x %x", &addr, &len); -+ -+ if (num != 2) { -+ DBG_8192C("invalid read_reg parameter!\n"); -+ return count; -+ } -+ -+ proc_get_read_addr = addr; -+ proc_get_read_len = len; -+ }else{ -+ kfree(cmd); -+ return -EFAULT; -+ } -+ kfree(cmd); -+ return count; -+} -+#endif -+ -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_fwstate(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -215,7 +350,18 @@ int proc_get_fwstate(char *page, char **start, - *eof = 1; - return len; - } -+#else -+int proc_get_fwstate(struct seq_file *m, void* data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); -+ seq_printf(m, "fwstate=0x%x\n",get_fwstate(pmlmepriv)); -+ return 0; -+} -+#endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_sec_info(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -233,7 +379,20 @@ int proc_get_sec_info(char *page, char **start, - *eof = 1; - return len; - } -+#else -+int proc_get_sec_info(struct seq_file *m, void* data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct security_priv *psecuritypriv = &padapter->securitypriv; -+ seq_printf(m, "auth_alg=0x%x, enc_alg=0x%x, auth_type=0x%x, enc_type=0x%x\n", -+ psecuritypriv->dot11AuthAlgrthm, psecuritypriv->dot11PrivacyAlgrthm, -+ psecuritypriv->ndisauthtype, psecuritypriv->ndisencryptstatus); -+ return 0; -+} -+#endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_mlmext_state(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -250,7 +409,19 @@ int proc_get_mlmext_state(char *page, char **start, - *eof = 1; - return len; - } -+#else -+int proc_get_mlmext_state(struct seq_file *m, void *data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; -+ struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info); -+ seq_printf(m, "pmlmeinfo->state=0x%x\n", pmlmeinfo->state); -+ return 0; -+} -+#endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_qos_option(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -267,7 +438,18 @@ int proc_get_qos_option(char *page, char **start, - return len; - - } -+#else -+int proc_get_qos_option(struct seq_file *m, void *data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); -+ seq_printf(m, "qos_option=%d\n", pmlmepriv->qospriv.qos_option); -+ return 0; -+} -+#endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_ht_option(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -283,7 +465,18 @@ int proc_get_ht_option(char *page, char **start, - *eof = 1; - return len; - } -+#else -+int proc_get_ht_option(struct seq_file *m, void *data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); -+ seq_printf(m, "ht_option=%d\n", pmlmepriv->htpriv.ht_option); -+ return 0; -+} -+#endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_rf_info(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -301,7 +494,19 @@ int proc_get_rf_info(char *page, char **start, - return len; - - } -+#else -+int proc_get_rf_info(struct seq_file *m, void *data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; -+ seq_printf(m, "cur_ch=%d, cur_bw=%d, cur_ch_offet=%d\n", -+ pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset); -+ return 0; -+} -+#endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_ap_info(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -350,7 +555,53 @@ int proc_get_ap_info(char *page, char **start, - return len; - - } -+#else -+int proc_get_ap_info(struct seq_file *m, void *data) -+{ -+ struct sta_info *psta; -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); -+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; -+ struct wlan_network *cur_network = &(pmlmepriv->cur_network); -+ struct sta_priv *pstapriv = &padapter->stapriv; -+ int len = 0; -+ -+ psta = rtw_get_stainfo(pstapriv, cur_network->network.MacAddress); -+ if(psta) -+ { -+ int i; -+ struct recv_reorder_ctrl *preorder_ctrl; -+ -+ seq_printf(m, "SSID=%s\n", cur_network->network.Ssid.Ssid); -+ seq_printf(m, "sta's macaddr:" MAC_FMT "\n", MAC_ARG(psta->hwaddr)); -+ seq_printf(m, "cur_channel=%d, cur_bwmode=%d, cur_ch_offset=%d\n", pmlmeext->cur_channel, pmlmeext->cur_bwmode, pmlmeext->cur_ch_offset); -+ seq_printf(m, "rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self); -+ seq_printf(m, "qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate); -+ seq_printf(m, "state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid); -+ seq_printf(m, "bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, psta->htpriv.sgi); -+ seq_printf(m, "ampdu_enable = %d\n", psta->htpriv.ampdu_enable); -+ seq_printf(m, "agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap); -+ -+ for(i=0;i<16;i++) -+ { -+ preorder_ctrl = &psta->recvreorder_ctrl[i]; -+ if(preorder_ctrl->enable) -+ { -+ seq_printf(m, "tid=%d, indicate_seq=%d\n", i, preorder_ctrl->indicate_seq); -+ } -+ } -+ -+ } -+ else -+ { -+ seq_printf(m, "can't get sta's macaddr, cur_network's macaddr:" MAC_FMT "\n", MAC_ARG(cur_network->network.MacAddress)); -+ } -+ return 0; -+} -+#endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_adapter_state(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -366,7 +617,18 @@ int proc_get_adapter_state(char *page, char **start, - return len; - - } -- -+#else -+int proc_get_adapter_state(struct seq_file *m, void *data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ seq_printf(m, "bSurpriseRemoved=%d, bDriverStopped=%d\n", -+ padapter->bSurpriseRemoved, padapter->bDriverStopped); -+ return 0; -+} -+#endif -+ -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_trx_info(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -387,8 +649,23 @@ int proc_get_trx_info(char *page, char **start, - return len; - - } -- -- -+#else -+int proc_get_trx_info(struct seq_file *m, void *data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct xmit_priv *pxmitpriv = &padapter->xmitpriv; -+ struct recv_priv *precvpriv = &padapter->recvpriv; -+ seq_printf(m, "free_xmitbuf_cnt=%d, free_xmitframe_cnt=%d, free_ext_xmitbuf_cnt=%d, free_recvframe_cnt=%d\n", -+ pxmitpriv->free_xmitbuf_cnt, pxmitpriv->free_xmitframe_cnt,pxmitpriv->free_xmit_extbuf_cnt, precvpriv->free_recvframe_cnt); -+#ifdef CONFIG_USB_HCI -+ seq_printf(m, "rx_urb_pending_cn=%d\n", precvpriv->rx_pending_cnt); -+#endif -+ return 0; -+} -+#endif -+ -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_rx_signal(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -452,7 +729,62 @@ int proc_set_rx_signal(struct file *file, const char *buffer, - return count; - - } -+#else -+int proc_get_rx_signal(struct seq_file *m, void *data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); -+ seq_printf(m, -+ "rssi:%d\n" -+ "rxpwdb:%d\n" -+ "signal_strength:%u\n" -+ "signal_qual:%u\n" -+ "noise:%u\n", -+ padapter->recvpriv.rssi, -+ padapter->recvpriv.rxpwdb, -+ padapter->recvpriv.signal_strength, -+ padapter->recvpriv.signal_qual, -+ padapter->recvpriv.noise -+ ); -+ return 0; -+} - -+ssize_t proc_set_rx_signal(struct file *file, const char *buffer, size_t count, loff_t *pos) -+{ -+ struct net_device *dev = (struct net_device *)pos; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ char tmp[32]; -+ u32 is_signal_dbg, signal_strength; -+ -+ if (count < 1) -+ return -EFAULT; -+ -+ if (buffer && !copy_from_user(tmp, buffer, sizeof(tmp))) { -+ -+ int num = sscanf(tmp, "%u %u", &is_signal_dbg, &signal_strength); -+ -+ is_signal_dbg = is_signal_dbg==0?0:1; -+ -+ if(is_signal_dbg && num!=2) -+ return count; -+ -+ signal_strength = signal_strength>100?100:signal_strength; -+ signal_strength = signal_strength<0?0:signal_strength; -+ -+ padapter->recvpriv.is_signal_dbg = is_signal_dbg; -+ padapter->recvpriv.signal_strength_dbg=signal_strength; -+ -+ if(is_signal_dbg) -+ DBG_871X("set %s %u\n", "DBG_SIGNAL_STRENGTH", signal_strength); -+ else -+ DBG_871X("set %s\n", "HW_SIGNAL_STRENGTH"); -+ } -+ return count; -+} -+#endif -+ -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_ampdu_enable(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -499,7 +831,46 @@ int proc_set_ampdu_enable(struct file *file, const char *buffer, - return count; - - } -+#else -+int proc_get_ampdu_enable(struct seq_file *m, void *data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct registry_priv *pregpriv = &padapter->registrypriv; -+ if(pregpriv) -+ seq_printf(m, -+ "%d\n", -+ pregpriv->ampdu_enable -+ ); -+ return 0; -+} -+ -+ssize_t proc_set_ampdu_enable(struct file *file, const char *buffer, size_t count, loff_t *pos) -+{ -+ struct net_device *dev = (struct net_device *)pos; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct registry_priv *pregpriv = &padapter->registrypriv; -+ char tmp[32]; -+ u32 mode; -+ -+ if (count < 1) -+ return -EFAULT; -+ -+ if (buffer && !copy_from_user(tmp, buffer, sizeof(tmp))) { -+ -+ int num = sscanf(tmp, "%d ", &mode); -+ -+ if( pregpriv && mode >= 0 && mode < 3 ) -+ { -+ pregpriv->ampdu_enable= mode; -+ printk("ampdu_enable=%d\n", mode); -+ } -+ } -+ return count; -+} -+#endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_rssi_disp(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -547,10 +918,52 @@ int proc_set_rssi_disp(struct file *file, const char *buffer, - return count; - - } -+#else -+int proc_get_rssi_disp(struct seq_file *m, void *data) -+{ -+ return 0; -+} -+ -+ssize_t proc_set_rssi_disp(struct file *file, const char *buffer, size_t count, loff_t *pos) -+{ -+ struct net_device *dev = (struct net_device *)pos; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ char tmp[32]; -+ u32 enable=0; - -+ if (count < 1) -+ { -+ DBG_8192C("argument size is less than 1\n"); -+ return -EFAULT; -+ } -+ -+ if (buffer && !copy_from_user(tmp, buffer, sizeof(tmp))) { -+ -+ int num = sscanf(tmp, "%x", &enable); -+ -+ if (num != 1) { -+ DBG_8192C("invalid set_rssi_disp parameter!\n"); -+ return count; -+ } - -+ if(enable) -+ { -+ DBG_8192C("Turn On Rx RSSI Display Function\n"); -+ padapter->bRxRSSIDisplay = enable ; -+ } -+ else -+ { -+ DBG_8192C("Turn Off Rx RSSI Display Function\n"); -+ padapter->bRxRSSIDisplay = 0 ; -+ } -+ } -+ return count; -+} -+#endif -+ - #ifdef CONFIG_AP_MODE - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_all_sta_info(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -620,14 +1033,74 @@ int proc_get_all_sta_info(char *page, char **start, - return len; - - } -- --#endif -+#else -+int proc_get_all_sta_info(struct seq_file *m, void *data) -+{ -+ _irqL irqL; -+ struct sta_info *psta; -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct sta_priv *pstapriv = &padapter->stapriv; -+ int i, j; -+ _list *plist, *phead; -+ struct recv_reorder_ctrl *preorder_ctrl; -+ seq_printf(m, "sta_dz_bitmap=0x%x, tim_bitmap=0x%x\n", pstapriv->sta_dz_bitmap, pstapriv->tim_bitmap); -+ -+ _enter_critical_bh(&pstapriv->sta_hash_lock, &irqL); -+ -+ for(i=0; i< NUM_STA; i++) -+ { -+ phead = &(pstapriv->sta_hash[i]); -+ plist = get_next(phead); -+ -+ while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) -+ { -+ psta = LIST_CONTAINOR(plist, struct sta_info, hash_list); -+ -+ plist = get_next(plist); -+ -+ //if(extra_arg == psta->aid) -+ { -+ seq_printf(m, "sta's macaddr:" MAC_FMT "\n", MAC_ARG(psta->hwaddr)); -+ seq_printf(m, "rtsen=%d, cts2slef=%d\n", psta->rtsen, psta->cts2self); -+ seq_printf(m, "qos_en=%d, ht_en=%d, init_rate=%d\n", psta->qos_option, psta->htpriv.ht_option, psta->init_rate); -+ seq_printf(m, "state=0x%x, aid=%d, macid=%d, raid=%d\n", psta->state, psta->aid, psta->mac_id, psta->raid); -+ seq_printf(m, "bwmode=%d, ch_offset=%d, sgi=%d\n", psta->htpriv.bwmode, psta->htpriv.ch_offset, psta->htpriv.sgi); -+ seq_printf(m, "ampdu_enable = %d\n", psta->htpriv.ampdu_enable); -+ seq_printf(m, "agg_enable_bitmap=%x, candidate_tid_bitmap=%x\n", psta->htpriv.agg_enable_bitmap, psta->htpriv.candidate_tid_bitmap); -+ seq_printf(m, "sleepq_len=%d\n", psta->sleepq_len); -+ seq_printf(m, "capability=0x%x\n", psta->capability); -+ seq_printf(m, "flags=0x%x\n", psta->flags); -+ seq_printf(m, "wpa_psk=0x%x\n", psta->wpa_psk); -+ seq_printf(m, "wpa2_group_cipher=0x%x\n", psta->wpa2_group_cipher); -+ seq_printf(m, "wpa2_pairwise_cipher=0x%x\n", psta->wpa2_pairwise_cipher); -+ seq_printf(m, "qos_info=0x%x\n", psta->qos_info); -+ seq_printf(m, "dot118021XPrivacy=0x%x\n", psta->dot118021XPrivacy); -+ -+ for(j=0;j<16;j++) -+ { -+ preorder_ctrl = &psta->recvreorder_ctrl[j]; -+ if(preorder_ctrl->enable) -+ { -+ seq_printf(m, "tid=%d, indicate_seq=%d\n", j, preorder_ctrl->indicate_seq); -+ } -+ } -+ } -+ } -+ } -+ _exit_critical_bh(&pstapriv->sta_hash_lock, &irqL); -+ return 0; -+} -+#endif -+ -+#endif - - #ifdef DBG_MEMORY_LEAK - #include - extern atomic_t _malloc_cnt;; - extern atomic_t _malloc_size;; - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_malloc_cnt(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -641,9 +1114,20 @@ int proc_get_malloc_cnt(char *page, char **start, - *eof = 1; - return len; - } -+#else -+int proc_get_malloc_cnt(struct seq_file *m, void *data) -+{ -+ seq_printf(m, "_malloc_cnt=%d\n", atomic_read(&_malloc_cnt)); -+ seq_printf(m, "_malloc_size=%d\n", atomic_read(&_malloc_size)); -+ return 0; -+} -+#endif -+ - #endif /* DBG_MEMORY_LEAK */ - - #ifdef CONFIG_FIND_BEST_CHANNEL -+ -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_best_channel(char *page, char **start, - off_t offset, int count, - int *eof, void *data) -@@ -703,6 +1187,61 @@ int proc_get_best_channel(char *page, char **start, - return len; - - } -+#else -+int proc_get_best_channel(struct seq_file *m, void *data) -+{ -+ struct net_device *dev = m->private; -+ _adapter *padapter = (_adapter *)rtw_netdev_priv(dev); -+ struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; -+ u32 i, best_channel_24G = 1, best_channel_5G = 36, index_24G = 0, index_5G = 0; -+ -+ for (i=0; pmlmeext->channel_set[i].ChannelNum !=0; i++) { -+ if ( pmlmeext->channel_set[i].ChannelNum == 1) -+ index_24G = i; -+ if ( pmlmeext->channel_set[i].ChannelNum == 36) -+ index_5G = i; -+ } -+ -+ for (i=0; pmlmeext->channel_set[i].ChannelNum !=0; i++) { -+ // 2.4G -+ if ( pmlmeext->channel_set[i].ChannelNum == 6 ) { -+ if ( pmlmeext->channel_set[i].rx_count < pmlmeext->channel_set[index_24G].rx_count ) { -+ index_24G = i; -+ best_channel_24G = pmlmeext->channel_set[i].ChannelNum; -+ } -+ } -+ -+ // 5G -+ if ( pmlmeext->channel_set[i].ChannelNum >= 36 -+ && pmlmeext->channel_set[i].ChannelNum < 140 ) { -+ // Find primary channel -+ if ( (( pmlmeext->channel_set[i].ChannelNum - 36) % 8 == 0) -+ && (pmlmeext->channel_set[i].rx_count < pmlmeext->channel_set[index_5G].rx_count) ) { -+ index_5G = i; -+ best_channel_5G = pmlmeext->channel_set[i].ChannelNum; -+ } -+ } -+ -+ if ( pmlmeext->channel_set[i].ChannelNum >= 149 -+ && pmlmeext->channel_set[i].ChannelNum < 165) { -+ // find primary channel -+ if ( (( pmlmeext->channel_set[i].ChannelNum - 149) % 8 == 0) -+ && (pmlmeext->channel_set[i].rx_count < pmlmeext->channel_set[index_5G].rx_count) ) { -+ index_5G = i; -+ best_channel_5G = pmlmeext->channel_set[i].ChannelNum; -+ } -+ } -+#if 1 // debug -+ seq_printf(m, "The rx cnt of channel %3d = %d\n", -+ pmlmeext->channel_set[i].ChannelNum, pmlmeext->channel_set[i].rx_count); -+#endif -+ } -+ seq_printf(m, "best_channel_5G = %d\n", best_channel_5G); -+ seq_printf(m, "best_channel_24G = %d\n", best_channel_24G); -+ return 0; -+} -+#endif -+ - #endif /* CONFIG_FIND_BEST_CHANNEL */ - - #endif -diff --git a/core/rtw_mp.c b/core/rtw_mp.c -index 0cdc094..bb76dae 100644 ---- a/core/rtw_mp.c -+++ b/core/rtw_mp.c -@@ -1140,8 +1140,7 @@ void SetPacketTx(PADAPTER padapter) - _rtw_memset(ptr, payload, pkt_end - ptr); - - //3 6. start thread -- pmp_priv->tx.PktTxThread = kernel_thread(mp_xmit_packet_thread, pmp_priv, CLONE_FS|CLONE_FILES); -- if(pmp_priv->tx.PktTxThread < 0) -+ if(!start_kthread(&pmp_priv->tx.PktTxThread, mp_xmit_packet_thread, pmp_priv, "8192cu-mp-xmit")) - DBG_871X("Create PktTx Thread Fail !!!!!\n"); - - } -diff --git a/hal/rtl8192c/usb/usb_halinit.c b/hal/rtl8192c/usb/usb_halinit.c -index eb5ea29..6cac2d5 100644 ---- a/hal/rtl8192c/usb/usb_halinit.c -+++ b/hal/rtl8192c/usb/usb_halinit.c -@@ -3786,6 +3786,8 @@ _ReadIDs( - pHalData->CustomerID = RT_CID_DLINK; - else if((pHalData->EEPROMVID == 0x2001) && (pHalData->EEPROMPID == 0x330a)) - pHalData->CustomerID = RT_CID_DLINK; -+ else if((pHalData->EEPROMVID == 0x2001) && (pHalData->EEPROMPID == 0x330d)) -+ pHalData->CustomerID = RT_CID_DLINK; - break; - case EEPROM_CID_WHQL: - /* -diff --git a/include/osdep_service.h b/include/osdep_service.h -index 2802187..6fedff4 100644 ---- a/include/osdep_service.h -+++ b/include/osdep_service.h -@@ -100,6 +100,9 @@ - #include - #endif - -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)) -+ #include -+#endif - - #ifdef CONFIG_USB_HCI - typedef struct urb * PURB; -@@ -133,8 +136,12 @@ - //typedef u32 _irqL; - typedef unsigned long _irqL; - typedef struct net_device * _nic_hdl; -- -+ -+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)) - typedef pid_t _thread_hdl_; -+#else -+ typedef struct task_struct * _thread_hdl_; -+#endif - typedef int thread_return; - typedef void* thread_context; - -@@ -572,7 +579,7 @@ __inline static void thread_enter(void *context) - #ifdef PLATFORM_LINUX - //struct net_device *pnetdev = (struct net_device *)context; - //daemonize("%s", pnetdev->name); -- daemonize("%s", "RTKTHREAD"); -+ //daemonize("%s", "RTKTHREAD"); - allow_signal(SIGTERM); - #endif - } -@@ -827,4 +834,8 @@ extern u64 rtw_division64(u64 x, u64 y); - - #endif - -+#ifdef PLATFORM_LINUX -+extern int start_kthread(_thread_hdl_ *t_hdl, int (*threadfn)(void *data), -+ void *data, const char *name); -+#endif - -diff --git a/include/rtw_debug.h b/include/rtw_debug.h -index eca6692..624add6 100644 ---- a/include/rtw_debug.h -+++ b/include/rtw_debug.h -@@ -24,7 +24,6 @@ - #include - #include - -- - #define _drv_emerg_ 1 - #define _drv_alert_ 2 - #define _drv_crit_ 3 -@@ -35,7 +34,6 @@ - #define _drv_dump_ 8 - #define _drv_debug_ 9 - -- - #define _module_rtl871x_xmit_c_ BIT(0) - #define _module_xmit_osdep_c_ BIT(1) - #define _module_rtl871x_recv_c_ BIT(2) -@@ -179,7 +177,6 @@ extern void rtl871x_cedbg(const char *fmt, ...); - - #endif /* CONFIG_DEBUG_RTL871X */ - -- - #if defined (_dbgdump) && defined (_MODULE_DEFINE_) - - #undef RT_TRACE -@@ -193,7 +190,6 @@ extern void rtl871x_cedbg(const char *fmt, ...); - - #endif - -- - #if defined (_dbgdump) - - #undef _func_enter_ -@@ -231,7 +227,6 @@ extern void rtl871x_cedbg(const char *fmt, ...); - } - #endif - -- - #ifdef CONFIG_DEBUG_RTL819X - #ifdef PLATFORM_WINDOWS - -@@ -281,10 +276,9 @@ extern void rtl871x_cedbg(const char *fmt, ...); - #define ERR_8192C _dbgdump - #endif - -- -- - #ifdef CONFIG_PROC_DEBUG - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_drv_version(char *page, char **start, - off_t offset, int count, - int *eof, void *data); -@@ -293,8 +287,8 @@ extern void rtl871x_cedbg(const char *fmt, ...); - off_t offset, int count, - int *eof, void *data); - -- int proc_set_write_reg(struct file *file, const char *buffer, -- unsigned long count, void *data); -+ int proc_set_write_reg(struct file *file, const char *buffer, -+ unsigned long count, void *data); - - int proc_get_read_reg(char *page, char **start, - off_t offset, int count, -@@ -303,7 +297,6 @@ extern void rtl871x_cedbg(const char *fmt, ...); - int proc_set_read_reg(struct file *file, const char *buffer, - unsigned long count, void *data); - -- - int proc_get_fwstate(char *page, char **start, - off_t offset, int count, - int *eof, void *data); -@@ -339,28 +332,75 @@ extern void rtl871x_cedbg(const char *fmt, ...); - int proc_get_trx_info(char *page, char **start, - off_t offset, int count, - int *eof, void *data); -+#else -+ int proc_get_drv_version(struct seq_file *m, void *data); -+ -+ int proc_get_write_reg(struct seq_file *m, void *data); -+ -+ ssize_t proc_set_write_reg(struct file *file, const char *buffer, -+ size_t count, loff_t *pos); -+ -+ int proc_get_read_reg(struct seq_file *m, void *data); -+ -+ ssize_t proc_set_read_reg(struct file *file, const char *buffer, -+ size_t count, loff_t *pos); -+ -+ int proc_get_fwstate(struct seq_file *m, void *data); -+ -+ int proc_get_sec_info(struct seq_file *m, void *data); -+ -+ int proc_get_mlmext_state(struct seq_file *m, void *data); - -+ int proc_get_qos_option(struct seq_file *m, void *data); -+ -+ int proc_get_ht_option(struct seq_file *m, void *data); -+ -+ int proc_get_rf_info(struct seq_file *m, void *data); -+ -+ int proc_get_ap_info(struct seq_file *m, void *data); -+ -+ int proc_get_adapter_state(struct seq_file *m, void *data); -+ -+ int proc_get_trx_info(struct seq_file *m, void *data); -+#endif - - #ifdef CONFIG_AP_MODE - -+# if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_all_sta_info(char *page, char **start, - off_t offset, int count, - int *eof, void *data); -+# else -+ int proc_get_all_sta_info(struct seq_file *m, void *data); -+# endif - - #endif - - #ifdef DBG_MEMORY_LEAK -+ -+# if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_malloc_cnt(char *page, char **start, - off_t offset, int count, - int *eof, void *data); -+# else -+ int proc_get_malloc_cnt(struct seq_file *m, void *data); -+# endif -+ - #endif - - #ifdef CONFIG_FIND_BEST_CHANNEL -+ -+# if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_best_channel(char *page, char **start, - off_t offset, int count, - int *eof, void *data); -+# else -+ int proc_get_best_channel(struct seq_file *m, void *data); -+# endif -+ - #endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - int proc_get_rx_signal(char *page, char **start, - off_t offset, int count, - int *eof, void *data); -@@ -381,7 +421,22 @@ extern void rtl871x_cedbg(const char *fmt, ...); - - int proc_set_rssi_disp(struct file *file, const char *buffer, - unsigned long count, void *data); -- -+#else -+ int proc_get_rx_signal(struct seq_file *m, void *data); -+ -+ ssize_t proc_set_rx_signal(struct file *file, const char *buffer, -+ size_t count, loff_t *pos); -+ -+ int proc_get_ampdu_enable(struct seq_file *m, void *data); -+ -+ ssize_t proc_set_ampdu_enable(struct file *file, const char *buffer, -+ size_t count, loff_t *pos); -+ -+ int proc_get_rssi_disp(struct seq_file *m, void *data); -+ -+ ssize_t proc_set_rssi_disp(struct file *file, const char *buffer, -+ size_t count, loff_t *pos); -+#endif - - #endif //CONFIG_PROC_DEBUG - -diff --git a/include/rtw_recv.h b/include/rtw_recv.h -index a88f505..e204ef3 100644 ---- a/include/rtw_recv.h -+++ b/include/rtw_recv.h -@@ -623,8 +623,9 @@ __inline static union recv_frame *rxmem_to_recvframe(u8 *rxmem) - //from any given member of recv_frame. - // rxmem indicates the any member/address in recv_frame - -- return (union recv_frame*)(((uint)rxmem>>RXFRAME_ALIGN) <>RXFRAME_ALIGN) <> RXFRAME_ALIGN) << RXFRAME_ALIGN); -+ return (union recv_frame*)(((ulong)rxmem>>RXFRAME_ALIGN) <= 3.10 -+ */ -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) -+ -+static int proc_get_drv_version_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_drv_version, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_drv_version_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_drv_version_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+static int proc_get_write_reg_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_write_reg, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_write_reg_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_write_reg_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .write = proc_set_write_reg, -+ .release = seq_release, -+}; -+ -+static int proc_get_read_reg_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_read_reg, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_read_reg_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_read_reg_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .write = proc_set_read_reg, -+ .release = seq_release, -+}; -+ -+static int proc_get_rssi_disp_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_rssi_disp, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_rssi_disp_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_rssi_disp_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .write = proc_set_rssi_disp, -+ .release = seq_release, -+}; -+ -+static int proc_get_ampdu_enable_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_ampdu_enable, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_ampdu_enable_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_ampdu_enable_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .write = proc_set_ampdu_enable, -+ .release = seq_release, -+}; -+ -+static int proc_get_rx_signal_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_rx_signal, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_rx_signal_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_rx_signal_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .write = proc_set_rx_signal, -+ .release = seq_release, -+}; -+ -+static int proc_get_fwstate_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_fwstate, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_fwstate_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_fwstate_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+static int proc_get_mlmext_state_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_mlmext_state, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_mlmext_state_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_mlmext_state_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+static int proc_get_qos_option_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_qos_option, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_qos_option_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_qos_option_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+static int proc_get_ht_option_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_ht_option, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_ht_option_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_ht_option_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+static int proc_get_rf_info_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_rf_info, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_rf_info_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_rf_info_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+static int proc_get_ap_info_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_ap_info, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_ap_info_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_ap_info_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+static int proc_get_adapter_state_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_adapter_state, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_adapter_state_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_adapter_state_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+static int proc_get_trx_info_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_trx_info, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_trx_info_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_trx_info_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+static int proc_get_sec_info_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_sec_info, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_sec_info_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_sec_info_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+# ifdef CONFIG_AP_MODE -+ -+static int proc_get_all_sta_info_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_all_sta_info, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_all_sta_info_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_all_sta_info_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+# endif -+ -+# ifdef DBG_MEMORY_LEAK -+ -+static int proc_get_malloc_cnt_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_malloc_cnt, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_malloc_cnt_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_malloc_cnt_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+# endif -+ -+# ifdef CONFIG_FIND_BEST_CHANNEL -+ -+static int proc_get_best_channel_open(struct inode *inode, struct file *file){ -+ return single_open(file, proc_get_best_channel, PDE_DATA(inode)); -+} -+ -+static const struct file_operations proc_get_best_channel_fops = { -+ .owner = THIS_MODULE, -+ .open = proc_get_best_channel_open, -+ .read = seq_read, -+ .llseek = seq_lseek, -+ .release = single_release, -+}; -+ -+# endif -+ -+#endif -+ - void rtw_proc_init_one(struct net_device *dev) - { - struct proc_dir_entry *dir_dev = NULL; -@@ -275,28 +515,37 @@ void rtw_proc_init_one(struct net_device *dev) - #if(LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) - rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, proc_net); - #else -+# if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net); -+# else -+ rtw_proc=proc_mkdir(rtw_proc_name, init_net.proc_net); -+# endif - #endif - if (rtw_proc == NULL) { - DBG_8192C(KERN_ERR "Unable to create rtw_proc directory\n"); - return; - } - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev); -+#else -+ entry = proc_create_data("ver_info", S_IFREG | S_IRUGO, rtw_proc, &proc_get_drv_version_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } - } - -- -- - if(padapter->dir_dev == NULL) - { -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - padapter->dir_dev = create_proc_entry(dev->name, - S_IFDIR | S_IRUGO | S_IXUGO, - rtw_proc); -- -+#else -+ padapter->dir_dev = proc_mkdir(dev->name,rtw_proc); -+#endif - dir_dev = padapter->dir_dev; - - if(dir_dev==NULL) -@@ -324,84 +573,127 @@ void rtw_proc_init_one(struct net_device *dev) - - rtw_proc_cnt++; - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("write_reg", S_IFREG | S_IRUGO, - dir_dev, proc_get_write_reg, dev); -+#else -+ entry = proc_create_data("write_reg", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_write_reg_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry->write_proc = proc_set_write_reg; - - entry = create_proc_read_entry("read_reg", S_IFREG | S_IRUGO, - dir_dev, proc_get_read_reg, dev); -+#else -+ entry = proc_create_data("read_reg", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_read_reg_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry->write_proc = proc_set_read_reg; - -- - entry = create_proc_read_entry("fwstate", S_IFREG | S_IRUGO, - dir_dev, proc_get_fwstate, dev); -+#else -+ entry = proc_create_data("fwstate", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_fwstate_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -- -- -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("sec_info", S_IFREG | S_IRUGO, - dir_dev, proc_get_sec_info, dev); -+#else -+ entry = proc_create_data("sec_info", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_sec_info_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -- -- -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("mlmext_state", S_IFREG | S_IRUGO, - dir_dev, proc_get_mlmext_state, dev); -+#else -+ entry = proc_create_data("mlmext_state", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_mlmext_state_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -- -- -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("qos_option", S_IFREG | S_IRUGO, - dir_dev, proc_get_qos_option, dev); -+#else -+ entry = proc_create_data("qos_option", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_qos_option_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -- -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("ht_option", S_IFREG | S_IRUGO, - dir_dev, proc_get_ht_option, dev); -+#else -+ entry = proc_create_data("ht_option", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_ht_option_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -- -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("rf_info", S_IFREG | S_IRUGO, - dir_dev, proc_get_rf_info, dev); -+#else -+ entry = proc_create_data("rf_info", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_rf_info_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -- -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("ap_info", S_IFREG | S_IRUGO, - dir_dev, proc_get_ap_info, dev); -+#else -+ entry = proc_create_data("ap_info", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_ap_info_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -- -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("adapter_state", S_IFREG | S_IRUGO, - dir_dev, proc_get_adapter_state, dev); -+#else -+ entry = proc_create_data("adapter_state", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_adapter_state_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -- -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("trx_info", S_IFREG | S_IRUGO, - dir_dev, proc_get_trx_info, dev); -+#else -+ entry = proc_create_data("trx_info", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_trx_info_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; -@@ -409,56 +701,93 @@ void rtw_proc_init_one(struct net_device *dev) - - #ifdef CONFIG_AP_MODE - -+# if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("all_sta_info", S_IFREG | S_IRUGO, - dir_dev, proc_get_all_sta_info, dev); -+# else -+ entry = proc_create_data("all_sta_info", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_all_sta_info_fops, dev); -+# endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -+ - #endif - - #ifdef DBG_MEMORY_LEAK -+ -+# if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("_malloc_cnt", S_IFREG | S_IRUGO, - dir_dev, proc_get_malloc_cnt, dev); -+# else -+ entry = proc_create_data("_malloc_cnt", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_malloc_cnt_fops, dev); -+# endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -+ - #endif - - #ifdef CONFIG_FIND_BEST_CHANNEL -+ -+# if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("best_channel", S_IFREG | S_IRUGO, - dir_dev, proc_get_best_channel, dev); -+# else -+ entry = proc_create_data("best_channel", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_best_channel_fops, dev); -+# endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -+ - #endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry = create_proc_read_entry("rx_signal", S_IFREG | S_IRUGO, - dir_dev, proc_get_rx_signal, dev); -+#else -+ entry = proc_create_data("rx_signal", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_rx_signal_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry->write_proc = proc_set_rx_signal; - - entry = create_proc_read_entry("ampdu_enable", S_IFREG | S_IRUGO, - dir_dev, proc_get_ampdu_enable, dev); -+#else -+ entry = proc_create_data("ampdu_enable", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_ampdu_enable_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -+ -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry->write_proc = proc_set_ampdu_enable; - - entry = create_proc_read_entry("rssi_disp", S_IFREG | S_IRUGO, - dir_dev, proc_get_rssi_disp, dev); -+#else -+ entry = proc_create_data("rssi_disp", S_IFREG | S_IRUGO, -+ dir_dev, &proc_get_rssi_disp_fops, dev); -+#endif - if (!entry) { - DBG_871X("Unable to create_proc_read_entry!\n"); - return; - } -+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) - entry->write_proc = proc_set_rssi_disp; -- -+#endif - } - - void rtw_proc_remove_one(struct net_device *dev) -@@ -797,27 +1126,22 @@ u32 rtw_start_drv_threads(_adapter *padapter) - RT_TRACE(_module_os_intfs_c_,_drv_info_,("+rtw_start_drv_threads\n")); - - #ifdef CONFIG_SDIO_HCI -- padapter->xmitThread = kernel_thread(rtw_xmit_thread, padapter, CLONE_FS|CLONE_FILES); -- if(padapter->xmitThread < 0) -+ if(!start_kthread(&padapter->xmitThread, rtw_xmit_thread, padapter, "8192cu-xmit")) - _status = _FAIL; - #endif - - #ifdef CONFIG_RECV_THREAD_MODE -- padapter->recvThread = kernel_thread(recv_thread, padapter, CLONE_FS|CLONE_FILES); -- if(padapter->recvThread < 0) -+ if(!start_kthread(&padapter->recvThread, recv_thread, padapter, "8192cu-recv")) - _status = _FAIL; - #endif - -- padapter->cmdThread = kernel_thread(rtw_cmd_thread, padapter, CLONE_FS|CLONE_FILES); -- if(padapter->cmdThread < 0) -+ if(!start_kthread(&padapter->cmdThread, rtw_cmd_thread, padapter, "8192cu-cmd")) - _status = _FAIL; - else - _rtw_down_sema(&padapter->cmdpriv.terminate_cmdthread_sema); //wait for cmd_thread to run -- - - #ifdef CONFIG_EVENT_THREAD_MODE -- padapter->evtThread = kernel_thread(event_thread, padapter, CLONE_FS|CLONE_FILES); -- if(padapter->evtThread < 0) -+ if(!start_kthread(&padapter->evtThread, event_thread, padapter, "8192cu-evt")) - _status = _FAIL; - #endif - -diff --git a/os_dep/linux/usb_intf.c b/os_dep/linux/usb_intf.c -index 134acdc..f9a01e9 100644 ---- a/os_dep/linux/usb_intf.c -+++ b/os_dep/linux/usb_intf.c -@@ -99,7 +99,9 @@ static struct usb_device_id rtw_usb_id_tbl[] ={ - {USB_DEVICE(0x2019, 0xED17)},//PCI - Edimax - {USB_DEVICE(0x0DF6, 0x0052)},//Sitecom - Edimax - {USB_DEVICE(0x7392, 0x7811)},//Edimax - Edimax -+ {USB_DEVICE(0x07B8, 0x8188)},//Abocom - Abocom - {USB_DEVICE(0x07B8, 0x8189)},//Abocom - Abocom -+ {USB_DEVICE(0x0846, 0x9041)},//NetGear WNA1000M - {USB_DEVICE(0x0EB0, 0x9071)},//NO Brand - Etop - {USB_DEVICE(0x06F8, 0xE033)},//Hercules - Edimax - {USB_DEVICE(0x103C, 0x1629)},//HP - Lite-On ,8188CUS Slim Combo -@@ -137,6 +139,7 @@ static struct usb_device_id rtw_usb_id_tbl[] ={ - {USB_DEVICE(0x2001, 0x3307)},//D-Link - Cameo - {USB_DEVICE(0x2001, 0x330A)},//D-Link - Alpha - {USB_DEVICE(0x2001, 0x3309)},//D-Link - Alpha -+ {USB_DEVICE(0x2001, 0x330D)},//D-Link - Alpha(?) - {USB_DEVICE(0x0586, 0x341F)},//Zyxel - Abocom - {USB_DEVICE(0x7392, 0x7822)},//Edimax - Edimax - {USB_DEVICE(0x2019, 0xAB2B)},//Planex - Abocom -diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c -index 04cb35f..343cd82 100644 ---- a/os_dep/osdep_service.c -+++ b/os_dep/osdep_service.c -@@ -1553,3 +1553,19 @@ u64 rtw_division64(u64 x, u64 y) - #endif - } - -+#ifdef PLATFORM_LINUX -+int start_kthread(_thread_hdl_ *t_hdl, int (*threadfn)(void *data), -+ void *data, const char *name) -+{ -+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)) -+ *t_hdl = kernel_thread(threadfn, data, CLONE_FS|CLONE_FILES); -+ if(*t_hdl < 0) -+#else -+ *t_hdl = kthread_run(threadfn, data, name); -+ if(IS_ERR(*t_hdl)) -+#endif -+ return 0; -+ return -1; -+} -+#endif -+ diff --git a/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.4.4.4749.20121105/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105.tar.gz b/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.4.4.4749.20121105/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105.tar.gz deleted file mode 100755 index 3abb3bd..0000000 Binary files a/meta-openvuplus/recipes-connectivity/realtek/r8192cu-3.4.4.4749.20121105/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105.tar.gz and /dev/null differ diff --git a/meta-openvuplus/recipes-connectivity/realtek/r8192cu_3.1.2590.20110922.bb b/meta-openvuplus/recipes-connectivity/realtek/r8192cu_3.1.2590.20110922.bb deleted file mode 100644 index 9079bb7..0000000 --- a/meta-openvuplus/recipes-connectivity/realtek/r8192cu_3.1.2590.20110922.bb +++ /dev/null @@ -1,34 +0,0 @@ -DESCRIPTION = "driver for Realtek USB wireless devices" -SECTION = "kernel/modules" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://os_dep/linux/os_intfs.c;md5=9335a12a66bce6b5e29421aac1aa5383" - -inherit module - -SRC_URI = " \ - file://rtl8192_8188CU_linux_v3.1.2590.20110922.tar.gz \ - file://makefile.patch;patch=1 \ - file://linux_3.1.patch;patch=1 \ -" - -S = "${WORKDIR}/rtl8192_8188CU_linux_v${PV}" - -PR = "r0" - -do_compile () { - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP - oe_runmake ${MODULE_MAKE_FLAGS} -} - -do_install() { - install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless - install -m 0644 ${S}/8192cu.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless -} - -MODULE_MAKE_FLAGS += " \ - CROSS_COMPILE=${TARGET_PREFIX} \ - KVER=${KERNEL_VERSION} \ - KSRC=${STAGING_KERNEL_DIR} \ - KDIR=${STAGING_KERNEL_DIR} \ -" - diff --git a/meta-openvuplus/recipes-connectivity/realtek/r8192cu_3.4.4.4749.20121105.bb b/meta-openvuplus/recipes-connectivity/realtek/r8192cu_3.4.4.4749.20121105.bb deleted file mode 100644 index fd59f98..0000000 --- a/meta-openvuplus/recipes-connectivity/realtek/r8192cu_3.4.4.4749.20121105.bb +++ /dev/null @@ -1,29 +0,0 @@ -SUMMARY = "Driver for Realtek USB wireless devices" -HOMEPAGE = "http://www.realtek.com/" -LICENSE = "GPLv2" -PR = "r3" -LIC_FILES_CHKSUM = "file://os_dep/linux/os_intfs.c;endline=19;md5=f8d10a6bd2fdfa240c0634a7c660c57f" - -SRC_URI = "file://rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105.tar.gz" - -SRC_URI += "${@base_version_less_or_equal('VUPLUS_KERNEL_VERSION', '3.4.0', ' ', 'file://r8192cu_build_fix.patch', d)}" - -S = "${WORKDIR}/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105" - -inherit module siteinfo - -EXTRA_OEMAKE = "CONFIG_RTL8192CU=m" - -do_configure() { - sed -e "s/^CONFIG_PLATFORM_I386_PC.*=.*y/EXTRA_CFLAGS += -DCONFIG_${@base_conditional('SITEINFO_ENDIANNESS', 'le', 'LITTLE', 'BIG', d)}_ENDIAN/" -i Makefile -} -do_compile() { - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS - oe_runmake -C "${STAGING_KERNEL_DIR}" M="${S}" modules -} - -do_install() { - install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless - install -m 0644 ${S}/8192cu.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless -} - diff --git a/meta-openvuplus/recipes-connectivity/realtek/r8712u/config b/meta-openvuplus/recipes-connectivity/realtek/r8712u/config deleted file mode 100644 index 6decb18..0000000 --- a/meta-openvuplus/recipes-connectivity/realtek/r8712u/config +++ /dev/null @@ -1,27 +0,0 @@ - -# -# Automatically generated make config: don't edit -# - -CONFIG_RTL8711 = n -CONFIG_RTL8712 = y - - -CONFIG_USB_HCI = y -CONFIG_SDIO_HCI = n - - -CONFIG_MP_INCLUDED = y - -CONFIG_PLATFORM_I386_PC = n -CONFIG_PLATFORM_ANDROID_X86 = n -CONFIG_PLATFORM_ARM_S3C = n -CONFIG_PLATFORM_ARM_PXA = n -CONFIG_PLATFORM_MIPS_RMI = n -CONFIG_PLATFORM_RTK_DMP = n -CONFIG_PLATFORM_MIPS_PLM = n -CONFIG_PLATFORM_RTD2880B = n -CONFIG_PLATFORM_MSTAR389 = n - -CONFIG_MLME_EXT = n -CONFIG_DRVEXT_MODULE = n diff --git a/meta-openvuplus/recipes-connectivity/realtek/r8712u/strcasecmp.patch b/meta-openvuplus/recipes-connectivity/realtek/r8712u/strcasecmp.patch deleted file mode 100644 index 0aea6d9..0000000 --- a/meta-openvuplus/recipes-connectivity/realtek/r8712u/strcasecmp.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/ioctl/rtl871x_ioctl_linux.c b/ioctl/rtl871x_ioctl_linux.c -index 6f707de..561c50f 100755 ---- a/ioctl/rtl871x_ioctl_linux.c -+++ b/ioctl/rtl871x_ioctl_linux.c -@@ -52,6 +52,9 @@ - #define iwe_stream_add_point(a, b, c, d, e) iwe_stream_add_point(b, c, d, e) - #endif - -+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)) -+#define strcasecmp(s1, s2) strcmp(s1, s2) -+#endif - - #define RTL_IOCTL_WPA_SUPPLICANT SIOCIWFIRSTPRIV+0x1E - diff --git a/meta-openvuplus/recipes-connectivity/realtek/r8712u_2.6.6.0.20101111.bb b/meta-openvuplus/recipes-connectivity/realtek/r8712u_2.6.6.0.20101111.bb deleted file mode 100644 index bd4d843..0000000 --- a/meta-openvuplus/recipes-connectivity/realtek/r8712u_2.6.6.0.20101111.bb +++ /dev/null @@ -1,30 +0,0 @@ -SUMMARY = "driver for Realtek USB wireless devices" -HOMEPAGE = "http://www.realtek.com/" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://os_intf/linux/os_intfs.c;endline=19;md5=d1bbd9348c57df9fd08439bddfa32ec5" -PR = "r1" - -SRC_URI = " \ - http://dreamboxupdate.com/download/sources/rtl8712_8188_8191_8192SU_usb_linux_v${PV}.tar.gz \ - file://strcasecmp.patch \ - file://config \ -" -SRC_URI[md5sum] = "137423701c43ac5f09007a393406e678" -SRC_URI[sha256sum] = "34ef8534361b0ce9ec756de8babe68f40ba9ce7a2be23d84cf9c185cc4a7c9bb" - -S = "${WORKDIR}/rtl8712_8188_8191_8192SU_usb_linux_v${PV}" - -inherit module siteinfo - -do_configure() { - install -m 644 ${WORKDIR}/config ${S} - echo "EXTRA_CFLAGS += -DCONFIG_${@base_conditional('SITEINFO_ENDIANNESS', 'le', 'LITTLE', 'BIG', d)}_ENDIAN" >> ${S}/config -} -do_compile() { - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS - oe_runmake -C "${STAGING_KERNEL_DIR}" SUBDIRS="${S}" modules -} -do_install() { - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS - oe_runmake -C "${STAGING_KERNEL_DIR}" SUBDIRS="${S}" DEPMOD="echo" INSTALL_MOD_PATH="${D}" modules_install -} diff --git a/meta-openvuplus/recipes-connectivity/rt73-firmware/rt73-firmware_1.8.bb b/meta-openvuplus/recipes-connectivity/rt73-firmware/rt73-firmware_1.8.bb index 70c5760..206c015 100644 --- a/meta-openvuplus/recipes-connectivity/rt73-firmware/rt73-firmware_1.8.bb +++ b/meta-openvuplus/recipes-connectivity/rt73-firmware/rt73-firmware_1.8.bb @@ -15,3 +15,6 @@ do_install() { FILES_${PN} = "${base_libdir}/firmware/" PACKAGE_ARCH = "all" + +SRC_URI[md5sum] = "1e7a5dc574e0268574fcda3fd5cf52f7" +SRC_URI[sha256sum] = "e2d3ac1aaf4815e0c9531bc3fb7f56f30604cd52351332f1f8d6a28bb9a953bf" diff --git a/meta-openvuplus/recipes-connectivity/samba/samba-basic.inc b/meta-openvuplus/recipes-connectivity/samba/samba-basic.inc new file mode 100644 index 0000000..f0a9bd7 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/samba/samba-basic.inc @@ -0,0 +1,20 @@ +SRC_URI += "file://config-lfs.patch \ + file://quota.patch;striplevel=0 \ + " + +EXTRA_OECONF += "\ + --without-ads \ + --without-winbind \ + --without-ldap \ + --without-krb5" + +PACKAGES =+ "libnetapi libtdb libsmbsharemodes libsmbclient libsmbclient-dev cifs cifs-doc swat" + +FILES_libnetapi = "${libdir}/libnetapi.so.*" +FILES_libsmbsharemodes = "${libdir}/libsmbsharemodes.so.*" +FILES_libtdb = "${libdir}/libtdb.so.*" +FILES_cifs = "${base_sbindir}/mount.cifs ${base_sbindir}/umount.cifs" +FILES_cifs-doc = "${mandir}/man8/mount.cifs.8 ${mandir}/man8/umount.cifs.8" +FILES_libsmbclient = "${libdir}/libsmbclient.so.*" +FILES_libsmbclient-dev = "${libdir}/libsmbclient.so ${includedir}" +FILES_swat = "${sbindir}/swat ${datadir}/swat ${libdir}/*.msg" diff --git a/meta-openvuplus/recipes-connectivity/samba/samba.inc b/meta-openvuplus/recipes-connectivity/samba/samba.inc new file mode 100644 index 0000000..d3ff384 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/samba/samba.inc @@ -0,0 +1,89 @@ +SECTION = "console/network" +LICENSE = "GPL" +DEPENDS = "readline virtual/libiconv talloc" + +SRC_URI = "http://samba.org/samba/ftp/stable/samba-${PV}.tar.gz \ + file://volatiles.03_samba \ + file://smb.conf \ + file://init \ + file://tdb.pc \ + " + +S = "${WORKDIR}/samba-${PV}/source" + +inherit autotools-brokensep update-rc.d + +FILES_${PN} += "${libdir}/vfs/*.so ${libdir}/charset/*.so ${libdir}/*.dat \ + ${libdir}/auth/*.so ${libdir}/security/*.so" +FILES_${PN}-dbg += "${libdir}/vfs/.debug/*.so ${libdir}/charset/.debug/*.so \ + ${libdir}/auth/.debug/*.so ${libdir}/security/.debug/*.so" + +SAMBAMMAP = "no" +SAMBAMMAP_libc-glibc = "yes" + +# The file system settings --foodir=dirfoo and overridden unconditionally +# in the samba config by --with-foodir=dirfoo - even if the --with is not +# specified! Fix that here. Set the privatedir to /etc/samba/private. +EXTRA_OECONF='--disable-cups \ + --with-readline=${STAGING_LIBDIR}/.. \ + --with-libiconv=${STAGING_LIBDIR}/.. \ + --without-automount \ + --with-configdir=${sysconfdir}/samba \ + --with-privatedir=${sysconfdir}/samba/private \ + --with-lockdir=${localstatedir}/lock \ + --with-piddir=${localstatedir}/run \ + --with-logfilebase=${localstatedir}/log \ + --with-libdir=${libdir} \ + --with-mandir=${mandir} \ + --with-swatdir=${datadir}/swat \ + --with-aio-support \ + --without-libtalloc \ + samba_cv_struct_timespec=yes \ + libreplace_cv_HAVE_MMAP=${SAMBAMMAP}' + +INITSCRIPT_NAME = "samba" +# No dependencies, goes in at level 20 (NOTE: take care with the +# level, later levels put the shutdown later too - see the links +# in rc6.d, the shutdown must precede network shutdown). +INITSCRIPT_PARAMS = "defaults" +CONFFILES_${PN} = "${sysconfdir}/samba/smb.conf" + +do_configure_prepend () { + ./script/mkversion.sh + if [ ! -e acinclude.m4 ]; then + touch aclocal.m4 + cat aclocal.m4 > acinclude.m4 + fi +} + +do_compile () { + oe_runmake proto_exists + base_do_compile +} + +do_install_append() { + install -d ${D}${libdir}/pkgconfig/ + cp ${WORKDIR}/tdb.pc ${D}${libdir}/pkgconfig/ + mv ${D}${libdir}/libsmbclient.so ${D}${libdir}/libsmbclient.so.0 || true + ln -sf libsmbclient.so.0 ${D}${libdir}/libsmbclient.so + mkdir -p ${D}${base_sbindir} + rm -f ${D}${bindir}/*.old + rm -f ${D}${sbindir}/*.old + [ -f ${D}${sbindir}/mount.cifs ] && mv ${D}${sbindir}/mount.cifs ${D}${base_sbindir}/ + [ -f ${D}${sbindir}/umount.cifs ] && mv ${D}${sbindir}/umount.cifs ${D}${base_sbindir}/ + + # This is needed for < 3.2.4 + rm -f ${D}${sbindir}/mount.smbfs ${D}${base_sbindir}/mount.smbfs + if [ -f ${D}${bindir}/smbmount ]; then + ln -sf ${bindir}/smbmount ${D}${base_sbindir}/mount.smb + ln -sf ${bindir}/smbmount ${D}${base_sbindir}/mount.smbfs + fi + + install -D -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/samba + install -D -m 644 ${WORKDIR}/smb.conf ${D}${sysconfdir}/samba/smb.conf + install -D -m 644 ${WORKDIR}/volatiles.03_samba ${D}${sysconfdir}/default/volatiles/volatiles.03_samba + install -d ${D}/var/log/samba + install -d ${D}/var/spool/samba + rmdir ${D}/var/run +} + diff --git a/meta-openvuplus/recipes-connectivity/samba/samba_3.0.37.bb b/meta-openvuplus/recipes-connectivity/samba/samba_3.0.37.bb index eb05c71..13949da 100644 --- a/meta-openvuplus/recipes-connectivity/samba/samba_3.0.37.bb +++ b/meta-openvuplus/recipes-connectivity/samba/samba_3.0.37.bb @@ -1,5 +1,5 @@ -require recipes-connectivity/samba/samba.inc -require recipes-connectivity/samba/samba-basic.inc +require samba.inc +require samba-basic.inc LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://../COPYING;md5=8ca43cbc842c2336e835926c2166c28b" PR = "r2" diff --git a/meta-openvuplus/recipes-connectivity/samba/samba_3.0.37.bbappend b/meta-openvuplus/recipes-connectivity/samba/samba_3.0.37.bbappend index bbbfc66..77f43ba 100644 --- a/meta-openvuplus/recipes-connectivity/samba/samba_3.0.37.bbappend +++ b/meta-openvuplus/recipes-connectivity/samba/samba_3.0.37.bbappend @@ -1,4 +1,4 @@ -PR .= "-vuplus3" +PR .= "-vuplus0" SRC_URI += " \ file://01samba-kill \ diff --git a/meta-openvuplus/recipes-connectivity/tasks/task-vuplus-wlan.bb b/meta-openvuplus/recipes-connectivity/tasks/task-vuplus-wlan.bb deleted file mode 100644 index db7c0f2..0000000 --- a/meta-openvuplus/recipes-connectivity/tasks/task-vuplus-wlan.bb +++ /dev/null @@ -1,57 +0,0 @@ -DESCRIPTION = "Vuplus: W-LAN Task for the Vuplus Distribution" -SECTION = "vuplus/base" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" -PR = "r16" - -inherit task - -DEPENDS_${PN} = "enigma2-plugins" -RDEPENDS_${PN} = "\ - ${@base_contains("VUPLUS_FEATURES", "vuwlan", "enigma2-plugin-systemplugins-wirelesslansetup", "enigma2-plugin-systemplugins-wirelesslan", d)} \ - wireless-tools \ - wpa-supplicant \ -" - -WIFI_FIRMWARES = "\ - rt73-firmware \ - zd1211-firmware \ - firmware-htc9271 \ - firmware-rt2561 \ - firmware-rtl8721u \ - firmware-rt3070 \ -" - -KERNEL_WIFI_MODULES = " \ - kernel-module-ath9k-htc \ - kernel-module-carl9170 \ - kernel-module-prism2-usb \ - kernel-module-rt73usb \ - kernel-module-rt2500usb \ - kernel-module-rtl8187 \ - kernel-module-r8712u \ - kernel-module-w35und \ - kernel-module-zd1211rw \ - kernel-module-llc \ - kernel-module-stp \ - kernel-module-bridge \ - kernel-module-hostap \ - kernel-module-rt2800usb \ -" - -KERNEL_WIFI_MODULES += "${@base_version_less_or_equal('VUPLUS_KERNEL_VERSION', '3.1.1', 'kernel-module-r8192u-usb', '', d)}" - -LEGACY_MODULES = " \ - rt3070 \ - r8192cu \ -" - -RDEPENDS_${PN}_append = "\ - ${WIFI_FIRMWARES} \ - ${KERNEL_WIFI_MODULES} \ - ${LEGACY_MODULES} \ - rt2870sta \ -" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - diff --git a/meta-openvuplus/recipes-connectivity/usb-modeswitch/usb-modeswitch-data_20121109.bb b/meta-openvuplus/recipes-connectivity/usb-modeswitch/usb-modeswitch-data_20121109.bb index d4e42ec..2a5b582 100644 --- a/meta-openvuplus/recipes-connectivity/usb-modeswitch/usb-modeswitch-data_20121109.bb +++ b/meta-openvuplus/recipes-connectivity/usb-modeswitch/usb-modeswitch-data_20121109.bb @@ -7,7 +7,7 @@ PR = "r1" inherit allarch SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${PV}.tar.bz2 \ - file://usb-modeswitch-data_20120215.patch;patch=1;pnum=1 \ + file://usb-modeswitch-data_20120215.patch \ " do_install() { diff --git a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/01-builddefs.patch b/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/01-builddefs.patch deleted file mode 100644 index a757d99..0000000 --- a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/01-builddefs.patch +++ /dev/null @@ -1,18 +0,0 @@ -Author: Daniel Jacobowitz -Description: Build with tcpwrapper and SSL support. - -diff -Naurp vsftpd.orig/builddefs.h vsftpd/builddefs.h ---- vsftpd.orig/builddefs.h 2009-01-31 00:02:36.000000000 +0000 -+++ vsftpd/builddefs.h 2009-01-31 00:26:34.000000000 +0000 -@@ -1,9 +1,9 @@ - #ifndef VSF_BUILDDEFS_H - #define VSF_BUILDDEFS_H - --#undef VSF_BUILD_TCPWRAPPERS -+#define VSF_BUILD_TCPWRAPPERS 1 - #define VSF_BUILD_PAM --#undef VSF_BUILD_SSL -+#define VSF_BUILD_SSL - - #endif /* VSF_BUILDDEFS_H */ - diff --git a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/02-config.patch b/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/02-config.patch deleted file mode 100644 index 6c980c5..0000000 --- a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/02-config.patch +++ /dev/null @@ -1,122 +0,0 @@ -Author: Daniel Jacobowitz -Description: Set default configuration. - -diff -Naurp vsftpd.orig/tunables.c vsftpd/tunables.c ---- vsftpd.orig/tunables.c 2009-07-15 22:08:27.000000000 +0200 -+++ vsftpd/tunables.c 2009-11-06 13:33:34.000000000 +0100 -@@ -246,7 +246,7 @@ tunables_load_defaults() - /* -rw------- */ - tunable_chown_upload_mode = 0600; - -- install_str_setting("/usr/share/empty", &tunable_secure_chroot_dir); -+ install_str_setting("/var/run/vsftpd/empty", &tunable_secure_chroot_dir); - install_str_setting("ftp", &tunable_ftp_username); - install_str_setting("root", &tunable_chown_username); - install_str_setting("/var/log/xferlog", &tunable_xferlog_file); -@@ -256,7 +256,7 @@ tunables_load_defaults() - install_str_setting(0, &tunable_ftpd_banner); - install_str_setting("/etc/vsftpd.banned_emails", &tunable_banned_email_file); - install_str_setting("/etc/vsftpd.chroot_list", &tunable_chroot_list_file); -- install_str_setting("ftp", &tunable_pam_service_name); -+ install_str_setting("vsftpd", &tunable_pam_service_name); - install_str_setting("ftp", &tunable_guest_username); - install_str_setting("/etc/vsftpd.user_list", &tunable_userlist_file); - install_str_setting(0, &tunable_anon_root); -diff -Naurp vsftpd.orig/vsftpd.conf vsftpd/vsftpd.conf ---- vsftpd.orig/vsftpd.conf 2009-11-06 08:41:11.000000000 +0100 -+++ vsftpd/vsftpd.conf 2009-11-06 13:35:37.000000000 +0100 -@@ -8,6 +8,17 @@ - # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's - # capabilities. - # -+# -+# Run standalone? vsftpd can run either from an inetd or as a standalone -+# daemon started from an initscript. -+listen=YES -+# -+# Run standalone with IPv6? -+# Like the listen parameter, except vsftpd will listen on an IPv6 socket -+# instead of an IPv4 one. This parameter and the listen parameter are mutually -+# exclusive. -+#listen_ipv6=YES -+# - # Allow anonymous FTP? (Beware - allowed by default if you comment this out). - anonymous_enable=YES - # -@@ -34,6 +45,12 @@ anonymous_enable=YES - # go into a certain directory. - dirmessage_enable=YES - # -+# If enabled, vsftpd will display directory listings with the time -+# in your local time zone. The default is to display GMT. The -+# times returned by the MDTM FTP command are also affected by this -+# option. -+use_localtime=YES -+# - # Activate logging of uploads/downloads. - xferlog_enable=YES - # -@@ -89,6 +106,11 @@ connect_from_port_20=YES - # (default follows) - #banned_email_file=/etc/vsftpd.banned_emails - # -+# You may restrict local users to their home directories. See the FAQ for -+# the possible risks in this before using chroot_local_user or -+# chroot_list_enable below. -+#chroot_local_user=YES -+# - # You may specify an explicit list of local users to chroot() to their home - # directory. If chroot_local_user is YES, then this list becomes a list of - # users to NOT chroot(). -@@ -103,12 +123,22 @@ connect_from_port_20=YES - # the presence of the "-R" option, so there is a strong case for enabling it. - #ls_recurse_enable=YES - # --# When "listen" directive is enabled, vsftpd runs in standalone mode and --# listens on IPv4 sockets. This directive cannot be used in conjunction --# with the listen_ipv6 directive. --listen=YES -+# Customization - # --# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 --# sockets, you must run two copies of vsftpd with two configuration files. --# Make sure, that one of the listen options is commented !! --#listen_ipv6=YES -+# Some of vsftpd's settings don't fit the filesystem layout by -+# default. -+# -+# This option should be the name of a directory which is empty. Also, the -+# directory should not be writable by the ftp user. This directory is used -+# as a secure chroot() jail at times vsftpd does not require filesystem -+# access. -+secure_chroot_dir=/var/run/vsftpd/empty -+# -+# This string is the name of the PAM service vsftpd will use. -+pam_service_name=vsftpd -+# -+# This option specifies the location of the RSA certificate to use for SSL -+# encrypted connections. -+rsa_cert_file=/etc/ssl/private/vsftpd.pem -+# -+local_root=/ -diff -Naurp vsftpd.orig/vsftpd.conf.5 vsftpd/vsftpd.conf.5 ---- vsftpd.orig/vsftpd.conf.5 2009-11-06 08:41:11.000000000 +0100 -+++ vsftpd/vsftpd.conf.5 2009-11-06 13:37:10.000000000 +0100 -@@ -940,7 +940,7 @@ Default: nobody - .B pam_service_name - This string is the name of the PAM service vsftpd will use. - --Default: ftp -+Default: vsftpd - .TP - .B pasv_address - Use this option to override the IP address that vsftpd will advertise in -@@ -969,7 +969,7 @@ This option should be the name of a dire - directory should not be writable by the ftp user. This directory is used - as a secure chroot() jail at times vsftpd does not require filesystem access. - --Default: /usr/share/empty -+Default: /var/run/vsftpd/empty - .TP - .B ssl_ciphers - This option can be used to select which SSL ciphers vsftpd will allow for diff --git a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/03-db-doc.patch b/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/03-db-doc.patch deleted file mode 100644 index d544ef0..0000000 --- a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/03-db-doc.patch +++ /dev/null @@ -1,19 +0,0 @@ -Author: shaul Karl -Description: - A short explanation how to find out the right db version (Closes: #478282). - -diff -Naurp vsftpd.orig/EXAMPLE/VIRTUAL_USERS/README vsftpd/EXAMPLE/VIRTUAL_USERS/README ---- vsftpd.orig/EXAMPLE/VIRTUAL_USERS/README 2009-01-31 00:02:36.000000000 +0000 -+++ vsftpd/EXAMPLE/VIRTUAL_USERS/README 2009-01-31 01:38:11.000000000 +0000 -@@ -21,7 +21,10 @@ NOTE: Many systems have multiple version - need to use e.g. db3_load for correct operation. This is known to affect - some Debian systems. The core issue is that pam_userdb expects its login - database to be a specific db version (often db3, whereas db4 may be installed --on your system). -+on your system). You might check ahead what specific db version you'll need -+by looking at the dependcies of the pam module. Some methods to do that is to -+run ldd on the pam_userdb.so or look at the dependencies of the package with -+the pam modules. - - This will create /etc/vsftpd_login.db. Obviously, you may want to make sure - the permissions are restricted: diff --git a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/04-link-local.patch b/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/04-link-local.patch deleted file mode 100644 index 53b3735..0000000 --- a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/04-link-local.patch +++ /dev/null @@ -1,91 +0,0 @@ -Author: Michael Stapelberg -Description: - vsftpd does not accept IPv6 scope identifier in listen_address6 - (Closes: #544993). - . - When specifying a link-local address, you need a scope identifier (tha name of - the index usually), thus you cannot use the following: - listen_address6=fe80::21f:16ff:fe06:3aab - but you have to use: - listen_address6=fe80::21f:16ff:fe06:3aab%eth0 - so that it is clear on which interface this link-local address should be used. - . - Unfortunately, vsftpd does not correctly parse the address mentioned above and - thus fails to be useful in link-local-only environments. - . - This patch fixes it. - -diff -Naurp vsftpd.orig/standalone.c vsftpd/standalone.c ---- vsftpd.orig/standalone.c 2009-10-02 14:15:18.000000000 +0200 -+++ vsftpd/standalone.c 2009-10-17 17:10:02.000000000 +0200 -@@ -7,6 +7,8 @@ - * Code to listen on the network and launch children servants. - */ - -+#include -+ - #include "standalone.h" - - #include "parseconf.h" -@@ -111,8 +113,17 @@ vsf_standalone_main(void) - else - { - struct mystr addr_str = INIT_MYSTR; -+ struct mystr scope_id = INIT_MYSTR; - const unsigned char* p_raw_addr; -+ unsigned int if_index = 0; -+ -+ /* See if we got a scope id */ - str_alloc_text(&addr_str, tunable_listen_address6); -+ str_split_char(&addr_str, &scope_id, '%'); -+ if (str_getlen(&scope_id) > 0) { -+ if_index = if_nametoindex(str_getbuf(&scope_id)); -+ str_free(&scope_id); -+ } - p_raw_addr = vsf_sysutil_parse_ipv6(&addr_str); - str_free(&addr_str); - if (!p_raw_addr) -@@ -120,6 +131,7 @@ vsf_standalone_main(void) - die2("bad listen_address6: ", tunable_listen_address6); - } - vsf_sysutil_sockaddr_set_ipv6addr(p_sockaddr, p_raw_addr); -+ vsf_sysutil_sockaddr_set_ipv6scope(p_sockaddr, if_index); - } - retval = vsf_sysutil_bind(listen_sock, p_sockaddr); - vsf_sysutil_free(p_sockaddr); -diff -Naurp vsftpd.orig/sysutil.c vsftpd/sysutil.c ---- vsftpd.orig/sysutil.c 2009-10-02 14:15:18.000000000 +0200 -+++ vsftpd/sysutil.c 2009-10-17 17:10:02.000000000 +0200 -@@ -2039,6 +2039,19 @@ vsf_sysutil_sockaddr_set_ipv6addr(struct - } - } - -+int -+vsf_sysutil_sockaddr_get_ipv6scope(struct vsf_sysutil_sockaddr* p_sockptr) -+{ -+ return p_sockptr->u.u_sockaddr_in6.sin6_scope_id; -+} -+ -+void -+vsf_sysutil_sockaddr_set_ipv6scope(struct vsf_sysutil_sockaddr* p_sockptr, -+ const int scope_id) -+{ -+ p_sockptr->u.u_sockaddr_in6.sin6_scope_id = scope_id; -+} -+ - const void* - vsf_sysutil_sockaddr_ipv6_v4(const struct vsf_sysutil_sockaddr* p_addr) - { -diff -Naurp vsftpd.orig/sysutil.h vsftpd/sysutil.h ---- vsftpd.orig/sysutil.h 2009-10-02 14:15:18.000000000 +0200 -+++ vsftpd/sysutil.h 2009-10-17 17:10:02.000000000 +0200 -@@ -228,6 +228,9 @@ void vsf_sysutil_sockaddr_set_ipv4addr(s - const unsigned char* p_raw); - void vsf_sysutil_sockaddr_set_ipv6addr(struct vsf_sysutil_sockaddr* p_sockptr, - const unsigned char* p_raw); -+void vsf_sysutil_sockaddr_set_ipv6scope(struct vsf_sysutil_sockaddr* p_sockptr, -+ const int scope_id); -+int vsf_sysutil_sockaddr_get_ipv6scope(struct vsf_sysutil_sockaddr* p_sockptr); - void vsf_sysutil_sockaddr_set_any(struct vsf_sysutil_sockaddr* p_sockaddr); - unsigned short vsf_sysutil_sockaddr_get_port( - const struct vsf_sysutil_sockaddr* p_sockptr); diff --git a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/05-whitespaces.patch b/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/05-whitespaces.patch deleted file mode 100644 index 569ce38..0000000 --- a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/05-whitespaces.patch +++ /dev/null @@ -1,81 +0,0 @@ -Author: Jiri Skala -Description: trim white spaces from option values (Closes: #419857, #536803). - -diff -Naurp vsftpd.orig/parseconf.c vsftpd/parseconf.c ---- vsftpd.orig/parseconf.c 2009-10-02 14:15:18.000000000 +0200 -+++ vsftpd/parseconf.c 2009-10-18 11:28:31.000000000 +0200 -@@ -275,7 +275,7 @@ vsf_parseconf_load_setting(const char* p - } - else - { -- *p_curr_setting = str_strdup(&s_value_str); -+ *p_curr_setting = str_strdup_trimmed(&s_value_str); - } - return; - } -diff -Naurp vsftpd.orig/str.c vsftpd/str.c ---- vsftpd.orig/str.c 2009-10-02 14:15:18.000000000 +0200 -+++ vsftpd/str.c 2009-10-18 11:28:31.000000000 +0200 -@@ -89,6 +89,18 @@ str_strdup(const struct mystr* p_str) - return vsf_sysutil_strdup(str_getbuf(p_str)); - } - -+const char* -+str_strdup_trimmed(const struct mystr* p_str) -+{ -+ const char* p_trimmed = str_getbuf(p_str); -+ int h, t, newlen; -+ -+ for (h = 0; h < (int)str_getlen(p_str) && vsf_sysutil_isspace(p_trimmed[h]); h++) ; -+ for (t = str_getlen(p_str) - 1; t >= 0 && vsf_sysutil_isspace(p_trimmed[t]); t--) ; -+ newlen = t - h + 1; -+ return newlen ? vsf_sysutil_strndup(p_trimmed+h, (unsigned int)newlen) : 0L; -+} -+ - void - str_alloc_alt_term(struct mystr* p_str, const char* p_src, char term) - { -diff -Naurp vsftpd.orig/str.h vsftpd/str.h ---- vsftpd.orig/str.h 2009-10-02 14:15:18.000000000 +0200 -+++ vsftpd/str.h 2009-10-18 11:28:31.000000000 +0200 -@@ -31,6 +31,7 @@ void str_alloc_ulong(struct mystr* p_str - void str_alloc_filesize_t(struct mystr* p_str, filesize_t the_filesize); - void str_copy(struct mystr* p_dest, const struct mystr* p_src); - const char* str_strdup(const struct mystr* p_str); -+const char* str_strdup_trimmed(const struct mystr* p_str); - void str_empty(struct mystr* p_str); - void str_free(struct mystr* p_str); - void str_trunc(struct mystr* p_str, unsigned int trunc_len); -diff -Naurp vsftpd.orig/sysutil.c vsftpd/sysutil.c ---- vsftpd.orig/sysutil.c 2009-10-02 14:15:18.000000000 +0200 -+++ vsftpd/sysutil.c 2009-10-18 11:28:31.000000000 +0200 -@@ -1033,6 +1033,18 @@ vsf_sysutil_strdup(const char* p_str) - return strdup(p_str); - } - -+char* -+vsf_sysutil_strndup(const char* p_str, unsigned int p_len) -+{ -+ char *new = (char *)malloc(p_len+1); -+ -+ if (new == NULL) -+ return NULL; -+ -+ new[p_len]='\0'; -+ return (char *)memcpy(new, p_str, p_len); -+} -+ - void - vsf_sysutil_memclr(void* p_dest, unsigned int size) - { -diff -Naurp vsftpd.orig/sysutil.h vsftpd/sysutil.h ---- vsftpd.orig/sysutil.h 2009-10-02 14:15:18.000000000 +0200 -+++ vsftpd/sysutil.h 2009-10-18 11:28:31.000000000 +0200 -@@ -186,6 +186,7 @@ int vsf_sysutil_wait_get_exitcode( - /* Various string functions */ - unsigned int vsf_sysutil_strlen(const char* p_text); - char* vsf_sysutil_strdup(const char* p_str); -+char* vsf_sysutil_strndup(const char* p_str, unsigned int p_len); - void vsf_sysutil_memclr(void* p_dest, unsigned int size); - void vsf_sysutil_memcpy(void* p_dest, const void* p_src, - const unsigned int size); diff --git a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/06-greedy.patch b/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/06-greedy.patch deleted file mode 100644 index ff73c9c..0000000 --- a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/06-greedy.patch +++ /dev/null @@ -1,32 +0,0 @@ -Author: Martin Nagy -Description: Fix file listing issue with wildcard (Bugzilla: #392181). - -diff -Naurp vsftpd.orig/ls.c vsftpd/ls.c ---- vsftpd.orig/ls.c 2009-10-02 14:15:18.000000000 +0200 -+++ vsftpd/ls.c 2009-10-18 11:48:29.000000000 +0200 -@@ -281,6 +281,25 @@ vsf_filename_passes_filter(const struct - { - goto out; - } -+ if (!must_match_at_current_pos) -+ { -+ struct mystr scan_fwd = INIT_MYSTR; -+ -+ str_mid_to_end(&name_remain_str, &scan_fwd, -+ indexx + str_getlen(&s_match_needed_str)); -+ /* We're allowed to be greedy, test if it match further along -+ * keep advancing indexx while we can still match. -+ */ -+ while( (locate_result = str_locate_str(&scan_fwd, &s_match_needed_str)), -+ locate_result.found ) -+ { -+ indexx += locate_result.index + str_getlen(&s_match_needed_str); -+ str_mid_to_end(&scan_fwd, &temp_str, -+ locate_result.index + str_getlen(&s_match_needed_str)); -+ str_copy(&scan_fwd, &temp_str); -+ } -+ str_free(&scan_fwd); -+ } - /* Chop matched string out of remainder */ - str_mid_to_end(&name_remain_str, &temp_str, - indexx + str_getlen(&s_match_needed_str)); diff --git a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/07-utf8.patch b/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/07-utf8.patch deleted file mode 100644 index cf03e08..0000000 --- a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/07-utf8.patch +++ /dev/null @@ -1,58 +0,0 @@ -Author: Chuck Short -Description: Adding support for UTF8. - -diff -Naurp vsftpd.orig/features.c vsftpd/features.c ---- vsftpd.orig/features.c 2008-12-04 06:00:47.000000000 +0000 -+++ vsftpd/features.c 2010-02-25 13:28:06.000000000 +0000 -@@ -21,6 +21,10 @@ handle_feat(struct vsf_session* p_sess) - vsf_cmdio_write_raw(p_sess, " AUTH SSL\r\n"); - vsf_cmdio_write_raw(p_sess, " AUTH TLS\r\n"); - } -+ if (tunable_utf8_filesystem) -+ { -+ vsf_cmdio_write_raw(p_sess, " UTF8\r\n"); -+ } - if (tunable_port_enable) - { - vsf_cmdio_write_raw(p_sess, " EPRT\r\n"); -diff -Naurp vsftpd.orig/parseconf.c vsftpd/parseconf.c ---- vsftpd.orig/parseconf.c 2009-08-07 18:46:40.000000000 +0000 -+++ vsftpd/parseconf.c 2010-02-25 13:28:06.000000000 +0000 -@@ -28,6 +28,7 @@ static struct parseconf_bool_setting - parseconf_bool_array[] = - { - { "anonymous_enable", &tunable_anonymous_enable }, -+ { "utf8_filesystem", &tunable_utf8_filesystem }, - { "local_enable", &tunable_local_enable }, - { "pasv_enable", &tunable_pasv_enable }, - { "port_enable", &tunable_port_enable }, -diff -Naurp vsftpd.orig/tunables.c vsftpd/tunables.c ---- vsftpd.orig/tunables.c 2009-07-15 20:08:27.000000000 +0000 -+++ vsftpd/tunables.c 2010-02-25 13:28:06.000000000 +0000 -@@ -10,6 +10,7 @@ - - int tunable_anonymous_enable; - int tunable_local_enable; -+int tunable_utf8_filesystem; - int tunable_pasv_enable; - int tunable_port_enable; - int tunable_chroot_local_user; -@@ -146,6 +147,7 @@ tunables_load_defaults() - { - tunable_anonymous_enable = 1; - tunable_local_enable = 0; -+ tunable_utf8_filesystem = 0; - tunable_pasv_enable = 1; - tunable_port_enable = 1; - tunable_chroot_local_user = 0; -diff -Naurp vsftpd.orig/tunables.h vsftpd/tunables.h ---- vsftpd.orig/tunables.h 2009-07-07 01:37:28.000000000 +0000 -+++ vsftpd/tunables.h 2010-02-25 13:28:06.000000000 +0000 -@@ -11,6 +11,7 @@ void tunables_load_defaults(); - /* Booleans */ - extern int tunable_anonymous_enable; /* Allow anon logins */ - extern int tunable_local_enable; /* Allow local logins */ -+extern int tunable_utf8_filesystem; /* Server uses UTF8 Filesystem */ - extern int tunable_pasv_enable; /* Allow PASV */ - extern int tunable_port_enable; /* Allow PORT */ - extern int tunable_chroot_local_user; /* Restrict local to home dir */ diff --git a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/08-manpage.patch b/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/08-manpage.patch deleted file mode 100644 index 3a4f962..0000000 --- a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/08-manpage.patch +++ /dev/null @@ -1,23 +0,0 @@ -Author: Daniel Baumann -Description: Fixing manpage formating. - -diff -Naurp vsftpd.orig/vsftpd.8 vsftpd/vsftpd.8 ---- vsftpd.orig/vsftpd.8 2009-07-17 20:56:23.000000000 +0000 -+++ vsftpd/vsftpd.8 2010-04-08 05:18:00.000000000 +0000 -@@ -57,4 +57,3 @@ setting and any identical setting that w - .Pa /etc/vsftpd.conf - .Sh SEE ALSO - .Xr vsftpd.conf 5 --.end -diff -Naurp vsftpd.orig/vsftpd.conf.5 vsftpd/vsftpd.conf.5 ---- vsftpd.orig/vsftpd.conf.5 2009-10-19 02:46:30.000000000 +0000 -+++ vsftpd/vsftpd.conf.5 2010-04-08 05:18:08.000000000 +0000 -@@ -404,7 +404,7 @@ reuse (which proves that they know the s - channel). Although this is a secure default, it may break many FTP clients, - so you may want to disable it. For a discussion of the consequences, see - http://scarybeastsecurity.blogspot.com/2009/02/vsftpd-210-released.html --(Added in v2.1.0). -+ (Added in v2.1.0). - - Default: YES - .TP diff --git a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/09-s390.patch b/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/09-s390.patch deleted file mode 100644 index 4711f9b..0000000 --- a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/09-s390.patch +++ /dev/null @@ -1,15 +0,0 @@ -Author: Philipp Kern -Description: Fix vsftpd on s390 (Closes: #602726). - -diff -Naurp vsftpd.orig/sysdeputil.c vsftpd/sysdeputil.c ---- vsftpd.orig/sysdeputil.c 2011-09-05 16:03:18.728857644 +0200 -+++ vsftpd/sysdeputil.c 2011-09-05 16:05:12.909423834 +0200 -@@ -64,7 +64,7 @@ - #include - - /* BEGIN config */ --#if defined(__linux__) -+#if defined(__linux__) && !defined(__s390__) - #include - #include - #define VSF_SYSDEP_HAVE_LINUX_CLONE diff --git a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/10-remote-dos.patch b/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/10-remote-dos.patch deleted file mode 100644 index fee3ebe..0000000 --- a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd/10-remote-dos.patch +++ /dev/null @@ -1,69 +0,0 @@ -Author: Ben Hutchings -Description: Remote DoS on Linux 2.6.32 (Closes: #629373). - -diff -Naurp vsftpd.orig/sysdeputil.c vsftpd/sysdeputil.c ---- vsftpd.orig/sysdeputil.c 2010-03-26 04:25:33.000000000 +0100 -+++ vsftpd/sysdeputil.c 2011-09-05 15:16:05.347070790 +0200 -@@ -25,6 +25,11 @@ - #define _LARGEFILE64_SOURCE 1 - #endif - -+#ifdef __linux__ -+ #include -+ #include -+#endif -+ - /* For INT_MAX */ - #include - -@@ -1259,11 +1264,36 @@ vsf_set_term_if_parent_dies() - #endif - } - -+#ifdef VSF_SYSDEP_HAVE_LINUX_CLONE -+/* On Linux versions <2.6.35, netns cleanup may be so slow that -+ * creating a netns per connection allows a remote denial-of-service. -+ * We therefore do not use CLONE_NEWNET on these versions. -+ */ -+static int -+vsf_sysutil_netns_cleanup_is_fast(void) -+{ -+#ifdef __linux__ -+ struct utsname utsname; -+ int r1, r2, r3 = 0; -+ return (uname(&utsname) == 0 && -+ sscanf(utsname.release, "%d.%d.%d", &r1, &r2, &r3) >= 2 && -+ ((r1 << 16) | (r2 << 8) | r3) >= ((2 << 16) | (6 << 8) | 35)); -+#else -+ /* Assume any other kernel that has the feature don't have this problem */ -+ return 1; -+#endif -+} -+#endif -+ - int - vsf_sysutil_fork_isolate_all_failok() - { - #ifdef VSF_SYSDEP_HAVE_LINUX_CLONE -- static int cloneflags_work = 1; -+ static int cloneflags_work = -1; -+ if (cloneflags_work < 0) -+ { -+ cloneflags_work = vsf_sysutil_netns_cleanup_is_fast(); -+ } - if (cloneflags_work) - { - int ret = syscall(__NR_clone, -@@ -1309,7 +1339,11 @@ int - vsf_sysutil_fork_newnet() - { - #ifdef VSF_SYSDEP_HAVE_LINUX_CLONE -- static int cloneflags_work = 1; -+ static int cloneflags_work = -1; -+ if (cloneflags_work < 0) -+ { -+ cloneflags_work = vsf_sysutil_netns_cleanup_is_fast(); -+ } - if (cloneflags_work) - { - int ret = syscall(__NR_clone, CLONE_NEWNET | SIGCHLD, NULL); diff --git a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd_2.3.5.bb b/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd_2.3.5.bb deleted file mode 100644 index 899b368..0000000 --- a/meta-openvuplus/recipes-connectivity/vsftpd/vsftpd_2.3.5.bb +++ /dev/null @@ -1,90 +0,0 @@ -SUMMARY = "lightweight, efficient FTP server written for security" -HOMEPAGE = "https://security.appspot.com/vsftpd.html" -SECTION = "console/network" -LICENSE = "GPL-2.0-with-OpenSSL-exception" -LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271" -DEPENDS = "libcap openssl" -DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" -PR = "r5" - -SRC_URI = " \ - https://security.appspot.com/downloads/${BP}.tar.gz \ - file://01-builddefs.patch \ - file://02-config.patch \ - file://03-db-doc.patch \ - file://04-link-local.patch \ - file://05-whitespaces.patch \ - file://06-greedy.patch \ - file://07-utf8.patch \ - file://08-manpage.patch \ - file://09-s390.patch \ - file://10-remote-dos.patch \ -" -SRC_URI[md5sum] = "01398a5bef8e85b6cf2c213a4b011eca" -SRC_URI[sha256sum] = "d87ee2987df8f03e1dbe294905f7907b2798deb89c67ca965f6e2f60879e54f1" - -S = "${WORKDIR}/${BP}" - -inherit useradd - -CFLAGS = "${TARGET_CFLAGS}" -CFLAGS += "-DVSF_BUILD_SSL=1" -CFLAGS += "${@base_contains('DISTRO_FEATURES', 'pam', '-DVSF_BUILD_PAM=1', '', d)}" - -LIBS = "-lcap -lcrypt -lssl -lcrypto" -LIBS += "${@base_contains('DISTRO_FEATURES', 'pam', '-lpam', '', d)}" - -LINK = "${TARGET_LDFLAGS}" - -SECURE_CHROOT_DIR = "${datadir}/${BPN}/chroot" -RSA_CERT_FILE = "${sysconfdir}/ssl/private/${BPN}.pem" - -do_configure() { - rm -f builddefs.h - touch builddefs.h - set_default() { - NAME=$1 - VALUE=$2 - sed -e "s,^#\?${NAME}=.*,${NAME}=${VALUE}," -i vsftpd.conf - } - set_default listen NO - set_default listen_ipv6 NO - set_default anonymous_enable NO - set_default local_enable YES - set_default write_enable YES - set_default anon_upload_enable NO - set_default anon_mkdir_write_enable NO - set_default dirmessage_enable NO - set_default use_localtime YES - set_default xferlog_enable NO - set_default connect_from_port_20 YES - set_default chown_uploads NO - set_default nopriv_user vsftpd - set_default async_abor_enable YES - set_default ascii_upload_enable NO - set_default ascii_download_enable NO - set_default ftpd_banner "Welcome to the ${DISTRO_NAME} FTP service!" - set_default chroot_local_user NO - set_default chroot_list_enable NO - set_default ls_recurse_enable YES - set_default secure_chroot_dir "${SECURE_CHROOT_DIR}" - set_default rsa_cert_file "${RSA_CERT_FILE}" - set_default local_root "/" -} -do_compile() { - oe_runmake 'CFLAGS=${CFLAGS}' 'LIBS=${LIBS}' 'LINK=${LINK}' -} -do_install() { - install -d ${D}${sysconfdir} - install -m 644 vsftpd.conf ${D}${sysconfdir} - install -d ${D}${sbindir} - install -m 755 vsftpd ${D}${sbindir}/vsftpd - install -d ${D}${mandir}/man8 - install -m 644 vsftpd.8 ${D}${mandir}/man8/vsftpd.8 - install -d ${D}${mandir}/man5 - install -m 644 vsftpd.conf.5 ${D}${mandir}/man5/vsftpd.conf.5 - install -d ${D}${SECURE_CHROOT_DIR} -} - -USERADD_PACKAGES = "${PN}" -USERADD_PARAM_${PN} = "--home-dir ${SECURE_CHROOT_DIR} --no-create-home --system --shell /bin/false --user-group vsftpd" diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/action_wpa.sh b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/action_wpa.sh deleted file mode 100644 index 6d90fa6..0000000 --- a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/action_wpa.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh - -# Action script to enable/disable wpa-roam interfaces in reaction to -# ifplugd events. -# -# Copyright: Copyright (c) 2008-2010, Kel Modderman -# License: GPL-2 -# - -PATH=/sbin:/usr/sbin:/bin:/usr/bin - -if [ ! -x /usr/sbin/wpa_action ]; then - exit 0 -fi - -# ifplugd(8) - -# -# If an ifplugd managed interface is brought up, disconnect any -# wpa-roam managed interfaces so that only one "roaming" interface -# remains active on the system. - -IFPLUGD_IFACE="${1}" - -case "${2}" in - up) - COMMAND=disconnect - ;; - down) - COMMAND=reconnect - ;; - *) - echo "$0: unknown arguments: ${@}" >&2 - exit 1 - ;; -esac - -for CTRL in /var/run/wpa_supplicant/*; do - [ -S "${CTRL}" ] || continue - - IFACE="${CTRL#/var/run/wpa_supplicant/}" - - # skip if ifplugd is managing this interface - if [ "${IFPLUGD_IFACE}" = "${IFACE}" ]; then - continue - fi - - if wpa_action "${IFACE}" check; then - wpa_cli -i "${IFACE}" "${COMMAND}" - fi -done diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/functions.sh b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/functions.sh deleted file mode 100644 index b9e0eb2..0000000 --- a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/functions.sh +++ /dev/null @@ -1,1015 +0,0 @@ -#!/bin/sh - -##################################################################### -## Purpose -# This file contains common shell functions used by scripts of the -# wpasupplicant package to allow ifupdown to manage wpa_supplicant. -# It also contains some functions used by wpa_action(8) that allow -# ifupdown to be managed by wpa_cli(8) action events. -# -# This file is provided by the wpasupplicant package. - -##################################################################### -# Copyright (C) 2006 - 2009 Debian/Ubuntu wpasupplicant Maintainers -# -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# On Debian GNU/Linux systems, the text of the GPL license, -# version 2, can be found in /usr/share/common-licenses/GPL-2. - -##################################################################### -## global variables -# wpa_supplicant variables -WPA_SUP_BIN="/usr/sbin/wpa_supplicant" -WPA_SUP_PNAME="wpa_supplicant" -WPA_SUP_PIDFILE="/var/run/wpa_supplicant.${WPA_IFACE}.pid" - -# wpa_cli variables -WPA_CLI_BIN="/usr/sbin/wpa_cli" -WPA_CLI_PNAME="wpa_cli" -WPA_CLI_PIDFILE="/var/run/wpa_action.${WPA_IFACE}.pid" -WPA_CLI_TIMESTAMP="/var/run/wpa_action.${WPA_IFACE}.timestamp" -WPA_CLI_IFUPDOWN="/var/run/wpa_action.${WPA_IFACE}.ifupdown" - -# sendsigs omission interface, present in initscripts (>= 2.86.ds1-48) -if [ -d /lib/init/rw/sendsigs.omit.d/ ]; then - # Debian - WPA_SUP_OMIT_PIDFILE="/lib/init/rw/sendsigs.omit.d/wpasupplicant.wpa_supplicant.${WPA_IFACE}.pid" -elif [ -d /var/run/sendsigs.omit.d/ ]; then - # Ubuntu, see https://launchpad.net/bugs/181541 for status - WPA_SUP_OMIT_PIDFILE="/var/run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.${WPA_IFACE}.pid" -else - WPA_SUP_OMIT_PIDFILE= -fi - -# default ctrl_interface socket directory -if [ -z "$WPA_CTRL_DIR" ]; then - WPA_CTRL_DIR="/var/run/wpa_supplicant" -fi - -# verbosity variables -if [ -n "$IF_WPA_VERBOSITY" ] || [ "$VERBOSITY" = "1" ]; then - TO_NULL="/dev/stdout" - DAEMON_VERBOSITY="--verbose" -else - TO_NULL="/dev/null" - DAEMON_VERBOSITY="--quiet" -fi - -##################################################################### -## wpa_cli wrapper -# Path to common ctrl_interface socket and iface supplied. -# NB: WPA_CTRL_DIR cannot be used for interactive commands, it is -# set only in the environment that wpa_cli provides when processing -# action events. -# -wpa_cli () { - "$WPA_CLI_BIN" -p "$WPA_CTRL_DIR" -i "$WPA_IFACE" "$@" - - return "$?" -} - -##################################################################### -## verbose and stderr message wrapper -# Ensures a standard and easily identifiable message is printed by -# scripts using this function library. -# -# log Log a message to syslog when called non-interactively -# by wpa_action -# -# verbose To stdout when IF_WPA_VERBOSITY or VERBOSITY is true -# -# action Same as verbose but without newline -# Useful for allowing wpa_cli commands to echo result -# value of 'OK' or 'FAILED' -# -# stderr Echo warning or error messages to stderr -# -# NB: when called by wpa_action, there is no redirection (verbose) -# -wpa_msg () { - if [ "$1" = "log" ]; then - shift - case "$WPA_ACTION" in - "CONNECTED"|"DISCONNECTED") - [ -x /usr/bin/logger ] || return - if [ "$#" -gt 0 ]; then - logger -t "wpa_action" "$@" - else - logger -t "wpa_action" - fi - ;; - *) - [ "$#" -gt 0 ] && echo "wpa_action: $@" - ;; - esac - return - fi - - case "$1" in - "verbose") - shift - echo "$WPA_SUP_PNAME: $@" >$TO_NULL - ;; - "action") - shift - echo -n "$WPA_SUP_PNAME: $@ -- " >$TO_NULL - ;; - "stderr") - shift - echo "$WPA_SUP_PNAME: $@" >/dev/stderr - ;; - *) - ;; - esac -} - -##################################################################### -## validate daemon pid files -# Test daemon process ID files via start-stop-daemon with a signal 0 -# given the exec binary and pidfile location. -# -# $1 daemon -# $2 pidfile -# -# Returns true when pidfile exists, the process ID exists _and_ was -# created by the exec binary. -# -# If the test fails, but the pidfile exists, it is stale -# -test_daemon_pidfile () { - local DAEMON - local PIDFILE - - if [ -n "$1" ]; then - DAEMON="$1" - fi - - if [ -f "$2" ]; then - PIDFILE="$2" - fi - - if [ -n "$DAEMON" ] && [ -f "$PIDFILE" ]; then - if start-stop-daemon --stop --quiet --signal 0 \ - --exec "$DAEMON" --pidfile "$PIDFILE"; then - return 0 - else - rm -f "$PIDFILE" - return 1 - fi - else - return 1 - fi -} - -# validate wpa_supplicant pidfile -test_wpa_supplicant () { - test_daemon_pidfile "$WPA_SUP_BIN" "$WPA_SUP_PIDFILE" -} - -# validate wpa_cli pidfile -test_wpa_cli () { - test_daemon_pidfile "$WPA_CLI_BIN" "$WPA_CLI_PIDFILE" -} - -##################################################################### -## daemonize wpa_supplicant -# Start wpa_supplicant via start-stop-dameon with all required -# options. Will start if environment variable WPA_SUP_CONF is present -# -# Default options: -# -B dameonize/background process -# -D driver backend ('wext' if none given) -# -P process ID file -# -C path to ctrl_interface socket directory -# -s log to syslog -# -# Conditional options: -# -c configuration file -# -W wait for wpa_cli to attach to ctrl_interface socket -# -b bridge interface name -# -f path to log file -# -init_wpa_supplicant () { - [ -n "$WPA_SUP_CONF" ] || return 0 - - local WPA_SUP_OPTIONS - WPA_SUP_OPTIONS="-s -B -P $WPA_SUP_PIDFILE -i $WPA_IFACE" - - if [ -n "$WPA_ACTION_SCRIPT" ]; then - if [ -x "$WPA_ACTION_SCRIPT" ]; then - WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -W" - wpa_msg verbose "wait for wpa_cli to attach" - else - wpa_msg stderr "action script \"$WPA_ACTION_SCRIPT\" not executable" - return 1 - fi - fi - - if [ -n "$IF_WPA_BRIDGE" ]; then - WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -b $IF_WPA_BRIDGE" - wpa_msg verbose "wpa-bridge $IF_WPA_BRIDGE" - fi - - if [ -n "$IF_WPA_DRIVER" ]; then - wpa_msg verbose "wpa-driver $IF_WPA_DRIVER" - case "$IF_WPA_DRIVER" in - hostap|ipw|madwifi|ndiswrapper) - WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -D nl80211,wext" - wpa_msg stderr "\"$IF_WPA_DRIVER\" wpa-driver is unsupported" - wpa_msg stderr "using \"nl80211,wext\" wpa-driver instead ..." - ;; - *) - WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -D $IF_WPA_DRIVER" - ;; - esac - else - WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -D nl80211,wext" - wpa_msg verbose "wpa-driver nl80211,wext (default)" - fi - - if [ -n "$IF_WPA_DEBUG_LEVEL" ]; then - case "$IF_WPA_DEBUG_LEVEL" in - 3) - WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -t -ddd" - ;; - 2) - WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -t -dd" - ;; - 1) - WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -t -d" - ;; - 0) - # wpa_supplicant default verbosity - ;; - -1) - WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -q" - ;; - -2) - WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -qq" - ;; - esac - wpa_msg verbose "using debug level: $IF_WPA_DEBUG_LEVEL" - fi - - if [ -n "$IF_WPA_LOGFILE" ]; then - # custom log file - WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -f $IF_WPA_LOGFILE" - WPA_SUP_LOGFILE="$IF_WPA_LOGFILE" - wpa_msg verbose "logging to $IF_WPA_LOGFILE" - fi - - wpa_msg verbose "$WPA_SUP_BIN $WPA_SUP_OPTIONS $WPA_SUP_CONF" - - start-stop-daemon --start --oknodo $DAEMON_VERBOSITY \ - --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --pidfile $WPA_SUP_PIDFILE \ - -- $WPA_SUP_OPTIONS $WPA_SUP_CONF - - if [ "$?" -ne 0 ]; then - wpa_msg stderr "$WPA_SUP_BIN daemon failed to start" - return 1 - fi - - if [ -n "$WPA_SUP_OMIT_PIDFILE" ]; then - local WPA_PIDFILE_WAIT - local MAX_WPA_PIDFILE_WAIT - WPA_PIDFILE_WAIT="0" - MAX_WPA_PIDFILE_WAIT="5" - until [ -s "$WPA_SUP_PIDFILE" ]; do - if [ "$WPA_PIDFILE_WAIT" -ge "$MAX_WPA_PIDFILE_WAIT" ]; then - wpa_msg stderr "timed out waiting for creation of $WPA_SUP_PIDFILE" - return 1 - else - wpa_msg verbose "waiting for \"$WPA_SUP_PIDFILE\": " \ - "$WPA_PIDFILE_WAIT (max. $MAX_WPA_PIDFILE_WAIT)" - fi - - WPA_PIDFILE_WAIT=$(($WPA_PIDFILE_WAIT + 1)) - sleep 1 - done - wpa_msg verbose "creating sendsigs omission pidfile: $WPA_SUP_OMIT_PIDFILE" - cat "$WPA_SUP_PIDFILE" > "$WPA_SUP_OMIT_PIDFILE" - else - wpa_msg verbose "sendsigs omission pidfile not created" - fi - - local WPA_SOCKET_WAIT - local MAX_WPA_SOCKET_WAIT - WPA_SOCKET_WAIT="0" - MAX_WPA_SOCKET_WAIT="5" - until [ -S "$WPA_CTRL_DIR/$WPA_IFACE" ]; do - if [ "$WPA_SOCKET_WAIT" -ge "$MAX_WPA_SOCKET_WAIT" ]; then - wpa_msg stderr "ctrl_interface socket not found at $WPA_CTRL_DIR/$WPA_IFACE" - return 1 - else - wpa_msg verbose "waiting for \"$WPA_CTRL_DIR/$WPA_IFACE\": " \ - "$WPA_SOCKET_WAIT (max. $MAX_WPA_SOCKET_WAIT)" - fi - - WPA_SOCKET_WAIT=$(($WPA_SOCKET_WAIT + 1)) - sleep 1 - done - - wpa_msg verbose "ctrl_interface socket located at $WPA_CTRL_DIR/$WPA_IFACE" -} - -##################################################################### -## stop wpa_supplicant process -# Kill wpa_supplicant via start-stop-daemon, given the location of -# the pidfile or ctrl_interface socket path and interface name -# -kill_wpa_supplicant () { - test_wpa_supplicant || return 0 - - wpa_msg verbose "terminating $WPA_SUP_PNAME daemon via pidfile $WPA_SUP_PIDFILE" - - start-stop-daemon --stop --oknodo $DAEMON_VERBOSITY \ - --exec $WPA_SUP_BIN --pidfile $WPA_SUP_PIDFILE - - if [ -f "$WPA_SUP_PIDFILE" ]; then - rm -f "$WPA_SUP_PIDFILE" - fi - - if [ -f "$WPA_SUP_OMIT_PIDFILE" ]; then - wpa_msg verbose "removing $WPA_SUP_OMIT_PIDFILE" - rm -f "$WPA_SUP_OMIT_PIDFILE" - fi -} - -##################################################################### -## reload wpa_supplicant process -# Sending a HUP signal causes wpa_supplicant to reparse its -# configuration file -# -reload_wpa_supplicant () { - if test_wpa_supplicant; then - wpa_msg verbose "reloading wpa_supplicant configuration file via HUP signal" - start-stop-daemon --stop --signal HUP \ - --name "$WPA_SUP_PNAME" --pidfile "$WPA_SUP_PIDFILE" - else - wpa_msg verbose "cannot $WPA_ACTION, $WPA_SUP_PIDFILE does not exist" - fi -} - -##################################################################### -## daemonize wpa_cli and action script -# If environment variable WPA_ACTION_SCRIPT is present, wpa_cli will -# be spawned via start-stop-daemon -# -# Required options: -# -a action script => wpa_action -# -P process ID file -# -B background process -# -init_wpa_cli () { - [ -n "$WPA_ACTION_SCRIPT" ] || return 0 - - local WPA_CLI_OPTIONS - WPA_CLI_OPTIONS="-B -P $WPA_CLI_PIDFILE -i $WPA_IFACE" - - wpa_msg verbose "$WPA_CLI_BIN $WPA_CLI_OPTIONS -p $WPA_CTRL_DIR -a $WPA_ACTION_SCRIPT" - - start-stop-daemon --start --oknodo $DAEMON_VERBOSITY \ - --name $WPA_CLI_PNAME --startas $WPA_CLI_BIN --pidfile $WPA_CLI_PIDFILE \ - -- $WPA_CLI_OPTIONS -p $WPA_CTRL_DIR -a $WPA_ACTION_SCRIPT - - if [ "$?" -ne 0 ]; then - wpa_msg stderr "$WPA_CLI_BIN daemon failed to start" - return 1 - fi -} - -##################################################################### -## stop wpa_cli process -# Kill wpa_cli via start-stop-daemon, given the location of the -# pidfile -# -kill_wpa_cli () { - test_wpa_cli || return 0 - - wpa_msg verbose "terminating $WPA_CLI_PNAME daemon via pidfile $WPA_CLI_PIDFILE" - - start-stop-daemon --stop --oknodo $DAEMON_VERBOSITY \ - --exec $WPA_CLI_BIN --pidfile $WPA_CLI_PIDFILE - - if [ -f "$WPA_CLI_PIDFILE" ]; then - rm -f "$WPA_CLI_PIDFILE" - fi - - if [ -f "$WPA_CLI_TIMESTAMP" ]; then - rm -f "$WPA_CLI_TIMESTAMP" - fi - - if [ -L "$WPA_CLI_IFUPDOWN" ]; then - rm -f "$WPA_CLI_IFUPDOWN" - fi -} - -##################################################################### -## higher level wpa_cli wrapper for variable and set_network commands -# wpa_cli_do [set_network variable] -# -# $1 envorinment variable -# $2 data type of variable {raw|ascii} -# $3 wpa_cli variable, if $3 is set_network, shift and take -# set_network subvariable -# $4 wpa-* string as it would appear in interfaces file, enhances -# verbose messages -# -wpa_cli_do () { - if [ -z "$1" ]; then - return 0 - fi - - local WPACLISET_VALUE - local WPACLISET_VARIABLE - local WPACLISET_DESC - - case "$2" in - ascii) - # Double quote - WPACLISET_VALUE="\"$1\"" - ;; - raw|*) - # Provide raw value - WPACLISET_VALUE="$1" - ;; - esac - - case "$3" in - set_network) - if [ -z "$WPA_ID" ]; then - return 1 - fi - shift - WPACLISET_VARIABLE="set_network $WPA_ID $3" - ;; - *) - WPACLISET_VARIABLE="$3" - ;; - esac - - case "$4" in - *-psk|*-passphrase|*-passwd*|*-wep-key*) - WPACLISET_DESC="$4 *****" - ;; - *) - WPACLISET_DESC="$4 $WPACLISET_VALUE" - ;; - esac - - wpa_msg action "$WPACLISET_DESC" - - wpa_cli $WPACLISET_VARIABLE "$WPACLISET_VALUE" >$TO_NULL - - if [ "$?" -ne 0 ]; then - wpa_msg stderr "$WPACLISET_DESC failed!" - fi -} - -##################################################################### -## check value data type in plaintext or hex -# returns 0 if input consists of hexadecimal digits only, 1 otherwise -# -ishex () { - if [ -z "$1" ]; then - return 0 - fi - - case "$1" in - *[!0-9a-fA-F]*) - # plaintext - return 1 - ;; - *) - # hexadecimal - return 0 - ;; - esac -} - -##################################################################### -## sanity check and set psk|passphrase -# Warn about strange psk|passphrase values -# -# $1 psk or passphrase value -# -# If psk is surrounded by quotes strip them. -# -# If psk contains all hexadecimal characters and string length is 64: -# is 256bit hexadecimal -# else: -# is plaintext -# -# plaintext passphrases must be 8 - 63 characters in length -# 256-bit hexadecimal key must be 64 characters in length -# -wpa_key_check_and_set () { - if [ "$#" -ne 3 ]; then - return 0 - fi - - local KEY - local KEY_LEN - local KEY_TYPE - local ENC_TYPE - - case "$1" in - '"'*'"') - # Strip surrounding quotation marks - KEY=$(echo -n "$1" | sed 's/^"//;s/"$//') - ;; - *) - KEY="$1" - ;; - esac - - KEY_LEN="${#KEY}" - - case "$2" in - wep_key*) - ENC_TYPE="WEP" - ;; - psk) - ENC_TYPE="WPA" - ;; - *) - return 0 - ;; - esac - - if [ "$ENC_TYPE" = "WEP" ]; then - if ishex "$KEY"; then - case "$KEY_LEN" in - 10|26|32|58) - # 64/128/152/256-bit WEP - KEY_TYPE="raw" - ;; - *) - KEY_TYPE="ascii" - ;; - esac - else - KEY_TYPE="ascii" - fi - - if [ "$KEY_TYPE" = "ascii" ]; then - if [ "$KEY_LEN" -lt "5" ]; then - wpa_msg stderr "WARNING: plaintext or ascii WEP key has $KEY_LEN characters," - wpa_msg stderr "it must have at least 5 to be valid." - fi - fi - elif [ "$ENC_TYPE" = "WPA" ]; then - if ishex "$KEY"; then - case "$KEY_LEN" in - 64) - # 256-bit WPA - KEY_TYPE="raw" - ;; - *) - KEY_TYPE="ascii" - ;; - esac - else - KEY_TYPE="ascii" - fi - - if [ "$KEY_TYPE" = "ascii" ]; then - if [ "$KEY_LEN" -lt "8" ] || [ "$KEY_LEN" -gt "63" ]; then - wpa_msg stderr "WARNING: plaintext or ascii WPA key has $KEY_LEN characters," - wpa_msg stderr "it must have between 8 and 63 to be valid." - wpa_msg stderr "If the WPA key is a 256-bit hexadecimal key, it must have" - wpa_msg stderr "exactly 64 characters." - fi - fi - fi - - wpa_cli_do "$KEY" "$KEY_TYPE" set_network "$2" "$3" -} - -##################################################################### -## formulate a usable configuration from interfaces(5) wpa- lines -# A series of wpa_cli commands corresponding to environment variables -# created as a result of wpa- lines in an interfaces stanza. -# -# NB: no-act when roaming daemon is used (to avoid prematurely -# attaching to ctrl_interface socket) -# -conf_wpa_supplicant () { - if [ -n "$WPA_ACTION_SCRIPT" ]; then - return 0 - fi - - if [ "$IF_WPA_DRIVER" = "wired" ]; then - IF_WPA_AP_SCAN="0" - wpa_msg verbose "forcing ap_scan=0 (required for wired IEEE8021X auth)" - fi - - if [ -n "$IF_WPA_ESSID" ]; then - # #403316, be similar to wireless tools - IF_WPA_SSID="$IF_WPA_ESSID" - fi - - wpa_cli_do "$IF_WPA_AP_SCAN" raw \ - ap_scan wpa-ap-scan - - wpa_cli_do "$IF_WPA_PREAUTHENTICATE" raw \ - preauthenticate wpa-preauthenticate - - if [ -n "$IF_WPA_SSID" ] || [ "$IF_WPA_DRIVER" = "wired" ] || \ - [ -n "$IF_WPA_KEY_MGMT" ]; then - - case "$IF_WPA_SSID" in - '"'*'"') - IF_WPA_SSID=$(echo -n "$IF_WPA_SSID" | sed 's/^"//;s/"$//') - ;; - *) - ;; - esac - - WPA_ID=$(wpa_cli add_network) - - wpa_msg verbose "configuring network block -- $WPA_ID" - - wpa_cli_do "$IF_WPA_SSID" ascii \ - set_network ssid wpa-ssid - - wpa_cli_do "$IF_WPA_PRIORITY" raw \ - set_network priority wpa-priority - - wpa_cli_do "$IF_WPA_BSSID" raw \ - set_network bssid wpa-bssid - - if [ -s "$IF_WPA_PSK_FILE" ]; then - IF_WPA_PSK=$(cat "$IF_WPA_PSK_FILE") - fi - - # remain compat with wpa-passphrase-file - if [ -s "$IF_WPA_PASSPHRASE_FILE" ]; then - IF_WPA_PSK=$(cat "$IF_WPA_PASSPHRASE_FILE") - fi - - # remain compat with wpa-passphrase - if [ -n "$IF_WPA_PASSPHRASE" ]; then - IF_WPA_PSK="$IF_WPA_PASSPHRASE" - fi - - if [ -n "$IF_WPA_PSK" ]; then - wpa_key_check_and_set "$IF_WPA_PSK" \ - psk wpa-psk - fi - - wpa_cli_do "$IF_WPA_PAIRWISE" raw \ - set_network pairwise wpa-pairwise - - wpa_cli_do "$IF_WPA_GROUP" raw \ - set_network group wpa-group - - wpa_cli_do "$IF_WPA_MODE" raw \ - set_network mode wpa-mode - - wpa_cli_do "$IF_WPA_FREQUENCY" raw \ - set_network frequency wpa-frequency - - wpa_cli_do "$IF_WPA_SCAN_FREQ" raw \ - set_network scan_freq wpa-scan-freq - - wpa_cli_do "$IF_WPA_FREQ_LIST" raw \ - set_network freq_list wpa-freq-list - - wpa_cli_do "$IF_WPA_KEY_MGMT" raw \ - set_network key_mgmt wpa-key-mgmt - - wpa_cli_do "$IF_WPA_PROTO" raw \ - set_network proto wpa-proto - - wpa_cli_do "$IF_WPA_AUTH_ALG" raw \ - set_network auth_alg wpa-auth-alg - - wpa_cli_do "$IF_WPA_SCAN_SSID" raw \ - set_network scan_ssid wpa-scan-ssid - - wpa_cli_do "$IF_WPA_IDENTITY" ascii \ - set_network identity wpa-identity - - wpa_cli_do "$IF_WPA_ANONYMOUS_IDENTITY" ascii \ - set_network anonymous_identity wpa-anonymous-identity - - wpa_cli_do "$IF_WPA_EAP" raw \ - set_network eap wpa-eap - - wpa_cli_do "$IF_WPA_EAPPSK" raw \ - set_network eappsk wpa-eappsk - - wpa_cli_do "$IF_WPA_NAI" ascii \ - set_network nai wpa-nai - - wpa_cli_do "$IF_WPA_PASSWORD" ascii \ - set_network password wpa-password - - wpa_cli_do "$IF_WPA_CA_CERT" ascii \ - set_network ca_cert wpa-ca-cert - - wpa_cli_do "$IF_WPA_CA_PATH" ascii \ - set_network ca_path wpa-ca-path - - wpa_cli_do "$IF_WPA_CLIENT_CERT" ascii \ - set_network client_cert wpa-client-cert - - wpa_cli_do "$IF_WPA_PRIVATE_KEY" ascii \ - set_network private_key wpa-private-key - - wpa_cli_do "$IF_WPA_PRIVATE_KEY_PASSWD" ascii \ - set_network private_key_passwd wpa-private-key-passwd - - wpa_cli_do "$IF_WPA_DH_FILE" ascii \ - set_network dh_file wpa-dh-file - - wpa_cli_do "$IF_WPA_SUBJECT_MATCH" ascii \ - set_network subject_match wpa-subject-match - - wpa_cli_do "$IF_WPA_ALTSUBJECT_MATCH" ascii \ - set_network altsubject_match wpa-altsubject-match - - wpa_cli_do "$IF_WPA_CA_CERT2" ascii \ - set_network ca_cert2 wpa-ca-cert2 - - wpa_cli_do "$IF_WPA_CA_PATH2" ascii \ - set_network ca_path2 wpa-ca-path2 - - wpa_cli_do "$IF_WPA_CLIENT_CERT2" ascii \ - set_network client_cert2 wpa-client-cert2 - - wpa_cli_do "$IF_WPA_PRIVATE_KEY2" ascii \ - set_network private_key2 wpa-private-key2 - - wpa_cli_do "$IF_WPA_PRIVATE_KEY_PASSWD2" ascii \ - set_network private_key_passwd2 wpa-private-key-passwd2 - - wpa_cli_do "$IF_WPA_DH_FILE2" ascii \ - set_network dh_file2 wpa-dh-file2 - - wpa_cli_do "$IF_WPA_SUBJECT_MATCH2" ascii \ - set_network subject_match2 wpa-subject-match2 - - wpa_cli_do "$IF_WPA_ALTSUBJECT_MATCH2" ascii \ - set_network altsubject_match2 wpa-altsubject-match2 - - wpa_cli_do "$IF_WPA_EAP_METHODS" raw \ - set_network eap_methods wpa-eap-methods - - wpa_cli_do "$IF_WPA_PHASE1" ascii \ - set_network phase1 wpa-phase1 - - wpa_cli_do "$IF_WPA_PHASE2" ascii \ - set_network phase2 wpa-phase2 - - wpa_cli_do "$IF_WPA_PCSC" raw \ - set_network pcsc wpa-pcsc - - wpa_cli_do "$IF_WPA_PIN" ascii \ - set_network pin wpa-pin - - wpa_cli_do "$IF_WPA_ENGINE" raw \ - set_network engine wpa-engine - - wpa_cli_do "$IF_WPA_ENGINE_ID" ascii \ - set_network engine_id wpa-engine-id - - wpa_cli_do "$IF_WPA_KEY_ID" ascii \ - set_network key_id wpa-key-id - - wpa_cli_do "$IF_WPA_EAPOL_FLAGS" raw \ - set_network eapol_flags wpa-eapol-flags - - if [ -n "$IF_WPA_WEP_KEY0" ]; then - wpa_key_check_and_set "$IF_WPA_WEP_KEY0" \ - wep_key0 wpa-wep-key0 - fi - - if [ -n "$IF_WPA_WEP_KEY1" ]; then - wpa_key_check_and_set "$IF_WPA_WEP_KEY1" \ - wep_key1 wpa-wep-key1 - fi - - if [ -n "$IF_WPA_WEP_KEY2" ]; then - wpa_key_check_and_set "$IF_WPA_WEP_KEY2" \ - wep_key2 wpa-wep-key2 - fi - - if [ -n "$IF_WPA_WEP_KEY3" ]; then - wpa_key_check_and_set "$IF_WPA_WEP_KEY3" \ - wep_key3 wpa-wep-key3 - fi - - wpa_cli_do "$IF_WPA_WEP_TX_KEYIDX" raw \ - set_network wep_tx_keyidx wpa-wep-tx-keyidx - - wpa_cli_do "$IF_WPA_PROACTIVE_KEY_CACHING" raw \ - set_network proactive_key_caching wpa-proactive-key-caching - - wpa_cli_do "$IF_WPA_PAC_FILE" ascii \ - set_network pac_file wpa-pac-file - - wpa_cli_do "$IF_WPA_PEERKEY" raw \ - set_network peerkey wpa-peerkey - - wpa_cli_do "$IF_FRAGMENT_SIZE" raw \ - set_network fragment_size wpa-fragment-size - - wpa_cli_do "$IF_WPA_ID_STR" ascii \ - set_network id_str wpa-id-str - - wpa_cli_do "$WPA_ID" raw \ - enable_network "enabling network block" - fi -} - -##################################################################### -## Log wpa_cli environment variables -wpa_log_env () { - wpa_msg log "WPA_IFACE=$WPA_IFACE WPA_ACTION=$WPA_ACTION" - wpa_msg log "WPA_ID=$WPA_ID WPA_ID_STR=$WPA_ID_STR WPA_CTRL_DIR=$WPA_CTRL_DIR" -} - -##################################################################### -## hysteresis checking -# Networking tools such as dhcp clients used with ifupdown can -# synthesize artificial ACTION events, particuarly just after a -# DISCONNECTED/CONNECTED events are experienced in quick succession. -# This can lead to infinite event loops, and in extreme cases has the -# potential to cause system instability. -# -wpa_hysteresis_event () { - echo "$(date +%s)" > "$WPA_CLI_TIMESTAMP" 2>/dev/null -} - -wpa_hysteresis_check () { - if [ -f "$WPA_CLI_TIMESTAMP" ]; then - local TIME - local TIMESTAMP - local TIMEWAIT - TIME=$(date +%s) - # current time minus 4 second event buffer - TIMEWAIT=$(($TIME-4)) - # get time of last event - TIMESTAMP=$(cat $WPA_CLI_TIMESTAMP) - # compare values, allowing new action to be processed - # only if last action was more than 4 seconds ago - if [ "$TIMEWAIT" -le "$TIMESTAMP" ]; then - wpa_msg log "$WPA_ACTION event blocked by hysteresis check" - return 1 - fi - fi - - return 0 -} - -##################################################################### -## ifupdown locking functions -# A collection of rudimentary locking functions to lock ifup/ifdown -# actions. -# - -ifupdown_lock () { - ln -s lock "$WPA_CLI_IFUPDOWN" -} - -ifupdown_locked () { - [ -L "$WPA_CLI_IFUPDOWN" ] && return 0 - - return 1 -} - -ifupdown_unlock () { - rm -f "$WPA_CLI_IFUPDOWN" -} - -##################################################################### -## apply mapping logic and ifup logical interface -# Apply mapping logic via id_str or external mapping script, check -# state of IFACE with respect to ifupdown and ifup logical interaface -# -ifup () { - local INTERFACES_FILE - local IFSTATE_FILE - local IFUP_RETVAL - local WPA_LOGICAL_IFACE - - if [ -e /etc/network/interfaces ]; then - INTERFACES_FILE="/etc/network/interfaces" - else - wpa_msg log "/etc/network/interfaces does not exist, $WPA_IFACE will not be configured" - return 1 - fi - - if [ -e /etc/network/run/ifstate ]; then - # debian's ifupdown - IFSTATE_FILE="/etc/network/run/ifstate" - elif [ -e /var/run/network/ifstate ]; then - # ubuntu's - IFSTATE_FILE="/var/run/network/ifstate" - else - unset IFSTATE_FILE - fi - - if [ -z "$IF_WPA_MAPPING_SCRIPT_PRIORITY" ] && [ -n "$WPA_ID_STR" ]; then - WPA_LOGICAL_IFACE="$WPA_ID_STR" - fi - - if [ -z "$WPA_LOGICAL_IFACE" ] && [ -n "$IF_WPA_MAPPING_SCRIPT" ]; then - local WPA_MAP_STDIN - - WPA_MAP_STDIN=$(set | sed -n 's/^\(IF_WPA_MAP[0-9]*\)=.*/echo \$\1/p') - - if [ -n "$WPA_MAP_STDIN" ]; then - WPA_LOGICAL_IFACE=$(eval "$WPA_MAP_STDIN" | "$IF_WPA_MAPPING_SCRIPT" "$WPA_IFACE") - else - WPA_LOGICAL_IFACE=$("$IF_WPA_MAPPING_SCRIPT" "$WPA_IFACE") - fi - - if [ -n "$WPA_LOGICAL_IFACE" ]; then - wpa_msg log "mapping script result: $WPA_LOGICAL_IFACE" - else - wpa_msg log "mapping script failed." - fi - fi - - if [ -z "$WPA_LOGICAL_IFACE" ]; then - if [ -n "$IF_WPA_ROAM_DEFAULT_IFACE" ]; then - WPA_LOGICAL_IFACE="$IF_WPA_ROAM_DEFAULT_IFACE" - else - WPA_LOGICAL_IFACE="default" - fi - fi - - if [ -n "$WPA_LOGICAL_IFACE" ]; then - if egrep -q "^iface[[:space:]]+${WPA_LOGICAL_IFACE}[[:space:]]+inet" "$INTERFACES_FILE"; then - : # logical network is defined - else - wpa_msg log "network settings not defined for $WPA_LOGICAL_IFACE in $INTERFACES_FILE" - WPA_LOGICAL_IFACE="default" - fi - - wpa_msg log "ifup $WPA_IFACE=$WPA_LOGICAL_IFACE" - - ifupdown_lock - - if [ -n "$IFSTATE_FILE" ] && grep -q "^$WPA_IFACE=$WPA_IFACE" "$IFSTATE_FILE"; then - # Force settings over the unconfigured "master" IFACE - /sbin/ifup -v --force "$WPA_IFACE=$WPA_LOGICAL_IFACE" - else - /sbin/ifup -v "$WPA_IFACE=$WPA_LOGICAL_IFACE" - fi - IFUP_RETVAL="$?" - - ifupdown_unlock - fi - - wpa_msg log "creating sendsigs omission pidfile: $WPA_SUP_OMIT_PIDFILE" - cat "$WPA_SUP_PIDFILE" > "$WPA_SUP_OMIT_PIDFILE" - - return "$IFUP_RETVAL" -} - -##################################################################### -## ifdown IFACE -# Check IFACE state and ifdown as requested. -# -ifdown () { - wpa_msg log "ifdown $WPA_IFACE" - - ifupdown_lock - - /sbin/ifdown -v "$WPA_IFACE" - - ifupdown_unlock - - wpa_msg log "removing sendsigs omission pidfile: $WPA_SUP_OMIT_PIDFILE" - rm -f "$WPA_SUP_OMIT_PIDFILE" -} - -##################################################################### -## keep IFACE scanning -# After ifdown, the IFACE may be left "down", and inhibits -# wpa_supplicant's ability to continue roaming. -# -# NB: use iproute if present, flushing the IFACE first -# -if_post_down_up () { - if [ -x /bin/ip ]; then - ip addr flush dev "$WPA_IFACE" 2>/dev/null - ip link set "$WPA_IFACE" up - else - ifconfig "$WPA_IFACE" up - fi -} diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/ifupdown.sh b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/ifupdown.sh deleted file mode 100644 index 9dab925..0000000 --- a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/ifupdown.sh +++ /dev/null @@ -1,172 +0,0 @@ -#!/bin/sh - -##################################################################### -## Purpose -# This file is executed by ifupdown in pre-up, post-up, pre-down and -# post-down phases of network interface configuration. It allows -# ifup(8), and ifdown(8) to manage wpa_supplicant(8) and wpa_cli(8) -# processes running in daemon mode. -# -# /etc/wpa_supplicant/functions.sh is sourced by this file. -# -# This file is provided by the wpasupplicant package. - -##################################################################### -# Copyright (C) 2006 - 2009 Debian/Ubuntu wpasupplicant Maintainers -# -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# On Debian GNU/Linux systems, the text of the GPL license, -# version 2, can be found in /usr/share/common-licenses/GPL-2. - -if [ -n "$IF_WPA_MAINT_DEBUG" ]; then - set -x -fi - -# quit if we're called for the loopback -if [ "$IFACE" = lo ]; then - exit 0 -fi - -# allow wpa_supplicant interface to be specified via wpa-iface -# useful for starting wpa_supplicant on one interface of a bridge -if [ -n "$IF_WPA_IFACE" ]; then - WPA_IFACE="$IF_WPA_IFACE" -else - WPA_IFACE="$IFACE" -fi - -# source functions -if [ -f /etc/wpa_supplicant/functions.sh ]; then - . /etc/wpa_supplicant/functions.sh -else - exit 0 -fi - -# quit if executables are not installed -if [ ! -x "$WPA_SUP_BIN" ] || [ ! -x "$WPA_CLI_BIN" ]; then - exit 0 -fi - -do_start () { - if test_wpa_cli; then - # if wpa_action is active for this IFACE, do nothing - ifupdown_locked && exit 0 - - # if the administrator is calling ifup, say something useful - if [ "$PHASE" = "pre-up" ]; then - wpa_msg stderr "wpa_action is managing ifup/ifdown state of $WPA_IFACE" - wpa_msg stderr "execute \`ifdown --force $WPA_IFACE' to stop wpa_action" - fi - exit 1 - elif ! set | grep -q "^IF_WPA"; then - # no wpa- option defined for IFACE, do nothing - exit 0 - fi - - # ensure stale ifupdown_lock marker is purged - ifupdown_unlock - - # preliminary sanity checks for roaming daemon - if [ -n "$IF_WPA_ROAM" ]; then - if [ "$METHOD" != "manual" ]; then - wpa_msg stderr "wpa-roam can only be used with the \"manual\" inet METHOD" - exit 1 - fi - if [ -n "$IF_WPA_MAPPING_SCRIPT" ]; then - if ! type "$IF_WPA_MAPPING_SCRIPT" >/dev/null; then - wpa_msg stderr "wpa-mapping-script \"$IF_WPA_MAPPING_SCRIPT\" is not valid" - exit 1 - fi - fi - if [ -n "$IF_WPA_MAPPING_SCRIPT_PRIORITY" ] && [ -z "$IF_WPA_MAPPING_SCRIPT" ]; then - wpa_msg stderr "\"wpa-mapping-script-priority 1\" is invalid without a wpa-mapping-script" - exit 1 - fi - IF_WPA_CONF="$IF_WPA_ROAM" - WPA_ACTION_SCRIPT="/usr/sbin/wpa_action" - fi - - # master function; determines if ifupdown.sh should do something or not - if [ -n "$IF_WPA_CONF" ] && [ "$IF_WPA_CONF" != "managed" ]; then - if [ ! -s "$IF_WPA_CONF" ]; then - wpa_msg stderr "cannot read contents of $IF_WPA_CONF" - exit 1 - fi - WPA_SUP_CONF_CTRL_DIR=$(sed -n -e 's/[[:space:]]*#.*//g' -e 's/[[:space:]]\+.*$//g' \ - -e 's/^ctrl_interface=\(DIR=\)\?\(.*\)/\2/p' "$IF_WPA_CONF") - if [ -n "$WPA_SUP_CONF_CTRL_DIR" ]; then - WPA_CTRL_DIR="$WPA_SUP_CONF_CTRL_DIR" - WPA_SUP_CONF="-c $IF_WPA_CONF" - else - # specify the default ctrl_interface since none was defined in - # the given IF_WPA_CONF - WPA_SUP_CONF="-c $IF_WPA_CONF -C $WPA_CTRL_DIR" - fi - else - # specify the default ctrl_interface - WPA_SUP_CONF="-C $WPA_CTRL_DIR" - fi -} - -do_stop () { - if test_wpa_cli; then - # if wpa_action is active for this IFACE and calling ifdown, - # do nothing - ifupdown_locked && exit 0 - elif test_wpa_supplicant; then - # wpa_supplicant process exists for this IFACE, but wpa_cli - # process does not. Allow stop mode to kill this process. - : - else - exit 0 - fi -} - -case "$MODE" in - start) - do_start - case "$PHASE" in - pre-up) - kill_wpa_supplicant - init_wpa_supplicant || exit 1 - conf_wpa_supplicant || { kill_wpa_supplicant; exit 1; } - ;; - post-up) - init_wpa_cli || { kill_wpa_supplicant; exit 1; } - ;; - esac - ;; - - stop) - do_stop - case "$PHASE" in - pre-down) - kill_wpa_cli - ;; - post-down) - kill_wpa_supplicant - ;; - *) - wpa_msg stderr "unknown phase: \"$PHASE\"" - exit 1 - ;; - esac - ;; - - *) - wpa_msg stderr "unknown mode: \"$MODE\"" - exit 1 - ;; -esac - -exit 0 diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/wpa_action b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/wpa_action deleted file mode 100644 index 7ef57ac..0000000 --- a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/wpa_action +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/sh - -# Copyright (C) 2006 - 2009 Debian/Ubuntu wpasupplicant Maintainers -# -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# On Debian GNU/Linux systems, the text of the GPL license, -# version 2, can be found in /usr/share/common-licenses/GPL-2. - -if [ -n "$IF_WPA_ROAM_MAINT_DEBUG" ]; then - set -x -fi - -if [ -z "$1" ] || [ -z "$2" ]; then - echo "Usage: $0 IFACE ACTION" - exit 1 -fi - -# network interface -WPA_IFACE="$1" -# [CONNECTED|DISCONNECTED|stop|reload|check] -WPA_ACTION="$2" - -if [ -f /etc/wpa_supplicant/functions.sh ]; then - . /etc/wpa_supplicant/functions.sh -else - exit 0 -fi - -case "$WPA_ACTION" in - "CONNECTED") - wpa_log_env - wpa_hysteresis_check || exit 1 - wpa_hysteresis_event - if ifup; then - wpa_cli status | wpa_msg log - else - wpa_cli status | wpa_msg log - wpa_cli reassociate - fi - ;; - - "DISCONNECTED") - wpa_log_env - wpa_hysteresis_check || exit 1 - ifdown - if_post_down_up - ;; - - "stop"|"down") - test_wpa_cli && kill_wpa_cli - ifdown - test_wpa_supplicant && kill_wpa_supplicant - ;; - - "restart"|"reload") - test_wpa_supplicant || exit 1 - reload_wpa_supplicant - ;; - - "check") - test_wpa_supplicant || exit 1 - test_wpa_cli || exit 1 - ;; - - *) - echo "Unknown action: \"$WPA_ACTION\"" - exit 1 - ;; -esac - -exit 0 diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/wpa_action.8 b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/wpa_action.8 deleted file mode 100644 index e8f1b28..0000000 --- a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.3/wpa_action.8 +++ /dev/null @@ -1,148 +0,0 @@ -.TH WPA_ACTION "8" "26 May 2006" "" "" -.SH NAME -wpa_action \- wpa_cli action script -.SH SYNOPSIS -\fBwpa_action\fR \fIIFACE ACTION\fR -.SH "DESCRIPTION" -\fBwpa_action\fR is a shell script designed to control the \fBifupdown\fR -framework according to \fIACTION\fR events received from \fBwpa_supplicant\fR. -\fBwpa_cli\fR receives \fICONNECTED\fR and \fIDISCONNECTED\fR events from -\fBwpa_supplicant\fR via the crtl_iface socket and gives the \fIACTION\fR event -to the \fBwpa_action\fR script as an argument, along with the \fIIFACE\fR to be -acted upon. -.PP -\fBwpa_action\fR also receives an environment variable from \fBwpa_cli\fR, -\fIWPA_ID_STR\fR, containing an alphanumeric identification string for the -\fICURRENT\fR network block. \fIWPA_ID_STR\fR is provided by the 'id_str' -network block option of \fBwpa_supplicant.conf\fR, and provides a means to map -the \fIACTION\fR to a \fILOGICAL\fR interface configured in the \fBinterfaces\fR -file. -.PP -If either the ifupdown \fBinterfaces\fR or \fIifstate\fR file cannot be found, -\fBwpa_action\fR will exit silently (status 0). \fBwpa_action\fR will search -the following locations for their existance: -.nf - /etc/network/run/ifstate - /var/run/network/ifstate - /etc/network/interfaces -.fi -.PP -.SH IFACE -Network interface to be acted upon, for example 'eth1' or 'wlan0'. -.SH ACTION -An \fIACTION\fR to be performed on the \fIIFACE\fR. -.TP -\fBCONNECTED\fR -\fBwpa_supplicant\fR has completed authentication. -\fBifup\fR \fIIFACE=WPA_ID_STR\fR is invoked and the action is logged to -syslog. Network settings for the \fILOGICAL\fR interface \fIWPA_ID_STR\fR -are applied. -.TP -\fBDISCONNECTED\fR -\fBwpa_supplicant\fR has detected disconnection. -\fBifdown\fR \fIIFACE=WPA_ID_STR\fR is invoked and the action is logged to -syslog. Network settings for the \fILOGICAL\fR interface \fIWPA_ID_STR\fR -are undone. -.TP -\fBstop\fR -The 'stop' \fIACTION\fR is a called manually by the user, to stop the -\fBwpa_cli\fR daemon, invoke \fBifdown\fR \fIIFACE\fR (if the \fIIFACE\fR is -present in the \fIifstate\fR file) and stop the \fBwpa_supplicant\fR daemon. -.TP -\fBreload\fR -The 'reload' \fIACTION\fR can be used to reload the \fBwpa_supplicant\fR -configuration file specified by \fIwpa-roam\fR . 'restart' is a synonym -for 'reload' and can be used equally. The action is logged to -\fI/var/log/wpa_action.log\fR. -.SH ENVIRONMENT -An alphanumeric identification string provided by the 'id_str' network block -option of \fBwpa_supplicant.conf\fR is exported to \fBwpa_action\fR as an -environment variable, \fIWPA_ID_STR\fR. When 'id_str' is not configured for the -\fICURRENT\fR network block, 'default' is substituted for the absent -\fIWPA_ID_STR\fR environment variable. -.PP -A unique network identifier, \fIWPA_ID\fR, is exported to \fBwpa_action\fR. It -is the number assigned to the \fICURRENT\fR \fBwpa_supplicant\fR network block -(network_id). -.SH USAGE -The only reasons for \fBwpa_action\fR to be explicitly executed by the user is -to stop \fBwpa_cli\fR from controlling \fBifupdown\fR or reload the -\fIwpa_supplicant.conf\fR file after editing. -.PP -.RS -\fBwpa_action\fR \fIeth1 stop\fR -.RE -.PP -Otherwise, \fBwpa_action\fR is given as an argument to a \fBwpa_cli\fR -daemon. -.PP -.RS -\fBwpa_cli\fR \fI-i eth1 -a /sbin/wpa_action -B\fR -.RE -.PP -This can be done by using the \fIwpa-roam\fR option in the \fBinterfaces\fR -file. \fIwpa-roam\fR takes one argument, a user provided -\fBwpa_supplicant.conf\fR file. -.PP -The inet \fIMETHOD\fR must be 'manual' for this interface, as it will -be configured according to \fBwpa_cli\fR action events. Also supply a 'default' -\fBinterfaces\fR stanza using the dhcp inet \fIMETHOD\fR so that networks -without an 'id_str' option can fallback to attempting to receive an ip via -dhcp. If one or more networks requires additional network configuration, -provide an unique 'id_str' for each network, and an \fBinterfaces\fR stanza -using the 'id_str' value as a \fILOGICAL\fR interface. The following interfaces -file is configured to use dhcp for any network without an 'id_str', a static ip -for the network with an 'id_str' of 'home_static' and dhcp plus an additional -post-up command for the network with an 'id_str' of 'uni'. -.PP -An example wpa_supplicant.conf configured to roam between 3 different networks: -.PP -.RS -.nf -network={ - ssid="foo" - id_str="uni" - key_mgmt=NONE -} - -network={ - ssid="bar" - id_str="home_static" - psk=123456789... -} - -network={ - ssid="" - key_mgmt=NONE -} -.fi -.RE -.PP -The corresponding \fBinterfaces\fR file would contain \fILOGICAL\fR interfaces, -that correlate to each unique 'id_str' provided by the configuration file: -.PP -.RS -.nf -iface eth1 inet manual - wpa-driver wext - wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf - -iface default inet dhcp - -iface uni inet dhcp - -iface home_static inet static - address 192.168.0.20 - netmask 255.255.255.0 - network 192.168.0.0 - broadcast 192.168.0.255 - gateway 192.168.0.1 -.fi -.RE -.PP -.SH SEE ALSO -\fBwpa_cli(8)\fR, \fBwpa_supplicant(8)\fR, \fBwpa_supplicant.conf(5)\fR, -\fBifup(8)\fR, \fBinterfaces(5)\fR -.SH AUTHOR -This manual page was written by Kel Modderman for -the Debian GNU system (but may be used by others). diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/action_wpa.sh b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/action_wpa.sh new file mode 100644 index 0000000..6d90fa6 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/action_wpa.sh @@ -0,0 +1,50 @@ +#!/bin/sh + +# Action script to enable/disable wpa-roam interfaces in reaction to +# ifplugd events. +# +# Copyright: Copyright (c) 2008-2010, Kel Modderman +# License: GPL-2 +# + +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +if [ ! -x /usr/sbin/wpa_action ]; then + exit 0 +fi + +# ifplugd(8) - +# +# If an ifplugd managed interface is brought up, disconnect any +# wpa-roam managed interfaces so that only one "roaming" interface +# remains active on the system. + +IFPLUGD_IFACE="${1}" + +case "${2}" in + up) + COMMAND=disconnect + ;; + down) + COMMAND=reconnect + ;; + *) + echo "$0: unknown arguments: ${@}" >&2 + exit 1 + ;; +esac + +for CTRL in /var/run/wpa_supplicant/*; do + [ -S "${CTRL}" ] || continue + + IFACE="${CTRL#/var/run/wpa_supplicant/}" + + # skip if ifplugd is managing this interface + if [ "${IFPLUGD_IFACE}" = "${IFACE}" ]; then + continue + fi + + if wpa_action "${IFACE}" check; then + wpa_cli -i "${IFACE}" "${COMMAND}" + fi +done diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/functions.sh b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/functions.sh new file mode 100644 index 0000000..b9e0eb2 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/functions.sh @@ -0,0 +1,1015 @@ +#!/bin/sh + +##################################################################### +## Purpose +# This file contains common shell functions used by scripts of the +# wpasupplicant package to allow ifupdown to manage wpa_supplicant. +# It also contains some functions used by wpa_action(8) that allow +# ifupdown to be managed by wpa_cli(8) action events. +# +# This file is provided by the wpasupplicant package. + +##################################################################### +# Copyright (C) 2006 - 2009 Debian/Ubuntu wpasupplicant Maintainers +# +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# On Debian GNU/Linux systems, the text of the GPL license, +# version 2, can be found in /usr/share/common-licenses/GPL-2. + +##################################################################### +## global variables +# wpa_supplicant variables +WPA_SUP_BIN="/usr/sbin/wpa_supplicant" +WPA_SUP_PNAME="wpa_supplicant" +WPA_SUP_PIDFILE="/var/run/wpa_supplicant.${WPA_IFACE}.pid" + +# wpa_cli variables +WPA_CLI_BIN="/usr/sbin/wpa_cli" +WPA_CLI_PNAME="wpa_cli" +WPA_CLI_PIDFILE="/var/run/wpa_action.${WPA_IFACE}.pid" +WPA_CLI_TIMESTAMP="/var/run/wpa_action.${WPA_IFACE}.timestamp" +WPA_CLI_IFUPDOWN="/var/run/wpa_action.${WPA_IFACE}.ifupdown" + +# sendsigs omission interface, present in initscripts (>= 2.86.ds1-48) +if [ -d /lib/init/rw/sendsigs.omit.d/ ]; then + # Debian + WPA_SUP_OMIT_PIDFILE="/lib/init/rw/sendsigs.omit.d/wpasupplicant.wpa_supplicant.${WPA_IFACE}.pid" +elif [ -d /var/run/sendsigs.omit.d/ ]; then + # Ubuntu, see https://launchpad.net/bugs/181541 for status + WPA_SUP_OMIT_PIDFILE="/var/run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.${WPA_IFACE}.pid" +else + WPA_SUP_OMIT_PIDFILE= +fi + +# default ctrl_interface socket directory +if [ -z "$WPA_CTRL_DIR" ]; then + WPA_CTRL_DIR="/var/run/wpa_supplicant" +fi + +# verbosity variables +if [ -n "$IF_WPA_VERBOSITY" ] || [ "$VERBOSITY" = "1" ]; then + TO_NULL="/dev/stdout" + DAEMON_VERBOSITY="--verbose" +else + TO_NULL="/dev/null" + DAEMON_VERBOSITY="--quiet" +fi + +##################################################################### +## wpa_cli wrapper +# Path to common ctrl_interface socket and iface supplied. +# NB: WPA_CTRL_DIR cannot be used for interactive commands, it is +# set only in the environment that wpa_cli provides when processing +# action events. +# +wpa_cli () { + "$WPA_CLI_BIN" -p "$WPA_CTRL_DIR" -i "$WPA_IFACE" "$@" + + return "$?" +} + +##################################################################### +## verbose and stderr message wrapper +# Ensures a standard and easily identifiable message is printed by +# scripts using this function library. +# +# log Log a message to syslog when called non-interactively +# by wpa_action +# +# verbose To stdout when IF_WPA_VERBOSITY or VERBOSITY is true +# +# action Same as verbose but without newline +# Useful for allowing wpa_cli commands to echo result +# value of 'OK' or 'FAILED' +# +# stderr Echo warning or error messages to stderr +# +# NB: when called by wpa_action, there is no redirection (verbose) +# +wpa_msg () { + if [ "$1" = "log" ]; then + shift + case "$WPA_ACTION" in + "CONNECTED"|"DISCONNECTED") + [ -x /usr/bin/logger ] || return + if [ "$#" -gt 0 ]; then + logger -t "wpa_action" "$@" + else + logger -t "wpa_action" + fi + ;; + *) + [ "$#" -gt 0 ] && echo "wpa_action: $@" + ;; + esac + return + fi + + case "$1" in + "verbose") + shift + echo "$WPA_SUP_PNAME: $@" >$TO_NULL + ;; + "action") + shift + echo -n "$WPA_SUP_PNAME: $@ -- " >$TO_NULL + ;; + "stderr") + shift + echo "$WPA_SUP_PNAME: $@" >/dev/stderr + ;; + *) + ;; + esac +} + +##################################################################### +## validate daemon pid files +# Test daemon process ID files via start-stop-daemon with a signal 0 +# given the exec binary and pidfile location. +# +# $1 daemon +# $2 pidfile +# +# Returns true when pidfile exists, the process ID exists _and_ was +# created by the exec binary. +# +# If the test fails, but the pidfile exists, it is stale +# +test_daemon_pidfile () { + local DAEMON + local PIDFILE + + if [ -n "$1" ]; then + DAEMON="$1" + fi + + if [ -f "$2" ]; then + PIDFILE="$2" + fi + + if [ -n "$DAEMON" ] && [ -f "$PIDFILE" ]; then + if start-stop-daemon --stop --quiet --signal 0 \ + --exec "$DAEMON" --pidfile "$PIDFILE"; then + return 0 + else + rm -f "$PIDFILE" + return 1 + fi + else + return 1 + fi +} + +# validate wpa_supplicant pidfile +test_wpa_supplicant () { + test_daemon_pidfile "$WPA_SUP_BIN" "$WPA_SUP_PIDFILE" +} + +# validate wpa_cli pidfile +test_wpa_cli () { + test_daemon_pidfile "$WPA_CLI_BIN" "$WPA_CLI_PIDFILE" +} + +##################################################################### +## daemonize wpa_supplicant +# Start wpa_supplicant via start-stop-dameon with all required +# options. Will start if environment variable WPA_SUP_CONF is present +# +# Default options: +# -B dameonize/background process +# -D driver backend ('wext' if none given) +# -P process ID file +# -C path to ctrl_interface socket directory +# -s log to syslog +# +# Conditional options: +# -c configuration file +# -W wait for wpa_cli to attach to ctrl_interface socket +# -b bridge interface name +# -f path to log file +# +init_wpa_supplicant () { + [ -n "$WPA_SUP_CONF" ] || return 0 + + local WPA_SUP_OPTIONS + WPA_SUP_OPTIONS="-s -B -P $WPA_SUP_PIDFILE -i $WPA_IFACE" + + if [ -n "$WPA_ACTION_SCRIPT" ]; then + if [ -x "$WPA_ACTION_SCRIPT" ]; then + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -W" + wpa_msg verbose "wait for wpa_cli to attach" + else + wpa_msg stderr "action script \"$WPA_ACTION_SCRIPT\" not executable" + return 1 + fi + fi + + if [ -n "$IF_WPA_BRIDGE" ]; then + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -b $IF_WPA_BRIDGE" + wpa_msg verbose "wpa-bridge $IF_WPA_BRIDGE" + fi + + if [ -n "$IF_WPA_DRIVER" ]; then + wpa_msg verbose "wpa-driver $IF_WPA_DRIVER" + case "$IF_WPA_DRIVER" in + hostap|ipw|madwifi|ndiswrapper) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -D nl80211,wext" + wpa_msg stderr "\"$IF_WPA_DRIVER\" wpa-driver is unsupported" + wpa_msg stderr "using \"nl80211,wext\" wpa-driver instead ..." + ;; + *) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -D $IF_WPA_DRIVER" + ;; + esac + else + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -D nl80211,wext" + wpa_msg verbose "wpa-driver nl80211,wext (default)" + fi + + if [ -n "$IF_WPA_DEBUG_LEVEL" ]; then + case "$IF_WPA_DEBUG_LEVEL" in + 3) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -t -ddd" + ;; + 2) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -t -dd" + ;; + 1) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -t -d" + ;; + 0) + # wpa_supplicant default verbosity + ;; + -1) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -q" + ;; + -2) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -qq" + ;; + esac + wpa_msg verbose "using debug level: $IF_WPA_DEBUG_LEVEL" + fi + + if [ -n "$IF_WPA_LOGFILE" ]; then + # custom log file + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -f $IF_WPA_LOGFILE" + WPA_SUP_LOGFILE="$IF_WPA_LOGFILE" + wpa_msg verbose "logging to $IF_WPA_LOGFILE" + fi + + wpa_msg verbose "$WPA_SUP_BIN $WPA_SUP_OPTIONS $WPA_SUP_CONF" + + start-stop-daemon --start --oknodo $DAEMON_VERBOSITY \ + --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --pidfile $WPA_SUP_PIDFILE \ + -- $WPA_SUP_OPTIONS $WPA_SUP_CONF + + if [ "$?" -ne 0 ]; then + wpa_msg stderr "$WPA_SUP_BIN daemon failed to start" + return 1 + fi + + if [ -n "$WPA_SUP_OMIT_PIDFILE" ]; then + local WPA_PIDFILE_WAIT + local MAX_WPA_PIDFILE_WAIT + WPA_PIDFILE_WAIT="0" + MAX_WPA_PIDFILE_WAIT="5" + until [ -s "$WPA_SUP_PIDFILE" ]; do + if [ "$WPA_PIDFILE_WAIT" -ge "$MAX_WPA_PIDFILE_WAIT" ]; then + wpa_msg stderr "timed out waiting for creation of $WPA_SUP_PIDFILE" + return 1 + else + wpa_msg verbose "waiting for \"$WPA_SUP_PIDFILE\": " \ + "$WPA_PIDFILE_WAIT (max. $MAX_WPA_PIDFILE_WAIT)" + fi + + WPA_PIDFILE_WAIT=$(($WPA_PIDFILE_WAIT + 1)) + sleep 1 + done + wpa_msg verbose "creating sendsigs omission pidfile: $WPA_SUP_OMIT_PIDFILE" + cat "$WPA_SUP_PIDFILE" > "$WPA_SUP_OMIT_PIDFILE" + else + wpa_msg verbose "sendsigs omission pidfile not created" + fi + + local WPA_SOCKET_WAIT + local MAX_WPA_SOCKET_WAIT + WPA_SOCKET_WAIT="0" + MAX_WPA_SOCKET_WAIT="5" + until [ -S "$WPA_CTRL_DIR/$WPA_IFACE" ]; do + if [ "$WPA_SOCKET_WAIT" -ge "$MAX_WPA_SOCKET_WAIT" ]; then + wpa_msg stderr "ctrl_interface socket not found at $WPA_CTRL_DIR/$WPA_IFACE" + return 1 + else + wpa_msg verbose "waiting for \"$WPA_CTRL_DIR/$WPA_IFACE\": " \ + "$WPA_SOCKET_WAIT (max. $MAX_WPA_SOCKET_WAIT)" + fi + + WPA_SOCKET_WAIT=$(($WPA_SOCKET_WAIT + 1)) + sleep 1 + done + + wpa_msg verbose "ctrl_interface socket located at $WPA_CTRL_DIR/$WPA_IFACE" +} + +##################################################################### +## stop wpa_supplicant process +# Kill wpa_supplicant via start-stop-daemon, given the location of +# the pidfile or ctrl_interface socket path and interface name +# +kill_wpa_supplicant () { + test_wpa_supplicant || return 0 + + wpa_msg verbose "terminating $WPA_SUP_PNAME daemon via pidfile $WPA_SUP_PIDFILE" + + start-stop-daemon --stop --oknodo $DAEMON_VERBOSITY \ + --exec $WPA_SUP_BIN --pidfile $WPA_SUP_PIDFILE + + if [ -f "$WPA_SUP_PIDFILE" ]; then + rm -f "$WPA_SUP_PIDFILE" + fi + + if [ -f "$WPA_SUP_OMIT_PIDFILE" ]; then + wpa_msg verbose "removing $WPA_SUP_OMIT_PIDFILE" + rm -f "$WPA_SUP_OMIT_PIDFILE" + fi +} + +##################################################################### +## reload wpa_supplicant process +# Sending a HUP signal causes wpa_supplicant to reparse its +# configuration file +# +reload_wpa_supplicant () { + if test_wpa_supplicant; then + wpa_msg verbose "reloading wpa_supplicant configuration file via HUP signal" + start-stop-daemon --stop --signal HUP \ + --name "$WPA_SUP_PNAME" --pidfile "$WPA_SUP_PIDFILE" + else + wpa_msg verbose "cannot $WPA_ACTION, $WPA_SUP_PIDFILE does not exist" + fi +} + +##################################################################### +## daemonize wpa_cli and action script +# If environment variable WPA_ACTION_SCRIPT is present, wpa_cli will +# be spawned via start-stop-daemon +# +# Required options: +# -a action script => wpa_action +# -P process ID file +# -B background process +# +init_wpa_cli () { + [ -n "$WPA_ACTION_SCRIPT" ] || return 0 + + local WPA_CLI_OPTIONS + WPA_CLI_OPTIONS="-B -P $WPA_CLI_PIDFILE -i $WPA_IFACE" + + wpa_msg verbose "$WPA_CLI_BIN $WPA_CLI_OPTIONS -p $WPA_CTRL_DIR -a $WPA_ACTION_SCRIPT" + + start-stop-daemon --start --oknodo $DAEMON_VERBOSITY \ + --name $WPA_CLI_PNAME --startas $WPA_CLI_BIN --pidfile $WPA_CLI_PIDFILE \ + -- $WPA_CLI_OPTIONS -p $WPA_CTRL_DIR -a $WPA_ACTION_SCRIPT + + if [ "$?" -ne 0 ]; then + wpa_msg stderr "$WPA_CLI_BIN daemon failed to start" + return 1 + fi +} + +##################################################################### +## stop wpa_cli process +# Kill wpa_cli via start-stop-daemon, given the location of the +# pidfile +# +kill_wpa_cli () { + test_wpa_cli || return 0 + + wpa_msg verbose "terminating $WPA_CLI_PNAME daemon via pidfile $WPA_CLI_PIDFILE" + + start-stop-daemon --stop --oknodo $DAEMON_VERBOSITY \ + --exec $WPA_CLI_BIN --pidfile $WPA_CLI_PIDFILE + + if [ -f "$WPA_CLI_PIDFILE" ]; then + rm -f "$WPA_CLI_PIDFILE" + fi + + if [ -f "$WPA_CLI_TIMESTAMP" ]; then + rm -f "$WPA_CLI_TIMESTAMP" + fi + + if [ -L "$WPA_CLI_IFUPDOWN" ]; then + rm -f "$WPA_CLI_IFUPDOWN" + fi +} + +##################################################################### +## higher level wpa_cli wrapper for variable and set_network commands +# wpa_cli_do [set_network variable] +# +# $1 envorinment variable +# $2 data type of variable {raw|ascii} +# $3 wpa_cli variable, if $3 is set_network, shift and take +# set_network subvariable +# $4 wpa-* string as it would appear in interfaces file, enhances +# verbose messages +# +wpa_cli_do () { + if [ -z "$1" ]; then + return 0 + fi + + local WPACLISET_VALUE + local WPACLISET_VARIABLE + local WPACLISET_DESC + + case "$2" in + ascii) + # Double quote + WPACLISET_VALUE="\"$1\"" + ;; + raw|*) + # Provide raw value + WPACLISET_VALUE="$1" + ;; + esac + + case "$3" in + set_network) + if [ -z "$WPA_ID" ]; then + return 1 + fi + shift + WPACLISET_VARIABLE="set_network $WPA_ID $3" + ;; + *) + WPACLISET_VARIABLE="$3" + ;; + esac + + case "$4" in + *-psk|*-passphrase|*-passwd*|*-wep-key*) + WPACLISET_DESC="$4 *****" + ;; + *) + WPACLISET_DESC="$4 $WPACLISET_VALUE" + ;; + esac + + wpa_msg action "$WPACLISET_DESC" + + wpa_cli $WPACLISET_VARIABLE "$WPACLISET_VALUE" >$TO_NULL + + if [ "$?" -ne 0 ]; then + wpa_msg stderr "$WPACLISET_DESC failed!" + fi +} + +##################################################################### +## check value data type in plaintext or hex +# returns 0 if input consists of hexadecimal digits only, 1 otherwise +# +ishex () { + if [ -z "$1" ]; then + return 0 + fi + + case "$1" in + *[!0-9a-fA-F]*) + # plaintext + return 1 + ;; + *) + # hexadecimal + return 0 + ;; + esac +} + +##################################################################### +## sanity check and set psk|passphrase +# Warn about strange psk|passphrase values +# +# $1 psk or passphrase value +# +# If psk is surrounded by quotes strip them. +# +# If psk contains all hexadecimal characters and string length is 64: +# is 256bit hexadecimal +# else: +# is plaintext +# +# plaintext passphrases must be 8 - 63 characters in length +# 256-bit hexadecimal key must be 64 characters in length +# +wpa_key_check_and_set () { + if [ "$#" -ne 3 ]; then + return 0 + fi + + local KEY + local KEY_LEN + local KEY_TYPE + local ENC_TYPE + + case "$1" in + '"'*'"') + # Strip surrounding quotation marks + KEY=$(echo -n "$1" | sed 's/^"//;s/"$//') + ;; + *) + KEY="$1" + ;; + esac + + KEY_LEN="${#KEY}" + + case "$2" in + wep_key*) + ENC_TYPE="WEP" + ;; + psk) + ENC_TYPE="WPA" + ;; + *) + return 0 + ;; + esac + + if [ "$ENC_TYPE" = "WEP" ]; then + if ishex "$KEY"; then + case "$KEY_LEN" in + 10|26|32|58) + # 64/128/152/256-bit WEP + KEY_TYPE="raw" + ;; + *) + KEY_TYPE="ascii" + ;; + esac + else + KEY_TYPE="ascii" + fi + + if [ "$KEY_TYPE" = "ascii" ]; then + if [ "$KEY_LEN" -lt "5" ]; then + wpa_msg stderr "WARNING: plaintext or ascii WEP key has $KEY_LEN characters," + wpa_msg stderr "it must have at least 5 to be valid." + fi + fi + elif [ "$ENC_TYPE" = "WPA" ]; then + if ishex "$KEY"; then + case "$KEY_LEN" in + 64) + # 256-bit WPA + KEY_TYPE="raw" + ;; + *) + KEY_TYPE="ascii" + ;; + esac + else + KEY_TYPE="ascii" + fi + + if [ "$KEY_TYPE" = "ascii" ]; then + if [ "$KEY_LEN" -lt "8" ] || [ "$KEY_LEN" -gt "63" ]; then + wpa_msg stderr "WARNING: plaintext or ascii WPA key has $KEY_LEN characters," + wpa_msg stderr "it must have between 8 and 63 to be valid." + wpa_msg stderr "If the WPA key is a 256-bit hexadecimal key, it must have" + wpa_msg stderr "exactly 64 characters." + fi + fi + fi + + wpa_cli_do "$KEY" "$KEY_TYPE" set_network "$2" "$3" +} + +##################################################################### +## formulate a usable configuration from interfaces(5) wpa- lines +# A series of wpa_cli commands corresponding to environment variables +# created as a result of wpa- lines in an interfaces stanza. +# +# NB: no-act when roaming daemon is used (to avoid prematurely +# attaching to ctrl_interface socket) +# +conf_wpa_supplicant () { + if [ -n "$WPA_ACTION_SCRIPT" ]; then + return 0 + fi + + if [ "$IF_WPA_DRIVER" = "wired" ]; then + IF_WPA_AP_SCAN="0" + wpa_msg verbose "forcing ap_scan=0 (required for wired IEEE8021X auth)" + fi + + if [ -n "$IF_WPA_ESSID" ]; then + # #403316, be similar to wireless tools + IF_WPA_SSID="$IF_WPA_ESSID" + fi + + wpa_cli_do "$IF_WPA_AP_SCAN" raw \ + ap_scan wpa-ap-scan + + wpa_cli_do "$IF_WPA_PREAUTHENTICATE" raw \ + preauthenticate wpa-preauthenticate + + if [ -n "$IF_WPA_SSID" ] || [ "$IF_WPA_DRIVER" = "wired" ] || \ + [ -n "$IF_WPA_KEY_MGMT" ]; then + + case "$IF_WPA_SSID" in + '"'*'"') + IF_WPA_SSID=$(echo -n "$IF_WPA_SSID" | sed 's/^"//;s/"$//') + ;; + *) + ;; + esac + + WPA_ID=$(wpa_cli add_network) + + wpa_msg verbose "configuring network block -- $WPA_ID" + + wpa_cli_do "$IF_WPA_SSID" ascii \ + set_network ssid wpa-ssid + + wpa_cli_do "$IF_WPA_PRIORITY" raw \ + set_network priority wpa-priority + + wpa_cli_do "$IF_WPA_BSSID" raw \ + set_network bssid wpa-bssid + + if [ -s "$IF_WPA_PSK_FILE" ]; then + IF_WPA_PSK=$(cat "$IF_WPA_PSK_FILE") + fi + + # remain compat with wpa-passphrase-file + if [ -s "$IF_WPA_PASSPHRASE_FILE" ]; then + IF_WPA_PSK=$(cat "$IF_WPA_PASSPHRASE_FILE") + fi + + # remain compat with wpa-passphrase + if [ -n "$IF_WPA_PASSPHRASE" ]; then + IF_WPA_PSK="$IF_WPA_PASSPHRASE" + fi + + if [ -n "$IF_WPA_PSK" ]; then + wpa_key_check_and_set "$IF_WPA_PSK" \ + psk wpa-psk + fi + + wpa_cli_do "$IF_WPA_PAIRWISE" raw \ + set_network pairwise wpa-pairwise + + wpa_cli_do "$IF_WPA_GROUP" raw \ + set_network group wpa-group + + wpa_cli_do "$IF_WPA_MODE" raw \ + set_network mode wpa-mode + + wpa_cli_do "$IF_WPA_FREQUENCY" raw \ + set_network frequency wpa-frequency + + wpa_cli_do "$IF_WPA_SCAN_FREQ" raw \ + set_network scan_freq wpa-scan-freq + + wpa_cli_do "$IF_WPA_FREQ_LIST" raw \ + set_network freq_list wpa-freq-list + + wpa_cli_do "$IF_WPA_KEY_MGMT" raw \ + set_network key_mgmt wpa-key-mgmt + + wpa_cli_do "$IF_WPA_PROTO" raw \ + set_network proto wpa-proto + + wpa_cli_do "$IF_WPA_AUTH_ALG" raw \ + set_network auth_alg wpa-auth-alg + + wpa_cli_do "$IF_WPA_SCAN_SSID" raw \ + set_network scan_ssid wpa-scan-ssid + + wpa_cli_do "$IF_WPA_IDENTITY" ascii \ + set_network identity wpa-identity + + wpa_cli_do "$IF_WPA_ANONYMOUS_IDENTITY" ascii \ + set_network anonymous_identity wpa-anonymous-identity + + wpa_cli_do "$IF_WPA_EAP" raw \ + set_network eap wpa-eap + + wpa_cli_do "$IF_WPA_EAPPSK" raw \ + set_network eappsk wpa-eappsk + + wpa_cli_do "$IF_WPA_NAI" ascii \ + set_network nai wpa-nai + + wpa_cli_do "$IF_WPA_PASSWORD" ascii \ + set_network password wpa-password + + wpa_cli_do "$IF_WPA_CA_CERT" ascii \ + set_network ca_cert wpa-ca-cert + + wpa_cli_do "$IF_WPA_CA_PATH" ascii \ + set_network ca_path wpa-ca-path + + wpa_cli_do "$IF_WPA_CLIENT_CERT" ascii \ + set_network client_cert wpa-client-cert + + wpa_cli_do "$IF_WPA_PRIVATE_KEY" ascii \ + set_network private_key wpa-private-key + + wpa_cli_do "$IF_WPA_PRIVATE_KEY_PASSWD" ascii \ + set_network private_key_passwd wpa-private-key-passwd + + wpa_cli_do "$IF_WPA_DH_FILE" ascii \ + set_network dh_file wpa-dh-file + + wpa_cli_do "$IF_WPA_SUBJECT_MATCH" ascii \ + set_network subject_match wpa-subject-match + + wpa_cli_do "$IF_WPA_ALTSUBJECT_MATCH" ascii \ + set_network altsubject_match wpa-altsubject-match + + wpa_cli_do "$IF_WPA_CA_CERT2" ascii \ + set_network ca_cert2 wpa-ca-cert2 + + wpa_cli_do "$IF_WPA_CA_PATH2" ascii \ + set_network ca_path2 wpa-ca-path2 + + wpa_cli_do "$IF_WPA_CLIENT_CERT2" ascii \ + set_network client_cert2 wpa-client-cert2 + + wpa_cli_do "$IF_WPA_PRIVATE_KEY2" ascii \ + set_network private_key2 wpa-private-key2 + + wpa_cli_do "$IF_WPA_PRIVATE_KEY_PASSWD2" ascii \ + set_network private_key_passwd2 wpa-private-key-passwd2 + + wpa_cli_do "$IF_WPA_DH_FILE2" ascii \ + set_network dh_file2 wpa-dh-file2 + + wpa_cli_do "$IF_WPA_SUBJECT_MATCH2" ascii \ + set_network subject_match2 wpa-subject-match2 + + wpa_cli_do "$IF_WPA_ALTSUBJECT_MATCH2" ascii \ + set_network altsubject_match2 wpa-altsubject-match2 + + wpa_cli_do "$IF_WPA_EAP_METHODS" raw \ + set_network eap_methods wpa-eap-methods + + wpa_cli_do "$IF_WPA_PHASE1" ascii \ + set_network phase1 wpa-phase1 + + wpa_cli_do "$IF_WPA_PHASE2" ascii \ + set_network phase2 wpa-phase2 + + wpa_cli_do "$IF_WPA_PCSC" raw \ + set_network pcsc wpa-pcsc + + wpa_cli_do "$IF_WPA_PIN" ascii \ + set_network pin wpa-pin + + wpa_cli_do "$IF_WPA_ENGINE" raw \ + set_network engine wpa-engine + + wpa_cli_do "$IF_WPA_ENGINE_ID" ascii \ + set_network engine_id wpa-engine-id + + wpa_cli_do "$IF_WPA_KEY_ID" ascii \ + set_network key_id wpa-key-id + + wpa_cli_do "$IF_WPA_EAPOL_FLAGS" raw \ + set_network eapol_flags wpa-eapol-flags + + if [ -n "$IF_WPA_WEP_KEY0" ]; then + wpa_key_check_and_set "$IF_WPA_WEP_KEY0" \ + wep_key0 wpa-wep-key0 + fi + + if [ -n "$IF_WPA_WEP_KEY1" ]; then + wpa_key_check_and_set "$IF_WPA_WEP_KEY1" \ + wep_key1 wpa-wep-key1 + fi + + if [ -n "$IF_WPA_WEP_KEY2" ]; then + wpa_key_check_and_set "$IF_WPA_WEP_KEY2" \ + wep_key2 wpa-wep-key2 + fi + + if [ -n "$IF_WPA_WEP_KEY3" ]; then + wpa_key_check_and_set "$IF_WPA_WEP_KEY3" \ + wep_key3 wpa-wep-key3 + fi + + wpa_cli_do "$IF_WPA_WEP_TX_KEYIDX" raw \ + set_network wep_tx_keyidx wpa-wep-tx-keyidx + + wpa_cli_do "$IF_WPA_PROACTIVE_KEY_CACHING" raw \ + set_network proactive_key_caching wpa-proactive-key-caching + + wpa_cli_do "$IF_WPA_PAC_FILE" ascii \ + set_network pac_file wpa-pac-file + + wpa_cli_do "$IF_WPA_PEERKEY" raw \ + set_network peerkey wpa-peerkey + + wpa_cli_do "$IF_FRAGMENT_SIZE" raw \ + set_network fragment_size wpa-fragment-size + + wpa_cli_do "$IF_WPA_ID_STR" ascii \ + set_network id_str wpa-id-str + + wpa_cli_do "$WPA_ID" raw \ + enable_network "enabling network block" + fi +} + +##################################################################### +## Log wpa_cli environment variables +wpa_log_env () { + wpa_msg log "WPA_IFACE=$WPA_IFACE WPA_ACTION=$WPA_ACTION" + wpa_msg log "WPA_ID=$WPA_ID WPA_ID_STR=$WPA_ID_STR WPA_CTRL_DIR=$WPA_CTRL_DIR" +} + +##################################################################### +## hysteresis checking +# Networking tools such as dhcp clients used with ifupdown can +# synthesize artificial ACTION events, particuarly just after a +# DISCONNECTED/CONNECTED events are experienced in quick succession. +# This can lead to infinite event loops, and in extreme cases has the +# potential to cause system instability. +# +wpa_hysteresis_event () { + echo "$(date +%s)" > "$WPA_CLI_TIMESTAMP" 2>/dev/null +} + +wpa_hysteresis_check () { + if [ -f "$WPA_CLI_TIMESTAMP" ]; then + local TIME + local TIMESTAMP + local TIMEWAIT + TIME=$(date +%s) + # current time minus 4 second event buffer + TIMEWAIT=$(($TIME-4)) + # get time of last event + TIMESTAMP=$(cat $WPA_CLI_TIMESTAMP) + # compare values, allowing new action to be processed + # only if last action was more than 4 seconds ago + if [ "$TIMEWAIT" -le "$TIMESTAMP" ]; then + wpa_msg log "$WPA_ACTION event blocked by hysteresis check" + return 1 + fi + fi + + return 0 +} + +##################################################################### +## ifupdown locking functions +# A collection of rudimentary locking functions to lock ifup/ifdown +# actions. +# + +ifupdown_lock () { + ln -s lock "$WPA_CLI_IFUPDOWN" +} + +ifupdown_locked () { + [ -L "$WPA_CLI_IFUPDOWN" ] && return 0 + + return 1 +} + +ifupdown_unlock () { + rm -f "$WPA_CLI_IFUPDOWN" +} + +##################################################################### +## apply mapping logic and ifup logical interface +# Apply mapping logic via id_str or external mapping script, check +# state of IFACE with respect to ifupdown and ifup logical interaface +# +ifup () { + local INTERFACES_FILE + local IFSTATE_FILE + local IFUP_RETVAL + local WPA_LOGICAL_IFACE + + if [ -e /etc/network/interfaces ]; then + INTERFACES_FILE="/etc/network/interfaces" + else + wpa_msg log "/etc/network/interfaces does not exist, $WPA_IFACE will not be configured" + return 1 + fi + + if [ -e /etc/network/run/ifstate ]; then + # debian's ifupdown + IFSTATE_FILE="/etc/network/run/ifstate" + elif [ -e /var/run/network/ifstate ]; then + # ubuntu's + IFSTATE_FILE="/var/run/network/ifstate" + else + unset IFSTATE_FILE + fi + + if [ -z "$IF_WPA_MAPPING_SCRIPT_PRIORITY" ] && [ -n "$WPA_ID_STR" ]; then + WPA_LOGICAL_IFACE="$WPA_ID_STR" + fi + + if [ -z "$WPA_LOGICAL_IFACE" ] && [ -n "$IF_WPA_MAPPING_SCRIPT" ]; then + local WPA_MAP_STDIN + + WPA_MAP_STDIN=$(set | sed -n 's/^\(IF_WPA_MAP[0-9]*\)=.*/echo \$\1/p') + + if [ -n "$WPA_MAP_STDIN" ]; then + WPA_LOGICAL_IFACE=$(eval "$WPA_MAP_STDIN" | "$IF_WPA_MAPPING_SCRIPT" "$WPA_IFACE") + else + WPA_LOGICAL_IFACE=$("$IF_WPA_MAPPING_SCRIPT" "$WPA_IFACE") + fi + + if [ -n "$WPA_LOGICAL_IFACE" ]; then + wpa_msg log "mapping script result: $WPA_LOGICAL_IFACE" + else + wpa_msg log "mapping script failed." + fi + fi + + if [ -z "$WPA_LOGICAL_IFACE" ]; then + if [ -n "$IF_WPA_ROAM_DEFAULT_IFACE" ]; then + WPA_LOGICAL_IFACE="$IF_WPA_ROAM_DEFAULT_IFACE" + else + WPA_LOGICAL_IFACE="default" + fi + fi + + if [ -n "$WPA_LOGICAL_IFACE" ]; then + if egrep -q "^iface[[:space:]]+${WPA_LOGICAL_IFACE}[[:space:]]+inet" "$INTERFACES_FILE"; then + : # logical network is defined + else + wpa_msg log "network settings not defined for $WPA_LOGICAL_IFACE in $INTERFACES_FILE" + WPA_LOGICAL_IFACE="default" + fi + + wpa_msg log "ifup $WPA_IFACE=$WPA_LOGICAL_IFACE" + + ifupdown_lock + + if [ -n "$IFSTATE_FILE" ] && grep -q "^$WPA_IFACE=$WPA_IFACE" "$IFSTATE_FILE"; then + # Force settings over the unconfigured "master" IFACE + /sbin/ifup -v --force "$WPA_IFACE=$WPA_LOGICAL_IFACE" + else + /sbin/ifup -v "$WPA_IFACE=$WPA_LOGICAL_IFACE" + fi + IFUP_RETVAL="$?" + + ifupdown_unlock + fi + + wpa_msg log "creating sendsigs omission pidfile: $WPA_SUP_OMIT_PIDFILE" + cat "$WPA_SUP_PIDFILE" > "$WPA_SUP_OMIT_PIDFILE" + + return "$IFUP_RETVAL" +} + +##################################################################### +## ifdown IFACE +# Check IFACE state and ifdown as requested. +# +ifdown () { + wpa_msg log "ifdown $WPA_IFACE" + + ifupdown_lock + + /sbin/ifdown -v "$WPA_IFACE" + + ifupdown_unlock + + wpa_msg log "removing sendsigs omission pidfile: $WPA_SUP_OMIT_PIDFILE" + rm -f "$WPA_SUP_OMIT_PIDFILE" +} + +##################################################################### +## keep IFACE scanning +# After ifdown, the IFACE may be left "down", and inhibits +# wpa_supplicant's ability to continue roaming. +# +# NB: use iproute if present, flushing the IFACE first +# +if_post_down_up () { + if [ -x /bin/ip ]; then + ip addr flush dev "$WPA_IFACE" 2>/dev/null + ip link set "$WPA_IFACE" up + else + ifconfig "$WPA_IFACE" up + fi +} diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/ifupdown.sh b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/ifupdown.sh new file mode 100644 index 0000000..9dab925 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/ifupdown.sh @@ -0,0 +1,172 @@ +#!/bin/sh + +##################################################################### +## Purpose +# This file is executed by ifupdown in pre-up, post-up, pre-down and +# post-down phases of network interface configuration. It allows +# ifup(8), and ifdown(8) to manage wpa_supplicant(8) and wpa_cli(8) +# processes running in daemon mode. +# +# /etc/wpa_supplicant/functions.sh is sourced by this file. +# +# This file is provided by the wpasupplicant package. + +##################################################################### +# Copyright (C) 2006 - 2009 Debian/Ubuntu wpasupplicant Maintainers +# +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# On Debian GNU/Linux systems, the text of the GPL license, +# version 2, can be found in /usr/share/common-licenses/GPL-2. + +if [ -n "$IF_WPA_MAINT_DEBUG" ]; then + set -x +fi + +# quit if we're called for the loopback +if [ "$IFACE" = lo ]; then + exit 0 +fi + +# allow wpa_supplicant interface to be specified via wpa-iface +# useful for starting wpa_supplicant on one interface of a bridge +if [ -n "$IF_WPA_IFACE" ]; then + WPA_IFACE="$IF_WPA_IFACE" +else + WPA_IFACE="$IFACE" +fi + +# source functions +if [ -f /etc/wpa_supplicant/functions.sh ]; then + . /etc/wpa_supplicant/functions.sh +else + exit 0 +fi + +# quit if executables are not installed +if [ ! -x "$WPA_SUP_BIN" ] || [ ! -x "$WPA_CLI_BIN" ]; then + exit 0 +fi + +do_start () { + if test_wpa_cli; then + # if wpa_action is active for this IFACE, do nothing + ifupdown_locked && exit 0 + + # if the administrator is calling ifup, say something useful + if [ "$PHASE" = "pre-up" ]; then + wpa_msg stderr "wpa_action is managing ifup/ifdown state of $WPA_IFACE" + wpa_msg stderr "execute \`ifdown --force $WPA_IFACE' to stop wpa_action" + fi + exit 1 + elif ! set | grep -q "^IF_WPA"; then + # no wpa- option defined for IFACE, do nothing + exit 0 + fi + + # ensure stale ifupdown_lock marker is purged + ifupdown_unlock + + # preliminary sanity checks for roaming daemon + if [ -n "$IF_WPA_ROAM" ]; then + if [ "$METHOD" != "manual" ]; then + wpa_msg stderr "wpa-roam can only be used with the \"manual\" inet METHOD" + exit 1 + fi + if [ -n "$IF_WPA_MAPPING_SCRIPT" ]; then + if ! type "$IF_WPA_MAPPING_SCRIPT" >/dev/null; then + wpa_msg stderr "wpa-mapping-script \"$IF_WPA_MAPPING_SCRIPT\" is not valid" + exit 1 + fi + fi + if [ -n "$IF_WPA_MAPPING_SCRIPT_PRIORITY" ] && [ -z "$IF_WPA_MAPPING_SCRIPT" ]; then + wpa_msg stderr "\"wpa-mapping-script-priority 1\" is invalid without a wpa-mapping-script" + exit 1 + fi + IF_WPA_CONF="$IF_WPA_ROAM" + WPA_ACTION_SCRIPT="/usr/sbin/wpa_action" + fi + + # master function; determines if ifupdown.sh should do something or not + if [ -n "$IF_WPA_CONF" ] && [ "$IF_WPA_CONF" != "managed" ]; then + if [ ! -s "$IF_WPA_CONF" ]; then + wpa_msg stderr "cannot read contents of $IF_WPA_CONF" + exit 1 + fi + WPA_SUP_CONF_CTRL_DIR=$(sed -n -e 's/[[:space:]]*#.*//g' -e 's/[[:space:]]\+.*$//g' \ + -e 's/^ctrl_interface=\(DIR=\)\?\(.*\)/\2/p' "$IF_WPA_CONF") + if [ -n "$WPA_SUP_CONF_CTRL_DIR" ]; then + WPA_CTRL_DIR="$WPA_SUP_CONF_CTRL_DIR" + WPA_SUP_CONF="-c $IF_WPA_CONF" + else + # specify the default ctrl_interface since none was defined in + # the given IF_WPA_CONF + WPA_SUP_CONF="-c $IF_WPA_CONF -C $WPA_CTRL_DIR" + fi + else + # specify the default ctrl_interface + WPA_SUP_CONF="-C $WPA_CTRL_DIR" + fi +} + +do_stop () { + if test_wpa_cli; then + # if wpa_action is active for this IFACE and calling ifdown, + # do nothing + ifupdown_locked && exit 0 + elif test_wpa_supplicant; then + # wpa_supplicant process exists for this IFACE, but wpa_cli + # process does not. Allow stop mode to kill this process. + : + else + exit 0 + fi +} + +case "$MODE" in + start) + do_start + case "$PHASE" in + pre-up) + kill_wpa_supplicant + init_wpa_supplicant || exit 1 + conf_wpa_supplicant || { kill_wpa_supplicant; exit 1; } + ;; + post-up) + init_wpa_cli || { kill_wpa_supplicant; exit 1; } + ;; + esac + ;; + + stop) + do_stop + case "$PHASE" in + pre-down) + kill_wpa_cli + ;; + post-down) + kill_wpa_supplicant + ;; + *) + wpa_msg stderr "unknown phase: \"$PHASE\"" + exit 1 + ;; + esac + ;; + + *) + wpa_msg stderr "unknown mode: \"$MODE\"" + exit 1 + ;; +esac + +exit 0 diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_action b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_action new file mode 100644 index 0000000..7ef57ac --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_action @@ -0,0 +1,81 @@ +#!/bin/sh + +# Copyright (C) 2006 - 2009 Debian/Ubuntu wpasupplicant Maintainers +# +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# On Debian GNU/Linux systems, the text of the GPL license, +# version 2, can be found in /usr/share/common-licenses/GPL-2. + +if [ -n "$IF_WPA_ROAM_MAINT_DEBUG" ]; then + set -x +fi + +if [ -z "$1" ] || [ -z "$2" ]; then + echo "Usage: $0 IFACE ACTION" + exit 1 +fi + +# network interface +WPA_IFACE="$1" +# [CONNECTED|DISCONNECTED|stop|reload|check] +WPA_ACTION="$2" + +if [ -f /etc/wpa_supplicant/functions.sh ]; then + . /etc/wpa_supplicant/functions.sh +else + exit 0 +fi + +case "$WPA_ACTION" in + "CONNECTED") + wpa_log_env + wpa_hysteresis_check || exit 1 + wpa_hysteresis_event + if ifup; then + wpa_cli status | wpa_msg log + else + wpa_cli status | wpa_msg log + wpa_cli reassociate + fi + ;; + + "DISCONNECTED") + wpa_log_env + wpa_hysteresis_check || exit 1 + ifdown + if_post_down_up + ;; + + "stop"|"down") + test_wpa_cli && kill_wpa_cli + ifdown + test_wpa_supplicant && kill_wpa_supplicant + ;; + + "restart"|"reload") + test_wpa_supplicant || exit 1 + reload_wpa_supplicant + ;; + + "check") + test_wpa_supplicant || exit 1 + test_wpa_cli || exit 1 + ;; + + *) + echo "Unknown action: \"$WPA_ACTION\"" + exit 1 + ;; +esac + +exit 0 diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_action.8 b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_action.8 new file mode 100644 index 0000000..e8f1b28 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_action.8 @@ -0,0 +1,148 @@ +.TH WPA_ACTION "8" "26 May 2006" "" "" +.SH NAME +wpa_action \- wpa_cli action script +.SH SYNOPSIS +\fBwpa_action\fR \fIIFACE ACTION\fR +.SH "DESCRIPTION" +\fBwpa_action\fR is a shell script designed to control the \fBifupdown\fR +framework according to \fIACTION\fR events received from \fBwpa_supplicant\fR. +\fBwpa_cli\fR receives \fICONNECTED\fR and \fIDISCONNECTED\fR events from +\fBwpa_supplicant\fR via the crtl_iface socket and gives the \fIACTION\fR event +to the \fBwpa_action\fR script as an argument, along with the \fIIFACE\fR to be +acted upon. +.PP +\fBwpa_action\fR also receives an environment variable from \fBwpa_cli\fR, +\fIWPA_ID_STR\fR, containing an alphanumeric identification string for the +\fICURRENT\fR network block. \fIWPA_ID_STR\fR is provided by the 'id_str' +network block option of \fBwpa_supplicant.conf\fR, and provides a means to map +the \fIACTION\fR to a \fILOGICAL\fR interface configured in the \fBinterfaces\fR +file. +.PP +If either the ifupdown \fBinterfaces\fR or \fIifstate\fR file cannot be found, +\fBwpa_action\fR will exit silently (status 0). \fBwpa_action\fR will search +the following locations for their existance: +.nf + /etc/network/run/ifstate + /var/run/network/ifstate + /etc/network/interfaces +.fi +.PP +.SH IFACE +Network interface to be acted upon, for example 'eth1' or 'wlan0'. +.SH ACTION +An \fIACTION\fR to be performed on the \fIIFACE\fR. +.TP +\fBCONNECTED\fR +\fBwpa_supplicant\fR has completed authentication. +\fBifup\fR \fIIFACE=WPA_ID_STR\fR is invoked and the action is logged to +syslog. Network settings for the \fILOGICAL\fR interface \fIWPA_ID_STR\fR +are applied. +.TP +\fBDISCONNECTED\fR +\fBwpa_supplicant\fR has detected disconnection. +\fBifdown\fR \fIIFACE=WPA_ID_STR\fR is invoked and the action is logged to +syslog. Network settings for the \fILOGICAL\fR interface \fIWPA_ID_STR\fR +are undone. +.TP +\fBstop\fR +The 'stop' \fIACTION\fR is a called manually by the user, to stop the +\fBwpa_cli\fR daemon, invoke \fBifdown\fR \fIIFACE\fR (if the \fIIFACE\fR is +present in the \fIifstate\fR file) and stop the \fBwpa_supplicant\fR daemon. +.TP +\fBreload\fR +The 'reload' \fIACTION\fR can be used to reload the \fBwpa_supplicant\fR +configuration file specified by \fIwpa-roam\fR . 'restart' is a synonym +for 'reload' and can be used equally. The action is logged to +\fI/var/log/wpa_action.log\fR. +.SH ENVIRONMENT +An alphanumeric identification string provided by the 'id_str' network block +option of \fBwpa_supplicant.conf\fR is exported to \fBwpa_action\fR as an +environment variable, \fIWPA_ID_STR\fR. When 'id_str' is not configured for the +\fICURRENT\fR network block, 'default' is substituted for the absent +\fIWPA_ID_STR\fR environment variable. +.PP +A unique network identifier, \fIWPA_ID\fR, is exported to \fBwpa_action\fR. It +is the number assigned to the \fICURRENT\fR \fBwpa_supplicant\fR network block +(network_id). +.SH USAGE +The only reasons for \fBwpa_action\fR to be explicitly executed by the user is +to stop \fBwpa_cli\fR from controlling \fBifupdown\fR or reload the +\fIwpa_supplicant.conf\fR file after editing. +.PP +.RS +\fBwpa_action\fR \fIeth1 stop\fR +.RE +.PP +Otherwise, \fBwpa_action\fR is given as an argument to a \fBwpa_cli\fR +daemon. +.PP +.RS +\fBwpa_cli\fR \fI-i eth1 -a /sbin/wpa_action -B\fR +.RE +.PP +This can be done by using the \fIwpa-roam\fR option in the \fBinterfaces\fR +file. \fIwpa-roam\fR takes one argument, a user provided +\fBwpa_supplicant.conf\fR file. +.PP +The inet \fIMETHOD\fR must be 'manual' for this interface, as it will +be configured according to \fBwpa_cli\fR action events. Also supply a 'default' +\fBinterfaces\fR stanza using the dhcp inet \fIMETHOD\fR so that networks +without an 'id_str' option can fallback to attempting to receive an ip via +dhcp. If one or more networks requires additional network configuration, +provide an unique 'id_str' for each network, and an \fBinterfaces\fR stanza +using the 'id_str' value as a \fILOGICAL\fR interface. The following interfaces +file is configured to use dhcp for any network without an 'id_str', a static ip +for the network with an 'id_str' of 'home_static' and dhcp plus an additional +post-up command for the network with an 'id_str' of 'uni'. +.PP +An example wpa_supplicant.conf configured to roam between 3 different networks: +.PP +.RS +.nf +network={ + ssid="foo" + id_str="uni" + key_mgmt=NONE +} + +network={ + ssid="bar" + id_str="home_static" + psk=123456789... +} + +network={ + ssid="" + key_mgmt=NONE +} +.fi +.RE +.PP +The corresponding \fBinterfaces\fR file would contain \fILOGICAL\fR interfaces, +that correlate to each unique 'id_str' provided by the configuration file: +.PP +.RS +.nf +iface eth1 inet manual + wpa-driver wext + wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf + +iface default inet dhcp + +iface uni inet dhcp + +iface home_static inet static + address 192.168.0.20 + netmask 255.255.255.0 + network 192.168.0.0 + broadcast 192.168.0.255 + gateway 192.168.0.1 +.fi +.RE +.PP +.SH SEE ALSO +\fBwpa_cli(8)\fR, \fBwpa_supplicant(8)\fR, \fBwpa_supplicant.conf(5)\fR, +\fBifup(8)\fR, \fBinterfaces(5)\fR +.SH AUTHOR +This manual page was written by Kel Modderman for +the Debian GNU system (but may be used by others). diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bbappend b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bbappend deleted file mode 100644 index 8ad898b..0000000 --- a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bbappend +++ /dev/null @@ -1,40 +0,0 @@ -DEPENDS += "openssl" -PR .= "-vuplus0" - -SRC_URI += " \ - file://action_wpa.sh \ - file://functions.sh \ - file://ifupdown.sh \ - file://wpa_action \ - file://wpa_action.8 \ -" - -do_configure_append() { - sed -e '/^CONFIG_TLS = gnutls/d' -i .config - echo "CONFIG_DEBUG_SYSLOG=y" >> .config -} -do_install_append() { - rm -rf ${D}${sysconfdir}/network/if-*.d - - install -d ${D}${sysconfdir}/wpa_supplicant - install -m 755 ${WORKDIR}/action_wpa.sh ${D}${sysconfdir}/wpa_supplicant - install -m 755 ${WORKDIR}/functions.sh ${D}${sysconfdir}/wpa_supplicant - install -m 755 ${WORKDIR}/ifupdown.sh ${D}${sysconfdir}/wpa_supplicant - - install -d ${D}${sbindir} - install -m 755 ${WORKDIR}/wpa_action ${D}${sbindir} - - install -d ${D}${mandir}/man8 - install -m 755 ${WORKDIR}/wpa_action.8 ${D}${mandir}/man8 - - install -d ${D}${sysconfdir}/network/if-down.d - install -d ${D}${sysconfdir}/network/if-post-down.d - install -d ${D}${sysconfdir}/network/if-pre-up.d - install -d ${D}${sysconfdir}/network/if-up.d - ln -s ../../wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-down.d/${PN} - ln -s ../../wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-post-down.d/${PN} - ln -s ../../wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-pre-up.d/${PN} - ln -s ../../wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-up.d/${PN} -} - -FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" diff --git a/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.%.bbappend b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.%.bbappend new file mode 100644 index 0000000..d6fd5b2 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.%.bbappend @@ -0,0 +1,40 @@ +DEPENDS += "openssl" +PR .= "-vuplus0" + +SRC_URI += " \ + file://action_wpa.sh \ + file://functions.sh \ + file://ifupdown.sh \ + file://wpa_action \ + file://wpa_action.8 \ +" + +do_configure_append() { + sed -e '/^CONFIG_TLS = gnutls/d' -i wpa_supplicant/.config + echo "CONFIG_DEBUG_SYSLOG=y" >> wpa_supplicant/.config +} +do_install_append() { + rm -rf ${D}${sysconfdir}/network/if-*.d + + install -d ${D}${sysconfdir}/wpa_supplicant + install -m 755 ${WORKDIR}/action_wpa.sh ${D}${sysconfdir}/wpa_supplicant + install -m 755 ${WORKDIR}/functions.sh ${D}${sysconfdir}/wpa_supplicant + install -m 755 ${WORKDIR}/ifupdown.sh ${D}${sysconfdir}/wpa_supplicant + + install -d ${D}${sbindir} + install -m 755 ${WORKDIR}/wpa_action ${D}${sbindir} + + install -d ${D}${mandir}/man8 + install -m 755 ${WORKDIR}/wpa_action.8 ${D}${mandir}/man8 + + install -d ${D}${sysconfdir}/network/if-down.d + install -d ${D}${sysconfdir}/network/if-post-down.d + install -d ${D}${sysconfdir}/network/if-pre-up.d + install -d ${D}${sysconfdir}/network/if-up.d + ln -s ../../wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-down.d/${PN} + ln -s ../../wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-post-down.d/${PN} + ln -s ../../wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-pre-up.d/${PN} + ln -s ../../wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-up.d/${PN} +} + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" diff --git a/meta-openvuplus/recipes-connectivity/wvdial/wvdial-1.60/wvdial-vuplus_001.patch b/meta-openvuplus/recipes-connectivity/wvdial/wvdial-1.60/wvdial-vuplus_001.patch deleted file mode 100644 index f897a5c..0000000 --- a/meta-openvuplus/recipes-connectivity/wvdial/wvdial-1.60/wvdial-vuplus_001.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/wvmodemscan.cc b/wvmodemscan.cc -index bf59924..ef5ab87 100644 ---- a/wvmodemscan.cc -+++ b/wvmodemscan.cc -@@ -485,6 +485,7 @@ const char *WvModemScan::is_isdn() const - - static int fileselect(const struct dirent *e) - { -+#if 0 - return !strncmp(e->d_name, "ttyS", 4) // serial - || !strncmp(e->d_name, "ttyLT", 5) // Lucent WinModem - || !strncmp(e->d_name, "ttyACM", 6) // USB acm Modems -@@ -493,6 +494,13 @@ static int fileselect(const struct dirent *e) - || !strncmp(e->d_name, "ttySL", 5); // SmartLink WinModem - - // (no internal ISDN support) || !strncmp(e->d_name, "ttyI", 4); -+#else -+ return !strncmp(e->d_name, "ttyLT", 5) // Lucent WinModem -+ || !strncmp(e->d_name, "ttyACM", 6) // USB acm Modems -+ || !strncmp(e->d_name, "ttyUSB", 6) // Modems on USB RS232 -+ || !strncmp(e->d_name, "ircomm", 6) // Handys over IrDA -+ || !strncmp(e->d_name, "ttySL", 5); // SmartLink WinModem -+#endif - } - - diff --git a/meta-openvuplus/recipes-connectivity/wvdial/wvdial-1.61/wvdial-vuplus_001.patch b/meta-openvuplus/recipes-connectivity/wvdial/wvdial-1.61/wvdial-vuplus_001.patch new file mode 100644 index 0000000..51e4ab7 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/wvdial/wvdial-1.61/wvdial-vuplus_001.patch @@ -0,0 +1,26 @@ +diff --git a/wvmodemscan.cc b/wvmodemscan.cc +index de1c34a..17687aa 100644 +--- a/wvmodemscan.cc ++++ b/wvmodemscan.cc +@@ -485,6 +485,7 @@ const char *WvModemScan::is_isdn() const + + static int fileselect(const struct dirent *e) + { ++#if 0 + return !strncmp(e->d_name, "ttyS", 4) // serial + || !strncmp(e->d_name, "ttyLT", 5) // Lucent WinModem + || !strncmp(e->d_name, "ttyACM", 6) // USB acm Modems +@@ -493,6 +494,13 @@ static int fileselect(const struct dirent *e) + || !strncmp(e->d_name, "ttySL", 5); // SmartLink WinModem + + // (no internal ISDN support) || !strncmp(e->d_name, "ttyI", 4); ++#else ++ return !strncmp(e->d_name, "ttyLT", 5) // Lucent WinModem ++ || !strncmp(e->d_name, "ttyACM", 6) // USB acm Modems ++ || !strncmp(e->d_name, "ttyUSB", 6) // Modems on USB RS232 ++ || !strncmp(e->d_name, "ircomm", 6) // Handys over IrDA ++ || !strncmp(e->d_name, "ttySL", 5); // SmartLink WinModem ++#endif + } + + #if defined(__GLIBC__) && __GLIBC_PREREQ(2, 10) diff --git a/meta-openvuplus/recipes-connectivity/wvdial/wvdial_1.60.bb b/meta-openvuplus/recipes-connectivity/wvdial/wvdial_1.60.bb deleted file mode 100644 index 7b20c5d..0000000 --- a/meta-openvuplus/recipes-connectivity/wvdial/wvdial_1.60.bb +++ /dev/null @@ -1,36 +0,0 @@ -HOMEPAGE = "http://www.alumnit.ca/wiki/?WvDial" -DESCRIPTION = "WvDial is a program that makes it easy to connect your Linux workstation to the Internet." - -PR = "r4" - -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605" - -SRC_URI = "\ - http://www.alumnit.ca/download/wvdial-1.60.tar.gz \ - file://wvdial-vuplus_001.patch;patch=1 \ - " - -DEPENDS = "wvstreams ppp" -RDEPENDS_${PN} = "ppp wvstreams" - -inherit autotools pkgconfig - -CFLAGS += " -Wno-write-strings " -LDFLAGS = " -L ${CROSS_DIR}/${TARGET_SYS}/usr/lib -luniconf -lwvstreams -lwvbase -lwvutils " - -EXTRA_OEMAKE = "" -export CC="${CXX}" - -do_compile() { - oe_runmake -} - -do_install() { - install -d ${D}/etc/ppp/peers - oe_runmake prefix=${D}/usr PPPDIR=${D}/etc/ppp/peers install -} - -SRC_URI[md5sum] = "27fbbde89f8fd9f6e735a8efa5217fc9" -SRC_URI[sha256sum] = "0c65ea807950fab32e659d1869a7167ff978502bd5d0159dbe9de90eb6c2e16b" - diff --git a/meta-openvuplus/recipes-connectivity/wvdial/wvdial_1.61.bbappend b/meta-openvuplus/recipes-connectivity/wvdial/wvdial_1.61.bbappend new file mode 100644 index 0000000..9291b67 --- /dev/null +++ b/meta-openvuplus/recipes-connectivity/wvdial/wvdial_1.61.bbappend @@ -0,0 +1,8 @@ +PR .= "-vuplus0" + +SRC_URI += " \ + file://wvdial-vuplus_001.patch \ + " + +FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" + diff --git a/meta-openvuplus/recipes-connectivity/wvstream/wvstreams-4.6/vuplus-wvstreams-build-fix.patch b/meta-openvuplus/recipes-connectivity/wvstream/wvstreams-4.6/vuplus-wvstreams-build-fix.patch deleted file mode 100644 index af9724c..0000000 --- a/meta-openvuplus/recipes-connectivity/wvstream/wvstreams-4.6/vuplus-wvstreams-build-fix.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff --git a/ipstreams/wvunixdgsocket.cc b/ipstreams/wvunixdgsocket.cc -index 41d2911..e881ac0 100644 ---- a/ipstreams/wvunixdgsocket.cc -+++ b/ipstreams/wvunixdgsocket.cc -@@ -2,6 +2,9 @@ - #ifdef MACOS - #include - #include -+#else -+#include -+#include - #endif - - WvUnixDGSocket::WvUnixDGSocket(WvStringParm filename, bool _server, int perms) -diff --git a/streams/wvatomicfile.cc b/streams/wvatomicfile.cc -index 65ae202..db9df88 100644 ---- a/streams/wvatomicfile.cc -+++ b/streams/wvatomicfile.cc -@@ -13,6 +13,8 @@ - - #ifdef MACOS - #include -+#else -+#include - #endif - - WvAtomicFile::WvAtomicFile(WvStringParm filename, int flags, mode_t create_mode) diff --git a/meta-openvuplus/recipes-connectivity/wvstream/wvstreams_4.6.bb b/meta-openvuplus/recipes-connectivity/wvstream/wvstreams_4.6.bb deleted file mode 100644 index 01afd5d..0000000 --- a/meta-openvuplus/recipes-connectivity/wvstream/wvstreams_4.6.bb +++ /dev/null @@ -1,39 +0,0 @@ -HOMEPAGE = "http://alumnit.ca/wiki/index.php?page=WvStreams" - -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://LICENSE;md5=55ca817ccb7d5b5b66355690e9abc605" - -DESCRIPTION = "WvStreams is a network programming library in C++" -DEPENDS = "zlib openssl (>= 0.9.8)" - -SRC_URI = "http://wvstreams.googlecode.com/files/${PN}-${PV}.tar.gz \ - file://vuplus-wvstreams-build-fix.patch;patch=1;pnum=1 \ - " - -inherit autotools pkgconfig - -LDFLAGS_append = " -Wl,-rpath-link,${CROSS_DIR}/${TARGET_SYS}/lib" -EXTRA_OECONF = " --without-tcl --without-qt --without-pam " - -PARALLEL_MAKE = "" - -do_configure() { - autoreconf - oe_runconf -} - -do_install() { - oe_runmake DESTDIR=${D} install -} - -#FILES_${PN} = "/" -FILES__${PN} = "" -FILES__${PN} += "${libdir}/libuniconf.so.*" -FILES__${PN} += "${sbindir}/uniconfd ${sysconfdir}/uniconf.conf ${localstatedir}/uniconf" -FILES__${PN} += "${libdir}/libwvutils.so.*" -FILES__${PN} += "${libdir}/libwvbase.so.* ${libdir}/libwvstreams.so.*" - - -SRC_URI[md5sum] = "4ee8ccfe6dfc29bf952d58fa23626c97" -SRC_URI[sha256sum] = "171df8e545b53edb3efbd65b9bc2b35549d05249bd0c92776701f9d8da77ed6f" - diff --git a/meta-openvuplus/recipes-connectivity/zeroconf/zeroconf_0.9.bbappend b/meta-openvuplus/recipes-connectivity/zeroconf/zeroconf_0.9.bbappend deleted file mode 100644 index 5ee8d24..0000000 --- a/meta-openvuplus/recipes-connectivity/zeroconf/zeroconf_0.9.bbappend +++ /dev/null @@ -1,5 +0,0 @@ -PR .= "-vuplus0" - -do_install_append() { - sed -e 's,^#FALLBACK=yes,FALLBACK=yes,' -i ${D}${sysconfdir}/default/zeroconf -} diff --git a/meta-openvuplus/recipes-core/base-files/base-files/filesystems b/meta-openvuplus/recipes-core/base-files/base-files/filesystems index 32a5dd2..60c78e2 100644 --- a/meta-openvuplus/recipes-core/base-files/base-files/filesystems +++ b/meta-openvuplus/recipes-core/base-files/base-files/filesystems @@ -1,6 +1,6 @@ +ext4 ext3 ext2 -ext4 vfat fat udf diff --git a/meta-openvuplus/recipes-core/base-files/base-files/fstab b/meta-openvuplus/recipes-core/base-files/base-files/fstab index 07c55d7..2d1de8c 100644 --- a/meta-openvuplus/recipes-core/base-files/base-files/fstab +++ b/meta-openvuplus/recipes-core/base-files/base-files/fstab @@ -1,8 +1,9 @@ rootfs / auto defaults 1 1 proc /proc proc defaults 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 -usbdevfs /proc/bus/usb usbfs defaults 0 0 -tmpfs /var/volatile tmpfs mode=0755 0 0 +usbdevfs /proc/bus/usb usbdevfs noauto 0 0 +tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0 +tmpfs /var/volatile tmpfs defaults 0 0 tmpfs /dev/shm tmpfs mode=0777 0 0 /dev/sda1 /media/hdd auto defaults 0 0 diff --git a/meta-openvuplus/recipes-core/base-files/base-files/issue b/meta-openvuplus/recipes-core/base-files/base-files/issue deleted file mode 100644 index e69de29..0000000 diff --git a/meta-openvuplus/recipes-core/base-files/base-files/issue.net b/meta-openvuplus/recipes-core/base-files/base-files/issue.net deleted file mode 100644 index e69de29..0000000 diff --git a/meta-openvuplus/recipes-core/base-files/base-files_3.0.14.bbappend b/meta-openvuplus/recipes-core/base-files/base-files_3.0.14.bbappend index c013b36..35b6206 100644 --- a/meta-openvuplus/recipes-core/base-files/base-files_3.0.14.bbappend +++ b/meta-openvuplus/recipes-core/base-files/base-files_3.0.14.bbappend @@ -1,14 +1,15 @@ -PR .= "-vuplus6" +PR .= "-vuplus2" do_install_append() { - ln -s media/hdd ${D}/hdd + rm -rf ${D}/hdd + rm -rf ${D}/mnt + ln -sf media/hdd ${D}/hdd + ln -sf media ${D}/mnt - rm -r ${D}/mnt - ln -s media ${D}/mnt + ln -sf var/run ${D}/run - ln -s var/run ${D}/run + install -m 0755 -d ${D}/media/net } FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0001-ifupdown-support-post-up-pre-down-hooks.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0001-ifupdown-support-post-up-pre-down-hooks.patch deleted file mode 100644 index ae78e6d..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0001-ifupdown-support-post-up-pre-down-hooks.patch +++ /dev/null @@ -1,60 +0,0 @@ -From b58a1a06ca695aed6a4f6e5039e2de0e5a3df111 Mon Sep 17 00:00:00 2001 -From: Peter Korsgaard -Date: Wed, 19 Oct 2011 02:35:54 +0200 -Subject: [PATCH 01/10] ifupdown: support post-up / pre-down hooks - -function old new delta -set_environ 330 371 +41 -ifupdown_main 2156 2194 +38 -iface_up 97 113 +16 -iface_down 97 113 +16 ------------------------------------------------------------------------------- -(add/remove: 0/0 grow/shrink: 4/0 up/down: 111/0) Total: 111 bytes - -Signed-off-by: Peter Korsgaard -Signed-off-by: Denys Vlasenko ---- - networking/ifupdown.c | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/networking/ifupdown.c b/networking/ifupdown.c -index 3820330..abc6b58 100644 ---- a/networking/ifupdown.c -+++ b/networking/ifupdown.c -@@ -891,6 +891,8 @@ static struct interfaces_file_t *read_interfaces(const char *filename) - if (strcmp(first_word, "up") != 0 - && strcmp(first_word, "down") != 0 - && strcmp(first_word, "pre-up") != 0 -+ && strcmp(first_word, "pre-down") != 0 -+ && strcmp(first_word, "post-up") != 0 - && strcmp(first_word, "post-down") != 0 - ) { - int i; -@@ -987,6 +989,8 @@ static void set_environ(struct interface_defn_t *iface, const char *mode) - if (strcmp(iface->option[i].name, "up") == 0 - || strcmp(iface->option[i].name, "down") == 0 - || strcmp(iface->option[i].name, "pre-up") == 0 -+ || strcmp(iface->option[i].name, "pre-down") == 0 -+ || strcmp(iface->option[i].name, "post-up") == 0 - || strcmp(iface->option[i].name, "post-down") == 0 - ) { - continue; -@@ -1056,6 +1060,7 @@ static int iface_up(struct interface_defn_t *iface) - if (!execute_all(iface, "pre-up")) return 0; - if (!iface->method->up(iface, doit)) return 0; - if (!execute_all(iface, "up")) return 0; -+ if (!execute_all(iface, "post-up")) return 0; - return 1; - } - -@@ -1063,6 +1068,7 @@ static int iface_down(struct interface_defn_t *iface) - { - if (!iface->method->down(iface,check)) return -1; - set_environ(iface, "stop"); -+ if (!execute_all(iface, "pre-down")) return 0; - if (!execute_all(iface, "down")) return 0; - if (!iface->method->down(iface, doit)) return 0; - if (!execute_all(iface, "post-down")) return 0; --- -1.7.10.4 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0001-work-around-linux-ext2_fs.h-breakage.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0001-work-around-linux-ext2_fs.h-breakage.patch deleted file mode 100644 index fa2e237..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0001-work-around-linux-ext2_fs.h-breakage.patch +++ /dev/null @@ -1,50 +0,0 @@ -From caf5768154301697430f0a3718838967d0f55f95 Mon Sep 17 00:00:00 2001 -From: Denys Vlasenko -Date: Thu, 12 Apr 2012 14:01:10 +0200 -Subject: [PATCH 01/33] work around linux/ext2_fs.h breakage - -See https://bugzilla.kernel.org/show_bug.cgi?id=42986 - -Signed-off-by: Denys Vlasenko ---- - e2fsprogs/tune2fs.c | 6 ++++++ - util-linux/mkfs_ext2.c | 6 ++++++ - 2 files changed, 12 insertions(+) - -diff --git a/e2fsprogs/tune2fs.c b/e2fsprogs/tune2fs.c -index 020bdaa..8da7432 100644 ---- a/e2fsprogs/tune2fs.c -+++ b/e2fsprogs/tune2fs.c -@@ -8,6 +8,12 @@ - */ - #include "libbb.h" - #include -+/* -+ * Work around linux/ext2_fs.h breakage. -+ * See https://bugzilla.kernel.org/show_bug.cgi?id=42986. -+ */ -+typedef mode_t bb__umode_t; -+#define umode_t bb__umode_t - #include - - // storage helpers -diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c -index 6cbbe0e..759bb0a 100644 ---- a/util-linux/mkfs_ext2.c -+++ b/util-linux/mkfs_ext2.c -@@ -48,6 +48,12 @@ - - #include "libbb.h" - #include -+/* -+ * Work around linux/ext2_fs.h breakage. -+ * See https://bugzilla.kernel.org/show_bug.cgi?id=42986. -+ */ -+typedef mode_t bb__umode_t; -+#define umode_t bb__umode_t - #include - - #define ENABLE_FEATURE_MKFS_EXT2_RESERVED_GDT 0 --- -1.7.9.5 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0002-Create-and-use-our-own-copy-of-linux-ext2_fs.h.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0002-Create-and-use-our-own-copy-of-linux-ext2_fs.h.patch deleted file mode 100644 index f9de87f..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0002-Create-and-use-our-own-copy-of-linux-ext2_fs.h.patch +++ /dev/null @@ -1,607 +0,0 @@ -From 0b2b0f31a38d77ebfb2a6416011562687ef58191 Mon Sep 17 00:00:00 2001 -From: Denys Vlasenko -Date: Fri, 13 Apr 2012 16:39:18 +0200 -Subject: [PATCH 01/32] Create and use our own copy of linux/ext2_fs.h - -Signed-off-by: Denys Vlasenko ---- - e2fsprogs/tune2fs.c | 8 +- - include/bb_linux_ext2_fs.h | 547 ++++++++++++++++++++++++++++++++++++++++++++ - util-linux/mkfs_ext2.c | 8 +- - 3 files changed, 549 insertions(+), 14 deletions(-) - create mode 100644 include/bb_linux_ext2_fs.h - -diff --git a/e2fsprogs/tune2fs.c b/e2fsprogs/tune2fs.c -index 8da7432..841d58a 100644 ---- a/e2fsprogs/tune2fs.c -+++ b/e2fsprogs/tune2fs.c -@@ -8,13 +8,7 @@ - */ - #include "libbb.h" - #include --/* -- * Work around linux/ext2_fs.h breakage. -- * See https://bugzilla.kernel.org/show_bug.cgi?id=42986. -- */ --typedef mode_t bb__umode_t; --#define umode_t bb__umode_t --#include -+#include "bb_linux_ext2_fs.h" - - // storage helpers - char BUG_wrong_field_size(void); -diff --git a/include/bb_linux_ext2_fs.h b/include/bb_linux_ext2_fs.h -new file mode 100644 -index 0000000..fdc470b ---- /dev/null -+++ b/include/bb_linux_ext2_fs.h -@@ -0,0 +1,547 @@ -+/* -+ * Work around linux/ext2_fs.h breakage. -+ * linux/ext2_fs.h might be removed from future kernel header distribution. -+ * See https://bugzilla.kernel.org/show_bug.cgi?id=42986 -+ * -+ * Licensed under GPLv2, see file LICENSE in this source tree. -+ */ -+#ifndef BB_LINUX_EXT2_FS_H -+#define BB_LINUX_EXT2_FS_H -+ -+/* -+ * From linux/magic.h -+ */ -+ -+#define EXT2_SUPER_MAGIC 0xEF53 -+#define EXT3_SUPER_MAGIC 0xEF53 -+#define EXT4_SUPER_MAGIC 0xEF53 -+ -+/* -+ * From linux/ext2_fs.h, with minor changes. -+ */ -+ -+/* -+ * Copyright (C) 1992, 1993, 1994, 1995 -+ * Remy Card (card@masi.ibp.fr) -+ * Laboratoire MASI - Institut Blaise Pascal -+ * Universite Pierre et Marie Curie (Paris VI) -+ * -+ * from -+ * -+ * linux/include/linux/minix_fs.h -+ * -+ * Copyright (C) 1991, 1992 Linus Torvalds -+ */ -+ -+/* -+ * The second extended filesystem constants/structures -+ */ -+ -+/* -+ * Define EXT2_RESERVATION to reserve data blocks for expanding files -+ */ -+#define EXT2_DEFAULT_RESERVE_BLOCKS 8 -+/*max window size: 1024(direct blocks) + 3([t,d]indirect blocks) */ -+#define EXT2_MAX_RESERVE_BLOCKS 1027 -+#define EXT2_RESERVE_WINDOW_NOT_ALLOCATED 0 -+ -+/* -+ * Special inode numbers -+ */ -+#define EXT2_BAD_INO 1 /* Bad blocks inode */ -+#define EXT2_ROOT_INO 2 /* Root inode */ -+#define EXT2_BOOT_LOADER_INO 5 /* Boot loader inode */ -+#define EXT2_UNDEL_DIR_INO 6 /* Undelete directory inode */ -+ -+/* First non-reserved inode for old ext2 filesystems */ -+#define EXT2_GOOD_OLD_FIRST_INO 11 -+ -+/* Assume that user mode programs are passing in an ext2fs superblock, not -+ * a kernel struct super_block. This will allow us to call the feature-test -+ * macros from user land. */ -+#define EXT2_SB(sb) (sb) -+ -+/* -+ * Maximal count of links to a file -+ */ -+#define EXT2_LINK_MAX 32000 -+ -+/* -+ * Macro-instructions used to manage several block sizes -+ */ -+#define EXT2_MIN_BLOCK_SIZE 1024 -+#define EXT2_MAX_BLOCK_SIZE 4096 -+#define EXT2_MIN_BLOCK_LOG_SIZE 10 -+# define EXT2_BLOCK_SIZE(s) (EXT2_MIN_BLOCK_SIZE << (s)->s_log_block_size) -+#define EXT2_ADDR_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (uint32_t)) -+# define EXT2_BLOCK_SIZE_BITS(s) ((s)->s_log_block_size + 10) -+#define EXT2_INODE_SIZE(s) (((s)->s_rev_level == EXT2_GOOD_OLD_REV) ? \ -+ EXT2_GOOD_OLD_INODE_SIZE : \ -+ (s)->s_inode_size) -+#define EXT2_FIRST_INO(s) (((s)->s_rev_level == EXT2_GOOD_OLD_REV) ? \ -+ EXT2_GOOD_OLD_FIRST_INO : \ -+ (s)->s_first_ino) -+ -+/* -+ * Macro-instructions used to manage fragments -+ */ -+#define EXT2_MIN_FRAG_SIZE 1024 -+#define EXT2_MAX_FRAG_SIZE 4096 -+#define EXT2_MIN_FRAG_LOG_SIZE 10 -+# define EXT2_FRAG_SIZE(s) (EXT2_MIN_FRAG_SIZE << (s)->s_log_frag_size) -+# define EXT2_FRAGS_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / EXT2_FRAG_SIZE(s)) -+ -+/* -+ * Structure of a blocks group descriptor -+ */ -+struct ext2_group_desc -+{ -+ uint32_t bg_block_bitmap; /* Blocks bitmap block */ -+ uint32_t bg_inode_bitmap; /* Inodes bitmap block */ -+ uint32_t bg_inode_table; /* Inodes table block */ -+ uint16_t bg_free_blocks_count; /* Free blocks count */ -+ uint16_t bg_free_inodes_count; /* Free inodes count */ -+ uint16_t bg_used_dirs_count; /* Directories count */ -+ uint16_t bg_pad; -+ uint32_t bg_reserved[3]; -+}; -+ -+/* -+ * Macro-instructions used to manage group descriptors -+ */ -+# define EXT2_BLOCKS_PER_GROUP(s) ((s)->s_blocks_per_group) -+# define EXT2_DESC_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_group_desc)) -+# define EXT2_INODES_PER_GROUP(s) ((s)->s_inodes_per_group) -+ -+/* -+ * Constants relative to the data blocks -+ */ -+#define EXT2_NDIR_BLOCKS 12 -+#define EXT2_IND_BLOCK EXT2_NDIR_BLOCKS -+#define EXT2_DIND_BLOCK (EXT2_IND_BLOCK + 1) -+#define EXT2_TIND_BLOCK (EXT2_DIND_BLOCK + 1) -+#define EXT2_N_BLOCKS (EXT2_TIND_BLOCK + 1) -+ -+/* -+ * Inode flags (GETFLAGS/SETFLAGS) -+ */ -+#define EXT2_SECRM_FL FS_SECRM_FL /* Secure deletion */ -+#define EXT2_UNRM_FL FS_UNRM_FL /* Undelete */ -+#define EXT2_COMPR_FL FS_COMPR_FL /* Compress file */ -+#define EXT2_SYNC_FL FS_SYNC_FL /* Synchronous updates */ -+#define EXT2_IMMUTABLE_FL FS_IMMUTABLE_FL /* Immutable file */ -+#define EXT2_APPEND_FL FS_APPEND_FL /* writes to file may only append */ -+#define EXT2_NODUMP_FL FS_NODUMP_FL /* do not dump file */ -+#define EXT2_NOATIME_FL FS_NOATIME_FL /* do not update atime */ -+/* Reserved for compression usage... */ -+#define EXT2_DIRTY_FL FS_DIRTY_FL -+#define EXT2_COMPRBLK_FL FS_COMPRBLK_FL /* One or more compressed clusters */ -+#define EXT2_NOCOMP_FL FS_NOCOMP_FL /* Don't compress */ -+#define EXT2_ECOMPR_FL FS_ECOMPR_FL /* Compression error */ -+/* End compression flags --- maybe not all used */ -+#define EXT2_BTREE_FL FS_BTREE_FL /* btree format dir */ -+#define EXT2_INDEX_FL FS_INDEX_FL /* hash-indexed directory */ -+#define EXT2_IMAGIC_FL FS_IMAGIC_FL /* AFS directory */ -+#define EXT2_JOURNAL_DATA_FL FS_JOURNAL_DATA_FL /* Reserved for ext3 */ -+#define EXT2_NOTAIL_FL FS_NOTAIL_FL /* file tail should not be merged */ -+#define EXT2_DIRSYNC_FL FS_DIRSYNC_FL /* dirsync behaviour (directories only) */ -+#define EXT2_TOPDIR_FL FS_TOPDIR_FL /* Top of directory hierarchies*/ -+#define EXT2_RESERVED_FL FS_RESERVED_FL /* reserved for ext2 lib */ -+ -+#define EXT2_FL_USER_VISIBLE FS_FL_USER_VISIBLE /* User visible flags */ -+#define EXT2_FL_USER_MODIFIABLE FS_FL_USER_MODIFIABLE /* User modifiable flags */ -+ -+/* Flags that should be inherited by new inodes from their parent. */ -+#define EXT2_FL_INHERITED (EXT2_SECRM_FL | EXT2_UNRM_FL | EXT2_COMPR_FL |\ -+ EXT2_SYNC_FL | EXT2_IMMUTABLE_FL | EXT2_APPEND_FL |\ -+ EXT2_NODUMP_FL | EXT2_NOATIME_FL | EXT2_COMPRBLK_FL|\ -+ EXT2_NOCOMP_FL | EXT2_JOURNAL_DATA_FL |\ -+ EXT2_NOTAIL_FL | EXT2_DIRSYNC_FL) -+ -+/* Flags that are appropriate for regular files (all but dir-specific ones). */ -+#define EXT2_REG_FLMASK (~(EXT2_DIRSYNC_FL | EXT2_TOPDIR_FL)) -+ -+/* Flags that are appropriate for non-directories/regular files. */ -+#define EXT2_OTHER_FLMASK (EXT2_NODUMP_FL | EXT2_NOATIME_FL) -+ -+/* Mask out flags that are inappropriate for the given type of inode. */ -+static inline uint32_t ext2_mask_flags(mode_t mode, uint32_t flags) -+{ -+ if (S_ISDIR(mode)) -+ return flags; -+ else if (S_ISREG(mode)) -+ return flags & EXT2_REG_FLMASK; -+ else -+ return flags & EXT2_OTHER_FLMASK; -+} -+ -+/* -+ * ioctl commands -+ */ -+#define EXT2_IOC_GETFLAGS FS_IOC_GETFLAGS -+#define EXT2_IOC_SETFLAGS FS_IOC_SETFLAGS -+#define EXT2_IOC_GETVERSION FS_IOC_GETVERSION -+#define EXT2_IOC_SETVERSION FS_IOC_SETVERSION -+#define EXT2_IOC_GETRSVSZ _IOR('f', 5, long) -+#define EXT2_IOC_SETRSVSZ _IOW('f', 6, long) -+ -+/* -+ * ioctl commands in 32 bit emulation -+ */ -+#define EXT2_IOC32_GETFLAGS FS_IOC32_GETFLAGS -+#define EXT2_IOC32_SETFLAGS FS_IOC32_SETFLAGS -+#define EXT2_IOC32_GETVERSION FS_IOC32_GETVERSION -+#define EXT2_IOC32_SETVERSION FS_IOC32_SETVERSION -+ -+/* -+ * Structure of an inode on the disk -+ */ -+struct ext2_inode { -+ uint16_t i_mode; /* File mode */ -+ uint16_t i_uid; /* Low 16 bits of Owner Uid */ -+ uint32_t i_size; /* Size in bytes */ -+ uint32_t i_atime; /* Access time */ -+ uint32_t i_ctime; /* Creation time */ -+ uint32_t i_mtime; /* Modification time */ -+ uint32_t i_dtime; /* Deletion Time */ -+ uint16_t i_gid; /* Low 16 bits of Group Id */ -+ uint16_t i_links_count; /* Links count */ -+ uint32_t i_blocks; /* Blocks count */ -+ uint32_t i_flags; /* File flags */ -+ union { -+ struct { -+ uint32_t l_i_reserved1; -+ } linux1; -+ struct { -+ uint32_t h_i_translator; -+ } hurd1; -+ struct { -+ uint32_t m_i_reserved1; -+ } masix1; -+ } osd1; /* OS dependent 1 */ -+ uint32_t i_block[EXT2_N_BLOCKS];/* Pointers to blocks */ -+ uint32_t i_generation; /* File version (for NFS) */ -+ uint32_t i_file_acl; /* File ACL */ -+ uint32_t i_dir_acl; /* Directory ACL */ -+ uint32_t i_faddr; /* Fragment address */ -+ union { -+ struct { -+ uint8_t l_i_frag; /* Fragment number */ -+ uint8_t l_i_fsize; /* Fragment size */ -+ uint16_t i_pad1; -+ uint16_t l_i_uid_high; /* these 2 fields */ -+ uint16_t l_i_gid_high; /* were reserved2[0] */ -+ uint32_t l_i_reserved2; -+ } linux2; -+ struct { -+ uint8_t h_i_frag; /* Fragment number */ -+ uint8_t h_i_fsize; /* Fragment size */ -+ uint16_t h_i_mode_high; -+ uint16_t h_i_uid_high; -+ uint16_t h_i_gid_high; -+ uint32_t h_i_author; -+ } hurd2; -+ struct { -+ uint8_t m_i_frag; /* Fragment number */ -+ uint8_t m_i_fsize; /* Fragment size */ -+ uint16_t m_pad1; -+ uint32_t m_i_reserved2[2]; -+ } masix2; -+ } osd2; /* OS dependent 2 */ -+}; -+ -+#define i_size_high i_dir_acl -+ -+#if defined(__KERNEL__) || defined(__linux__) -+#define i_reserved1 osd1.linux1.l_i_reserved1 -+#define i_frag osd2.linux2.l_i_frag -+#define i_fsize osd2.linux2.l_i_fsize -+#define i_uid_low i_uid -+#define i_gid_low i_gid -+#define i_uid_high osd2.linux2.l_i_uid_high -+#define i_gid_high osd2.linux2.l_i_gid_high -+#define i_reserved2 osd2.linux2.l_i_reserved2 -+#endif -+ -+#ifdef __hurd__ -+#define i_translator osd1.hurd1.h_i_translator -+#define i_frag osd2.hurd2.h_i_frag -+#define i_fsize osd2.hurd2.h_i_fsize -+#define i_uid_high osd2.hurd2.h_i_uid_high -+#define i_gid_high osd2.hurd2.h_i_gid_high -+#define i_author osd2.hurd2.h_i_author -+#endif -+ -+#ifdef __masix__ -+#define i_reserved1 osd1.masix1.m_i_reserved1 -+#define i_frag osd2.masix2.m_i_frag -+#define i_fsize osd2.masix2.m_i_fsize -+#define i_reserved2 osd2.masix2.m_i_reserved2 -+#endif -+ -+/* -+ * File system states -+ */ -+#define EXT2_VALID_FS 0x0001 /* Unmounted cleanly */ -+#define EXT2_ERROR_FS 0x0002 /* Errors detected */ -+ -+/* -+ * Mount flags -+ */ -+#define EXT2_MOUNT_CHECK 0x000001 /* Do mount-time checks */ -+#define EXT2_MOUNT_OLDALLOC 0x000002 /* Don't use the new Orlov allocator */ -+#define EXT2_MOUNT_GRPID 0x000004 /* Create files with directory's group */ -+#define EXT2_MOUNT_DEBUG 0x000008 /* Some debugging messages */ -+#define EXT2_MOUNT_ERRORS_CONT 0x000010 /* Continue on errors */ -+#define EXT2_MOUNT_ERRORS_RO 0x000020 /* Remount fs ro on errors */ -+#define EXT2_MOUNT_ERRORS_PANIC 0x000040 /* Panic on errors */ -+#define EXT2_MOUNT_MINIX_DF 0x000080 /* Mimics the Minix statfs */ -+#define EXT2_MOUNT_NOBH 0x000100 /* No buffer_heads */ -+#define EXT2_MOUNT_NO_UID32 0x000200 /* Disable 32-bit UIDs */ -+#define EXT2_MOUNT_XATTR_USER 0x004000 /* Extended user attributes */ -+#define EXT2_MOUNT_POSIX_ACL 0x008000 /* POSIX Access Control Lists */ -+#define EXT2_MOUNT_XIP 0x010000 /* Execute in place */ -+#define EXT2_MOUNT_USRQUOTA 0x020000 /* user quota */ -+#define EXT2_MOUNT_GRPQUOTA 0x040000 /* group quota */ -+#define EXT2_MOUNT_RESERVATION 0x080000 /* Preallocation */ -+ -+ -+#define clear_opt(o, opt) o &= ~EXT2_MOUNT_##opt -+#define set_opt(o, opt) o |= EXT2_MOUNT_##opt -+#define test_opt(sb, opt) (EXT2_SB(sb)->s_mount_opt & \ -+ EXT2_MOUNT_##opt) -+/* -+ * Maximal mount counts between two filesystem checks -+ */ -+#define EXT2_DFL_MAX_MNT_COUNT 20 /* Allow 20 mounts */ -+#define EXT2_DFL_CHECKINTERVAL 0 /* Don't use interval check */ -+ -+/* -+ * Behaviour when detecting errors -+ */ -+#define EXT2_ERRORS_CONTINUE 1 /* Continue execution */ -+#define EXT2_ERRORS_RO 2 /* Remount fs read-only */ -+#define EXT2_ERRORS_PANIC 3 /* Panic */ -+#define EXT2_ERRORS_DEFAULT EXT2_ERRORS_CONTINUE -+ -+/* -+ * Structure of the super block -+ */ -+struct ext2_super_block { -+ uint32_t s_inodes_count; /* Inodes count */ -+ uint32_t s_blocks_count; /* Blocks count */ -+ uint32_t s_r_blocks_count; /* Reserved blocks count */ -+ uint32_t s_free_blocks_count; /* Free blocks count */ -+ uint32_t s_free_inodes_count; /* Free inodes count */ -+ uint32_t s_first_data_block; /* First Data Block */ -+ uint32_t s_log_block_size; /* Block size */ -+ uint32_t s_log_frag_size; /* Fragment size */ -+ uint32_t s_blocks_per_group; /* # Blocks per group */ -+ uint32_t s_frags_per_group; /* # Fragments per group */ -+ uint32_t s_inodes_per_group; /* # Inodes per group */ -+ uint32_t s_mtime; /* Mount time */ -+ uint32_t s_wtime; /* Write time */ -+ uint16_t s_mnt_count; /* Mount count */ -+ uint16_t s_max_mnt_count; /* Maximal mount count */ -+ uint16_t s_magic; /* Magic signature */ -+ uint16_t s_state; /* File system state */ -+ uint16_t s_errors; /* Behaviour when detecting errors */ -+ uint16_t s_minor_rev_level; /* minor revision level */ -+ uint32_t s_lastcheck; /* time of last check */ -+ uint32_t s_checkinterval; /* max. time between checks */ -+ uint32_t s_creator_os; /* OS */ -+ uint32_t s_rev_level; /* Revision level */ -+ uint16_t s_def_resuid; /* Default uid for reserved blocks */ -+ uint16_t s_def_resgid; /* Default gid for reserved blocks */ -+ /* -+ * These fields are for EXT2_DYNAMIC_REV superblocks only. -+ * -+ * Note: the difference between the compatible feature set and -+ * the incompatible feature set is that if there is a bit set -+ * in the incompatible feature set that the kernel doesn't -+ * know about, it should refuse to mount the filesystem. -+ * -+ * e2fsck's requirements are more strict; if it doesn't know -+ * about a feature in either the compatible or incompatible -+ * feature set, it must abort and not try to meddle with -+ * things it doesn't understand... -+ */ -+ uint32_t s_first_ino; /* First non-reserved inode */ -+ uint16_t s_inode_size; /* size of inode structure */ -+ uint16_t s_block_group_nr; /* block group # of this superblock */ -+ uint32_t s_feature_compat; /* compatible feature set */ -+ uint32_t s_feature_incompat; /* incompatible feature set */ -+ uint32_t s_feature_ro_compat; /* readonly-compatible feature set */ -+ uint8_t s_uuid[16]; /* 128-bit uuid for volume */ -+ char s_volume_name[16]; /* volume name */ -+ char s_last_mounted[64]; /* directory where last mounted */ -+ uint32_t s_algorithm_usage_bitmap; /* For compression */ -+ /* -+ * Performance hints. Directory preallocation should only -+ * happen if the EXT2_COMPAT_PREALLOC flag is on. -+ */ -+ uint8_t s_prealloc_blocks; /* Nr of blocks to try to preallocate*/ -+ uint8_t s_prealloc_dir_blocks; /* Nr to preallocate for dirs */ -+ uint16_t s_padding1; -+ /* -+ * Journaling support valid if EXT3_FEATURE_COMPAT_HAS_JOURNAL set. -+ */ -+ uint8_t s_journal_uuid[16]; /* uuid of journal superblock */ -+ uint32_t s_journal_inum; /* inode number of journal file */ -+ uint32_t s_journal_dev; /* device number of journal file */ -+ uint32_t s_last_orphan; /* start of list of inodes to delete */ -+ uint32_t s_hash_seed[4]; /* HTREE hash seed */ -+ uint8_t s_def_hash_version; /* Default hash version to use */ -+ uint8_t s_reserved_char_pad; -+ uint16_t s_reserved_word_pad; -+ uint32_t s_default_mount_opts; -+ uint32_t s_first_meta_bg; /* First metablock block group */ -+ uint32_t s_reserved[190]; /* Padding to the end of the block */ -+}; -+ -+/* -+ * Codes for operating systems -+ */ -+#define EXT2_OS_LINUX 0 -+#define EXT2_OS_HURD 1 -+#define EXT2_OS_MASIX 2 -+#define EXT2_OS_FREEBSD 3 -+#define EXT2_OS_LITES 4 -+ -+/* -+ * Revision levels -+ */ -+#define EXT2_GOOD_OLD_REV 0 /* The good old (original) format */ -+#define EXT2_DYNAMIC_REV 1 /* V2 format w/ dynamic inode sizes */ -+ -+#define EXT2_CURRENT_REV EXT2_GOOD_OLD_REV -+#define EXT2_MAX_SUPP_REV EXT2_DYNAMIC_REV -+ -+#define EXT2_GOOD_OLD_INODE_SIZE 128 -+ -+/* -+ * Feature set definitions -+ */ -+ -+#define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ -+ ( EXT2_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) ) -+#define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ -+ ( EXT2_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask) ) -+#define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ -+ ( EXT2_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask) ) -+#define EXT2_SET_COMPAT_FEATURE(sb,mask) \ -+ EXT2_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) -+#define EXT2_SET_RO_COMPAT_FEATURE(sb,mask) \ -+ EXT2_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32(mask) -+#define EXT2_SET_INCOMPAT_FEATURE(sb,mask) \ -+ EXT2_SB(sb)->s_es->s_feature_incompat |= cpu_to_le32(mask) -+#define EXT2_CLEAR_COMPAT_FEATURE(sb,mask) \ -+ EXT2_SB(sb)->s_es->s_feature_compat &= ~cpu_to_le32(mask) -+#define EXT2_CLEAR_RO_COMPAT_FEATURE(sb,mask) \ -+ EXT2_SB(sb)->s_es->s_feature_ro_compat &= ~cpu_to_le32(mask) -+#define EXT2_CLEAR_INCOMPAT_FEATURE(sb,mask) \ -+ EXT2_SB(sb)->s_es->s_feature_incompat &= ~cpu_to_le32(mask) -+ -+#define EXT2_FEATURE_COMPAT_DIR_PREALLOC 0x0001 -+#define EXT2_FEATURE_COMPAT_IMAGIC_INODES 0x0002 -+#define EXT3_FEATURE_COMPAT_HAS_JOURNAL 0x0004 -+#define EXT2_FEATURE_COMPAT_EXT_ATTR 0x0008 -+#define EXT2_FEATURE_COMPAT_RESIZE_INO 0x0010 -+#define EXT2_FEATURE_COMPAT_DIR_INDEX 0x0020 -+#define EXT2_FEATURE_COMPAT_ANY 0xffffffff -+ -+#define EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER 0x0001 -+#define EXT2_FEATURE_RO_COMPAT_LARGE_FILE 0x0002 -+#define EXT2_FEATURE_RO_COMPAT_BTREE_DIR 0x0004 -+#define EXT2_FEATURE_RO_COMPAT_ANY 0xffffffff -+ -+#define EXT2_FEATURE_INCOMPAT_COMPRESSION 0x0001 -+#define EXT2_FEATURE_INCOMPAT_FILETYPE 0x0002 -+#define EXT3_FEATURE_INCOMPAT_RECOVER 0x0004 -+#define EXT3_FEATURE_INCOMPAT_JOURNAL_DEV 0x0008 -+#define EXT2_FEATURE_INCOMPAT_META_BG 0x0010 -+#define EXT2_FEATURE_INCOMPAT_ANY 0xffffffff -+ -+#define EXT2_FEATURE_COMPAT_SUPP EXT2_FEATURE_COMPAT_EXT_ATTR -+#define EXT2_FEATURE_INCOMPAT_SUPP (EXT2_FEATURE_INCOMPAT_FILETYPE| \ -+ EXT2_FEATURE_INCOMPAT_META_BG) -+#define EXT2_FEATURE_RO_COMPAT_SUPP (EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER| \ -+ EXT2_FEATURE_RO_COMPAT_LARGE_FILE| \ -+ EXT2_FEATURE_RO_COMPAT_BTREE_DIR) -+#define EXT2_FEATURE_RO_COMPAT_UNSUPPORTED ~EXT2_FEATURE_RO_COMPAT_SUPP -+#define EXT2_FEATURE_INCOMPAT_UNSUPPORTED ~EXT2_FEATURE_INCOMPAT_SUPP -+ -+/* -+ * Default values for user and/or group using reserved blocks -+ */ -+#define EXT2_DEF_RESUID 0 -+#define EXT2_DEF_RESGID 0 -+ -+/* -+ * Default mount options -+ */ -+#define EXT2_DEFM_DEBUG 0x0001 -+#define EXT2_DEFM_BSDGROUPS 0x0002 -+#define EXT2_DEFM_XATTR_USER 0x0004 -+#define EXT2_DEFM_ACL 0x0008 -+#define EXT2_DEFM_UID16 0x0010 -+ /* Not used by ext2, but reserved for use by ext3 */ -+#define EXT3_DEFM_JMODE 0x0060 -+#define EXT3_DEFM_JMODE_DATA 0x0020 -+#define EXT3_DEFM_JMODE_ORDERED 0x0040 -+#define EXT3_DEFM_JMODE_WBACK 0x0060 -+ -+/* -+ * Structure of a directory entry -+ */ -+#define EXT2_NAME_LEN 255 -+ -+struct ext2_dir_entry { -+ uint32_t inode; /* Inode number */ -+ uint16_t rec_len; /* Directory entry length */ -+ uint16_t name_len; /* Name length */ -+ char name[EXT2_NAME_LEN]; /* File name */ -+}; -+ -+/* -+ * The new version of the directory entry. Since EXT2 structures are -+ * stored in intel byte order, and the name_len field could never be -+ * bigger than 255 chars, it's safe to reclaim the extra byte for the -+ * file_type field. -+ */ -+struct ext2_dir_entry_2 { -+ uint32_t inode; /* Inode number */ -+ uint16_t rec_len; /* Directory entry length */ -+ uint8_t name_len; /* Name length */ -+ uint8_t file_type; -+ char name[EXT2_NAME_LEN]; /* File name */ -+}; -+ -+/* -+ * Ext2 directory file types. Only the low 3 bits are used. The -+ * other bits are reserved for now. -+ */ -+enum { -+ EXT2_FT_UNKNOWN = 0, -+ EXT2_FT_REG_FILE = 1, -+ EXT2_FT_DIR = 2, -+ EXT2_FT_CHRDEV = 3, -+ EXT2_FT_BLKDEV = 4, -+ EXT2_FT_FIFO = 5, -+ EXT2_FT_SOCK = 6, -+ EXT2_FT_SYMLINK = 7, -+ EXT2_FT_MAX -+}; -+ -+/* -+ * EXT2_DIR_PAD defines the directory entries boundaries -+ * -+ * NOTE: It must be a multiple of 4 -+ */ -+#define EXT2_DIR_PAD 4 -+#define EXT2_DIR_ROUND (EXT2_DIR_PAD - 1) -+#define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \ -+ ~EXT2_DIR_ROUND) -+#define EXT2_MAX_REC_LEN ((1<<16)-1) -+ -+#endif -diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c -index 759bb0a..2d9d720 100644 ---- a/util-linux/mkfs_ext2.c -+++ b/util-linux/mkfs_ext2.c -@@ -48,13 +48,7 @@ - - #include "libbb.h" - #include --/* -- * Work around linux/ext2_fs.h breakage. -- * See https://bugzilla.kernel.org/show_bug.cgi?id=42986. -- */ --typedef mode_t bb__umode_t; --#define umode_t bb__umode_t --#include -+#include "bb_linux_ext2_fs.h" - - #define ENABLE_FEATURE_MKFS_EXT2_RESERVED_GDT 0 - #define ENABLE_FEATURE_MKFS_EXT2_DIR_INDEX 1 --- -1.7.9.5 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0002-ifupdown-code-shrink.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0002-ifupdown-code-shrink.patch deleted file mode 100644 index 2d9d695..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0002-ifupdown-code-shrink.patch +++ /dev/null @@ -1,122 +0,0 @@ -From e5221a142e8ee4509734c17584f898a1f4ac86cc Mon Sep 17 00:00:00 2001 -From: Denys Vlasenko -Date: Wed, 19 Oct 2011 02:37:08 +0200 -Subject: [PATCH 02/10] ifupdown: code shrink - -function old new delta -keywords_up_down - 43 +43 -set_environ 371 259 -112 -ifupdown_main 2194 2073 -121 ------------------------------------------------------------------------------- -(add/remove: 1/0 grow/shrink: 0/2 up/down: 43/-233) Total: -190 bytes - -Signed-off-by: Denys Vlasenko ---- - networking/ifupdown.c | 42 +++++++++++++++--------------------------- - 1 file changed, 15 insertions(+), 27 deletions(-) - -diff --git a/networking/ifupdown.c b/networking/ifupdown.c -index abc6b58..5946323 100644 ---- a/networking/ifupdown.c -+++ b/networking/ifupdown.c -@@ -87,7 +87,6 @@ struct mapping_defn_t { - - char *script; - -- int max_mappings; - int n_mappings; - char **mapping; - }; -@@ -102,7 +101,6 @@ struct interface_defn_t { - const struct method_t *method; - - char *iface; -- int max_options; - int n_options; - struct variable_t *option; - }; -@@ -138,6 +136,16 @@ struct globals { - #define INIT_G() do { } while (0) - - -+static const char keywords_up_down[] ALIGN1 = -+ "up\0" -+ "down\0" -+ "pre-up\0" -+ "pre-down\0" -+ "post-up\0" -+ "post-down\0" -+; -+ -+ - #if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6 - - static void addstr(char **bufp, const char *str, size_t str_length) -@@ -803,7 +811,6 @@ static struct interfaces_file_t *read_interfaces(const char *filename) - currmap->match = xrealloc_vector(currmap->match, 4, currmap->n_matches); - currmap->match[currmap->n_matches++] = xstrdup(first_word); - } -- /*currmap->max_mappings = 0; - done by xzalloc */ - /*currmap->n_mappings = 0;*/ - /*currmap->mapping = NULL;*/ - /*currmap->script = NULL;*/ -@@ -888,25 +895,16 @@ static struct interfaces_file_t *read_interfaces(const char *filename) - if (rest_of_line[0] == '\0') - bb_error_msg_and_die("option with empty value \"%s\"", buf); - -- if (strcmp(first_word, "up") != 0 -- && strcmp(first_word, "down") != 0 -- && strcmp(first_word, "pre-up") != 0 -- && strcmp(first_word, "pre-down") != 0 -- && strcmp(first_word, "post-up") != 0 -- && strcmp(first_word, "post-down") != 0 -- ) { -+ /* If not one of "up", "down",... words... */ -+ if (index_in_strings(keywords_up_down, first_word) < 0) { - int i; - for (i = 0; i < currif->n_options; i++) { - if (strcmp(currif->option[i].name, first_word) == 0) - bb_error_msg_and_die("duplicate option \"%s\"", buf); - } - } -- if (currif->n_options >= currif->max_options) { -- currif->max_options += 10; -- currif->option = xrealloc(currif->option, -- sizeof(*currif->option) * currif->max_options); -- } - debug_noise("\t%s=%s\n", first_word, rest_of_line); -+ currif->option = xrealloc_vector(currif->option, 4, currif->n_options); - currif->option[currif->n_options].name = xstrdup(first_word); - currif->option[currif->n_options].value = xstrdup(rest_of_line); - currif->n_options++; -@@ -918,11 +916,7 @@ static struct interfaces_file_t *read_interfaces(const char *filename) - bb_error_msg_and_die("duplicate script in mapping \"%s\"", buf); - currmap->script = xstrdup(next_word(&rest_of_line)); - } else if (strcmp(first_word, "map") == 0) { -- if (currmap->n_mappings >= currmap->max_mappings) { -- currmap->max_mappings = currmap->max_mappings * 2 + 1; -- currmap->mapping = xrealloc(currmap->mapping, -- sizeof(char *) * currmap->max_mappings); -- } -+ currmap->mapping = xrealloc_vector(currmap->mapping, 2, currmap->n_mappings); - currmap->mapping[currmap->n_mappings] = xstrdup(next_word(&rest_of_line)); - currmap->n_mappings++; - } else { -@@ -986,13 +980,7 @@ static void set_environ(struct interface_defn_t *iface, const char *mode) - pp = G.my_environ; - - for (i = 0; i < iface->n_options; i++) { -- if (strcmp(iface->option[i].name, "up") == 0 -- || strcmp(iface->option[i].name, "down") == 0 -- || strcmp(iface->option[i].name, "pre-up") == 0 -- || strcmp(iface->option[i].name, "pre-down") == 0 -- || strcmp(iface->option[i].name, "post-up") == 0 -- || strcmp(iface->option[i].name, "post-down") == 0 -- ) { -+ if (index_in_strings(keywords_up_down, iface->option[i].name) >= 0) { - continue; - } - *pp++ = setlocalenv("IF_%s=%s", iface->option[i].name, iface->option[i].value); --- -1.7.10.4 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0003-Drop-include-bb_linux_ext2_fs.h-use-existing-e2fspro.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0003-Drop-include-bb_linux_ext2_fs.h-use-existing-e2fspro.patch deleted file mode 100644 index 2a3b21b..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0003-Drop-include-bb_linux_ext2_fs.h-use-existing-e2fspro.patch +++ /dev/null @@ -1,1877 +0,0 @@ -From 176bc344751dfc41e87976182381ae0560c94f22 Mon Sep 17 00:00:00 2001 -From: Denys Vlasenko -Date: Tue, 17 Apr 2012 15:06:55 +0200 -Subject: [PATCH 04/32] Drop include/bb_linux_ext2_fs.h, use existing - e2fsprogs/e2fs_defs.h - -Signed-off-by: Denys Vlasenko ---- - e2fsprogs/e2fs_defs.h | 561 --------------------------- - e2fsprogs/e2fs_lib.h | 2 +- - e2fsprogs/old_e2fsprogs/e2fsck.c | 6 +- - e2fsprogs/old_e2fsprogs/e2p/feature.c | 2 +- - e2fsprogs/old_e2fsprogs/ext2fs/ext2_fs.h | 2 +- - e2fsprogs/old_e2fsprogs/ext2fs/ext2fs.h | 2 +- - e2fsprogs/old_e2fsprogs/ext2fs/initialize.c | 2 +- - e2fsprogs/old_e2fsprogs/mke2fs.c | 8 +- - e2fsprogs/tune2fs.c | 2 +- - include/bb_e2fs_defs.h | 561 +++++++++++++++++++++++++++ - include/bb_linux_ext2_fs.h | 547 -------------------------- - util-linux/mkfs_ext2.c | 2 +- - 12 files changed, 575 insertions(+), 1122 deletions(-) - delete mode 100644 e2fsprogs/e2fs_defs.h - create mode 100644 include/bb_e2fs_defs.h - delete mode 100644 include/bb_linux_ext2_fs.h - -diff --git a/e2fsprogs/e2fs_defs.h b/e2fsprogs/e2fs_defs.h -deleted file mode 100644 -index 379640e..0000000 ---- a/e2fsprogs/e2fs_defs.h -+++ /dev/null -@@ -1,561 +0,0 @@ --/* vi: set sw=4 ts=4: */ --/* -- * linux/include/linux/ext2_fs.h -- * -- * Copyright (C) 1992, 1993, 1994, 1995 -- * Remy Card (card@masi.ibp.fr) -- * Laboratoire MASI - Institut Blaise Pascal -- * Universite Pierre et Marie Curie (Paris VI) -- * -- * Copyright (C) 1991, 1992 Linus Torvalds -- */ -- --#ifndef LINUX_EXT2_FS_H --#define LINUX_EXT2_FS_H 1 -- --/* -- * Special inode numbers -- */ --#define EXT2_BAD_INO 1 /* Bad blocks inode */ --#define EXT2_ROOT_INO 2 /* Root inode */ --#define EXT2_ACL_IDX_INO 3 /* ACL inode */ --#define EXT2_ACL_DATA_INO 4 /* ACL inode */ --#define EXT2_BOOT_LOADER_INO 5 /* Boot loader inode */ --#define EXT2_UNDEL_DIR_INO 6 /* Undelete directory inode */ --#define EXT2_RESIZE_INO 7 /* Reserved group descriptors inode */ --#define EXT2_JOURNAL_INO 8 /* Journal inode */ -- --/* First non-reserved inode for old ext2 filesystems */ --#define EXT2_GOOD_OLD_FIRST_INO 11 -- --/* -- * The second extended file system magic number -- */ --#define EXT2_SUPER_MAGIC 0xEF53 -- --/* Assume that user mode programs are passing in an ext2fs superblock, not -- * a kernel struct super_block. This will allow us to call the feature-test -- * macros from user land. */ --#define EXT2_SB(sb) (sb) -- --/* -- * Maximal count of links to a file -- */ --#define EXT2_LINK_MAX 32000 -- --/* -- * Macro-instructions used to manage several block sizes -- */ --#define EXT2_MIN_BLOCK_LOG_SIZE 10 /* 1024 */ --#define EXT2_MAX_BLOCK_LOG_SIZE 16 /* 65536 */ --#define EXT2_MIN_BLOCK_SIZE (1 << EXT2_MIN_BLOCK_LOG_SIZE) --#define EXT2_MAX_BLOCK_SIZE (1 << EXT2_MAX_BLOCK_LOG_SIZE) --#define EXT2_BLOCK_SIZE(s) (EXT2_MIN_BLOCK_SIZE << (s)->s_log_block_size) --#define EXT2_BLOCK_SIZE_BITS(s) ((s)->s_log_block_size + 10) --#define EXT2_INODE_SIZE(s) (((s)->s_rev_level == EXT2_GOOD_OLD_REV) ? \ -- EXT2_GOOD_OLD_INODE_SIZE : (s)->s_inode_size) --#define EXT2_FIRST_INO(s) (((s)->s_rev_level == EXT2_GOOD_OLD_REV) ? \ -- EXT2_GOOD_OLD_FIRST_INO : (s)->s_first_ino) --#define EXT2_ADDR_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof(uint32_t)) -- --/* -- * Macro-instructions used to manage fragments -- */ --#define EXT2_MIN_FRAG_SIZE EXT2_MIN_BLOCK_SIZE --#define EXT2_MAX_FRAG_SIZE EXT2_MAX_BLOCK_SIZE --#define EXT2_MIN_FRAG_LOG_SIZE EXT2_MIN_BLOCK_LOG_SIZE --#define EXT2_FRAG_SIZE(s) (EXT2_MIN_FRAG_SIZE << (s)->s_log_frag_size) --#define EXT2_FRAGS_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / EXT2_FRAG_SIZE(s)) -- --/* -- * ACL structures -- */ --struct ext2_acl_header { /* Header of Access Control Lists */ -- uint32_t aclh_size; -- uint32_t aclh_file_count; -- uint32_t aclh_acle_count; -- uint32_t aclh_first_acle; --}; -- --struct ext2_acl_entry { /* Access Control List Entry */ -- uint32_t acle_size; -- uint16_t acle_perms; /* Access permissions */ -- uint16_t acle_type; /* Type of entry */ -- uint16_t acle_tag; /* User or group identity */ -- uint16_t acle_pad1; -- uint32_t acle_next; /* Pointer on next entry for the */ -- /* same inode or on next free entry */ --}; -- --/* -- * Structure of a blocks group descriptor -- */ --struct ext2_group_desc { -- uint32_t bg_block_bitmap; /* Blocks bitmap block */ -- uint32_t bg_inode_bitmap; /* Inodes bitmap block */ -- uint32_t bg_inode_table; /* Inodes table block */ -- uint16_t bg_free_blocks_count; /* Free blocks count */ -- uint16_t bg_free_inodes_count; /* Free inodes count */ -- uint16_t bg_used_dirs_count; /* Directories count */ -- uint16_t bg_pad; -- uint32_t bg_reserved[3]; --}; -- --/* -- * Data structures used by the directory indexing feature -- * -- * Note: all of the multibyte integer fields are little endian. -- */ -- --/* -- * Note: dx_root_info is laid out so that if it should somehow get -- * overlaid by a dirent the two low bits of the hash version will be -- * zero. Therefore, the hash version mod 4 should never be 0. -- * Sincerely, the paranoia department. -- */ --struct ext2_dx_root_info { -- uint32_t reserved_zero; -- uint8_t hash_version; /* 0 now, 1 at release */ -- uint8_t info_length; /* 8 */ -- uint8_t indirect_levels; -- uint8_t unused_flags; --}; -- --#define EXT2_HASH_LEGACY 0 --#define EXT2_HASH_HALF_MD4 1 --#define EXT2_HASH_TEA 2 -- --#define EXT2_HASH_FLAG_INCOMPAT 0x1 -- --struct ext2_dx_entry { -- uint32_t hash; -- uint32_t block; --}; -- --struct ext2_dx_countlimit { -- uint16_t limit; -- uint16_t count; --}; -- -- --/* -- * Macro-instructions used to manage group descriptors -- */ --#define EXT2_BLOCKS_PER_GROUP(s) (EXT2_SB(s)->s_blocks_per_group) --#define EXT2_INODES_PER_GROUP(s) (EXT2_SB(s)->s_inodes_per_group) --#define EXT2_INODES_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s)/EXT2_INODE_SIZE(s)) --/* limits imposed by 16-bit value gd_free_{blocks,inode}_count */ --#define EXT2_MAX_BLOCKS_PER_GROUP(s) ((1 << 16) - 8) --#define EXT2_MAX_INODES_PER_GROUP(s) ((1 << 16) - EXT2_INODES_PER_BLOCK(s)) --#define EXT2_DESC_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_group_desc)) -- --/* -- * Constants relative to the data blocks -- */ --#define EXT2_NDIR_BLOCKS 12 --#define EXT2_IND_BLOCK EXT2_NDIR_BLOCKS --#define EXT2_DIND_BLOCK (EXT2_IND_BLOCK + 1) --#define EXT2_TIND_BLOCK (EXT2_DIND_BLOCK + 1) --#define EXT2_N_BLOCKS (EXT2_TIND_BLOCK + 1) -- --/* -- * Inode flags -- */ --#define EXT2_SECRM_FL 0x00000001 /* Secure deletion */ --#define EXT2_UNRM_FL 0x00000002 /* Undelete */ --#define EXT2_COMPR_FL 0x00000004 /* Compress file */ --#define EXT2_SYNC_FL 0x00000008 /* Synchronous updates */ --#define EXT2_IMMUTABLE_FL 0x00000010 /* Immutable file */ --#define EXT2_APPEND_FL 0x00000020 /* writes to file may only append */ --#define EXT2_NODUMP_FL 0x00000040 /* do not dump file */ --#define EXT2_NOATIME_FL 0x00000080 /* do not update atime */ --/* Reserved for compression usage... */ --#define EXT2_DIRTY_FL 0x00000100 --#define EXT2_COMPRBLK_FL 0x00000200 /* One or more compressed clusters */ --#define EXT2_NOCOMPR_FL 0x00000400 /* Access raw compressed data */ --#define EXT2_ECOMPR_FL 0x00000800 /* Compression error */ --/* End compression flags --- maybe not all used */ --#define EXT2_BTREE_FL 0x00001000 /* btree format dir */ --#define EXT2_INDEX_FL 0x00001000 /* hash-indexed directory */ --#define EXT2_IMAGIC_FL 0x00002000 --#define EXT3_JOURNAL_DATA_FL 0x00004000 /* file data should be journaled */ --#define EXT2_NOTAIL_FL 0x00008000 /* file tail should not be merged */ --#define EXT2_DIRSYNC_FL 0x00010000 /* Synchronous directory modifications */ --#define EXT2_TOPDIR_FL 0x00020000 /* Top of directory hierarchies*/ --#define EXT3_EXTENTS_FL 0x00080000 /* Inode uses extents */ --#define EXT2_RESERVED_FL 0x80000000 /* reserved for ext2 lib */ -- --#define EXT2_FL_USER_VISIBLE 0x0003DFFF /* User visible flags */ --#define EXT2_FL_USER_MODIFIABLE 0x000080FF /* User modifiable flags */ -- --/* -- * ioctl commands -- */ --#define EXT2_IOC_GETFLAGS _IOR('f', 1, long) --#define EXT2_IOC_SETFLAGS _IOW('f', 2, long) --#define EXT2_IOC_GETVERSION _IOR('v', 1, long) --#define EXT2_IOC_SETVERSION _IOW('v', 2, long) -- --/* -- * Structure of an inode on the disk -- */ --struct ext2_inode { -- uint16_t i_mode; /* File mode */ -- uint16_t i_uid; /* Low 16 bits of Owner Uid */ -- uint32_t i_size; /* Size in bytes */ -- uint32_t i_atime; /* Access time */ -- uint32_t i_ctime; /* Creation time */ -- uint32_t i_mtime; /* Modification time */ -- uint32_t i_dtime; /* Deletion Time */ -- uint16_t i_gid; /* Low 16 bits of Group Id */ -- uint16_t i_links_count; /* Links count */ -- uint32_t i_blocks; /* Blocks count */ -- uint32_t i_flags; /* File flags */ -- union { -- struct { -- uint32_t l_i_reserved1; -- } linux1; -- struct { -- uint32_t h_i_translator; -- } hurd1; -- struct { -- uint32_t m_i_reserved1; -- } masix1; -- } osd1; /* OS dependent 1 */ -- uint32_t i_block[EXT2_N_BLOCKS];/* Pointers to blocks */ -- uint32_t i_generation; /* File version (for NFS) */ -- uint32_t i_file_acl; /* File ACL */ -- uint32_t i_dir_acl; /* Directory ACL */ -- uint32_t i_faddr; /* Fragment address */ -- union { -- struct { -- uint8_t l_i_frag; /* Fragment number */ -- uint8_t l_i_fsize; /* Fragment size */ -- uint16_t i_pad1; -- uint16_t l_i_uid_high; /* these 2 fields */ -- uint16_t l_i_gid_high; /* were reserved2[0] */ -- uint32_t l_i_reserved2; -- } linux2; -- struct { -- uint8_t h_i_frag; /* Fragment number */ -- uint8_t h_i_fsize; /* Fragment size */ -- uint16_t h_i_mode_high; -- uint16_t h_i_uid_high; -- uint16_t h_i_gid_high; -- uint32_t h_i_author; -- } hurd2; -- struct { -- uint8_t m_i_frag; /* Fragment number */ -- uint8_t m_i_fsize; /* Fragment size */ -- uint16_t m_pad1; -- uint32_t m_i_reserved2[2]; -- } masix2; -- } osd2; /* OS dependent 2 */ --}; -- --/* -- * Permanent part of an large inode on the disk -- */ --struct ext2_inode_large { -- uint16_t i_mode; /* File mode */ -- uint16_t i_uid; /* Low 16 bits of Owner Uid */ -- uint32_t i_size; /* Size in bytes */ -- uint32_t i_atime; /* Access time */ -- uint32_t i_ctime; /* Creation time */ -- uint32_t i_mtime; /* Modification time */ -- uint32_t i_dtime; /* Deletion Time */ -- uint16_t i_gid; /* Low 16 bits of Group Id */ -- uint16_t i_links_count; /* Links count */ -- uint32_t i_blocks; /* Blocks count */ -- uint32_t i_flags; /* File flags */ -- union { -- struct { -- uint32_t l_i_reserved1; -- } linux1; -- struct { -- uint32_t h_i_translator; -- } hurd1; -- struct { -- uint32_t m_i_reserved1; -- } masix1; -- } osd1; /* OS dependent 1 */ -- uint32_t i_block[EXT2_N_BLOCKS];/* Pointers to blocks */ -- uint32_t i_generation; /* File version (for NFS) */ -- uint32_t i_file_acl; /* File ACL */ -- uint32_t i_dir_acl; /* Directory ACL */ -- uint32_t i_faddr; /* Fragment address */ -- union { -- struct { -- uint8_t l_i_frag; /* Fragment number */ -- uint8_t l_i_fsize; /* Fragment size */ -- uint16_t i_pad1; -- uint16_t l_i_uid_high; /* these 2 fields */ -- uint16_t l_i_gid_high; /* were reserved2[0] */ -- uint32_t l_i_reserved2; -- } linux2; -- struct { -- uint8_t h_i_frag; /* Fragment number */ -- uint8_t h_i_fsize; /* Fragment size */ -- uint16_t h_i_mode_high; -- uint16_t h_i_uid_high; -- uint16_t h_i_gid_high; -- uint32_t h_i_author; -- } hurd2; -- struct { -- uint8_t m_i_frag; /* Fragment number */ -- uint8_t m_i_fsize; /* Fragment size */ -- uint16_t m_pad1; -- uint32_t m_i_reserved2[2]; -- } masix2; -- } osd2; /* OS dependent 2 */ -- uint16_t i_extra_isize; -- uint16_t i_pad1; --}; -- --#define i_size_high i_dir_acl -- --/* -- * File system states -- */ --#define EXT2_VALID_FS 0x0001 /* Unmounted cleanly */ --#define EXT2_ERROR_FS 0x0002 /* Errors detected */ -- --/* -- * Mount flags -- */ --#define EXT2_MOUNT_CHECK 0x0001 /* Do mount-time checks */ --#define EXT2_MOUNT_GRPID 0x0004 /* Create files with directory's group */ --#define EXT2_MOUNT_DEBUG 0x0008 /* Some debugging messages */ --#define EXT2_MOUNT_ERRORS_CONT 0x0010 /* Continue on errors */ --#define EXT2_MOUNT_ERRORS_RO 0x0020 /* Remount fs ro on errors */ --#define EXT2_MOUNT_ERRORS_PANIC 0x0040 /* Panic on errors */ --#define EXT2_MOUNT_MINIX_DF 0x0080 /* Mimics the Minix statfs */ --#define EXT2_MOUNT_NO_UID32 0x0200 /* Disable 32-bit UIDs */ -- --#define clear_opt(o, opt) o &= ~EXT2_MOUNT_##opt --#define set_opt(o, opt) o |= EXT2_MOUNT_##opt --#define test_opt(sb, opt) (EXT2_SB(sb)->s_mount_opt & \ -- EXT2_MOUNT_##opt) --/* -- * Maximal mount counts between two filesystem checks -- */ --#define EXT2_DFL_MAX_MNT_COUNT 20 /* Allow 20 mounts */ --#define EXT2_DFL_CHECKINTERVAL 0 /* Don't use interval check */ -- --/* -- * Behaviour when detecting errors -- */ --#define EXT2_ERRORS_CONTINUE 1 /* Continue execution */ --#define EXT2_ERRORS_RO 2 /* Remount fs read-only */ --#define EXT2_ERRORS_PANIC 3 /* Panic */ --#define EXT2_ERRORS_DEFAULT EXT2_ERRORS_CONTINUE -- --/* -- * Structure of the super block -- */ --struct ext2_super_block { -- uint32_t s_inodes_count; /* Inodes count */ -- uint32_t s_blocks_count; /* Blocks count */ -- uint32_t s_r_blocks_count; /* Reserved blocks count */ -- uint32_t s_free_blocks_count; /* Free blocks count */ -- uint32_t s_free_inodes_count; /* Free inodes count */ -- uint32_t s_first_data_block; /* First Data Block */ -- uint32_t s_log_block_size; /* Block size */ -- int32_t s_log_frag_size; /* Fragment size */ -- uint32_t s_blocks_per_group; /* # Blocks per group */ -- uint32_t s_frags_per_group; /* # Fragments per group */ -- uint32_t s_inodes_per_group; /* # Inodes per group */ -- uint32_t s_mtime; /* Mount time */ -- uint32_t s_wtime; /* Write time */ -- uint16_t s_mnt_count; /* Mount count */ -- int16_t s_max_mnt_count; /* Maximal mount count */ -- uint16_t s_magic; /* Magic signature */ -- uint16_t s_state; /* File system state */ -- uint16_t s_errors; /* Behaviour when detecting errors */ -- uint16_t s_minor_rev_level; /* minor revision level */ -- uint32_t s_lastcheck; /* time of last check */ -- uint32_t s_checkinterval; /* max. time between checks */ -- uint32_t s_creator_os; /* OS */ -- uint32_t s_rev_level; /* Revision level */ -- uint16_t s_def_resuid; /* Default uid for reserved blocks */ -- uint16_t s_def_resgid; /* Default gid for reserved blocks */ -- /* -- * These fields are for EXT2_DYNAMIC_REV superblocks only. -- * -- * Note: the difference between the compatible feature set and -- * the incompatible feature set is that if there is a bit set -- * in the incompatible feature set that the kernel doesn't -- * know about, it should refuse to mount the filesystem. -- * -- * e2fsck's requirements are more strict; if it doesn't know -- * about a feature in either the compatible or incompatible -- * feature set, it must abort and not try to meddle with -- * things it doesn't understand... -- */ -- uint32_t s_first_ino; /* First non-reserved inode */ -- uint16_t s_inode_size; /* size of inode structure */ -- uint16_t s_block_group_nr; /* block group # of this superblock */ -- uint32_t s_feature_compat; /* compatible feature set */ -- uint32_t s_feature_incompat; /* incompatible feature set */ -- uint32_t s_feature_ro_compat; /* readonly-compatible feature set */ -- uint8_t s_uuid[16]; /* 128-bit uuid for volume */ -- char s_volume_name[16]; /* volume name */ -- char s_last_mounted[64]; /* directory where last mounted */ -- uint32_t s_algorithm_usage_bitmap; /* For compression */ -- /* -- * Performance hints. Directory preallocation should only -- * happen if the EXT2_FEATURE_COMPAT_DIR_PREALLOC flag is on. -- */ -- uint8_t s_prealloc_blocks; /* Nr of blocks to try to preallocate*/ -- uint8_t s_prealloc_dir_blocks; /* Nr to preallocate for dirs */ -- uint16_t s_reserved_gdt_blocks; /* Per group table for online growth */ -- /* -- * Journaling support valid if EXT2_FEATURE_COMPAT_HAS_JOURNAL set. -- */ -- uint8_t s_journal_uuid[16]; /* uuid of journal superblock */ -- uint32_t s_journal_inum; /* inode number of journal file */ -- uint32_t s_journal_dev; /* device number of journal file */ -- uint32_t s_last_orphan; /* start of list of inodes to delete */ -- uint32_t s_hash_seed[4]; /* HTREE hash seed */ -- uint8_t s_def_hash_version; /* Default hash version to use */ -- uint8_t s_jnl_backup_type; /* Default type of journal backup */ -- uint16_t s_reserved_word_pad; -- uint32_t s_default_mount_opts; -- uint32_t s_first_meta_bg; /* First metablock group */ -- uint32_t s_mkfs_time; /* When the filesystem was created */ -- uint32_t s_jnl_blocks[17]; /* Backup of the journal inode */ -- uint32_t s_reserved[172]; /* Padding to the end of the block */ --}; -- --/* -- * Codes for operating systems -- */ --#define EXT2_OS_LINUX 0 --#define EXT2_OS_HURD 1 --#define EXT2_OS_MASIX 2 --#define EXT2_OS_FREEBSD 3 --#define EXT2_OS_LITES 4 -- --/* -- * Revision levels -- */ --#define EXT2_GOOD_OLD_REV 0 /* The good old (original) format */ --#define EXT2_DYNAMIC_REV 1 /* V2 format w/ dynamic inode sizes */ -- --#define EXT2_CURRENT_REV EXT2_GOOD_OLD_REV --#define EXT2_MAX_SUPP_REV EXT2_DYNAMIC_REV -- --#define EXT2_GOOD_OLD_INODE_SIZE 128 -- --/* -- * Journal inode backup types -- */ --#define EXT3_JNL_BACKUP_BLOCKS 1 -- --/* -- * Feature set definitions -- */ -- --#define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ -- ( EXT2_SB(sb)->s_feature_compat & (mask) ) --#define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ -- ( EXT2_SB(sb)->s_feature_ro_compat & (mask) ) --#define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ -- ( EXT2_SB(sb)->s_feature_incompat & (mask) ) -- --#define EXT2_FEATURE_COMPAT_DIR_PREALLOC 0x0001 --#define EXT2_FEATURE_COMPAT_IMAGIC_INODES 0x0002 --#define EXT3_FEATURE_COMPAT_HAS_JOURNAL 0x0004 --#define EXT2_FEATURE_COMPAT_EXT_ATTR 0x0008 --#define EXT2_FEATURE_COMPAT_RESIZE_INODE 0x0010 --#define EXT2_FEATURE_COMPAT_DIR_INDEX 0x0020 -- --#define EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER 0x0001 --#define EXT2_FEATURE_RO_COMPAT_LARGE_FILE 0x0002 --/* #define EXT2_FEATURE_RO_COMPAT_BTREE_DIR 0x0004 not used */ -- --#define EXT2_FEATURE_INCOMPAT_COMPRESSION 0x0001 --#define EXT2_FEATURE_INCOMPAT_FILETYPE 0x0002 --#define EXT3_FEATURE_INCOMPAT_RECOVER 0x0004 /* Needs recovery */ --#define EXT3_FEATURE_INCOMPAT_JOURNAL_DEV 0x0008 /* Journal device */ --#define EXT2_FEATURE_INCOMPAT_META_BG 0x0010 --#define EXT3_FEATURE_INCOMPAT_EXTENTS 0x0040 -- -- --#define EXT2_FEATURE_COMPAT_SUPP 0 --#define EXT2_FEATURE_INCOMPAT_SUPP (EXT2_FEATURE_INCOMPAT_FILETYPE) --#define EXT2_FEATURE_RO_COMPAT_SUPP (EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER| \ -- EXT2_FEATURE_RO_COMPAT_LARGE_FILE| \ -- EXT2_FEATURE_RO_COMPAT_BTREE_DIR) -- --/* -- * Default values for user and/or group using reserved blocks -- */ --#define EXT2_DEF_RESUID 0 --#define EXT2_DEF_RESGID 0 -- --/* -- * Default mount options -- */ --#define EXT2_DEFM_DEBUG 0x0001 --#define EXT2_DEFM_BSDGROUPS 0x0002 --#define EXT2_DEFM_XATTR_USER 0x0004 --#define EXT2_DEFM_ACL 0x0008 --#define EXT2_DEFM_UID16 0x0010 --#define EXT3_DEFM_JMODE 0x0060 --#define EXT3_DEFM_JMODE_DATA 0x0020 --#define EXT3_DEFM_JMODE_ORDERED 0x0040 --#define EXT3_DEFM_JMODE_WBACK 0x0060 -- --/* -- * Structure of a directory entry -- */ --#define EXT2_NAME_LEN 255 -- --struct ext2_dir_entry { -- uint32_t inode; /* Inode number */ -- uint16_t rec_len; /* Directory entry length */ -- uint16_t name_len; /* Name length */ -- char name[EXT2_NAME_LEN]; /* File name */ --}; -- --/* -- * The new version of the directory entry. Since EXT2 structures are -- * stored in intel byte order, and the name_len field could never be -- * bigger than 255 chars, it's safe to reclaim the extra byte for the -- * file_type field. -- */ --struct ext2_dir_entry_2 { -- uint32_t inode; /* Inode number */ -- uint16_t rec_len; /* Directory entry length */ -- uint8_t name_len; /* Name length */ -- uint8_t file_type; -- char name[EXT2_NAME_LEN]; /* File name */ --}; -- --/* -- * Ext2 directory file types. Only the low 3 bits are used. The -- * other bits are reserved for now. -- */ --#define EXT2_FT_UNKNOWN 0 --#define EXT2_FT_REG_FILE 1 --#define EXT2_FT_DIR 2 --#define EXT2_FT_CHRDEV 3 --#define EXT2_FT_BLKDEV 4 --#define EXT2_FT_FIFO 5 --#define EXT2_FT_SOCK 6 --#define EXT2_FT_SYMLINK 7 -- --#define EXT2_FT_MAX 8 -- --/* -- * EXT2_DIR_PAD defines the directory entries boundaries -- * -- * NOTE: It must be a multiple of 4 -- */ --#define EXT2_DIR_PAD 4 --#define EXT2_DIR_ROUND (EXT2_DIR_PAD - 1) --#define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \ -- ~EXT2_DIR_ROUND) -- --#endif -diff --git a/e2fsprogs/e2fs_lib.h b/e2fsprogs/e2fs_lib.h -index 3905ee7..f2ae56f 100644 ---- a/e2fsprogs/e2fs_lib.h -+++ b/e2fsprogs/e2fs_lib.h -@@ -7,7 +7,7 @@ - */ - - /* Constants and structures */ --#include "e2fs_defs.h" -+#include "bb_e2fs_defs.h" - - PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN - -diff --git a/e2fsprogs/old_e2fsprogs/e2fsck.c b/e2fsprogs/old_e2fsprogs/e2fsck.c -index 8fffa7f..373e8ce 100644 ---- a/e2fsprogs/old_e2fsprogs/e2fsck.c -+++ b/e2fsprogs/old_e2fsprogs/e2fsck.c -@@ -11577,7 +11577,7 @@ static void check_resize_inode(e2fsck_t ctx) - * s_reserved_gdt_blocks must be zero. - */ - if (!(fs->super->s_feature_compat & -- EXT2_FEATURE_COMPAT_RESIZE_INODE)) { -+ EXT2_FEATURE_COMPAT_RESIZE_INO)) { - if (fs->super->s_reserved_gdt_blocks) { - pctx.num = fs->super->s_reserved_gdt_blocks; - if (fix_problem(ctx, PR_0_NONZERO_RESERVED_GDT_BLOCKS, -@@ -11593,7 +11593,7 @@ static void check_resize_inode(e2fsck_t ctx) - retval = ext2fs_read_inode(fs, EXT2_RESIZE_INO, &inode); - if (retval) { - if (fs->super->s_feature_compat & -- EXT2_FEATURE_COMPAT_RESIZE_INODE) -+ EXT2_FEATURE_COMPAT_RESIZE_INO) - ctx->flags |= E2F_FLAG_RESIZE_INODE; - return; - } -@@ -11603,7 +11603,7 @@ static void check_resize_inode(e2fsck_t ctx) - * the resize inode is cleared; then we're done. - */ - if (!(fs->super->s_feature_compat & -- EXT2_FEATURE_COMPAT_RESIZE_INODE)) { -+ EXT2_FEATURE_COMPAT_RESIZE_INO)) { - for (i=0; i < EXT2_N_BLOCKS; i++) { - if (inode.i_block[i]) - break; -diff --git a/e2fsprogs/old_e2fsprogs/e2p/feature.c b/e2fsprogs/old_e2fsprogs/e2p/feature.c -index b45754f..2102ed8 100644 ---- a/e2fsprogs/old_e2fsprogs/e2p/feature.c -+++ b/e2fsprogs/old_e2fsprogs/e2p/feature.c -@@ -34,7 +34,7 @@ static const struct feature feature_list[] = { - "ext_attr" }, - { E2P_FEATURE_COMPAT, EXT2_FEATURE_COMPAT_DIR_INDEX, - "dir_index" }, -- { E2P_FEATURE_COMPAT, EXT2_FEATURE_COMPAT_RESIZE_INODE, -+ { E2P_FEATURE_COMPAT, EXT2_FEATURE_COMPAT_RESIZE_INO, - "resize_inode" }, - { E2P_FEATURE_RO_INCOMPAT, EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER, - "sparse_super" }, -diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/ext2_fs.h b/e2fsprogs/old_e2fsprogs/ext2fs/ext2_fs.h -index 6f4f708..80ea2cb 100644 ---- a/e2fsprogs/old_e2fsprogs/ext2fs/ext2_fs.h -+++ b/e2fsprogs/old_e2fsprogs/ext2fs/ext2_fs.h -@@ -475,7 +475,7 @@ struct ext2_super_block { - #define EXT2_FEATURE_COMPAT_IMAGIC_INODES 0x0002 - #define EXT3_FEATURE_COMPAT_HAS_JOURNAL 0x0004 - #define EXT2_FEATURE_COMPAT_EXT_ATTR 0x0008 --#define EXT2_FEATURE_COMPAT_RESIZE_INODE 0x0010 -+#define EXT2_FEATURE_COMPAT_RESIZE_INO 0x0010 - #define EXT2_FEATURE_COMPAT_DIR_INDEX 0x0020 - - #define EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER 0x0001 -diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/ext2fs.h b/e2fsprogs/old_e2fsprogs/ext2fs/ext2fs.h -index 9f77201..39fb116 100644 ---- a/e2fsprogs/old_e2fsprogs/ext2fs/ext2fs.h -+++ b/e2fsprogs/old_e2fsprogs/ext2fs/ext2fs.h -@@ -383,7 +383,7 @@ typedef struct ext2_icount *ext2_icount_t; - #define EXT2_LIB_FEATURE_COMPAT_SUPP (EXT2_FEATURE_COMPAT_DIR_PREALLOC|\ - EXT2_FEATURE_COMPAT_IMAGIC_INODES|\ - EXT3_FEATURE_COMPAT_HAS_JOURNAL|\ -- EXT2_FEATURE_COMPAT_RESIZE_INODE|\ -+ EXT2_FEATURE_COMPAT_RESIZE_INO|\ - EXT2_FEATURE_COMPAT_DIR_INDEX|\ - EXT2_FEATURE_COMPAT_EXT_ATTR) - -diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/initialize.c b/e2fsprogs/old_e2fsprogs/ext2fs/initialize.c -index ef1d343..da2d151 100644 ---- a/e2fsprogs/old_e2fsprogs/ext2fs/initialize.c -+++ b/e2fsprogs/old_e2fsprogs/ext2fs/initialize.c -@@ -284,7 +284,7 @@ retry: - /* - * check the number of reserved group descriptor table blocks - */ -- if (super->s_feature_compat & EXT2_FEATURE_COMPAT_RESIZE_INODE) -+ if (super->s_feature_compat & EXT2_FEATURE_COMPAT_RESIZE_INO) - rsv_gdt = calc_reserved_gdt_blocks(fs); - else - rsv_gdt = 0; -diff --git a/e2fsprogs/old_e2fsprogs/mke2fs.c b/e2fsprogs/old_e2fsprogs/mke2fs.c -index 7555650..35d717a 100644 ---- a/e2fsprogs/old_e2fsprogs/mke2fs.c -+++ b/e2fsprogs/old_e2fsprogs/mke2fs.c -@@ -757,7 +757,7 @@ static void parse_extended_opts(struct ext2_super_block *sb_param, - - if (rsv_gdb > 0) { - sb_param->s_feature_compat |= -- EXT2_FEATURE_COMPAT_RESIZE_INODE; -+ EXT2_FEATURE_COMPAT_RESIZE_INO; - - sb_param->s_reserved_gdt_blocks = rsv_gdb; - } -@@ -778,7 +778,7 @@ static void parse_extended_opts(struct ext2_super_block *sb_param, - - static __u32 ok_features[3] = { - EXT3_FEATURE_COMPAT_HAS_JOURNAL | -- EXT2_FEATURE_COMPAT_RESIZE_INODE | -+ EXT2_FEATURE_COMPAT_RESIZE_INO | - EXT2_FEATURE_COMPAT_DIR_INDEX, /* Compat */ - EXT2_FEATURE_INCOMPAT_FILETYPE| /* Incompat */ - EXT3_FEATURE_INCOMPAT_JOURNAL_DEV| -@@ -1123,7 +1123,7 @@ static int PRS(int argc, char **argv) - /* Since sparse_super is the default, we would only have a problem - * here if it was explicitly disabled. - */ -- if ((param.s_feature_compat & EXT2_FEATURE_COMPAT_RESIZE_INODE) && -+ if ((param.s_feature_compat & EXT2_FEATURE_COMPAT_RESIZE_INO) && - !(param.s_feature_ro_compat&EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER)) { - bb_error_msg_and_die("reserved online resize blocks not supported " - "on non-sparse filesystem"); -@@ -1312,7 +1312,7 @@ int mke2fs_main (int argc, char **argv) - reserve_inodes(fs); - create_bad_block_inode(fs, bb_list); - if (fs->super->s_feature_compat & -- EXT2_FEATURE_COMPAT_RESIZE_INODE) { -+ EXT2_FEATURE_COMPAT_RESIZE_INO) { - retval = ext2fs_create_resize_inode(fs); - mke2fs_error_msg_and_die(retval, "reserve blocks for online resize"); - } -diff --git a/e2fsprogs/tune2fs.c b/e2fsprogs/tune2fs.c -index 841d58a..46a745e 100644 ---- a/e2fsprogs/tune2fs.c -+++ b/e2fsprogs/tune2fs.c -@@ -8,7 +8,7 @@ - */ - #include "libbb.h" - #include --#include "bb_linux_ext2_fs.h" -+#include "bb_e2fs_defs.h" - - // storage helpers - char BUG_wrong_field_size(void); -diff --git a/include/bb_e2fs_defs.h b/include/bb_e2fs_defs.h -new file mode 100644 -index 0000000..7974497 ---- /dev/null -+++ b/include/bb_e2fs_defs.h -@@ -0,0 +1,561 @@ -+/* vi: set sw=4 ts=4: */ -+/* -+ * linux/include/linux/ext2_fs.h -+ * -+ * Copyright (C) 1992, 1993, 1994, 1995 -+ * Remy Card (card@masi.ibp.fr) -+ * Laboratoire MASI - Institut Blaise Pascal -+ * Universite Pierre et Marie Curie (Paris VI) -+ * -+ * Copyright (C) 1991, 1992 Linus Torvalds -+ */ -+ -+#ifndef LINUX_EXT2_FS_H -+#define LINUX_EXT2_FS_H 1 -+ -+/* -+ * Special inode numbers -+ */ -+#define EXT2_BAD_INO 1 /* Bad blocks inode */ -+#define EXT2_ROOT_INO 2 /* Root inode */ -+#define EXT2_ACL_IDX_INO 3 /* ACL inode */ -+#define EXT2_ACL_DATA_INO 4 /* ACL inode */ -+#define EXT2_BOOT_LOADER_INO 5 /* Boot loader inode */ -+#define EXT2_UNDEL_DIR_INO 6 /* Undelete directory inode */ -+#define EXT2_RESIZE_INO 7 /* Reserved group descriptors inode */ -+#define EXT2_JOURNAL_INO 8 /* Journal inode */ -+ -+/* First non-reserved inode for old ext2 filesystems */ -+#define EXT2_GOOD_OLD_FIRST_INO 11 -+ -+/* -+ * The second extended file system magic number -+ */ -+#define EXT2_SUPER_MAGIC 0xEF53 -+ -+/* Assume that user mode programs are passing in an ext2fs superblock, not -+ * a kernel struct super_block. This will allow us to call the feature-test -+ * macros from user land. */ -+#define EXT2_SB(sb) (sb) -+ -+/* -+ * Maximal count of links to a file -+ */ -+#define EXT2_LINK_MAX 32000 -+ -+/* -+ * Macro-instructions used to manage several block sizes -+ */ -+#define EXT2_MIN_BLOCK_LOG_SIZE 10 /* 1024 */ -+#define EXT2_MAX_BLOCK_LOG_SIZE 16 /* 65536 */ -+#define EXT2_MIN_BLOCK_SIZE (1 << EXT2_MIN_BLOCK_LOG_SIZE) -+#define EXT2_MAX_BLOCK_SIZE (1 << EXT2_MAX_BLOCK_LOG_SIZE) -+#define EXT2_BLOCK_SIZE(s) (EXT2_MIN_BLOCK_SIZE << (s)->s_log_block_size) -+#define EXT2_BLOCK_SIZE_BITS(s) ((s)->s_log_block_size + 10) -+#define EXT2_INODE_SIZE(s) (((s)->s_rev_level == EXT2_GOOD_OLD_REV) ? \ -+ EXT2_GOOD_OLD_INODE_SIZE : (s)->s_inode_size) -+#define EXT2_FIRST_INO(s) (((s)->s_rev_level == EXT2_GOOD_OLD_REV) ? \ -+ EXT2_GOOD_OLD_FIRST_INO : (s)->s_first_ino) -+#define EXT2_ADDR_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof(uint32_t)) -+ -+/* -+ * Macro-instructions used to manage fragments -+ */ -+#define EXT2_MIN_FRAG_SIZE EXT2_MIN_BLOCK_SIZE -+#define EXT2_MAX_FRAG_SIZE EXT2_MAX_BLOCK_SIZE -+#define EXT2_MIN_FRAG_LOG_SIZE EXT2_MIN_BLOCK_LOG_SIZE -+#define EXT2_FRAG_SIZE(s) (EXT2_MIN_FRAG_SIZE << (s)->s_log_frag_size) -+#define EXT2_FRAGS_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / EXT2_FRAG_SIZE(s)) -+ -+/* -+ * ACL structures -+ */ -+struct ext2_acl_header { /* Header of Access Control Lists */ -+ uint32_t aclh_size; -+ uint32_t aclh_file_count; -+ uint32_t aclh_acle_count; -+ uint32_t aclh_first_acle; -+}; -+ -+struct ext2_acl_entry { /* Access Control List Entry */ -+ uint32_t acle_size; -+ uint16_t acle_perms; /* Access permissions */ -+ uint16_t acle_type; /* Type of entry */ -+ uint16_t acle_tag; /* User or group identity */ -+ uint16_t acle_pad1; -+ uint32_t acle_next; /* Pointer on next entry for the */ -+ /* same inode or on next free entry */ -+}; -+ -+/* -+ * Structure of a blocks group descriptor -+ */ -+struct ext2_group_desc { -+ uint32_t bg_block_bitmap; /* Blocks bitmap block */ -+ uint32_t bg_inode_bitmap; /* Inodes bitmap block */ -+ uint32_t bg_inode_table; /* Inodes table block */ -+ uint16_t bg_free_blocks_count; /* Free blocks count */ -+ uint16_t bg_free_inodes_count; /* Free inodes count */ -+ uint16_t bg_used_dirs_count; /* Directories count */ -+ uint16_t bg_pad; -+ uint32_t bg_reserved[3]; -+}; -+ -+/* -+ * Data structures used by the directory indexing feature -+ * -+ * Note: all of the multibyte integer fields are little endian. -+ */ -+ -+/* -+ * Note: dx_root_info is laid out so that if it should somehow get -+ * overlaid by a dirent the two low bits of the hash version will be -+ * zero. Therefore, the hash version mod 4 should never be 0. -+ * Sincerely, the paranoia department. -+ */ -+struct ext2_dx_root_info { -+ uint32_t reserved_zero; -+ uint8_t hash_version; /* 0 now, 1 at release */ -+ uint8_t info_length; /* 8 */ -+ uint8_t indirect_levels; -+ uint8_t unused_flags; -+}; -+ -+#define EXT2_HASH_LEGACY 0 -+#define EXT2_HASH_HALF_MD4 1 -+#define EXT2_HASH_TEA 2 -+ -+#define EXT2_HASH_FLAG_INCOMPAT 0x1 -+ -+struct ext2_dx_entry { -+ uint32_t hash; -+ uint32_t block; -+}; -+ -+struct ext2_dx_countlimit { -+ uint16_t limit; -+ uint16_t count; -+}; -+ -+ -+/* -+ * Macro-instructions used to manage group descriptors -+ */ -+#define EXT2_BLOCKS_PER_GROUP(s) (EXT2_SB(s)->s_blocks_per_group) -+#define EXT2_INODES_PER_GROUP(s) (EXT2_SB(s)->s_inodes_per_group) -+#define EXT2_INODES_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s)/EXT2_INODE_SIZE(s)) -+/* limits imposed by 16-bit value gd_free_{blocks,inode}_count */ -+#define EXT2_MAX_BLOCKS_PER_GROUP(s) ((1 << 16) - 8) -+#define EXT2_MAX_INODES_PER_GROUP(s) ((1 << 16) - EXT2_INODES_PER_BLOCK(s)) -+#define EXT2_DESC_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_group_desc)) -+ -+/* -+ * Constants relative to the data blocks -+ */ -+#define EXT2_NDIR_BLOCKS 12 -+#define EXT2_IND_BLOCK EXT2_NDIR_BLOCKS -+#define EXT2_DIND_BLOCK (EXT2_IND_BLOCK + 1) -+#define EXT2_TIND_BLOCK (EXT2_DIND_BLOCK + 1) -+#define EXT2_N_BLOCKS (EXT2_TIND_BLOCK + 1) -+ -+/* -+ * Inode flags -+ */ -+#define EXT2_SECRM_FL 0x00000001 /* Secure deletion */ -+#define EXT2_UNRM_FL 0x00000002 /* Undelete */ -+#define EXT2_COMPR_FL 0x00000004 /* Compress file */ -+#define EXT2_SYNC_FL 0x00000008 /* Synchronous updates */ -+#define EXT2_IMMUTABLE_FL 0x00000010 /* Immutable file */ -+#define EXT2_APPEND_FL 0x00000020 /* writes to file may only append */ -+#define EXT2_NODUMP_FL 0x00000040 /* do not dump file */ -+#define EXT2_NOATIME_FL 0x00000080 /* do not update atime */ -+/* Reserved for compression usage... */ -+#define EXT2_DIRTY_FL 0x00000100 -+#define EXT2_COMPRBLK_FL 0x00000200 /* One or more compressed clusters */ -+#define EXT2_NOCOMPR_FL 0x00000400 /* Access raw compressed data */ -+#define EXT2_ECOMPR_FL 0x00000800 /* Compression error */ -+/* End compression flags --- maybe not all used */ -+#define EXT2_BTREE_FL 0x00001000 /* btree format dir */ -+#define EXT2_INDEX_FL 0x00001000 /* hash-indexed directory */ -+#define EXT2_IMAGIC_FL 0x00002000 -+#define EXT3_JOURNAL_DATA_FL 0x00004000 /* file data should be journaled */ -+#define EXT2_NOTAIL_FL 0x00008000 /* file tail should not be merged */ -+#define EXT2_DIRSYNC_FL 0x00010000 /* Synchronous directory modifications */ -+#define EXT2_TOPDIR_FL 0x00020000 /* Top of directory hierarchies*/ -+#define EXT3_EXTENTS_FL 0x00080000 /* Inode uses extents */ -+#define EXT2_RESERVED_FL 0x80000000 /* reserved for ext2 lib */ -+ -+#define EXT2_FL_USER_VISIBLE 0x0003DFFF /* User visible flags */ -+#define EXT2_FL_USER_MODIFIABLE 0x000080FF /* User modifiable flags */ -+ -+/* -+ * ioctl commands -+ */ -+#define EXT2_IOC_GETFLAGS _IOR('f', 1, long) -+#define EXT2_IOC_SETFLAGS _IOW('f', 2, long) -+#define EXT2_IOC_GETVERSION _IOR('v', 1, long) -+#define EXT2_IOC_SETVERSION _IOW('v', 2, long) -+ -+/* -+ * Structure of an inode on the disk -+ */ -+struct ext2_inode { -+ uint16_t i_mode; /* File mode */ -+ uint16_t i_uid; /* Low 16 bits of Owner Uid */ -+ uint32_t i_size; /* Size in bytes */ -+ uint32_t i_atime; /* Access time */ -+ uint32_t i_ctime; /* Creation time */ -+ uint32_t i_mtime; /* Modification time */ -+ uint32_t i_dtime; /* Deletion Time */ -+ uint16_t i_gid; /* Low 16 bits of Group Id */ -+ uint16_t i_links_count; /* Links count */ -+ uint32_t i_blocks; /* Blocks count */ -+ uint32_t i_flags; /* File flags */ -+ union { -+ struct { -+ uint32_t l_i_reserved1; -+ } linux1; -+ struct { -+ uint32_t h_i_translator; -+ } hurd1; -+ struct { -+ uint32_t m_i_reserved1; -+ } masix1; -+ } osd1; /* OS dependent 1 */ -+ uint32_t i_block[EXT2_N_BLOCKS];/* Pointers to blocks */ -+ uint32_t i_generation; /* File version (for NFS) */ -+ uint32_t i_file_acl; /* File ACL */ -+ uint32_t i_dir_acl; /* Directory ACL */ -+ uint32_t i_faddr; /* Fragment address */ -+ union { -+ struct { -+ uint8_t l_i_frag; /* Fragment number */ -+ uint8_t l_i_fsize; /* Fragment size */ -+ uint16_t i_pad1; -+ uint16_t l_i_uid_high; /* these 2 fields */ -+ uint16_t l_i_gid_high; /* were reserved2[0] */ -+ uint32_t l_i_reserved2; -+ } linux2; -+ struct { -+ uint8_t h_i_frag; /* Fragment number */ -+ uint8_t h_i_fsize; /* Fragment size */ -+ uint16_t h_i_mode_high; -+ uint16_t h_i_uid_high; -+ uint16_t h_i_gid_high; -+ uint32_t h_i_author; -+ } hurd2; -+ struct { -+ uint8_t m_i_frag; /* Fragment number */ -+ uint8_t m_i_fsize; /* Fragment size */ -+ uint16_t m_pad1; -+ uint32_t m_i_reserved2[2]; -+ } masix2; -+ } osd2; /* OS dependent 2 */ -+}; -+ -+/* -+ * Permanent part of an large inode on the disk -+ */ -+struct ext2_inode_large { -+ uint16_t i_mode; /* File mode */ -+ uint16_t i_uid; /* Low 16 bits of Owner Uid */ -+ uint32_t i_size; /* Size in bytes */ -+ uint32_t i_atime; /* Access time */ -+ uint32_t i_ctime; /* Creation time */ -+ uint32_t i_mtime; /* Modification time */ -+ uint32_t i_dtime; /* Deletion Time */ -+ uint16_t i_gid; /* Low 16 bits of Group Id */ -+ uint16_t i_links_count; /* Links count */ -+ uint32_t i_blocks; /* Blocks count */ -+ uint32_t i_flags; /* File flags */ -+ union { -+ struct { -+ uint32_t l_i_reserved1; -+ } linux1; -+ struct { -+ uint32_t h_i_translator; -+ } hurd1; -+ struct { -+ uint32_t m_i_reserved1; -+ } masix1; -+ } osd1; /* OS dependent 1 */ -+ uint32_t i_block[EXT2_N_BLOCKS];/* Pointers to blocks */ -+ uint32_t i_generation; /* File version (for NFS) */ -+ uint32_t i_file_acl; /* File ACL */ -+ uint32_t i_dir_acl; /* Directory ACL */ -+ uint32_t i_faddr; /* Fragment address */ -+ union { -+ struct { -+ uint8_t l_i_frag; /* Fragment number */ -+ uint8_t l_i_fsize; /* Fragment size */ -+ uint16_t i_pad1; -+ uint16_t l_i_uid_high; /* these 2 fields */ -+ uint16_t l_i_gid_high; /* were reserved2[0] */ -+ uint32_t l_i_reserved2; -+ } linux2; -+ struct { -+ uint8_t h_i_frag; /* Fragment number */ -+ uint8_t h_i_fsize; /* Fragment size */ -+ uint16_t h_i_mode_high; -+ uint16_t h_i_uid_high; -+ uint16_t h_i_gid_high; -+ uint32_t h_i_author; -+ } hurd2; -+ struct { -+ uint8_t m_i_frag; /* Fragment number */ -+ uint8_t m_i_fsize; /* Fragment size */ -+ uint16_t m_pad1; -+ uint32_t m_i_reserved2[2]; -+ } masix2; -+ } osd2; /* OS dependent 2 */ -+ uint16_t i_extra_isize; -+ uint16_t i_pad1; -+}; -+ -+#define i_size_high i_dir_acl -+ -+/* -+ * File system states -+ */ -+#define EXT2_VALID_FS 0x0001 /* Unmounted cleanly */ -+#define EXT2_ERROR_FS 0x0002 /* Errors detected */ -+ -+/* -+ * Mount flags -+ */ -+#define EXT2_MOUNT_CHECK 0x0001 /* Do mount-time checks */ -+#define EXT2_MOUNT_GRPID 0x0004 /* Create files with directory's group */ -+#define EXT2_MOUNT_DEBUG 0x0008 /* Some debugging messages */ -+#define EXT2_MOUNT_ERRORS_CONT 0x0010 /* Continue on errors */ -+#define EXT2_MOUNT_ERRORS_RO 0x0020 /* Remount fs ro on errors */ -+#define EXT2_MOUNT_ERRORS_PANIC 0x0040 /* Panic on errors */ -+#define EXT2_MOUNT_MINIX_DF 0x0080 /* Mimics the Minix statfs */ -+#define EXT2_MOUNT_NO_UID32 0x0200 /* Disable 32-bit UIDs */ -+ -+#define clear_opt(o, opt) o &= ~EXT2_MOUNT_##opt -+#define set_opt(o, opt) o |= EXT2_MOUNT_##opt -+#define test_opt(sb, opt) (EXT2_SB(sb)->s_mount_opt & \ -+ EXT2_MOUNT_##opt) -+/* -+ * Maximal mount counts between two filesystem checks -+ */ -+#define EXT2_DFL_MAX_MNT_COUNT 20 /* Allow 20 mounts */ -+#define EXT2_DFL_CHECKINTERVAL 0 /* Don't use interval check */ -+ -+/* -+ * Behaviour when detecting errors -+ */ -+#define EXT2_ERRORS_CONTINUE 1 /* Continue execution */ -+#define EXT2_ERRORS_RO 2 /* Remount fs read-only */ -+#define EXT2_ERRORS_PANIC 3 /* Panic */ -+#define EXT2_ERRORS_DEFAULT EXT2_ERRORS_CONTINUE -+ -+/* -+ * Structure of the super block -+ */ -+struct ext2_super_block { -+ uint32_t s_inodes_count; /* Inodes count */ -+ uint32_t s_blocks_count; /* Blocks count */ -+ uint32_t s_r_blocks_count; /* Reserved blocks count */ -+ uint32_t s_free_blocks_count; /* Free blocks count */ -+ uint32_t s_free_inodes_count; /* Free inodes count */ -+ uint32_t s_first_data_block; /* First Data Block */ -+ uint32_t s_log_block_size; /* Block size */ -+ int32_t s_log_frag_size; /* Fragment size */ -+ uint32_t s_blocks_per_group; /* # Blocks per group */ -+ uint32_t s_frags_per_group; /* # Fragments per group */ -+ uint32_t s_inodes_per_group; /* # Inodes per group */ -+ uint32_t s_mtime; /* Mount time */ -+ uint32_t s_wtime; /* Write time */ -+ uint16_t s_mnt_count; /* Mount count */ -+ int16_t s_max_mnt_count; /* Maximal mount count */ -+ uint16_t s_magic; /* Magic signature */ -+ uint16_t s_state; /* File system state */ -+ uint16_t s_errors; /* Behaviour when detecting errors */ -+ uint16_t s_minor_rev_level; /* minor revision level */ -+ uint32_t s_lastcheck; /* time of last check */ -+ uint32_t s_checkinterval; /* max. time between checks */ -+ uint32_t s_creator_os; /* OS */ -+ uint32_t s_rev_level; /* Revision level */ -+ uint16_t s_def_resuid; /* Default uid for reserved blocks */ -+ uint16_t s_def_resgid; /* Default gid for reserved blocks */ -+ /* -+ * These fields are for EXT2_DYNAMIC_REV superblocks only. -+ * -+ * Note: the difference between the compatible feature set and -+ * the incompatible feature set is that if there is a bit set -+ * in the incompatible feature set that the kernel doesn't -+ * know about, it should refuse to mount the filesystem. -+ * -+ * e2fsck's requirements are more strict; if it doesn't know -+ * about a feature in either the compatible or incompatible -+ * feature set, it must abort and not try to meddle with -+ * things it doesn't understand... -+ */ -+ uint32_t s_first_ino; /* First non-reserved inode */ -+ uint16_t s_inode_size; /* size of inode structure */ -+ uint16_t s_block_group_nr; /* block group # of this superblock */ -+ uint32_t s_feature_compat; /* compatible feature set */ -+ uint32_t s_feature_incompat; /* incompatible feature set */ -+ uint32_t s_feature_ro_compat; /* readonly-compatible feature set */ -+ uint8_t s_uuid[16]; /* 128-bit uuid for volume */ -+ char s_volume_name[16]; /* volume name */ -+ char s_last_mounted[64]; /* directory where last mounted */ -+ uint32_t s_algorithm_usage_bitmap; /* For compression */ -+ /* -+ * Performance hints. Directory preallocation should only -+ * happen if the EXT2_FEATURE_COMPAT_DIR_PREALLOC flag is on. -+ */ -+ uint8_t s_prealloc_blocks; /* Nr of blocks to try to preallocate*/ -+ uint8_t s_prealloc_dir_blocks; /* Nr to preallocate for dirs */ -+ uint16_t s_reserved_gdt_blocks; /* Per group table for online growth */ -+ /* -+ * Journaling support valid if EXT2_FEATURE_COMPAT_HAS_JOURNAL set. -+ */ -+ uint8_t s_journal_uuid[16]; /* uuid of journal superblock */ -+ uint32_t s_journal_inum; /* inode number of journal file */ -+ uint32_t s_journal_dev; /* device number of journal file */ -+ uint32_t s_last_orphan; /* start of list of inodes to delete */ -+ uint32_t s_hash_seed[4]; /* HTREE hash seed */ -+ uint8_t s_def_hash_version; /* Default hash version to use */ -+ uint8_t s_jnl_backup_type; /* Default type of journal backup */ -+ uint16_t s_reserved_word_pad; -+ uint32_t s_default_mount_opts; -+ uint32_t s_first_meta_bg; /* First metablock group */ -+ uint32_t s_mkfs_time; /* When the filesystem was created */ -+ uint32_t s_jnl_blocks[17]; /* Backup of the journal inode */ -+ uint32_t s_reserved[172]; /* Padding to the end of the block */ -+}; -+ -+/* -+ * Codes for operating systems -+ */ -+#define EXT2_OS_LINUX 0 -+#define EXT2_OS_HURD 1 -+#define EXT2_OS_MASIX 2 -+#define EXT2_OS_FREEBSD 3 -+#define EXT2_OS_LITES 4 -+ -+/* -+ * Revision levels -+ */ -+#define EXT2_GOOD_OLD_REV 0 /* The good old (original) format */ -+#define EXT2_DYNAMIC_REV 1 /* V2 format w/ dynamic inode sizes */ -+ -+#define EXT2_CURRENT_REV EXT2_GOOD_OLD_REV -+#define EXT2_MAX_SUPP_REV EXT2_DYNAMIC_REV -+ -+#define EXT2_GOOD_OLD_INODE_SIZE 128 -+ -+/* -+ * Journal inode backup types -+ */ -+#define EXT3_JNL_BACKUP_BLOCKS 1 -+ -+/* -+ * Feature set definitions -+ */ -+ -+#define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ -+ ( EXT2_SB(sb)->s_feature_compat & (mask) ) -+#define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ -+ ( EXT2_SB(sb)->s_feature_ro_compat & (mask) ) -+#define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ -+ ( EXT2_SB(sb)->s_feature_incompat & (mask) ) -+ -+#define EXT2_FEATURE_COMPAT_DIR_PREALLOC 0x0001 -+#define EXT2_FEATURE_COMPAT_IMAGIC_INODES 0x0002 -+#define EXT3_FEATURE_COMPAT_HAS_JOURNAL 0x0004 -+#define EXT2_FEATURE_COMPAT_EXT_ATTR 0x0008 -+#define EXT2_FEATURE_COMPAT_RESIZE_INO 0x0010 -+#define EXT2_FEATURE_COMPAT_DIR_INDEX 0x0020 -+ -+#define EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER 0x0001 -+#define EXT2_FEATURE_RO_COMPAT_LARGE_FILE 0x0002 -+/* #define EXT2_FEATURE_RO_COMPAT_BTREE_DIR 0x0004 not used */ -+ -+#define EXT2_FEATURE_INCOMPAT_COMPRESSION 0x0001 -+#define EXT2_FEATURE_INCOMPAT_FILETYPE 0x0002 -+#define EXT3_FEATURE_INCOMPAT_RECOVER 0x0004 /* Needs recovery */ -+#define EXT3_FEATURE_INCOMPAT_JOURNAL_DEV 0x0008 /* Journal device */ -+#define EXT2_FEATURE_INCOMPAT_META_BG 0x0010 -+#define EXT3_FEATURE_INCOMPAT_EXTENTS 0x0040 -+ -+ -+#define EXT2_FEATURE_COMPAT_SUPP 0 -+#define EXT2_FEATURE_INCOMPAT_SUPP (EXT2_FEATURE_INCOMPAT_FILETYPE) -+#define EXT2_FEATURE_RO_COMPAT_SUPP (EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER| \ -+ EXT2_FEATURE_RO_COMPAT_LARGE_FILE| \ -+ EXT2_FEATURE_RO_COMPAT_BTREE_DIR) -+ -+/* -+ * Default values for user and/or group using reserved blocks -+ */ -+#define EXT2_DEF_RESUID 0 -+#define EXT2_DEF_RESGID 0 -+ -+/* -+ * Default mount options -+ */ -+#define EXT2_DEFM_DEBUG 0x0001 -+#define EXT2_DEFM_BSDGROUPS 0x0002 -+#define EXT2_DEFM_XATTR_USER 0x0004 -+#define EXT2_DEFM_ACL 0x0008 -+#define EXT2_DEFM_UID16 0x0010 -+#define EXT3_DEFM_JMODE 0x0060 -+#define EXT3_DEFM_JMODE_DATA 0x0020 -+#define EXT3_DEFM_JMODE_ORDERED 0x0040 -+#define EXT3_DEFM_JMODE_WBACK 0x0060 -+ -+/* -+ * Structure of a directory entry -+ */ -+#define EXT2_NAME_LEN 255 -+ -+struct ext2_dir_entry { -+ uint32_t inode; /* Inode number */ -+ uint16_t rec_len; /* Directory entry length */ -+ uint16_t name_len; /* Name length */ -+ char name[EXT2_NAME_LEN]; /* File name */ -+}; -+ -+/* -+ * The new version of the directory entry. Since EXT2 structures are -+ * stored in intel byte order, and the name_len field could never be -+ * bigger than 255 chars, it's safe to reclaim the extra byte for the -+ * file_type field. -+ */ -+struct ext2_dir_entry_2 { -+ uint32_t inode; /* Inode number */ -+ uint16_t rec_len; /* Directory entry length */ -+ uint8_t name_len; /* Name length */ -+ uint8_t file_type; -+ char name[EXT2_NAME_LEN]; /* File name */ -+}; -+ -+/* -+ * Ext2 directory file types. Only the low 3 bits are used. The -+ * other bits are reserved for now. -+ */ -+#define EXT2_FT_UNKNOWN 0 -+#define EXT2_FT_REG_FILE 1 -+#define EXT2_FT_DIR 2 -+#define EXT2_FT_CHRDEV 3 -+#define EXT2_FT_BLKDEV 4 -+#define EXT2_FT_FIFO 5 -+#define EXT2_FT_SOCK 6 -+#define EXT2_FT_SYMLINK 7 -+ -+#define EXT2_FT_MAX 8 -+ -+/* -+ * EXT2_DIR_PAD defines the directory entries boundaries -+ * -+ * NOTE: It must be a multiple of 4 -+ */ -+#define EXT2_DIR_PAD 4 -+#define EXT2_DIR_ROUND (EXT2_DIR_PAD - 1) -+#define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \ -+ ~EXT2_DIR_ROUND) -+ -+#endif -diff --git a/include/bb_linux_ext2_fs.h b/include/bb_linux_ext2_fs.h -deleted file mode 100644 -index fdc470b..0000000 ---- a/include/bb_linux_ext2_fs.h -+++ /dev/null -@@ -1,547 +0,0 @@ --/* -- * Work around linux/ext2_fs.h breakage. -- * linux/ext2_fs.h might be removed from future kernel header distribution. -- * See https://bugzilla.kernel.org/show_bug.cgi?id=42986 -- * -- * Licensed under GPLv2, see file LICENSE in this source tree. -- */ --#ifndef BB_LINUX_EXT2_FS_H --#define BB_LINUX_EXT2_FS_H -- --/* -- * From linux/magic.h -- */ -- --#define EXT2_SUPER_MAGIC 0xEF53 --#define EXT3_SUPER_MAGIC 0xEF53 --#define EXT4_SUPER_MAGIC 0xEF53 -- --/* -- * From linux/ext2_fs.h, with minor changes. -- */ -- --/* -- * Copyright (C) 1992, 1993, 1994, 1995 -- * Remy Card (card@masi.ibp.fr) -- * Laboratoire MASI - Institut Blaise Pascal -- * Universite Pierre et Marie Curie (Paris VI) -- * -- * from -- * -- * linux/include/linux/minix_fs.h -- * -- * Copyright (C) 1991, 1992 Linus Torvalds -- */ -- --/* -- * The second extended filesystem constants/structures -- */ -- --/* -- * Define EXT2_RESERVATION to reserve data blocks for expanding files -- */ --#define EXT2_DEFAULT_RESERVE_BLOCKS 8 --/*max window size: 1024(direct blocks) + 3([t,d]indirect blocks) */ --#define EXT2_MAX_RESERVE_BLOCKS 1027 --#define EXT2_RESERVE_WINDOW_NOT_ALLOCATED 0 -- --/* -- * Special inode numbers -- */ --#define EXT2_BAD_INO 1 /* Bad blocks inode */ --#define EXT2_ROOT_INO 2 /* Root inode */ --#define EXT2_BOOT_LOADER_INO 5 /* Boot loader inode */ --#define EXT2_UNDEL_DIR_INO 6 /* Undelete directory inode */ -- --/* First non-reserved inode for old ext2 filesystems */ --#define EXT2_GOOD_OLD_FIRST_INO 11 -- --/* Assume that user mode programs are passing in an ext2fs superblock, not -- * a kernel struct super_block. This will allow us to call the feature-test -- * macros from user land. */ --#define EXT2_SB(sb) (sb) -- --/* -- * Maximal count of links to a file -- */ --#define EXT2_LINK_MAX 32000 -- --/* -- * Macro-instructions used to manage several block sizes -- */ --#define EXT2_MIN_BLOCK_SIZE 1024 --#define EXT2_MAX_BLOCK_SIZE 4096 --#define EXT2_MIN_BLOCK_LOG_SIZE 10 --# define EXT2_BLOCK_SIZE(s) (EXT2_MIN_BLOCK_SIZE << (s)->s_log_block_size) --#define EXT2_ADDR_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (uint32_t)) --# define EXT2_BLOCK_SIZE_BITS(s) ((s)->s_log_block_size + 10) --#define EXT2_INODE_SIZE(s) (((s)->s_rev_level == EXT2_GOOD_OLD_REV) ? \ -- EXT2_GOOD_OLD_INODE_SIZE : \ -- (s)->s_inode_size) --#define EXT2_FIRST_INO(s) (((s)->s_rev_level == EXT2_GOOD_OLD_REV) ? \ -- EXT2_GOOD_OLD_FIRST_INO : \ -- (s)->s_first_ino) -- --/* -- * Macro-instructions used to manage fragments -- */ --#define EXT2_MIN_FRAG_SIZE 1024 --#define EXT2_MAX_FRAG_SIZE 4096 --#define EXT2_MIN_FRAG_LOG_SIZE 10 --# define EXT2_FRAG_SIZE(s) (EXT2_MIN_FRAG_SIZE << (s)->s_log_frag_size) --# define EXT2_FRAGS_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / EXT2_FRAG_SIZE(s)) -- --/* -- * Structure of a blocks group descriptor -- */ --struct ext2_group_desc --{ -- uint32_t bg_block_bitmap; /* Blocks bitmap block */ -- uint32_t bg_inode_bitmap; /* Inodes bitmap block */ -- uint32_t bg_inode_table; /* Inodes table block */ -- uint16_t bg_free_blocks_count; /* Free blocks count */ -- uint16_t bg_free_inodes_count; /* Free inodes count */ -- uint16_t bg_used_dirs_count; /* Directories count */ -- uint16_t bg_pad; -- uint32_t bg_reserved[3]; --}; -- --/* -- * Macro-instructions used to manage group descriptors -- */ --# define EXT2_BLOCKS_PER_GROUP(s) ((s)->s_blocks_per_group) --# define EXT2_DESC_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_group_desc)) --# define EXT2_INODES_PER_GROUP(s) ((s)->s_inodes_per_group) -- --/* -- * Constants relative to the data blocks -- */ --#define EXT2_NDIR_BLOCKS 12 --#define EXT2_IND_BLOCK EXT2_NDIR_BLOCKS --#define EXT2_DIND_BLOCK (EXT2_IND_BLOCK + 1) --#define EXT2_TIND_BLOCK (EXT2_DIND_BLOCK + 1) --#define EXT2_N_BLOCKS (EXT2_TIND_BLOCK + 1) -- --/* -- * Inode flags (GETFLAGS/SETFLAGS) -- */ --#define EXT2_SECRM_FL FS_SECRM_FL /* Secure deletion */ --#define EXT2_UNRM_FL FS_UNRM_FL /* Undelete */ --#define EXT2_COMPR_FL FS_COMPR_FL /* Compress file */ --#define EXT2_SYNC_FL FS_SYNC_FL /* Synchronous updates */ --#define EXT2_IMMUTABLE_FL FS_IMMUTABLE_FL /* Immutable file */ --#define EXT2_APPEND_FL FS_APPEND_FL /* writes to file may only append */ --#define EXT2_NODUMP_FL FS_NODUMP_FL /* do not dump file */ --#define EXT2_NOATIME_FL FS_NOATIME_FL /* do not update atime */ --/* Reserved for compression usage... */ --#define EXT2_DIRTY_FL FS_DIRTY_FL --#define EXT2_COMPRBLK_FL FS_COMPRBLK_FL /* One or more compressed clusters */ --#define EXT2_NOCOMP_FL FS_NOCOMP_FL /* Don't compress */ --#define EXT2_ECOMPR_FL FS_ECOMPR_FL /* Compression error */ --/* End compression flags --- maybe not all used */ --#define EXT2_BTREE_FL FS_BTREE_FL /* btree format dir */ --#define EXT2_INDEX_FL FS_INDEX_FL /* hash-indexed directory */ --#define EXT2_IMAGIC_FL FS_IMAGIC_FL /* AFS directory */ --#define EXT2_JOURNAL_DATA_FL FS_JOURNAL_DATA_FL /* Reserved for ext3 */ --#define EXT2_NOTAIL_FL FS_NOTAIL_FL /* file tail should not be merged */ --#define EXT2_DIRSYNC_FL FS_DIRSYNC_FL /* dirsync behaviour (directories only) */ --#define EXT2_TOPDIR_FL FS_TOPDIR_FL /* Top of directory hierarchies*/ --#define EXT2_RESERVED_FL FS_RESERVED_FL /* reserved for ext2 lib */ -- --#define EXT2_FL_USER_VISIBLE FS_FL_USER_VISIBLE /* User visible flags */ --#define EXT2_FL_USER_MODIFIABLE FS_FL_USER_MODIFIABLE /* User modifiable flags */ -- --/* Flags that should be inherited by new inodes from their parent. */ --#define EXT2_FL_INHERITED (EXT2_SECRM_FL | EXT2_UNRM_FL | EXT2_COMPR_FL |\ -- EXT2_SYNC_FL | EXT2_IMMUTABLE_FL | EXT2_APPEND_FL |\ -- EXT2_NODUMP_FL | EXT2_NOATIME_FL | EXT2_COMPRBLK_FL|\ -- EXT2_NOCOMP_FL | EXT2_JOURNAL_DATA_FL |\ -- EXT2_NOTAIL_FL | EXT2_DIRSYNC_FL) -- --/* Flags that are appropriate for regular files (all but dir-specific ones). */ --#define EXT2_REG_FLMASK (~(EXT2_DIRSYNC_FL | EXT2_TOPDIR_FL)) -- --/* Flags that are appropriate for non-directories/regular files. */ --#define EXT2_OTHER_FLMASK (EXT2_NODUMP_FL | EXT2_NOATIME_FL) -- --/* Mask out flags that are inappropriate for the given type of inode. */ --static inline uint32_t ext2_mask_flags(mode_t mode, uint32_t flags) --{ -- if (S_ISDIR(mode)) -- return flags; -- else if (S_ISREG(mode)) -- return flags & EXT2_REG_FLMASK; -- else -- return flags & EXT2_OTHER_FLMASK; --} -- --/* -- * ioctl commands -- */ --#define EXT2_IOC_GETFLAGS FS_IOC_GETFLAGS --#define EXT2_IOC_SETFLAGS FS_IOC_SETFLAGS --#define EXT2_IOC_GETVERSION FS_IOC_GETVERSION --#define EXT2_IOC_SETVERSION FS_IOC_SETVERSION --#define EXT2_IOC_GETRSVSZ _IOR('f', 5, long) --#define EXT2_IOC_SETRSVSZ _IOW('f', 6, long) -- --/* -- * ioctl commands in 32 bit emulation -- */ --#define EXT2_IOC32_GETFLAGS FS_IOC32_GETFLAGS --#define EXT2_IOC32_SETFLAGS FS_IOC32_SETFLAGS --#define EXT2_IOC32_GETVERSION FS_IOC32_GETVERSION --#define EXT2_IOC32_SETVERSION FS_IOC32_SETVERSION -- --/* -- * Structure of an inode on the disk -- */ --struct ext2_inode { -- uint16_t i_mode; /* File mode */ -- uint16_t i_uid; /* Low 16 bits of Owner Uid */ -- uint32_t i_size; /* Size in bytes */ -- uint32_t i_atime; /* Access time */ -- uint32_t i_ctime; /* Creation time */ -- uint32_t i_mtime; /* Modification time */ -- uint32_t i_dtime; /* Deletion Time */ -- uint16_t i_gid; /* Low 16 bits of Group Id */ -- uint16_t i_links_count; /* Links count */ -- uint32_t i_blocks; /* Blocks count */ -- uint32_t i_flags; /* File flags */ -- union { -- struct { -- uint32_t l_i_reserved1; -- } linux1; -- struct { -- uint32_t h_i_translator; -- } hurd1; -- struct { -- uint32_t m_i_reserved1; -- } masix1; -- } osd1; /* OS dependent 1 */ -- uint32_t i_block[EXT2_N_BLOCKS];/* Pointers to blocks */ -- uint32_t i_generation; /* File version (for NFS) */ -- uint32_t i_file_acl; /* File ACL */ -- uint32_t i_dir_acl; /* Directory ACL */ -- uint32_t i_faddr; /* Fragment address */ -- union { -- struct { -- uint8_t l_i_frag; /* Fragment number */ -- uint8_t l_i_fsize; /* Fragment size */ -- uint16_t i_pad1; -- uint16_t l_i_uid_high; /* these 2 fields */ -- uint16_t l_i_gid_high; /* were reserved2[0] */ -- uint32_t l_i_reserved2; -- } linux2; -- struct { -- uint8_t h_i_frag; /* Fragment number */ -- uint8_t h_i_fsize; /* Fragment size */ -- uint16_t h_i_mode_high; -- uint16_t h_i_uid_high; -- uint16_t h_i_gid_high; -- uint32_t h_i_author; -- } hurd2; -- struct { -- uint8_t m_i_frag; /* Fragment number */ -- uint8_t m_i_fsize; /* Fragment size */ -- uint16_t m_pad1; -- uint32_t m_i_reserved2[2]; -- } masix2; -- } osd2; /* OS dependent 2 */ --}; -- --#define i_size_high i_dir_acl -- --#if defined(__KERNEL__) || defined(__linux__) --#define i_reserved1 osd1.linux1.l_i_reserved1 --#define i_frag osd2.linux2.l_i_frag --#define i_fsize osd2.linux2.l_i_fsize --#define i_uid_low i_uid --#define i_gid_low i_gid --#define i_uid_high osd2.linux2.l_i_uid_high --#define i_gid_high osd2.linux2.l_i_gid_high --#define i_reserved2 osd2.linux2.l_i_reserved2 --#endif -- --#ifdef __hurd__ --#define i_translator osd1.hurd1.h_i_translator --#define i_frag osd2.hurd2.h_i_frag --#define i_fsize osd2.hurd2.h_i_fsize --#define i_uid_high osd2.hurd2.h_i_uid_high --#define i_gid_high osd2.hurd2.h_i_gid_high --#define i_author osd2.hurd2.h_i_author --#endif -- --#ifdef __masix__ --#define i_reserved1 osd1.masix1.m_i_reserved1 --#define i_frag osd2.masix2.m_i_frag --#define i_fsize osd2.masix2.m_i_fsize --#define i_reserved2 osd2.masix2.m_i_reserved2 --#endif -- --/* -- * File system states -- */ --#define EXT2_VALID_FS 0x0001 /* Unmounted cleanly */ --#define EXT2_ERROR_FS 0x0002 /* Errors detected */ -- --/* -- * Mount flags -- */ --#define EXT2_MOUNT_CHECK 0x000001 /* Do mount-time checks */ --#define EXT2_MOUNT_OLDALLOC 0x000002 /* Don't use the new Orlov allocator */ --#define EXT2_MOUNT_GRPID 0x000004 /* Create files with directory's group */ --#define EXT2_MOUNT_DEBUG 0x000008 /* Some debugging messages */ --#define EXT2_MOUNT_ERRORS_CONT 0x000010 /* Continue on errors */ --#define EXT2_MOUNT_ERRORS_RO 0x000020 /* Remount fs ro on errors */ --#define EXT2_MOUNT_ERRORS_PANIC 0x000040 /* Panic on errors */ --#define EXT2_MOUNT_MINIX_DF 0x000080 /* Mimics the Minix statfs */ --#define EXT2_MOUNT_NOBH 0x000100 /* No buffer_heads */ --#define EXT2_MOUNT_NO_UID32 0x000200 /* Disable 32-bit UIDs */ --#define EXT2_MOUNT_XATTR_USER 0x004000 /* Extended user attributes */ --#define EXT2_MOUNT_POSIX_ACL 0x008000 /* POSIX Access Control Lists */ --#define EXT2_MOUNT_XIP 0x010000 /* Execute in place */ --#define EXT2_MOUNT_USRQUOTA 0x020000 /* user quota */ --#define EXT2_MOUNT_GRPQUOTA 0x040000 /* group quota */ --#define EXT2_MOUNT_RESERVATION 0x080000 /* Preallocation */ -- -- --#define clear_opt(o, opt) o &= ~EXT2_MOUNT_##opt --#define set_opt(o, opt) o |= EXT2_MOUNT_##opt --#define test_opt(sb, opt) (EXT2_SB(sb)->s_mount_opt & \ -- EXT2_MOUNT_##opt) --/* -- * Maximal mount counts between two filesystem checks -- */ --#define EXT2_DFL_MAX_MNT_COUNT 20 /* Allow 20 mounts */ --#define EXT2_DFL_CHECKINTERVAL 0 /* Don't use interval check */ -- --/* -- * Behaviour when detecting errors -- */ --#define EXT2_ERRORS_CONTINUE 1 /* Continue execution */ --#define EXT2_ERRORS_RO 2 /* Remount fs read-only */ --#define EXT2_ERRORS_PANIC 3 /* Panic */ --#define EXT2_ERRORS_DEFAULT EXT2_ERRORS_CONTINUE -- --/* -- * Structure of the super block -- */ --struct ext2_super_block { -- uint32_t s_inodes_count; /* Inodes count */ -- uint32_t s_blocks_count; /* Blocks count */ -- uint32_t s_r_blocks_count; /* Reserved blocks count */ -- uint32_t s_free_blocks_count; /* Free blocks count */ -- uint32_t s_free_inodes_count; /* Free inodes count */ -- uint32_t s_first_data_block; /* First Data Block */ -- uint32_t s_log_block_size; /* Block size */ -- uint32_t s_log_frag_size; /* Fragment size */ -- uint32_t s_blocks_per_group; /* # Blocks per group */ -- uint32_t s_frags_per_group; /* # Fragments per group */ -- uint32_t s_inodes_per_group; /* # Inodes per group */ -- uint32_t s_mtime; /* Mount time */ -- uint32_t s_wtime; /* Write time */ -- uint16_t s_mnt_count; /* Mount count */ -- uint16_t s_max_mnt_count; /* Maximal mount count */ -- uint16_t s_magic; /* Magic signature */ -- uint16_t s_state; /* File system state */ -- uint16_t s_errors; /* Behaviour when detecting errors */ -- uint16_t s_minor_rev_level; /* minor revision level */ -- uint32_t s_lastcheck; /* time of last check */ -- uint32_t s_checkinterval; /* max. time between checks */ -- uint32_t s_creator_os; /* OS */ -- uint32_t s_rev_level; /* Revision level */ -- uint16_t s_def_resuid; /* Default uid for reserved blocks */ -- uint16_t s_def_resgid; /* Default gid for reserved blocks */ -- /* -- * These fields are for EXT2_DYNAMIC_REV superblocks only. -- * -- * Note: the difference between the compatible feature set and -- * the incompatible feature set is that if there is a bit set -- * in the incompatible feature set that the kernel doesn't -- * know about, it should refuse to mount the filesystem. -- * -- * e2fsck's requirements are more strict; if it doesn't know -- * about a feature in either the compatible or incompatible -- * feature set, it must abort and not try to meddle with -- * things it doesn't understand... -- */ -- uint32_t s_first_ino; /* First non-reserved inode */ -- uint16_t s_inode_size; /* size of inode structure */ -- uint16_t s_block_group_nr; /* block group # of this superblock */ -- uint32_t s_feature_compat; /* compatible feature set */ -- uint32_t s_feature_incompat; /* incompatible feature set */ -- uint32_t s_feature_ro_compat; /* readonly-compatible feature set */ -- uint8_t s_uuid[16]; /* 128-bit uuid for volume */ -- char s_volume_name[16]; /* volume name */ -- char s_last_mounted[64]; /* directory where last mounted */ -- uint32_t s_algorithm_usage_bitmap; /* For compression */ -- /* -- * Performance hints. Directory preallocation should only -- * happen if the EXT2_COMPAT_PREALLOC flag is on. -- */ -- uint8_t s_prealloc_blocks; /* Nr of blocks to try to preallocate*/ -- uint8_t s_prealloc_dir_blocks; /* Nr to preallocate for dirs */ -- uint16_t s_padding1; -- /* -- * Journaling support valid if EXT3_FEATURE_COMPAT_HAS_JOURNAL set. -- */ -- uint8_t s_journal_uuid[16]; /* uuid of journal superblock */ -- uint32_t s_journal_inum; /* inode number of journal file */ -- uint32_t s_journal_dev; /* device number of journal file */ -- uint32_t s_last_orphan; /* start of list of inodes to delete */ -- uint32_t s_hash_seed[4]; /* HTREE hash seed */ -- uint8_t s_def_hash_version; /* Default hash version to use */ -- uint8_t s_reserved_char_pad; -- uint16_t s_reserved_word_pad; -- uint32_t s_default_mount_opts; -- uint32_t s_first_meta_bg; /* First metablock block group */ -- uint32_t s_reserved[190]; /* Padding to the end of the block */ --}; -- --/* -- * Codes for operating systems -- */ --#define EXT2_OS_LINUX 0 --#define EXT2_OS_HURD 1 --#define EXT2_OS_MASIX 2 --#define EXT2_OS_FREEBSD 3 --#define EXT2_OS_LITES 4 -- --/* -- * Revision levels -- */ --#define EXT2_GOOD_OLD_REV 0 /* The good old (original) format */ --#define EXT2_DYNAMIC_REV 1 /* V2 format w/ dynamic inode sizes */ -- --#define EXT2_CURRENT_REV EXT2_GOOD_OLD_REV --#define EXT2_MAX_SUPP_REV EXT2_DYNAMIC_REV -- --#define EXT2_GOOD_OLD_INODE_SIZE 128 -- --/* -- * Feature set definitions -- */ -- --#define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ -- ( EXT2_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) ) --#define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ -- ( EXT2_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask) ) --#define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ -- ( EXT2_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask) ) --#define EXT2_SET_COMPAT_FEATURE(sb,mask) \ -- EXT2_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) --#define EXT2_SET_RO_COMPAT_FEATURE(sb,mask) \ -- EXT2_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32(mask) --#define EXT2_SET_INCOMPAT_FEATURE(sb,mask) \ -- EXT2_SB(sb)->s_es->s_feature_incompat |= cpu_to_le32(mask) --#define EXT2_CLEAR_COMPAT_FEATURE(sb,mask) \ -- EXT2_SB(sb)->s_es->s_feature_compat &= ~cpu_to_le32(mask) --#define EXT2_CLEAR_RO_COMPAT_FEATURE(sb,mask) \ -- EXT2_SB(sb)->s_es->s_feature_ro_compat &= ~cpu_to_le32(mask) --#define EXT2_CLEAR_INCOMPAT_FEATURE(sb,mask) \ -- EXT2_SB(sb)->s_es->s_feature_incompat &= ~cpu_to_le32(mask) -- --#define EXT2_FEATURE_COMPAT_DIR_PREALLOC 0x0001 --#define EXT2_FEATURE_COMPAT_IMAGIC_INODES 0x0002 --#define EXT3_FEATURE_COMPAT_HAS_JOURNAL 0x0004 --#define EXT2_FEATURE_COMPAT_EXT_ATTR 0x0008 --#define EXT2_FEATURE_COMPAT_RESIZE_INO 0x0010 --#define EXT2_FEATURE_COMPAT_DIR_INDEX 0x0020 --#define EXT2_FEATURE_COMPAT_ANY 0xffffffff -- --#define EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER 0x0001 --#define EXT2_FEATURE_RO_COMPAT_LARGE_FILE 0x0002 --#define EXT2_FEATURE_RO_COMPAT_BTREE_DIR 0x0004 --#define EXT2_FEATURE_RO_COMPAT_ANY 0xffffffff -- --#define EXT2_FEATURE_INCOMPAT_COMPRESSION 0x0001 --#define EXT2_FEATURE_INCOMPAT_FILETYPE 0x0002 --#define EXT3_FEATURE_INCOMPAT_RECOVER 0x0004 --#define EXT3_FEATURE_INCOMPAT_JOURNAL_DEV 0x0008 --#define EXT2_FEATURE_INCOMPAT_META_BG 0x0010 --#define EXT2_FEATURE_INCOMPAT_ANY 0xffffffff -- --#define EXT2_FEATURE_COMPAT_SUPP EXT2_FEATURE_COMPAT_EXT_ATTR --#define EXT2_FEATURE_INCOMPAT_SUPP (EXT2_FEATURE_INCOMPAT_FILETYPE| \ -- EXT2_FEATURE_INCOMPAT_META_BG) --#define EXT2_FEATURE_RO_COMPAT_SUPP (EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER| \ -- EXT2_FEATURE_RO_COMPAT_LARGE_FILE| \ -- EXT2_FEATURE_RO_COMPAT_BTREE_DIR) --#define EXT2_FEATURE_RO_COMPAT_UNSUPPORTED ~EXT2_FEATURE_RO_COMPAT_SUPP --#define EXT2_FEATURE_INCOMPAT_UNSUPPORTED ~EXT2_FEATURE_INCOMPAT_SUPP -- --/* -- * Default values for user and/or group using reserved blocks -- */ --#define EXT2_DEF_RESUID 0 --#define EXT2_DEF_RESGID 0 -- --/* -- * Default mount options -- */ --#define EXT2_DEFM_DEBUG 0x0001 --#define EXT2_DEFM_BSDGROUPS 0x0002 --#define EXT2_DEFM_XATTR_USER 0x0004 --#define EXT2_DEFM_ACL 0x0008 --#define EXT2_DEFM_UID16 0x0010 -- /* Not used by ext2, but reserved for use by ext3 */ --#define EXT3_DEFM_JMODE 0x0060 --#define EXT3_DEFM_JMODE_DATA 0x0020 --#define EXT3_DEFM_JMODE_ORDERED 0x0040 --#define EXT3_DEFM_JMODE_WBACK 0x0060 -- --/* -- * Structure of a directory entry -- */ --#define EXT2_NAME_LEN 255 -- --struct ext2_dir_entry { -- uint32_t inode; /* Inode number */ -- uint16_t rec_len; /* Directory entry length */ -- uint16_t name_len; /* Name length */ -- char name[EXT2_NAME_LEN]; /* File name */ --}; -- --/* -- * The new version of the directory entry. Since EXT2 structures are -- * stored in intel byte order, and the name_len field could never be -- * bigger than 255 chars, it's safe to reclaim the extra byte for the -- * file_type field. -- */ --struct ext2_dir_entry_2 { -- uint32_t inode; /* Inode number */ -- uint16_t rec_len; /* Directory entry length */ -- uint8_t name_len; /* Name length */ -- uint8_t file_type; -- char name[EXT2_NAME_LEN]; /* File name */ --}; -- --/* -- * Ext2 directory file types. Only the low 3 bits are used. The -- * other bits are reserved for now. -- */ --enum { -- EXT2_FT_UNKNOWN = 0, -- EXT2_FT_REG_FILE = 1, -- EXT2_FT_DIR = 2, -- EXT2_FT_CHRDEV = 3, -- EXT2_FT_BLKDEV = 4, -- EXT2_FT_FIFO = 5, -- EXT2_FT_SOCK = 6, -- EXT2_FT_SYMLINK = 7, -- EXT2_FT_MAX --}; -- --/* -- * EXT2_DIR_PAD defines the directory entries boundaries -- * -- * NOTE: It must be a multiple of 4 -- */ --#define EXT2_DIR_PAD 4 --#define EXT2_DIR_ROUND (EXT2_DIR_PAD - 1) --#define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \ -- ~EXT2_DIR_ROUND) --#define EXT2_MAX_REC_LEN ((1<<16)-1) -- --#endif -diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c -index 2d9d720..69b25c9 100644 ---- a/util-linux/mkfs_ext2.c -+++ b/util-linux/mkfs_ext2.c -@@ -48,7 +48,7 @@ - - #include "libbb.h" - #include --#include "bb_linux_ext2_fs.h" -+#include "bb_e2fs_defs.h" - - #define ENABLE_FEATURE_MKFS_EXT2_RESERVED_GDT 0 - #define ENABLE_FEATURE_MKFS_EXT2_DIR_INDEX 1 --- -1.7.9.5 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0003-ifupdown-remove-interface-from-state_list-if-iface_u.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0003-ifupdown-remove-interface-from-state_list-if-iface_u.patch deleted file mode 100644 index 2f96179..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0003-ifupdown-remove-interface-from-state_list-if-iface_u.patch +++ /dev/null @@ -1,31 +0,0 @@ -From a7b406ba64b7a4d9c9610726cb72568fc9848f5d Mon Sep 17 00:00:00 2001 -From: Lauri Hintsala -Date: Wed, 14 Dec 2011 16:49:58 +0200 -Subject: [PATCH 03/10] ifupdown: remove interface from state_list if iface_up - fails - -Fix the issue where interface is set to the configured state even if -configuration has failed. Add error check to state setting logic. - -Signed-off-by: Lauri Hintsala -Signed-off-by: Denys Vlasenko ---- - networking/ifupdown.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/networking/ifupdown.c b/networking/ifupdown.c -index 5946323..9c2cad2 100644 ---- a/networking/ifupdown.c -+++ b/networking/ifupdown.c -@@ -1311,7 +1311,7 @@ int ifupdown_main(int argc UNUSED_PARAM, char **argv) - llist_t *state_list = read_iface_state(); - llist_t *iface_state = find_iface_state(state_list, iface); - -- if (cmds == iface_up) { -+ if (cmds == iface_up && !any_failures) { - char * const newiface = xasprintf("%s=%s", iface, liface); - if (iface_state == NULL) { - llist_add_to_end(&state_list, newiface); --- -1.7.10.4 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0004-ifupdown-support-metric-for-static-default-gw.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0004-ifupdown-support-metric-for-static-default-gw.patch deleted file mode 100644 index d9c14aa..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0004-ifupdown-support-metric-for-static-default-gw.patch +++ /dev/null @@ -1,64 +0,0 @@ -From fecb0cbff5ca703f8fc00a8e0e93f1f2e3ae942b Mon Sep 17 00:00:00 2001 -From: Natanael Copa -Date: Fri, 17 Feb 2012 19:36:26 +0000 -Subject: [PATCH 04/10] ifupdown: support metric for static default gw - -This is useful when you have multiple ISPs with failover. It allows -setting the priority of the static gateway and makes it possible -to specify multiple static gateways. - -The ubuntu ifupdown supports it. - -function old new delta -.rodata 116725 116797 +72 ------------------------------------------------------------------------------- -(add/remove: 0/0 grow/shrink: 1/0 up/down: 72/0) Total: 72 bytes - text data bss dec hex filename - 953343 7313 8984 969640 ecba8 busybox_old - 953415 7313 8984 969712 ecbf0 busybox_unstripped - -Signed-off-by: Natanael Copa -Signed-off-by: Denys Vlasenko ---- - networking/ifupdown.c | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/networking/ifupdown.c b/networking/ifupdown.c -index 9c2cad2..9f49619 100644 ---- a/networking/ifupdown.c -+++ b/networking/ifupdown.c -@@ -403,11 +403,11 @@ static int FAST_FUNC static_up6(struct interface_defn_t *ifd, execfn *exec) - result = execute("ip addr add %address%/%netmask% dev %iface%[[ label %label%]]", ifd, exec); - result += execute("ip link set[[ mtu %mtu%]][[ addr %hwaddress%]] %iface% up", ifd, exec); - /* Was: "[[ ip ....%gateway% ]]". Removed extra spaces w/o checking */ -- result += execute("[[ip route add ::/0 via %gateway%]]", ifd, exec); -+ result += execute("[[ip route add ::/0 via %gateway%]][[ prio %metric%]]", ifd, exec); - # else - result = execute("ifconfig %iface%[[ media %media%]][[ hw %hwaddress%]][[ mtu %mtu%]] up", ifd, exec); - result += execute("ifconfig %iface% add %address%/%netmask%", ifd, exec); -- result += execute("[[route -A inet6 add ::/0 gw %gateway%]]", ifd, exec); -+ result += execute("[[route -A inet6 add ::/0 gw %gateway%[[ metric %metric%]]]]", ifd, exec); - # endif - return ((result == 3) ? 3 : 0); - } -@@ -490,7 +490,7 @@ static int FAST_FUNC static_up(struct interface_defn_t *ifd, execfn *exec) - result = execute("ip addr add %address%/%bnmask%[[ broadcast %broadcast%]] " - "dev %iface%[[ peer %pointopoint%]][[ label %label%]]", ifd, exec); - result += execute("ip link set[[ mtu %mtu%]][[ addr %hwaddress%]] %iface% up", ifd, exec); -- result += execute("[[ip route add default via %gateway% dev %iface%]]", ifd, exec); -+ result += execute("[[ip route add default via %gateway% dev %iface%[[ prio %metric%]]]]", ifd, exec); - return ((result == 3) ? 3 : 0); - # else - /* ifconfig said to set iface up before it processes hw %hwaddress%, -@@ -500,7 +500,7 @@ static int FAST_FUNC static_up(struct interface_defn_t *ifd, execfn *exec) - result += execute("ifconfig %iface% %address% netmask %netmask%" - "[[ broadcast %broadcast%]][[ pointopoint %pointopoint%]] ", - ifd, exec); -- result += execute("[[route add default gw %gateway% %iface%]]", ifd, exec); -+ result += execute("[[route add default gw %gateway%[[ metric %metric%]] %iface%]]", ifd, exec); - return ((result == 3) ? 3 : 0); - # endif - } --- -1.7.10.4 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0005-ifupdown-improve-compatibility-with-Debian.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0005-ifupdown-improve-compatibility-with-Debian.patch deleted file mode 100644 index ae1f725..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0005-ifupdown-improve-compatibility-with-Debian.patch +++ /dev/null @@ -1,97 +0,0 @@ -From 7ec30bf273cbdf5f0ae335684939a883182e493e Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Mon, 23 Apr 2012 22:08:39 +0200 -Subject: [PATCH 05/10] ifupdown: improve compatibility with Debian - -Set environment variable 'PHASE'. -Treat post-up and pre-down as aliases for up and down. -Uses the same logic as ifupdown.nw from ifupdown-0.6.16. -Makes it possible to execute Debian's ifupdown script for -wpa-supplicant. - -Signed-off-by: Andreas Oberritter -Signed-off-by: Denys Vlasenko ---- - networking/ifupdown.c | 20 ++++++++++++-------- - 1 file changed, 12 insertions(+), 8 deletions(-) - -diff --git a/networking/ifupdown.c b/networking/ifupdown.c -index 9f49619..5c3dcec 100644 ---- a/networking/ifupdown.c -+++ b/networking/ifupdown.c -@@ -140,8 +140,6 @@ static const char keywords_up_down[] ALIGN1 = - "up\0" - "down\0" - "pre-up\0" -- "pre-down\0" -- "post-up\0" - "post-down\0" - ; - -@@ -895,6 +893,11 @@ static struct interfaces_file_t *read_interfaces(const char *filename) - if (rest_of_line[0] == '\0') - bb_error_msg_and_die("option with empty value \"%s\"", buf); - -+ if (strcmp(first_word, "post-up") == 0) -+ first_word += 5; /* "up" */ -+ else if (strcmp(first_word, "pre-down") == 0) -+ first_word += 4; /* "down" */ -+ - /* If not one of "up", "down",... words... */ - if (index_in_strings(keywords_up_down, first_word) < 0) { - int i; -@@ -963,7 +966,7 @@ static char *setlocalenv(const char *format, const char *name, const char *value - return result; - } - --static void set_environ(struct interface_defn_t *iface, const char *mode) -+static void set_environ(struct interface_defn_t *iface, const char *mode, const char *opt) - { - int i; - char **pp; -@@ -976,7 +979,7 @@ static void set_environ(struct interface_defn_t *iface, const char *mode) - } - - /* note: last element will stay NULL: */ -- G.my_environ = xzalloc(sizeof(char *) * (iface->n_options + 6)); -+ G.my_environ = xzalloc(sizeof(char *) * (iface->n_options + 7)); - pp = G.my_environ; - - for (i = 0; i < iface->n_options; i++) { -@@ -990,6 +993,7 @@ static void set_environ(struct interface_defn_t *iface, const char *mode) - *pp++ = setlocalenv("%s=%s", "ADDRFAM", iface->address_family->name); - *pp++ = setlocalenv("%s=%s", "METHOD", iface->method->name); - *pp++ = setlocalenv("%s=%s", "MODE", mode); -+ *pp++ = setlocalenv("%s=%s", "PHASE", opt); - if (G.startup_PATH) - *pp++ = setlocalenv("%s=%s", "PATH", G.startup_PATH); - } -@@ -1044,21 +1048,21 @@ static int check(char *str) - static int iface_up(struct interface_defn_t *iface) - { - if (!iface->method->up(iface, check)) return -1; -- set_environ(iface, "start"); -+ set_environ(iface, "start", "pre-up"); - if (!execute_all(iface, "pre-up")) return 0; - if (!iface->method->up(iface, doit)) return 0; -+ set_environ(iface, "start", "post-up"); - if (!execute_all(iface, "up")) return 0; -- if (!execute_all(iface, "post-up")) return 0; - return 1; - } - - static int iface_down(struct interface_defn_t *iface) - { - if (!iface->method->down(iface,check)) return -1; -- set_environ(iface, "stop"); -- if (!execute_all(iface, "pre-down")) return 0; -+ set_environ(iface, "stop", "pre-down"); - if (!execute_all(iface, "down")) return 0; - if (!iface->method->down(iface, doit)) return 0; -+ set_environ(iface, "stop", "post-down"); - if (!execute_all(iface, "post-down")) return 0; - return 1; - } --- -1.7.10.4 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0006-get_linux_version_code-don-t-fail-on-3.0-foo.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0006-get_linux_version_code-don-t-fail-on-3.0-foo.patch deleted file mode 100644 index f061814..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0006-get_linux_version_code-don-t-fail-on-3.0-foo.patch +++ /dev/null @@ -1,43 +0,0 @@ -From c011ab2fb52c2ee03aa9544b0d242683ee4362e1 Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Fri, 27 Apr 2012 01:40:25 +0200 -Subject: [PATCH 06/10] get_linux_version_code: don't fail on 3.0-foo - -Fixes segmentation fault in mount (nfs): - - #0 __GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=, loc=0x77f6f3c8) at strtol_l.c:298 - #1 __GI_strtol (nptr=, endptr=, base=) at strtol.c:110 - #2 get_linux_version_code () at libbb/kernel_version.c:34 - #3 find_kernel_nfs_mount_version () at util-linux/mount.c:979 - -Signed-off-by: Andreas Oberritter ---- - libbb/kernel_version.c | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/libbb/kernel_version.c b/libbb/kernel_version.c -index a168a1e..12f1146 100644 ---- a/libbb/kernel_version.c -+++ b/libbb/kernel_version.c -@@ -20,7 +20,7 @@ - int FAST_FUNC get_linux_version_code(void) - { - struct utsname name; -- char *s; -+ char *s, *t; - int i, r; - - if (uname(&name) == -1) { -@@ -31,7 +31,8 @@ int FAST_FUNC get_linux_version_code(void) - s = name.release; - r = 0; - for (i = 0; i < 3; i++) { -- r = r * 256 + atoi(strtok(s, ".")); -+ t = strtok(s, "."); -+ r = r * 256 + (t ? atoi(t) : 0); - s = NULL; - } - return r; --- -1.7.10.4 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0007-ifplugd-move-read_pid-to-libbb-pidfile.c-and-rename-.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0007-ifplugd-move-read_pid-to-libbb-pidfile.c-and-rename-.patch deleted file mode 100644 index 742e79b..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0007-ifplugd-move-read_pid-to-libbb-pidfile.c-and-rename-.patch +++ /dev/null @@ -1,94 +0,0 @@ -From 4119652f74ce6f8f370df3c80076792d509bc941 Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Mon, 14 May 2012 16:15:50 +0200 -Subject: [PATCH 07/10] ifplugd: move read_pid to libbb/pidfile.c and rename - it to read_pidfile - -Signed-off-by: Andreas Oberritter ---- - include/libbb.h | 2 ++ - libbb/pidfile.c | 14 ++++++++++++++ - networking/ifplugd.c | 18 +----------------- - 3 files changed, 17 insertions(+), 17 deletions(-) - -diff --git a/include/libbb.h b/include/libbb.h -index 63d0419..e9538e7 100644 ---- a/include/libbb.h -+++ b/include/libbb.h -@@ -1031,10 +1031,12 @@ llist_t *llist_find_str(llist_t *first, const char *str) FAST_FUNC; - #if ENABLE_FEATURE_PIDFILE || defined(WANT_PIDFILE) - /* True only if we created pidfile which is *file*, not /dev/null etc */ - extern smallint wrote_pidfile; -+pid_t read_pidfile(const char *path) FAST_FUNC; - void write_pidfile(const char *path) FAST_FUNC; - #define remove_pidfile(path) do { if (wrote_pidfile) unlink(path); } while (0) - #else - enum { wrote_pidfile = 0 }; -+#define read_pidfile(path) ((void)0) - #define write_pidfile(path) ((void)0) - #define remove_pidfile(path) ((void)0) - #endif -diff --git a/libbb/pidfile.c b/libbb/pidfile.c -index a48dfc3..6734a2d 100644 ---- a/libbb/pidfile.c -+++ b/libbb/pidfile.c -@@ -13,6 +13,20 @@ - - smallint wrote_pidfile; - -+pid_t FAST_FUNC read_pidfile(const char *filename) -+{ -+ int len; -+ char buf[128]; -+ -+ len = open_read_close(filename, buf, 127); -+ if (len > 0) { -+ buf[len] = '\0'; -+ /* returns ULONG_MAX on error => -1 */ -+ return bb_strtoul(buf, NULL, 10); -+ } -+ return 0; -+} -+ - void FAST_FUNC write_pidfile(const char *path) - { - int pid_fd; -diff --git a/networking/ifplugd.c b/networking/ifplugd.c -index d8358cd..9a15576 100644 ---- a/networking/ifplugd.c -+++ b/networking/ifplugd.c -@@ -510,22 +510,6 @@ static NOINLINE int check_existence_through_netlink(void) - return G.iface_exists; - } - --#if ENABLE_FEATURE_PIDFILE --static NOINLINE pid_t read_pid(const char *filename) --{ -- int len; -- char buf[128]; -- -- len = open_read_close(filename, buf, 127); -- if (len > 0) { -- buf[len] = '\0'; -- /* returns ULONG_MAX on error => -1 */ -- return bb_strtoul(buf, NULL, 10); -- } -- return 0; --} --#endif -- - int ifplugd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; - int ifplugd_main(int argc UNUSED_PARAM, char **argv) - { -@@ -552,7 +536,7 @@ int ifplugd_main(int argc UNUSED_PARAM, char **argv) - - #if ENABLE_FEATURE_PIDFILE - pidfile_name = xasprintf(_PATH_VARRUN"ifplugd.%s.pid", G.iface); -- pid_from_pidfile = read_pid(pidfile_name); -+ pid_from_pidfile = read_pidfile(pidfile_name); - - if (opts & FLAG_KILL) { - if (pid_from_pidfile > 0) --- -1.7.10.4 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0008-ifupdown-dhcp_down-wait-until-udhcpc-has-been-killed.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0008-ifupdown-dhcp_down-wait-until-udhcpc-has-been-killed.patch deleted file mode 100644 index 3b43d3d..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0008-ifupdown-dhcp_down-wait-until-udhcpc-has-been-killed.patch +++ /dev/null @@ -1,56 +0,0 @@ -From 517f8da0345752d3cc5e2c99b8acd88c60355373 Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Mon, 14 May 2012 16:20:36 +0200 -Subject: [PATCH 08/10] ifupdown: dhcp_down: wait until udhcpc has been killed - -* Otherwise there's a race condition between ifdown and udhcpc, - which executes deconfig scripts in /etc/udhcpc.d. - -Signed-off-by: Andreas Oberritter ---- - networking/ifupdown.c | 23 +++++++++++++++++------ - 1 file changed, 17 insertions(+), 6 deletions(-) - -diff --git a/networking/ifupdown.c b/networking/ifupdown.c -index 5c3dcec..35e5035 100644 ---- a/networking/ifupdown.c -+++ b/networking/ifupdown.c -@@ -618,18 +618,29 @@ static int FAST_FUNC dhcp_down(struct interface_defn_t *ifd, execfn *exec) - static int FAST_FUNC dhcp_down(struct interface_defn_t *ifd, execfn *exec) - { - int result; -- result = execute( -- "test -f /var/run/udhcpc.%iface%.pid && " -- "kill `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", -- ifd, exec); -+ char *pidfile_name; -+ pid_t pid_from_pidfile; -+ -+ pidfile_name = xasprintf(_PATH_VARRUN "udhcpc.%s.pid", ifd->iface); -+ pid_from_pidfile = read_pidfile(pidfile_name); -+ result = (pid_from_pidfile > 0); - /* Also bring the hardware interface down since - killing the dhcp client alone doesn't do it. - This enables consecutive ifup->ifdown->ifup */ - /* Sleep a bit, otherwise static_down tries to bring down interface too soon, - and it may come back up because udhcpc is still shutting down */ -- usleep(100000); -+ if (result && kill(pid_from_pidfile, SIGTERM) == 0) { -+ unsigned int i; -+ for (i = 0; i < 100; i++) { -+ if (kill(pid_from_pidfile, 0) < 0) { -+ result++; -+ break; -+ } -+ usleep(100000); -+ } -+ } - result += static_down(ifd, exec); -- return ((result == 3) ? 3 : 0); -+ return ((result == 4) ? 4 : 0); - } - # else - static int FAST_FUNC dhcp_down(struct interface_defn_t *ifd UNUSED_PARAM, --- -1.7.10.4 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0009-udhcpc-calculate-broadcast-address-if-not-given-by-s.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0009-udhcpc-calculate-broadcast-address-if-not-given-by-s.patch deleted file mode 100644 index b623e3f..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0009-udhcpc-calculate-broadcast-address-if-not-given-by-s.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 7f3d0f0e58602e8d96988736d80ba28d31338ea2 Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Mon, 14 May 2012 17:32:16 +0200 -Subject: [PATCH 09/10] udhcpc: calculate broadcast address if not given by - server - -* This is more efficient than doing it in the scripts - -Signed-off-by: Andreas Oberritter ---- - networking/udhcp/common.h | 2 +- - networking/udhcp/dhcpc.c | 16 ++++++++++++++++ - 2 files changed, 17 insertions(+), 1 deletion(-) - -diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h -index ad6991c..1517498 100644 ---- a/networking/udhcp/common.h -+++ b/networking/udhcp/common.h -@@ -122,7 +122,7 @@ enum { - //#define DHCP_ROOT_PATH 0x11 - //#define DHCP_IP_TTL 0x17 - //#define DHCP_MTU 0x1a --//#define DHCP_BROADCAST 0x1c -+#define DHCP_BROADCAST 0x1c - //#define DHCP_ROUTES 0x21 - //#define DHCP_NIS_DOMAIN 0x28 - //#define DHCP_NIS_SERVER 0x29 -diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c -index 4d755e6..9fbd3b3 100644 ---- a/networking/udhcp/dhcpc.c -+++ b/networking/udhcp/dhcpc.c -@@ -399,6 +399,22 @@ static char **fill_envp(struct dhcp_packet *packet) - } - i++; - } -+ /* Calculate the broadcast address, if it wasn't provided -+ * by the server, but a subnet mask of /30 or lower was given. -+ */ -+ if (udhcp_get_option(packet, DHCP_BROADCAST) == NULL) { -+ temp = udhcp_get_option(packet, DHCP_SUBNET); -+ if (temp) { -+ uint32_t subnet; -+ move_from_unaligned32(subnet, temp); -+ if (ntohl(subnet) <= 0xfffffffc) { -+ uint32_t broadcast = packet->yiaddr | ~subnet; -+ *curr = xmalloc(sizeof("broadcast=255.255.255.255")); -+ sprint_nip(*curr, "broadcast=", (uint8_t *)&broadcast); -+ putenv(*curr++); -+ } -+ } -+ } - return envp; - } - --- -1.7.10.4 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0010-udhcpc-obtain-hostname-from-OS-by-default.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0010-udhcpc-obtain-hostname-from-OS-by-default.patch deleted file mode 100644 index 489c735..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0010-udhcpc-obtain-hostname-from-OS-by-default.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 2b4773b6ae48fee56c60fb4a1835672cbca78aee Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Tue, 15 Jan 2013 17:33:53 +0100 -Subject: [PATCH 10/10] udhcpc: obtain hostname from OS by default - -* Doesn't require the 'hostname' option in /etc/network/interfaces, - and thus makes udhcpc behave like other clients. - -Signed-off-by: Andreas Oberritter ---- - networking/udhcp/dhcpc.c | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c -index 9fbd3b3..ec9f25d 100644 ---- a/networking/udhcp/dhcpc.c -+++ b/networking/udhcp/dhcpc.c -@@ -1117,6 +1117,13 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) - ); - if (opt & (OPT_h|OPT_H)) - client_config.hostname = alloc_dhcp_option(DHCP_HOST_NAME, str_h, 0); -+ else { -+ char hostname[256]; /* SUSv2: hostnames are <= 255 bytes */ -+ if (gethostname(hostname, sizeof(hostname)) == 0) { -+ hostname[sizeof(hostname) - 1] = '\0'; -+ client_config.hostname = alloc_dhcp_option(DHCP_HOST_NAME, hostname, 0); -+ } -+ } - if (opt & OPT_F) { - /* FQDN option format: [0x51][len][flags][0][0] */ - client_config.fqdn = alloc_dhcp_option(DHCP_FQDN, str_F, 3); --- -1.7.10.4 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0011-mount-don-t-pass-option-auto-to-kernel.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0011-mount-don-t-pass-option-auto-to-kernel.patch deleted file mode 100644 index b25d587..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/0011-mount-don-t-pass-option-auto-to-kernel.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 7c462943dd3c283314e68e945d544dfbaaa4cb25 Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Mon, 22 Apr 2013 10:40:36 +0200 -Subject: [PATCH 11/11] mount: don't pass option "auto" to kernel - -Fixes the following error if "auto" is set in fs options: -| EXT3-fs (sda1): error: unrecognized mount option "auto" or missing value -| EXT4-fs (sda1): Unrecognized mount option "auto" or missing value -| XFS (sda1): unknown mount option [auto]. - -Signed-off-by: Andreas Oberritter ---- - util-linux/mount.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/util-linux/mount.c b/util-linux/mount.c -index 05e532c..670935d 100644 ---- a/util-linux/mount.c -+++ b/util-linux/mount.c -@@ -212,6 +212,7 @@ static const int32_t mount_options[] = { - IF_FEATURE_MOUNT_FSTAB( - /* "defaults" */ 0, - /* "quiet" 0 - do not filter out, vfat wants to see it */ -+ /* "auto" */ 0, - /* "noauto" */ MOUNT_NOAUTO, - /* "sw" */ MOUNT_SWAP, - /* "swap" */ MOUNT_SWAP, -@@ -269,6 +270,7 @@ static const char mount_option_str[] = - IF_FEATURE_MOUNT_FSTAB( - "defaults\0" - // "quiet\0" - do not filter out, vfat wants to see it -+ "auto\0" - "noauto\0" - "sw\0" - "swap\0" --- -1.7.10.4 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/change-passwd-default-algorithm.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/change-passwd-default-algorithm.patch deleted file mode 100644 index 43bbb8c..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/change-passwd-default-algorithm.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/loginutils/passwd.c b/loginutils/passwd.c -index 1cfafae..3231b23 100644 ---- a/loginutils/passwd.c -+++ b/loginutils/passwd.c -@@ -94,7 +94,7 @@ int passwd_main(int argc UNUSED_PARAM, char **argv) - }; - unsigned opt; - int rc; -- const char *opt_a = "d"; /* des */ -+ const char *opt_a = "sha512"; /* sha512 */ - const char *filename; - char *myname; - char *name; diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/defconfig b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/defconfig deleted file mode 100644 index 25e9b3b..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/defconfig +++ /dev/null @@ -1,1013 +0,0 @@ -# -# Automatically generated make config: don't edit -# Busybox version: 1.19.4 -# Tue Jan 29 14:06:37 2013 -# -CONFIG_HAVE_DOT_CONFIG=y - -# -# Busybox Settings -# - -# -# General Configuration -# -# CONFIG_DESKTOP is not set -# CONFIG_EXTRA_COMPAT is not set -# CONFIG_INCLUDE_SUSv2 is not set -# CONFIG_USE_PORTABLE_CODE is not set -CONFIG_PLATFORM_LINUX=y -CONFIG_FEATURE_BUFFERS_USE_MALLOC=y -# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set -# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set -CONFIG_SHOW_USAGE=y -CONFIG_FEATURE_VERBOSE_USAGE=y -CONFIG_FEATURE_COMPRESS_USAGE=y -# CONFIG_FEATURE_INSTALLER is not set -# CONFIG_INSTALL_NO_USR is not set -# CONFIG_LOCALE_SUPPORT is not set -CONFIG_UNICODE_SUPPORT=y -# CONFIG_UNICODE_USING_LOCALE is not set -CONFIG_FEATURE_CHECK_UNICODE_IN_ENV=y -CONFIG_SUBST_WCHAR=0 -CONFIG_LAST_SUPPORTED_WCHAR=0 -# CONFIG_UNICODE_COMBINING_WCHARS is not set -# CONFIG_UNICODE_WIDE_WCHARS is not set -# CONFIG_UNICODE_BIDI_SUPPORT is not set -# CONFIG_UNICODE_NEUTRAL_TABLE is not set -# CONFIG_UNICODE_PRESERVE_BROKEN is not set -CONFIG_LONG_OPTS=y -CONFIG_FEATURE_DEVPTS=y -# CONFIG_FEATURE_CLEAN_UP is not set -CONFIG_FEATURE_UTMP=y -CONFIG_FEATURE_WTMP=y -CONFIG_FEATURE_PIDFILE=y -CONFIG_FEATURE_SUID=y -CONFIG_FEATURE_SUID_CONFIG=y -CONFIG_FEATURE_SUID_CONFIG_QUIET=y -# CONFIG_SELINUX is not set -# CONFIG_FEATURE_PREFER_APPLETS is not set -CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" -CONFIG_FEATURE_SYSLOG=y -CONFIG_FEATURE_HAVE_RPC=y - -# -# Build Options -# -# CONFIG_STATIC is not set -# CONFIG_PIE is not set -# CONFIG_NOMMU is not set -# CONFIG_BUILD_LIBBUSYBOX is not set -# CONFIG_FEATURE_INDIVIDUAL is not set -# CONFIG_FEATURE_SHARED_BUSYBOX is not set -CONFIG_LFS=y -CONFIG_CROSS_COMPILER_PREFIX="mipsel-oe-linux-" -CONFIG_EXTRA_CFLAGS=" -Os -pipe -g -feliminate-unused-debug-types" - -# -# Debugging Options -# -# CONFIG_DEBUG is not set -# CONFIG_DEBUG_PESSIMIZE is not set -# CONFIG_WERROR is not set -CONFIG_NO_DEBUG_LIB=y -# CONFIG_DMALLOC is not set -# CONFIG_EFENCE is not set - -# -# Installation Options ("make install" behavior) -# -CONFIG_INSTALL_APPLET_SYMLINKS=y -# CONFIG_INSTALL_APPLET_HARDLINKS is not set -# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set -# CONFIG_INSTALL_APPLET_DONT is not set -# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set -# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set -# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set -CONFIG_PREFIX="./_install" - -# -# Busybox Library Tuning -# -CONFIG_FEATURE_SYSTEMD=y -CONFIG_FEATURE_RTMINMAX=y -CONFIG_PASSWORD_MINLEN=6 -CONFIG_MD5_SIZE_VS_SPEED=2 -CONFIG_FEATURE_FAST_TOP=y -# CONFIG_FEATURE_ETC_NETWORKS is not set -CONFIG_FEATURE_USE_TERMIOS=y -CONFIG_FEATURE_EDITING=y -CONFIG_FEATURE_EDITING_MAX_LEN=1024 -CONFIG_FEATURE_EDITING_VI=y -CONFIG_FEATURE_EDITING_HISTORY=63 -CONFIG_FEATURE_EDITING_SAVEHISTORY=y -CONFIG_FEATURE_REVERSE_SEARCH=y -CONFIG_FEATURE_TAB_COMPLETION=y -# CONFIG_FEATURE_USERNAME_COMPLETION is not set -CONFIG_FEATURE_EDITING_FANCY_PROMPT=y -CONFIG_FEATURE_EDITING_ASK_TERMINAL=y -# CONFIG_FEATURE_NON_POSIX_CP is not set -CONFIG_FEATURE_VERBOSE_CP_MESSAGE=y -CONFIG_FEATURE_COPYBUF_KB=64 -CONFIG_FEATURE_SKIP_ROOTFS=y -CONFIG_MONOTONIC_SYSCALL=y -CONFIG_IOCTL_HEX2STR_ERROR=y -# CONFIG_FEATURE_HWIB is not set - -# -# Applets -# - -# -# Archival Utilities -# -CONFIG_FEATURE_SEAMLESS_XZ=y -CONFIG_FEATURE_SEAMLESS_LZMA=y -CONFIG_FEATURE_SEAMLESS_BZ2=y -CONFIG_FEATURE_SEAMLESS_GZ=y -CONFIG_FEATURE_SEAMLESS_Z=y -CONFIG_AR=y -# CONFIG_FEATURE_AR_LONG_FILENAMES is not set -# CONFIG_FEATURE_AR_CREATE is not set -CONFIG_BUNZIP2=y -CONFIG_BZIP2=y -CONFIG_CPIO=y -# CONFIG_FEATURE_CPIO_O is not set -# CONFIG_FEATURE_CPIO_P is not set -# CONFIG_DPKG is not set -# CONFIG_DPKG_DEB is not set -# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set -CONFIG_GUNZIP=y -CONFIG_GZIP=y -# CONFIG_FEATURE_GZIP_LONG_OPTIONS is not set -# CONFIG_LZOP is not set -# CONFIG_LZOP_COMPR_HIGH is not set -# CONFIG_RPM2CPIO is not set -# CONFIG_RPM is not set -CONFIG_TAR=y -CONFIG_FEATURE_TAR_CREATE=y -CONFIG_FEATURE_TAR_AUTODETECT=y -CONFIG_FEATURE_TAR_FROM=y -CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y -# CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY is not set -CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y -# CONFIG_FEATURE_TAR_LONG_OPTIONS is not set -# CONFIG_FEATURE_TAR_TO_COMMAND is not set -# CONFIG_FEATURE_TAR_UNAME_GNAME is not set -# CONFIG_FEATURE_TAR_NOPRESERVE_TIME is not set -# CONFIG_FEATURE_TAR_SELINUX is not set -# CONFIG_UNCOMPRESS is not set -CONFIG_UNLZMA=y -# CONFIG_FEATURE_LZMA_FAST is not set -# CONFIG_LZMA is not set -CONFIG_UNXZ=y -# CONFIG_XZ is not set -CONFIG_UNZIP=y - -# -# Coreutils -# -CONFIG_BASENAME=y -CONFIG_CAT=y -CONFIG_DATE=y -CONFIG_FEATURE_DATE_ISOFMT=y -# CONFIG_FEATURE_DATE_NANO is not set -CONFIG_FEATURE_DATE_COMPAT=y -CONFIG_ID=y -CONFIG_GROUPS=y -CONFIG_TEST=y -CONFIG_FEATURE_TEST_64=y -CONFIG_TOUCH=y -CONFIG_TR=y -CONFIG_FEATURE_TR_CLASSES=y -# CONFIG_FEATURE_TR_EQUIV is not set -CONFIG_BASE64=y -CONFIG_WHO=y -CONFIG_USERS=y -# CONFIG_CAL is not set -# CONFIG_CATV is not set -CONFIG_CHGRP=y -CONFIG_CHMOD=y -CONFIG_CHOWN=y -# CONFIG_FEATURE_CHOWN_LONG_OPTIONS is not set -CONFIG_CHROOT=y -# CONFIG_CKSUM is not set -# CONFIG_COMM is not set -CONFIG_CP=y -# CONFIG_FEATURE_CP_LONG_OPTIONS is not set -CONFIG_CUT=y -CONFIG_DD=y -CONFIG_FEATURE_DD_SIGNAL_HANDLING=y -CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y -CONFIG_FEATURE_DD_IBS_OBS=y -CONFIG_DF=y -CONFIG_FEATURE_DF_FANCY=y -CONFIG_DIRNAME=y -CONFIG_DOS2UNIX=y -CONFIG_UNIX2DOS=y -CONFIG_DU=y -CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y -CONFIG_ECHO=y -CONFIG_FEATURE_FANCY_ECHO=y -CONFIG_ENV=y -CONFIG_FEATURE_ENV_LONG_OPTIONS=y -# CONFIG_EXPAND is not set -# CONFIG_FEATURE_EXPAND_LONG_OPTIONS is not set -CONFIG_EXPR=y -CONFIG_EXPR_MATH_SUPPORT_64=y -CONFIG_FALSE=y -# CONFIG_FOLD is not set -# CONFIG_FSYNC is not set -CONFIG_HEAD=y -# CONFIG_FEATURE_FANCY_HEAD is not set -# CONFIG_HOSTID is not set -# CONFIG_INSTALL is not set -# CONFIG_FEATURE_INSTALL_LONG_OPTIONS is not set -CONFIG_LN=y -CONFIG_LOGNAME=y -CONFIG_LS=y -CONFIG_FEATURE_LS_FILETYPES=y -CONFIG_FEATURE_LS_FOLLOWLINKS=y -CONFIG_FEATURE_LS_RECURSIVE=y -CONFIG_FEATURE_LS_SORTFILES=y -CONFIG_FEATURE_LS_TIMESTAMPS=y -CONFIG_FEATURE_LS_USERNAME=y -CONFIG_FEATURE_LS_COLOR=y -CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y -CONFIG_MD5SUM=y -CONFIG_MKDIR=y -CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y -CONFIG_MKFIFO=y -CONFIG_MKNOD=y -CONFIG_MV=y -# CONFIG_FEATURE_MV_LONG_OPTIONS is not set -CONFIG_NICE=y -CONFIG_NOHUP=y -CONFIG_OD=y -# CONFIG_PRINTENV is not set -CONFIG_PRINTF=y -CONFIG_PWD=y -CONFIG_READLINK=y -CONFIG_FEATURE_READLINK_FOLLOW=y -CONFIG_REALPATH=y -CONFIG_RM=y -CONFIG_RMDIR=y -# CONFIG_FEATURE_RMDIR_LONG_OPTIONS is not set -CONFIG_SEQ=y -CONFIG_SHA1SUM=y -CONFIG_SHA256SUM=y -CONFIG_SHA512SUM=y -CONFIG_SLEEP=y -CONFIG_FEATURE_FANCY_SLEEP=y -CONFIG_FEATURE_FLOAT_SLEEP=y -CONFIG_SORT=y -CONFIG_FEATURE_SORT_BIG=y -# CONFIG_SPLIT is not set -# CONFIG_FEATURE_SPLIT_FANCY is not set -# CONFIG_STAT is not set -# CONFIG_FEATURE_STAT_FORMAT is not set -CONFIG_STTY=y -# CONFIG_SUM is not set -CONFIG_SYNC=y -# CONFIG_TAC is not set -CONFIG_TAIL=y -CONFIG_FEATURE_FANCY_TAIL=y -CONFIG_TEE=y -CONFIG_FEATURE_TEE_USE_BLOCK_IO=y -CONFIG_TRUE=y -CONFIG_TTY=y -CONFIG_UNAME=y -# CONFIG_UNEXPAND is not set -# CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS is not set -CONFIG_UNIQ=y -CONFIG_USLEEP=y -CONFIG_UUDECODE=y -CONFIG_UUENCODE=y -CONFIG_WC=y -# CONFIG_FEATURE_WC_LARGE is not set -CONFIG_WHOAMI=y -CONFIG_YES=y - -# -# Common options for cp and mv -# -CONFIG_FEATURE_PRESERVE_HARDLINKS=y - -# -# Common options for ls, more and telnet -# -CONFIG_FEATURE_AUTOWIDTH=y - -# -# Common options for df, du, ls -# -CONFIG_FEATURE_HUMAN_READABLE=y - -# -# Common options for md5sum, sha1sum, sha256sum, sha512sum -# -CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y - -# -# Console Utilities -# -CONFIG_CHVT=y -# CONFIG_FGCONSOLE is not set -CONFIG_CLEAR=y -CONFIG_DEALLOCVT=y -CONFIG_DUMPKMAP=y -CONFIG_KBD_MODE=y -CONFIG_LOADFONT=y -CONFIG_LOADKMAP=y -CONFIG_OPENVT=y -CONFIG_RESET=y -# CONFIG_RESIZE is not set -# CONFIG_FEATURE_RESIZE_PRINT is not set -CONFIG_SETCONSOLE=y -# CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS is not set -CONFIG_SETFONT=y -# CONFIG_FEATURE_SETFONT_TEXTUAL_MAP is not set -CONFIG_DEFAULT_SETFONT_DIR="" -CONFIG_SETKEYCODES=y -CONFIG_SETLOGCONS=y -CONFIG_SHOWKEY=y - -# -# Common options for loadfont and setfont -# -# CONFIG_FEATURE_LOADFONT_PSF2 is not set -# CONFIG_FEATURE_LOADFONT_RAW is not set - -# -# Debian Utilities -# -CONFIG_MKTEMP=y -# CONFIG_PIPE_PROGRESS is not set -CONFIG_RUN_PARTS=y -CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y -# CONFIG_FEATURE_RUN_PARTS_FANCY is not set -CONFIG_START_STOP_DAEMON=y -CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y -CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y -CONFIG_WHICH=y - -# -# Editors -# -CONFIG_PATCH=y -CONFIG_VI=y -CONFIG_FEATURE_VI_MAX_LEN=4096 -CONFIG_FEATURE_VI_8BIT=y -CONFIG_FEATURE_VI_COLON=y -CONFIG_FEATURE_VI_YANKMARK=y -CONFIG_FEATURE_VI_SEARCH=y -CONFIG_FEATURE_VI_REGEX_SEARCH=y -CONFIG_FEATURE_VI_USE_SIGNALS=y -CONFIG_FEATURE_VI_DOT_CMD=y -CONFIG_FEATURE_VI_READONLY=y -CONFIG_FEATURE_VI_SETOPTS=y -CONFIG_FEATURE_VI_SET=y -CONFIG_FEATURE_VI_WIN_RESIZE=y -CONFIG_FEATURE_VI_ASK_TERMINAL=y -CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y -CONFIG_AWK=y -# CONFIG_FEATURE_AWK_LIBM is not set -CONFIG_CMP=y -CONFIG_DIFF=y -# CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set -CONFIG_FEATURE_DIFF_DIR=y -# CONFIG_ED is not set -CONFIG_SED=y -CONFIG_FEATURE_ALLOW_EXEC=y - -# -# Finding Utilities -# -CONFIG_FIND=y -CONFIG_FEATURE_FIND_PRINT0=y -CONFIG_FEATURE_FIND_MTIME=y -CONFIG_FEATURE_FIND_MMIN=y -CONFIG_FEATURE_FIND_PERM=y -CONFIG_FEATURE_FIND_TYPE=y -CONFIG_FEATURE_FIND_XDEV=y -CONFIG_FEATURE_FIND_MAXDEPTH=y -CONFIG_FEATURE_FIND_NEWER=y -CONFIG_FEATURE_FIND_INUM=y -CONFIG_FEATURE_FIND_EXEC=y -CONFIG_FEATURE_FIND_USER=y -CONFIG_FEATURE_FIND_GROUP=y -CONFIG_FEATURE_FIND_NOT=y -CONFIG_FEATURE_FIND_DEPTH=y -CONFIG_FEATURE_FIND_PAREN=y -CONFIG_FEATURE_FIND_SIZE=y -CONFIG_FEATURE_FIND_PRUNE=y -CONFIG_FEATURE_FIND_DELETE=y -CONFIG_FEATURE_FIND_PATH=y -CONFIG_FEATURE_FIND_REGEX=y -# CONFIG_FEATURE_FIND_CONTEXT is not set -CONFIG_FEATURE_FIND_LINKS=y -CONFIG_GREP=y -CONFIG_FEATURE_GREP_EGREP_ALIAS=y -CONFIG_FEATURE_GREP_FGREP_ALIAS=y -CONFIG_FEATURE_GREP_CONTEXT=y -CONFIG_XARGS=y -CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y -CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y -CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y -CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y - -# -# Init Utilities -# -# CONFIG_BOOTCHARTD is not set -# CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER is not set -# CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE is not set -# CONFIG_HALT is not set -# CONFIG_FEATURE_CALL_TELINIT is not set -CONFIG_TELINIT_PATH="" -# CONFIG_INIT is not set -# CONFIG_FEATURE_USE_INITTAB is not set -# CONFIG_FEATURE_KILL_REMOVED is not set -CONFIG_FEATURE_KILL_DELAY=0 -# CONFIG_FEATURE_INIT_SCTTY is not set -# CONFIG_FEATURE_INIT_SYSLOG is not set -# CONFIG_FEATURE_EXTRA_QUIET is not set -# CONFIG_FEATURE_INIT_COREDUMPS is not set -# CONFIG_FEATURE_INITRD is not set -CONFIG_INIT_TERMINAL_TYPE="" -# CONFIG_MESG is not set -# CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP is not set - -# -# Login/Password Management Utilities -# -# CONFIG_ADD_SHELL is not set -# CONFIG_REMOVE_SHELL is not set -CONFIG_FEATURE_SHADOWPASSWDS=y -# CONFIG_USE_BB_PWD_GRP is not set -# CONFIG_USE_BB_SHADOW is not set -CONFIG_USE_BB_CRYPT=y -CONFIG_USE_BB_CRYPT_SHA=y -# CONFIG_ADDUSER is not set -# CONFIG_FEATURE_ADDUSER_LONG_OPTIONS is not set -# CONFIG_FEATURE_CHECK_NAMES is not set -CONFIG_FIRST_SYSTEM_ID=0 -CONFIG_LAST_SYSTEM_ID=0 -# CONFIG_ADDGROUP is not set -# CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS is not set -# CONFIG_FEATURE_ADDUSER_TO_GROUP is not set -# CONFIG_DELUSER is not set -# CONFIG_DELGROUP is not set -# CONFIG_FEATURE_DEL_USER_FROM_GROUP is not set -CONFIG_GETTY=y -CONFIG_LOGIN=y -# CONFIG_PAM is not set -CONFIG_LOGIN_SCRIPTS=y -CONFIG_FEATURE_NOLOGIN=y -CONFIG_FEATURE_SECURETTY=y -CONFIG_PASSWD=y -CONFIG_FEATURE_PASSWD_WEAK_CHECK=y -# CONFIG_CRYPTPW is not set -# CONFIG_CHPASSWD is not set -# CONFIG_SU is not set -# CONFIG_FEATURE_SU_SYSLOG is not set -# CONFIG_FEATURE_SU_CHECKS_SHELLS is not set -CONFIG_SULOGIN=y -# CONFIG_VLOCK is not set - -# -# Linux Ext2 FS Progs -# -CONFIG_CHATTR=y -# CONFIG_FSCK is not set -CONFIG_LSATTR=y -CONFIG_TUNE2FS=y - -# -# Linux Module Utilities -# -CONFIG_MODINFO=y -# CONFIG_MODPROBE_SMALL is not set -# CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE is not set -# CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED is not set -CONFIG_INSMOD=y -CONFIG_RMMOD=y -CONFIG_LSMOD=y -CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT=y -CONFIG_MODPROBE=y -CONFIG_FEATURE_MODPROBE_BLACKLIST=y -# CONFIG_DEPMOD is not set - -# -# Options common to multiple modutils -# -# CONFIG_FEATURE_2_4_MODULES is not set -# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set -# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set -# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set -# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set -# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set -# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set -CONFIG_FEATURE_CHECK_TAINTED_MODULE=y -CONFIG_FEATURE_MODUTILS_ALIAS=y -CONFIG_FEATURE_MODUTILS_SYMBOLS=y -CONFIG_DEFAULT_MODULES_DIR="/lib/modules" -CONFIG_DEFAULT_DEPMOD_FILE="modules.dep" - -# -# Linux System Utilities -# -# CONFIG_BLOCKDEV is not set -# CONFIG_REV is not set -# CONFIG_ACPID is not set -# CONFIG_FEATURE_ACPID_COMPAT is not set -# CONFIG_BLKID is not set -# CONFIG_FEATURE_BLKID_TYPE is not set -CONFIG_DMESG=y -CONFIG_FEATURE_DMESG_PRETTY=y -CONFIG_FBSET=y -CONFIG_FEATURE_FBSET_FANCY=y -CONFIG_FEATURE_FBSET_READMODE=y -# CONFIG_FDFLUSH is not set -# CONFIG_FDFORMAT is not set -CONFIG_FDISK=y -# CONFIG_FDISK_SUPPORT_LARGE_DISKS is not set -CONFIG_FEATURE_FDISK_WRITABLE=y -# CONFIG_FEATURE_AIX_LABEL is not set -# CONFIG_FEATURE_SGI_LABEL is not set -# CONFIG_FEATURE_SUN_LABEL is not set -# CONFIG_FEATURE_OSF_LABEL is not set -CONFIG_FEATURE_GPT_LABEL=y -CONFIG_FEATURE_FDISK_ADVANCED=y -CONFIG_FINDFS=y -CONFIG_FLOCK=y -# CONFIG_FREERAMDISK is not set -# CONFIG_FSCK_MINIX is not set -# CONFIG_MKFS_EXT2 is not set -# CONFIG_MKFS_MINIX is not set -# CONFIG_FEATURE_MINIX2 is not set -# CONFIG_MKFS_REISER is not set -CONFIG_MKFS_VFAT=y -CONFIG_GETOPT=y -CONFIG_FEATURE_GETOPT_LONG=y -CONFIG_HEXDUMP=y -# CONFIG_FEATURE_HEXDUMP_REVERSE is not set -CONFIG_HD=y -# CONFIG_HWCLOCK is not set -# CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS is not set -# CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS is not set -# CONFIG_IPCRM is not set -# CONFIG_IPCS is not set -CONFIG_LOSETUP=y -CONFIG_LSPCI=y -CONFIG_LSUSB=y -# CONFIG_MDEV is not set -# CONFIG_FEATURE_MDEV_CONF is not set -# CONFIG_FEATURE_MDEV_RENAME is not set -# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set -# CONFIG_FEATURE_MDEV_EXEC is not set -# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set -CONFIG_MKSWAP=y -CONFIG_FEATURE_MKSWAP_UUID=y -CONFIG_MORE=y -CONFIG_MOUNT=y -# CONFIG_FEATURE_MOUNT_FAKE is not set -# CONFIG_FEATURE_MOUNT_VERBOSE is not set -CONFIG_FEATURE_MOUNT_HELPERS=y -CONFIG_FEATURE_MOUNT_LABEL=y -CONFIG_FEATURE_MOUNT_NFS=y -CONFIG_FEATURE_MOUNT_CIFS=y -CONFIG_FEATURE_MOUNT_FLAGS=y -CONFIG_FEATURE_MOUNT_FSTAB=y -# CONFIG_PIVOT_ROOT is not set -CONFIG_RDATE=y -CONFIG_RDEV=y -CONFIG_READPROFILE=y -# CONFIG_RTCWAKE is not set -# CONFIG_SCRIPT is not set -# CONFIG_SCRIPTREPLAY is not set -# CONFIG_SETARCH is not set -CONFIG_SWAPONOFF=y -# CONFIG_FEATURE_SWAPON_PRI is not set -CONFIG_SWITCH_ROOT=y -CONFIG_UMOUNT=y -CONFIG_FEATURE_UMOUNT_ALL=y - -# -# Common options for mount/umount -# -CONFIG_FEATURE_MOUNT_LOOP=y -CONFIG_FEATURE_MOUNT_LOOP_CREATE=y -# CONFIG_FEATURE_MTAB_SUPPORT is not set -CONFIG_VOLUMEID=y - -# -# Filesystem/Volume identification -# -CONFIG_FEATURE_VOLUMEID_EXT=y -CONFIG_FEATURE_VOLUMEID_BTRFS=y -CONFIG_FEATURE_VOLUMEID_REISERFS=y -CONFIG_FEATURE_VOLUMEID_FAT=y -CONFIG_FEATURE_VOLUMEID_HFS=y -CONFIG_FEATURE_VOLUMEID_JFS=y -CONFIG_FEATURE_VOLUMEID_XFS=y -CONFIG_FEATURE_VOLUMEID_NTFS=y -CONFIG_FEATURE_VOLUMEID_ISO9660=y -CONFIG_FEATURE_VOLUMEID_UDF=y -CONFIG_FEATURE_VOLUMEID_LUKS=y -CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y -CONFIG_FEATURE_VOLUMEID_CRAMFS=y -CONFIG_FEATURE_VOLUMEID_ROMFS=y -CONFIG_FEATURE_VOLUMEID_SYSV=y -CONFIG_FEATURE_VOLUMEID_OCFS2=y -CONFIG_FEATURE_VOLUMEID_LINUXRAID=y - -# -# Miscellaneous Utilities -# -# CONFIG_CONSPY is not set -CONFIG_LESS=y -CONFIG_FEATURE_LESS_MAXLINES=9999999 -CONFIG_FEATURE_LESS_BRACKETS=y -CONFIG_FEATURE_LESS_FLAGS=y -# CONFIG_FEATURE_LESS_MARKS is not set -CONFIG_FEATURE_LESS_REGEXP=y -CONFIG_FEATURE_LESS_WINCH=y -CONFIG_FEATURE_LESS_ASK_TERMINAL=y -# CONFIG_FEATURE_LESS_DASHCMD is not set -# CONFIG_FEATURE_LESS_LINENUMS is not set -# CONFIG_NANDWRITE is not set -# CONFIG_NANDDUMP is not set -CONFIG_SETSERIAL=y -# CONFIG_UBIATTACH is not set -# CONFIG_UBIDETACH is not set -# CONFIG_UBIMKVOL is not set -# CONFIG_UBIRMVOL is not set -# CONFIG_UBIRSVOL is not set -# CONFIG_UBIUPDATEVOL is not set -# CONFIG_ADJTIMEX is not set -CONFIG_BBCONFIG=y -CONFIG_FEATURE_COMPRESS_BBCONFIG=y -# CONFIG_BEEP is not set -CONFIG_FEATURE_BEEP_FREQ=0 -CONFIG_FEATURE_BEEP_LENGTH_MS=0 -# CONFIG_CHAT is not set -# CONFIG_FEATURE_CHAT_NOFAIL is not set -# CONFIG_FEATURE_CHAT_TTY_HIFI is not set -# CONFIG_FEATURE_CHAT_IMPLICIT_CR is not set -# CONFIG_FEATURE_CHAT_SWALLOW_OPTS is not set -# CONFIG_FEATURE_CHAT_SEND_ESCAPES is not set -# CONFIG_FEATURE_CHAT_VAR_ABORT_LEN is not set -# CONFIG_FEATURE_CHAT_CLR_ABORT is not set -CONFIG_CHRT=y -CONFIG_CROND=y -# CONFIG_FEATURE_CROND_D is not set -# CONFIG_FEATURE_CROND_CALL_SENDMAIL is not set -CONFIG_FEATURE_CROND_DIR="/etc/cron" -CONFIG_CRONTAB=y -CONFIG_DC=y -# CONFIG_FEATURE_DC_LIBM is not set -# CONFIG_DEVFSD is not set -# CONFIG_DEVFSD_MODLOAD is not set -# CONFIG_DEVFSD_FG_NP is not set -# CONFIG_DEVFSD_VERBOSE is not set -# CONFIG_FEATURE_DEVFS is not set -CONFIG_DEVMEM=y -CONFIG_EJECT=y -CONFIG_FEATURE_EJECT_SCSI=y -CONFIG_FBSPLASH=y -# CONFIG_FLASHCP is not set -# CONFIG_FLASH_LOCK is not set -# CONFIG_FLASH_UNLOCK is not set -# CONFIG_FLASH_ERASEALL is not set -CONFIG_IONICE=y -CONFIG_INOTIFYD=y -# CONFIG_LAST is not set -# CONFIG_FEATURE_LAST_SMALL is not set -# CONFIG_FEATURE_LAST_FANCY is not set -# CONFIG_HDPARM is not set -# CONFIG_FEATURE_HDPARM_GET_IDENTITY is not set -# CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF is not set -# CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF is not set -# CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET is not set -# CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF is not set -# CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA is not set -# CONFIG_MAKEDEVS is not set -# CONFIG_FEATURE_MAKEDEVS_LEAF is not set -# CONFIG_FEATURE_MAKEDEVS_TABLE is not set -# CONFIG_MAN is not set -CONFIG_MICROCOM=y -# CONFIG_MOUNTPOINT is not set -# CONFIG_MT is not set -# CONFIG_RAIDAUTORUN is not set -CONFIG_READAHEAD=y -# CONFIG_RFKILL is not set -# CONFIG_RUNLEVEL is not set -# CONFIG_RX is not set -CONFIG_SETSID=y -CONFIG_STRINGS=y -CONFIG_TASKSET=y -CONFIG_FEATURE_TASKSET_FANCY=y -CONFIG_TIME=y -CONFIG_TIMEOUT=y -# CONFIG_TTYSIZE is not set -CONFIG_VOLNAME=y -# CONFIG_WALL is not set -# CONFIG_WATCHDOG is not set - -# -# Networking Utilities -# -CONFIG_NAMEIF=y -CONFIG_FEATURE_NAMEIF_EXTENDED=y -CONFIG_NBDCLIENT=y -CONFIG_NC=y -CONFIG_NC_SERVER=y -CONFIG_NC_EXTRA=y -# CONFIG_NC_110_COMPAT is not set -CONFIG_PING=y -CONFIG_PING6=y -CONFIG_FEATURE_FANCY_PING=y -CONFIG_WHOIS=y -CONFIG_FEATURE_IPV6=y -# CONFIG_FEATURE_UNIX_LOCAL is not set -CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y -# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set -CONFIG_ARP=y -# CONFIG_ARPING is not set -CONFIG_BRCTL=y -CONFIG_FEATURE_BRCTL_FANCY=y -CONFIG_FEATURE_BRCTL_SHOW=y -# CONFIG_DNSD is not set -CONFIG_ETHER_WAKE=y -# CONFIG_FAKEIDENTD is not set -# CONFIG_FTPD is not set -# CONFIG_FEATURE_FTP_WRITE is not set -# CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST is not set -# CONFIG_FTPGET is not set -# CONFIG_FTPPUT is not set -# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set -CONFIG_HOSTNAME=y -# CONFIG_HTTPD is not set -# CONFIG_FEATURE_HTTPD_RANGES is not set -# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set -# CONFIG_FEATURE_HTTPD_SETUID is not set -# CONFIG_FEATURE_HTTPD_BASIC_AUTH is not set -# CONFIG_FEATURE_HTTPD_AUTH_MD5 is not set -# CONFIG_FEATURE_HTTPD_CGI is not set -# CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR is not set -# CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV is not set -# CONFIG_FEATURE_HTTPD_ENCODE_URL_STR is not set -# CONFIG_FEATURE_HTTPD_ERROR_PAGES is not set -# CONFIG_FEATURE_HTTPD_PROXY is not set -# CONFIG_FEATURE_HTTPD_GZIP is not set -CONFIG_IFCONFIG=y -CONFIG_FEATURE_IFCONFIG_STATUS=y -# CONFIG_FEATURE_IFCONFIG_SLIP is not set -# CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ is not set -CONFIG_FEATURE_IFCONFIG_HW=y -# CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS is not set -# CONFIG_IFENSLAVE is not set -# CONFIG_IFPLUGD is not set -CONFIG_IFUPDOWN=y -CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate" -CONFIG_FEATURE_IFUPDOWN_IP=y -CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN=y -# CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN is not set -CONFIG_FEATURE_IFUPDOWN_IPV4=y -CONFIG_FEATURE_IFUPDOWN_IPV6=y -CONFIG_FEATURE_IFUPDOWN_MAPPING=y -# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set -CONFIG_INETD=y -CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y -CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y -CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y -CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y -CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y -CONFIG_FEATURE_INETD_RPC=y -CONFIG_IP=y -CONFIG_FEATURE_IP_ADDRESS=y -CONFIG_FEATURE_IP_LINK=y -CONFIG_FEATURE_IP_ROUTE=y -CONFIG_FEATURE_IP_TUNNEL=y -CONFIG_FEATURE_IP_RULE=y -# CONFIG_FEATURE_IP_SHORT_FORMS is not set -# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set -# CONFIG_IPADDR is not set -# CONFIG_IPLINK is not set -# CONFIG_IPROUTE is not set -# CONFIG_IPTUNNEL is not set -# CONFIG_IPRULE is not set -# CONFIG_IPCALC is not set -# CONFIG_FEATURE_IPCALC_FANCY is not set -# CONFIG_FEATURE_IPCALC_LONG_OPTIONS is not set -CONFIG_NETSTAT=y -CONFIG_FEATURE_NETSTAT_WIDE=y -CONFIG_FEATURE_NETSTAT_PRG=y -CONFIG_NSLOOKUP=y -# CONFIG_NTPD is not set -# CONFIG_FEATURE_NTPD_SERVER is not set -# CONFIG_PSCAN is not set -CONFIG_ROUTE=y -# CONFIG_SLATTACH is not set -# CONFIG_TCPSVD is not set -CONFIG_TELNET=y -CONFIG_FEATURE_TELNET_TTYPE=y -CONFIG_FEATURE_TELNET_AUTOLOGIN=y -CONFIG_TELNETD=y -# CONFIG_FEATURE_TELNETD_STANDALONE is not set -# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set -CONFIG_TFTP=y -# CONFIG_TFTPD is not set - -# -# Common options for tftp/tftpd -# -CONFIG_FEATURE_TFTP_GET=y -CONFIG_FEATURE_TFTP_PUT=y -# CONFIG_FEATURE_TFTP_BLOCKSIZE is not set -# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set -# CONFIG_TFTP_DEBUG is not set -CONFIG_TRACEROUTE=y -CONFIG_TRACEROUTE6=y -CONFIG_FEATURE_TRACEROUTE_VERBOSE=y -# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set -CONFIG_FEATURE_TRACEROUTE_USE_ICMP=y -CONFIG_TUNCTL=y -CONFIG_FEATURE_TUNCTL_UG=y -# CONFIG_UDHCPD is not set -# CONFIG_DHCPRELAY is not set -# CONFIG_DUMPLEASES is not set -# CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY is not set -# CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC is not set -CONFIG_DHCPD_LEASES_FILE="" -CONFIG_UDHCPC=y -CONFIG_FEATURE_UDHCPC_ARPING=y -# CONFIG_FEATURE_UDHCP_PORT is not set -CONFIG_UDHCP_DEBUG=0 -# CONFIG_FEATURE_UDHCP_RFC3397 is not set -CONFIG_FEATURE_UDHCP_8021Q=y -CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" -CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 -CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -b -T3 -A10" -# CONFIG_UDPSVD is not set -CONFIG_VCONFIG=y -CONFIG_WGET=y -CONFIG_FEATURE_WGET_STATUSBAR=y -CONFIG_FEATURE_WGET_AUTHENTICATION=y -CONFIG_FEATURE_WGET_LONG_OPTIONS=y -CONFIG_FEATURE_WGET_TIMEOUT=y -# CONFIG_ZCIP is not set - -# -# Print Utilities -# -# CONFIG_LPD is not set -# CONFIG_LPR is not set -# CONFIG_LPQ is not set - -# -# Mail Utilities -# -# CONFIG_MAKEMIME is not set -CONFIG_FEATURE_MIME_CHARSET="us-ascii" -# CONFIG_POPMAILDIR is not set -# CONFIG_FEATURE_POPMAILDIR_DELIVERY is not set -# CONFIG_REFORMIME is not set -# CONFIG_FEATURE_REFORMIME_COMPAT is not set -CONFIG_SENDMAIL=y - -# -# Process Utilities -# -CONFIG_IOSTAT=y -CONFIG_MPSTAT=y -CONFIG_NMETER=y -# CONFIG_PMAP is not set -CONFIG_POWERTOP=y -# CONFIG_PSTREE is not set -# CONFIG_PWDX is not set -CONFIG_SMEMCAP=y -# CONFIG_UPTIME is not set -# CONFIG_FEATURE_UPTIME_UTMP_SUPPORT is not set -# CONFIG_FREE is not set -# CONFIG_FUSER is not set -# CONFIG_KILL is not set -# CONFIG_KILLALL is not set -# CONFIG_KILLALL5 is not set -# CONFIG_PGREP is not set -CONFIG_PIDOF=y -CONFIG_FEATURE_PIDOF_SINGLE=y -CONFIG_FEATURE_PIDOF_OMIT=y -# CONFIG_PKILL is not set -# CONFIG_PS is not set -# CONFIG_FEATURE_PS_WIDE is not set -# CONFIG_FEATURE_PS_TIME is not set -# CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS is not set -# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set -CONFIG_RENICE=y -# CONFIG_BB_SYSCTL is not set -# CONFIG_TOP is not set -# CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE is not set -# CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS is not set -# CONFIG_FEATURE_TOP_SMP_CPU is not set -# CONFIG_FEATURE_TOP_DECIMALS is not set -# CONFIG_FEATURE_TOP_SMP_PROCESS is not set -# CONFIG_FEATURE_TOPMEM is not set -# CONFIG_FEATURE_SHOW_THREADS is not set -# CONFIG_WATCH is not set - -# -# Runit Utilities -# -# CONFIG_RUNSV is not set -# CONFIG_RUNSVDIR is not set -# CONFIG_FEATURE_RUNSVDIR_LOG is not set -# CONFIG_SV is not set -CONFIG_SV_DEFAULT_SERVICE_DIR="" -# CONFIG_SVLOGD is not set -# CONFIG_CHPST is not set -# CONFIG_SETUIDGID is not set -# CONFIG_ENVUIDGID is not set -# CONFIG_ENVDIR is not set -# CONFIG_SOFTLIMIT is not set -# CONFIG_CHCON is not set -# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set -# CONFIG_GETENFORCE is not set -# CONFIG_GETSEBOOL is not set -# CONFIG_LOAD_POLICY is not set -# CONFIG_MATCHPATHCON is not set -# CONFIG_RESTORECON is not set -# CONFIG_RUNCON is not set -# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set -# CONFIG_SELINUXENABLED is not set -# CONFIG_SETENFORCE is not set -# CONFIG_SETFILES is not set -# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set -# CONFIG_SETSEBOOL is not set -# CONFIG_SESTATUS is not set - -# -# Shells -# -CONFIG_ASH=y -CONFIG_ASH_BASH_COMPAT=y -CONFIG_ASH_IDLE_TIMEOUT=y -CONFIG_ASH_JOB_CONTROL=y -CONFIG_ASH_ALIAS=y -CONFIG_ASH_GETOPTS=y -CONFIG_ASH_BUILTIN_ECHO=y -CONFIG_ASH_BUILTIN_PRINTF=y -CONFIG_ASH_BUILTIN_TEST=y -# CONFIG_ASH_CMDCMD is not set -# CONFIG_ASH_MAIL is not set -CONFIG_ASH_OPTIMIZE_FOR_SIZE=y -CONFIG_ASH_RANDOM_SUPPORT=y -CONFIG_ASH_EXPAND_PRMT=y -# CONFIG_CTTYHACK is not set -# CONFIG_HUSH is not set -# CONFIG_HUSH_BASH_COMPAT is not set -# CONFIG_HUSH_BRACE_EXPANSION is not set -# CONFIG_HUSH_HELP is not set -# CONFIG_HUSH_INTERACTIVE is not set -# CONFIG_HUSH_SAVEHISTORY is not set -# CONFIG_HUSH_JOB is not set -# CONFIG_HUSH_TICK is not set -# CONFIG_HUSH_IF is not set -# CONFIG_HUSH_LOOPS is not set -# CONFIG_HUSH_CASE is not set -# CONFIG_HUSH_FUNCTIONS is not set -# CONFIG_HUSH_LOCAL is not set -# CONFIG_HUSH_RANDOM_SUPPORT is not set -# CONFIG_HUSH_EXPORT_N is not set -# CONFIG_HUSH_MODE_X is not set -# CONFIG_MSH is not set -CONFIG_FEATURE_SH_IS_ASH=y -# CONFIG_FEATURE_SH_IS_HUSH is not set -# CONFIG_FEATURE_SH_IS_NONE is not set -CONFIG_FEATURE_BASH_IS_ASH=y -# CONFIG_FEATURE_BASH_IS_HUSH is not set -# CONFIG_FEATURE_BASH_IS_NONE is not set -CONFIG_SH_MATH_SUPPORT=y -# CONFIG_SH_MATH_SUPPORT_64 is not set -CONFIG_FEATURE_SH_EXTRA_QUIET=y -# CONFIG_FEATURE_SH_STANDALONE is not set -# CONFIG_FEATURE_SH_NOFORK is not set -CONFIG_FEATURE_SH_HISTFILESIZE=y - -# -# System Logging Utilities -# -CONFIG_SYSLOGD=y -CONFIG_FEATURE_ROTATE_LOGFILE=y -CONFIG_FEATURE_REMOTE_LOG=y -CONFIG_FEATURE_SYSLOGD_DUP=y -CONFIG_FEATURE_SYSLOGD_CFG=y -CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256 -CONFIG_FEATURE_IPC_SYSLOG=y -CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16 -CONFIG_LOGREAD=y -CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y -CONFIG_KLOGD=y -CONFIG_FEATURE_KLOGD_KLOGCTL=y -CONFIG_LOGGER=y diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/inetd b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/inetd deleted file mode 100755 index cf50bcd..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/inetd +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -# -# start/stop inetd super server. - -if ! [ -x /usr/sbin/inetd ]; then - exit 0 -fi - -case "$1" in - start) - echo -n "Starting internet superserver:" - echo -n " inetd" ; start-stop-daemon -S -x /usr/sbin/inetd > /dev/null - echo "." - ;; - stop) - echo -n "Stopping internet superserver:" - echo -n " inetd" ; start-stop-daemon -K -x /usr/sbin/inetd > /dev/null - echo "." - ;; - restart) - echo -n "Restarting internet superserver:" - echo -n " inetd " - killall -HUP inetd - echo "." - ;; - *) - echo "Usage: /etc/init.d/inetd {start|stop|restart}" - exit 1 - ;; -esac - -exit 0 - diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/inetd.conf b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/inetd.conf deleted file mode 100644 index bafaf40..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/inetd.conf +++ /dev/null @@ -1,23 +0,0 @@ -# /etc/inetd.conf: see inetd(8) for further informations. -# -# Internet server configuration database -# -# If you want to disable an entry so it isn't touched during -# package updates just comment it out with a single '#' character. -# -# -# -#:INTERNAL: Internal services -#echo stream tcp nowait root internal -#echo dgram udp wait root internal -#chargen stream tcp nowait root internal -#chargen dgram udp wait root internal -#discard stream tcp nowait root internal -#discard dgram udp wait root internal -#daytime stream tcp nowait root internal -#daytime dgram udp wait root internal -#time stream tcp nowait root internal -#time dgram udp wait root internal -ftp stream tcp nowait root /usr/sbin/vsftpd vsftpd -telnet stream tcp nowait root /usr/sbin/telnetd telnetd -8001 stream tcp nowait root /usr/bin/streamproxy streamproxy diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/mount_single_uuid.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/mount_single_uuid.patch deleted file mode 100644 index 9577c07..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox-1.19.4/mount_single_uuid.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: busybox-1.18.5/util-linux/mount.c -=================================================================== ---- busybox-1.18.5.orig/util-linux/mount.c -+++ busybox-1.18.5/util-linux/mount.c -@@ -1934,6 +1934,8 @@ int mount_main(int argc UNUSED_PARAM, ch - // "proc") or a full path from root - if (argv[0]) { - -+ // Check for UUID= or LABEL= entries too -+ resolve_mount_spec(&mtcur->mnt_fsname); - // Is this what we're looking for? - if (strcmp(argv[0], mtcur->mnt_fsname) != 0 - && strcmp(storage_path, mtcur->mnt_fsname) != 0 diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/0011-mount-don-t-pass-option-auto-to-kernel.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/0011-mount-don-t-pass-option-auto-to-kernel.patch new file mode 100644 index 0000000..b25d587 --- /dev/null +++ b/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/0011-mount-don-t-pass-option-auto-to-kernel.patch @@ -0,0 +1,38 @@ +From 7c462943dd3c283314e68e945d544dfbaaa4cb25 Mon Sep 17 00:00:00 2001 +From: Andreas Oberritter +Date: Mon, 22 Apr 2013 10:40:36 +0200 +Subject: [PATCH 11/11] mount: don't pass option "auto" to kernel + +Fixes the following error if "auto" is set in fs options: +| EXT3-fs (sda1): error: unrecognized mount option "auto" or missing value +| EXT4-fs (sda1): Unrecognized mount option "auto" or missing value +| XFS (sda1): unknown mount option [auto]. + +Signed-off-by: Andreas Oberritter +--- + util-linux/mount.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/util-linux/mount.c b/util-linux/mount.c +index 05e532c..670935d 100644 +--- a/util-linux/mount.c ++++ b/util-linux/mount.c +@@ -212,6 +212,7 @@ static const int32_t mount_options[] = { + IF_FEATURE_MOUNT_FSTAB( + /* "defaults" */ 0, + /* "quiet" 0 - do not filter out, vfat wants to see it */ ++ /* "auto" */ 0, + /* "noauto" */ MOUNT_NOAUTO, + /* "sw" */ MOUNT_SWAP, + /* "swap" */ MOUNT_SWAP, +@@ -269,6 +270,7 @@ static const char mount_option_str[] = + IF_FEATURE_MOUNT_FSTAB( + "defaults\0" + // "quiet\0" - do not filter out, vfat wants to see it ++ "auto\0" + "noauto\0" + "sw\0" + "swap\0" +-- +1.7.10.4 + diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/defconfig b/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/defconfig new file mode 100644 index 0000000..ca37615 --- /dev/null +++ b/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/defconfig @@ -0,0 +1,1038 @@ +# +# Automatically generated make config: don't edit +# Busybox version: 1.22.1 +# Wed Feb 11 13:53:45 2015 +# +CONFIG_HAVE_DOT_CONFIG=y + +# +# Busybox Settings +# + +# +# General Configuration +# +# CONFIG_DESKTOP is not set +# CONFIG_EXTRA_COMPAT is not set +# CONFIG_INCLUDE_SUSv2 is not set +# CONFIG_USE_PORTABLE_CODE is not set +CONFIG_PLATFORM_LINUX=y +CONFIG_FEATURE_BUFFERS_USE_MALLOC=y +# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set +# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set +CONFIG_SHOW_USAGE=y +CONFIG_FEATURE_VERBOSE_USAGE=y +CONFIG_FEATURE_COMPRESS_USAGE=y +# CONFIG_FEATURE_INSTALLER is not set +# CONFIG_INSTALL_NO_USR is not set +# CONFIG_LOCALE_SUPPORT is not set +CONFIG_UNICODE_SUPPORT=y +# CONFIG_UNICODE_USING_LOCALE is not set +CONFIG_FEATURE_CHECK_UNICODE_IN_ENV=y +CONFIG_SUBST_WCHAR=0 +CONFIG_LAST_SUPPORTED_WCHAR=0 +# CONFIG_UNICODE_COMBINING_WCHARS is not set +# CONFIG_UNICODE_WIDE_WCHARS is not set +# CONFIG_UNICODE_BIDI_SUPPORT is not set +# CONFIG_UNICODE_NEUTRAL_TABLE is not set +# CONFIG_UNICODE_PRESERVE_BROKEN is not set +CONFIG_LONG_OPTS=y +CONFIG_FEATURE_DEVPTS=y +# CONFIG_FEATURE_CLEAN_UP is not set +CONFIG_FEATURE_UTMP=y +CONFIG_FEATURE_WTMP=y +CONFIG_FEATURE_PIDFILE=y +CONFIG_PID_FILE_PATH="/var/run" +CONFIG_FEATURE_SUID=y +CONFIG_FEATURE_SUID_CONFIG=y +CONFIG_FEATURE_SUID_CONFIG_QUIET=y +# CONFIG_SELINUX is not set +# CONFIG_FEATURE_PREFER_APPLETS is not set +CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" +CONFIG_FEATURE_SYSLOG=y +CONFIG_FEATURE_HAVE_RPC=y + +# +# Build Options +# +# CONFIG_STATIC is not set +# CONFIG_PIE is not set +# CONFIG_NOMMU is not set +# CONFIG_BUILD_LIBBUSYBOX is not set +# CONFIG_FEATURE_INDIVIDUAL is not set +# CONFIG_FEATURE_SHARED_BUSYBOX is not set +CONFIG_LFS=y +CONFIG_CROSS_COMPILER_PREFIX="mipsel-oe-linux-" +CONFIG_SYSROOT="" +CONFIG_EXTRA_CFLAGS=" -Os -pipe -g -feliminate-unused-debug-types" +CONFIG_EXTRA_LDFLAGS="" +CONFIG_EXTRA_LDLIBS="" + +# +# Debugging Options +# +# CONFIG_DEBUG is not set +# CONFIG_DEBUG_PESSIMIZE is not set +# CONFIG_WERROR is not set +CONFIG_NO_DEBUG_LIB=y +# CONFIG_DMALLOC is not set +# CONFIG_EFENCE is not set + +# +# Installation Options ("make install" behavior) +# +CONFIG_INSTALL_APPLET_SYMLINKS=y +# CONFIG_INSTALL_APPLET_HARDLINKS is not set +# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set +# CONFIG_INSTALL_APPLET_DONT is not set +# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set +# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set +# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set +CONFIG_PREFIX="./_install" + +# +# Busybox Library Tuning +# +CONFIG_FEATURE_SYSTEMD=y +CONFIG_FEATURE_RTMINMAX=y +CONFIG_PASSWORD_MINLEN=6 +CONFIG_MD5_SMALL=1 +CONFIG_SHA3_SMALL=1 +CONFIG_FEATURE_FAST_TOP=y +# CONFIG_FEATURE_ETC_NETWORKS is not set +CONFIG_FEATURE_USE_TERMIOS=y +CONFIG_FEATURE_EDITING=y +CONFIG_FEATURE_EDITING_MAX_LEN=1024 +CONFIG_FEATURE_EDITING_VI=y +CONFIG_FEATURE_EDITING_HISTORY=63 +CONFIG_FEATURE_EDITING_SAVEHISTORY=y +# CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set +CONFIG_FEATURE_REVERSE_SEARCH=y +CONFIG_FEATURE_TAB_COMPLETION=y +# CONFIG_FEATURE_USERNAME_COMPLETION is not set +CONFIG_FEATURE_EDITING_FANCY_PROMPT=y +CONFIG_FEATURE_EDITING_ASK_TERMINAL=y +# CONFIG_FEATURE_NON_POSIX_CP is not set +CONFIG_FEATURE_VERBOSE_CP_MESSAGE=y +CONFIG_FEATURE_COPYBUF_KB=64 +CONFIG_FEATURE_SKIP_ROOTFS=y +CONFIG_MONOTONIC_SYSCALL=y +CONFIG_IOCTL_HEX2STR_ERROR=y +# CONFIG_FEATURE_HWIB is not set + +# +# Applets +# + +# +# Archival Utilities +# +CONFIG_FEATURE_SEAMLESS_XZ=y +CONFIG_FEATURE_SEAMLESS_LZMA=y +CONFIG_FEATURE_SEAMLESS_BZ2=y +CONFIG_FEATURE_SEAMLESS_GZ=y +CONFIG_FEATURE_SEAMLESS_Z=y +CONFIG_AR=y +# CONFIG_FEATURE_AR_LONG_FILENAMES is not set +# CONFIG_FEATURE_AR_CREATE is not set +# CONFIG_UNCOMPRESS is not set +CONFIG_GUNZIP=y +CONFIG_BUNZIP2=y +CONFIG_UNLZMA=y +# CONFIG_FEATURE_LZMA_FAST is not set +# CONFIG_LZMA is not set +CONFIG_UNXZ=y +# CONFIG_XZ is not set +CONFIG_BZIP2=y +CONFIG_CPIO=y +# CONFIG_FEATURE_CPIO_O is not set +# CONFIG_FEATURE_CPIO_P is not set +# CONFIG_DPKG is not set +# CONFIG_DPKG_DEB is not set +# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set +CONFIG_GZIP=y +# CONFIG_FEATURE_GZIP_LONG_OPTIONS is not set +CONFIG_GZIP_FAST=0 +# CONFIG_LZOP is not set +# CONFIG_LZOP_COMPR_HIGH is not set +# CONFIG_RPM2CPIO is not set +# CONFIG_RPM is not set +CONFIG_TAR=y +CONFIG_FEATURE_TAR_CREATE=y +CONFIG_FEATURE_TAR_AUTODETECT=y +CONFIG_FEATURE_TAR_FROM=y +CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y +# CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY is not set +CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y +# CONFIG_FEATURE_TAR_LONG_OPTIONS is not set +# CONFIG_FEATURE_TAR_TO_COMMAND is not set +# CONFIG_FEATURE_TAR_UNAME_GNAME is not set +# CONFIG_FEATURE_TAR_NOPRESERVE_TIME is not set +# CONFIG_FEATURE_TAR_SELINUX is not set +CONFIG_UNZIP=y + +# +# Coreutils +# +CONFIG_BASENAME=y +CONFIG_CAT=y +CONFIG_DATE=y +CONFIG_FEATURE_DATE_ISOFMT=y +# CONFIG_FEATURE_DATE_NANO is not set +CONFIG_FEATURE_DATE_COMPAT=y +# CONFIG_HOSTID is not set +CONFIG_ID=y +CONFIG_GROUPS=y +CONFIG_TEST=y +CONFIG_FEATURE_TEST_64=y +CONFIG_TOUCH=y +CONFIG_FEATURE_TOUCH_NODEREF=y +CONFIG_FEATURE_TOUCH_SUSV3=y +CONFIG_TR=y +CONFIG_FEATURE_TR_CLASSES=y +# CONFIG_FEATURE_TR_EQUIV is not set +CONFIG_BASE64=y +CONFIG_WHO=y +CONFIG_USERS=y +# CONFIG_CAL is not set +# CONFIG_CATV is not set +CONFIG_CHGRP=y +CONFIG_CHMOD=y +CONFIG_CHOWN=y +# CONFIG_FEATURE_CHOWN_LONG_OPTIONS is not set +CONFIG_CHROOT=y +# CONFIG_CKSUM is not set +# CONFIG_COMM is not set +CONFIG_CP=y +# CONFIG_FEATURE_CP_LONG_OPTIONS is not set +CONFIG_CUT=y +CONFIG_DD=y +CONFIG_FEATURE_DD_SIGNAL_HANDLING=y +CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y +CONFIG_FEATURE_DD_IBS_OBS=y +CONFIG_DF=y +CONFIG_FEATURE_DF_FANCY=y +CONFIG_DIRNAME=y +CONFIG_DOS2UNIX=y +CONFIG_UNIX2DOS=y +CONFIG_DU=y +CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y +CONFIG_ECHO=y +CONFIG_FEATURE_FANCY_ECHO=y +CONFIG_ENV=y +CONFIG_FEATURE_ENV_LONG_OPTIONS=y +# CONFIG_EXPAND is not set +# CONFIG_FEATURE_EXPAND_LONG_OPTIONS is not set +CONFIG_EXPR=y +CONFIG_EXPR_MATH_SUPPORT_64=y +CONFIG_FALSE=y +# CONFIG_FOLD is not set +# CONFIG_FSYNC is not set +CONFIG_HEAD=y +# CONFIG_FEATURE_FANCY_HEAD is not set +# CONFIG_INSTALL is not set +# CONFIG_FEATURE_INSTALL_LONG_OPTIONS is not set +CONFIG_LN=y +CONFIG_LOGNAME=y +CONFIG_LS=y +CONFIG_FEATURE_LS_FILETYPES=y +CONFIG_FEATURE_LS_FOLLOWLINKS=y +CONFIG_FEATURE_LS_RECURSIVE=y +CONFIG_FEATURE_LS_SORTFILES=y +CONFIG_FEATURE_LS_TIMESTAMPS=y +CONFIG_FEATURE_LS_USERNAME=y +CONFIG_FEATURE_LS_COLOR=y +CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y +CONFIG_MD5SUM=y +CONFIG_MKDIR=y +CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y +CONFIG_MKFIFO=y +CONFIG_MKNOD=y +CONFIG_MV=y +# CONFIG_FEATURE_MV_LONG_OPTIONS is not set +CONFIG_NICE=y +CONFIG_NOHUP=y +CONFIG_OD=y +# CONFIG_PRINTENV is not set +CONFIG_PRINTF=y +CONFIG_PWD=y +CONFIG_READLINK=y +CONFIG_FEATURE_READLINK_FOLLOW=y +CONFIG_REALPATH=y +CONFIG_RM=y +CONFIG_RMDIR=y +# CONFIG_FEATURE_RMDIR_LONG_OPTIONS is not set +CONFIG_SEQ=y +CONFIG_SHA1SUM=y +CONFIG_SHA256SUM=y +CONFIG_SHA512SUM=y +CONFIG_SHA3SUM=y +CONFIG_SLEEP=y +CONFIG_FEATURE_FANCY_SLEEP=y +CONFIG_FEATURE_FLOAT_SLEEP=y +CONFIG_SORT=y +CONFIG_FEATURE_SORT_BIG=y +# CONFIG_SPLIT is not set +# CONFIG_FEATURE_SPLIT_FANCY is not set +# CONFIG_STAT is not set +# CONFIG_FEATURE_STAT_FORMAT is not set +CONFIG_STTY=y +# CONFIG_SUM is not set +CONFIG_SYNC=y +# CONFIG_TAC is not set +CONFIG_TAIL=y +CONFIG_FEATURE_FANCY_TAIL=y +CONFIG_TEE=y +CONFIG_FEATURE_TEE_USE_BLOCK_IO=y +CONFIG_TRUE=y +CONFIG_TTY=y +CONFIG_UNAME=y +# CONFIG_UNEXPAND is not set +# CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS is not set +CONFIG_UNIQ=y +CONFIG_USLEEP=y +CONFIG_UUDECODE=y +CONFIG_UUENCODE=y +CONFIG_WC=y +# CONFIG_FEATURE_WC_LARGE is not set +CONFIG_WHOAMI=y +CONFIG_YES=y + +# +# Common options for cp and mv +# +CONFIG_FEATURE_PRESERVE_HARDLINKS=y + +# +# Common options for ls, more and telnet +# +CONFIG_FEATURE_AUTOWIDTH=y + +# +# Common options for df, du, ls +# +CONFIG_FEATURE_HUMAN_READABLE=y + +# +# Common options for md5sum, sha1sum, sha256sum, sha512sum, sha3sum +# +CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y + +# +# Console Utilities +# +CONFIG_CHVT=y +# CONFIG_FGCONSOLE is not set +CONFIG_CLEAR=y +CONFIG_DEALLOCVT=y +CONFIG_DUMPKMAP=y +CONFIG_KBD_MODE=y +CONFIG_LOADFONT=y +CONFIG_LOADKMAP=y +CONFIG_OPENVT=y +CONFIG_RESET=y +# CONFIG_RESIZE is not set +# CONFIG_FEATURE_RESIZE_PRINT is not set +CONFIG_SETCONSOLE=y +# CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS is not set +CONFIG_SETFONT=y +# CONFIG_FEATURE_SETFONT_TEXTUAL_MAP is not set +CONFIG_DEFAULT_SETFONT_DIR="" +CONFIG_SETKEYCODES=y +CONFIG_SETLOGCONS=y +CONFIG_SHOWKEY=y + +# +# Common options for loadfont and setfont +# +# CONFIG_FEATURE_LOADFONT_PSF2 is not set +# CONFIG_FEATURE_LOADFONT_RAW is not set + +# +# Debian Utilities +# +CONFIG_MKTEMP=y +# CONFIG_PIPE_PROGRESS is not set +CONFIG_RUN_PARTS=y +CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y +# CONFIG_FEATURE_RUN_PARTS_FANCY is not set +CONFIG_START_STOP_DAEMON=y +CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y +CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y +CONFIG_WHICH=y + +# +# Editors +# +CONFIG_AWK=y +# CONFIG_FEATURE_AWK_LIBM is not set +CONFIG_FEATURE_AWK_GNU_EXTENSIONS=y +CONFIG_CMP=y +CONFIG_DIFF=y +# CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set +CONFIG_FEATURE_DIFF_DIR=y +# CONFIG_ED is not set +CONFIG_PATCH=y +CONFIG_SED=y +CONFIG_VI=y +CONFIG_FEATURE_VI_MAX_LEN=4096 +CONFIG_FEATURE_VI_8BIT=y +CONFIG_FEATURE_VI_COLON=y +CONFIG_FEATURE_VI_YANKMARK=y +CONFIG_FEATURE_VI_SEARCH=y +CONFIG_FEATURE_VI_REGEX_SEARCH=y +CONFIG_FEATURE_VI_USE_SIGNALS=y +CONFIG_FEATURE_VI_DOT_CMD=y +CONFIG_FEATURE_VI_READONLY=y +CONFIG_FEATURE_VI_SETOPTS=y +CONFIG_FEATURE_VI_SET=y +CONFIG_FEATURE_VI_WIN_RESIZE=y +CONFIG_FEATURE_VI_ASK_TERMINAL=y +CONFIG_FEATURE_ALLOW_EXEC=y + +# +# Finding Utilities +# +CONFIG_FIND=y +CONFIG_FEATURE_FIND_PRINT0=y +CONFIG_FEATURE_FIND_MTIME=y +CONFIG_FEATURE_FIND_MMIN=y +CONFIG_FEATURE_FIND_PERM=y +CONFIG_FEATURE_FIND_TYPE=y +CONFIG_FEATURE_FIND_XDEV=y +CONFIG_FEATURE_FIND_MAXDEPTH=y +CONFIG_FEATURE_FIND_NEWER=y +CONFIG_FEATURE_FIND_INUM=y +CONFIG_FEATURE_FIND_EXEC=y +CONFIG_FEATURE_FIND_USER=y +CONFIG_FEATURE_FIND_GROUP=y +CONFIG_FEATURE_FIND_NOT=y +CONFIG_FEATURE_FIND_DEPTH=y +CONFIG_FEATURE_FIND_PAREN=y +CONFIG_FEATURE_FIND_SIZE=y +CONFIG_FEATURE_FIND_PRUNE=y +CONFIG_FEATURE_FIND_DELETE=y +CONFIG_FEATURE_FIND_PATH=y +CONFIG_FEATURE_FIND_REGEX=y +# CONFIG_FEATURE_FIND_CONTEXT is not set +CONFIG_FEATURE_FIND_LINKS=y +CONFIG_GREP=y +CONFIG_FEATURE_GREP_EGREP_ALIAS=y +CONFIG_FEATURE_GREP_FGREP_ALIAS=y +CONFIG_FEATURE_GREP_CONTEXT=y +CONFIG_XARGS=y +CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y +CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y +CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y +CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y + +# +# Init Utilities +# +# CONFIG_BOOTCHARTD is not set +# CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER is not set +# CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE is not set +# CONFIG_HALT is not set +# CONFIG_FEATURE_CALL_TELINIT is not set +CONFIG_TELINIT_PATH="" +# CONFIG_INIT is not set +# CONFIG_FEATURE_USE_INITTAB is not set +# CONFIG_FEATURE_KILL_REMOVED is not set +CONFIG_FEATURE_KILL_DELAY=0 +# CONFIG_FEATURE_INIT_SCTTY is not set +# CONFIG_FEATURE_INIT_SYSLOG is not set +# CONFIG_FEATURE_EXTRA_QUIET is not set +# CONFIG_FEATURE_INIT_COREDUMPS is not set +# CONFIG_FEATURE_INITRD is not set +CONFIG_INIT_TERMINAL_TYPE="" +# CONFIG_MESG is not set +# CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP is not set + +# +# Login/Password Management Utilities +# +# CONFIG_ADD_SHELL is not set +# CONFIG_REMOVE_SHELL is not set +CONFIG_FEATURE_SHADOWPASSWDS=y +# CONFIG_USE_BB_PWD_GRP is not set +# CONFIG_USE_BB_SHADOW is not set +CONFIG_USE_BB_CRYPT=y +CONFIG_USE_BB_CRYPT_SHA=y +CONFIG_ADDUSER=y +CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=y +# CONFIG_FEATURE_CHECK_NAMES is not set +CONFIG_FIRST_SYSTEM_ID=0 +CONFIG_LAST_SYSTEM_ID=0 +CONFIG_ADDGROUP=y +CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS=y +# CONFIG_FEATURE_ADDUSER_TO_GROUP is not set +CONFIG_DELUSER=y +CONFIG_DELGROUP=y +# CONFIG_FEATURE_DEL_USER_FROM_GROUP is not set +CONFIG_GETTY=y +CONFIG_LOGIN=y +# CONFIG_LOGIN_SESSION_AS_CHILD is not set +# CONFIG_PAM is not set +CONFIG_LOGIN_SCRIPTS=y +CONFIG_FEATURE_NOLOGIN=y +CONFIG_FEATURE_SECURETTY=y +CONFIG_PASSWD=y +CONFIG_FEATURE_PASSWD_WEAK_CHECK=y +# CONFIG_CRYPTPW is not set +# CONFIG_CHPASSWD is not set +CONFIG_FEATURE_DEFAULT_PASSWD_ALGO="sha512" +CONFIG_SU=y +# CONFIG_FEATURE_SU_SYSLOG is not set +# CONFIG_FEATURE_SU_CHECKS_SHELLS is not set +CONFIG_SULOGIN=y +CONFIG_VLOCK=y + +# +# Linux Ext2 FS Progs +# +CONFIG_CHATTR=y +# CONFIG_FSCK is not set +CONFIG_LSATTR=y +CONFIG_TUNE2FS=y + +# +# Linux Module Utilities +# +CONFIG_MODINFO=y +# CONFIG_MODPROBE_SMALL is not set +# CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE is not set +# CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED is not set +CONFIG_INSMOD=y +CONFIG_RMMOD=y +CONFIG_LSMOD=y +CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT=y +CONFIG_MODPROBE=y +CONFIG_FEATURE_MODPROBE_BLACKLIST=y +# CONFIG_DEPMOD is not set + +# +# Options common to multiple modutils +# +# CONFIG_FEATURE_2_4_MODULES is not set +# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set +# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set +# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set +# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set +CONFIG_FEATURE_CHECK_TAINTED_MODULE=y +CONFIG_FEATURE_MODUTILS_ALIAS=y +CONFIG_FEATURE_MODUTILS_SYMBOLS=y +CONFIG_DEFAULT_MODULES_DIR="/lib/modules" +CONFIG_DEFAULT_DEPMOD_FILE="modules.dep" + +# +# Linux System Utilities +# +# CONFIG_BLOCKDEV is not set +CONFIG_FSTRIM=y +# CONFIG_MDEV is not set +# CONFIG_FEATURE_MDEV_CONF is not set +# CONFIG_FEATURE_MDEV_RENAME is not set +# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set +# CONFIG_FEATURE_MDEV_EXEC is not set +# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set +# CONFIG_REV is not set +# CONFIG_ACPID is not set +# CONFIG_FEATURE_ACPID_COMPAT is not set +# CONFIG_BLKID is not set +# CONFIG_FEATURE_BLKID_TYPE is not set +CONFIG_DMESG=y +CONFIG_FEATURE_DMESG_PRETTY=y +CONFIG_FBSET=y +CONFIG_FEATURE_FBSET_FANCY=y +CONFIG_FEATURE_FBSET_READMODE=y +# CONFIG_FDFLUSH is not set +# CONFIG_FDFORMAT is not set +CONFIG_FDISK=y +# CONFIG_FDISK_SUPPORT_LARGE_DISKS is not set +CONFIG_FEATURE_FDISK_WRITABLE=y +# CONFIG_FEATURE_AIX_LABEL is not set +# CONFIG_FEATURE_SGI_LABEL is not set +# CONFIG_FEATURE_SUN_LABEL is not set +# CONFIG_FEATURE_OSF_LABEL is not set +CONFIG_FEATURE_GPT_LABEL=y +CONFIG_FEATURE_FDISK_ADVANCED=y +CONFIG_FINDFS=y +CONFIG_FLOCK=y +# CONFIG_FREERAMDISK is not set +# CONFIG_FSCK_MINIX is not set +# CONFIG_MKFS_EXT2 is not set +# CONFIG_MKFS_MINIX is not set +# CONFIG_FEATURE_MINIX2 is not set +# CONFIG_MKFS_REISER is not set +# CONFIG_MKFS_VFAT is not set +CONFIG_GETOPT=y +CONFIG_FEATURE_GETOPT_LONG=y +CONFIG_HEXDUMP=y +# CONFIG_FEATURE_HEXDUMP_REVERSE is not set +CONFIG_HD=y +# CONFIG_HWCLOCK is not set +# CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS is not set +# CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS is not set +# CONFIG_IPCRM is not set +# CONFIG_IPCS is not set +CONFIG_LOSETUP=y +CONFIG_LSPCI=y +CONFIG_LSUSB=y +CONFIG_MKSWAP=y +CONFIG_FEATURE_MKSWAP_UUID=y +CONFIG_MORE=y +CONFIG_MOUNT=y +# CONFIG_FEATURE_MOUNT_FAKE is not set +# CONFIG_FEATURE_MOUNT_VERBOSE is not set +CONFIG_FEATURE_MOUNT_HELPERS=y +CONFIG_FEATURE_MOUNT_LABEL=y +CONFIG_FEATURE_MOUNT_NFS=y +CONFIG_FEATURE_MOUNT_CIFS=y +CONFIG_FEATURE_MOUNT_FLAGS=y +CONFIG_FEATURE_MOUNT_FSTAB=y +# CONFIG_PIVOT_ROOT is not set +CONFIG_RDATE=y +CONFIG_RDEV=y +CONFIG_READPROFILE=y +# CONFIG_RTCWAKE is not set +# CONFIG_SCRIPT is not set +# CONFIG_SCRIPTREPLAY is not set +# CONFIG_SETARCH is not set +CONFIG_SWAPONOFF=y +# CONFIG_FEATURE_SWAPON_PRI is not set +CONFIG_SWITCH_ROOT=y +CONFIG_UMOUNT=y +CONFIG_FEATURE_UMOUNT_ALL=y + +# +# Common options for mount/umount +# +CONFIG_FEATURE_MOUNT_LOOP=y +CONFIG_FEATURE_MOUNT_LOOP_CREATE=y +# CONFIG_FEATURE_MTAB_SUPPORT is not set +CONFIG_VOLUMEID=y + +# +# Filesystem/Volume identification +# +CONFIG_FEATURE_VOLUMEID_BTRFS=y +CONFIG_FEATURE_VOLUMEID_CRAMFS=y +CONFIG_FEATURE_VOLUMEID_EXFAT=y +CONFIG_FEATURE_VOLUMEID_EXT=y +CONFIG_FEATURE_VOLUMEID_F2FS=y +CONFIG_FEATURE_VOLUMEID_FAT=y +CONFIG_FEATURE_VOLUMEID_HFS=y +CONFIG_FEATURE_VOLUMEID_ISO9660=y +CONFIG_FEATURE_VOLUMEID_JFS=y +CONFIG_FEATURE_VOLUMEID_LINUXRAID=y +CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y +CONFIG_FEATURE_VOLUMEID_LUKS=y +CONFIG_FEATURE_VOLUMEID_NILFS=y +CONFIG_FEATURE_VOLUMEID_NTFS=y +CONFIG_FEATURE_VOLUMEID_OCFS2=y +CONFIG_FEATURE_VOLUMEID_REISERFS=y +CONFIG_FEATURE_VOLUMEID_ROMFS=y +# CONFIG_FEATURE_VOLUMEID_SQUASHFS is not set +CONFIG_FEATURE_VOLUMEID_SYSV=y +CONFIG_FEATURE_VOLUMEID_UDF=y +CONFIG_FEATURE_VOLUMEID_XFS=y + +# +# Miscellaneous Utilities +# +# CONFIG_CONSPY is not set +CONFIG_LESS=y +CONFIG_FEATURE_LESS_MAXLINES=9999999 +CONFIG_FEATURE_LESS_BRACKETS=y +CONFIG_FEATURE_LESS_FLAGS=y +# CONFIG_FEATURE_LESS_MARKS is not set +CONFIG_FEATURE_LESS_REGEXP=y +CONFIG_FEATURE_LESS_WINCH=y +CONFIG_FEATURE_LESS_ASK_TERMINAL=y +# CONFIG_FEATURE_LESS_DASHCMD is not set +# CONFIG_FEATURE_LESS_LINENUMS is not set +# CONFIG_NANDWRITE is not set +# CONFIG_NANDDUMP is not set +# CONFIG_RFKILL is not set +CONFIG_SETSERIAL=y +# CONFIG_UBIATTACH is not set +# CONFIG_UBIDETACH is not set +# CONFIG_UBIMKVOL is not set +# CONFIG_UBIRMVOL is not set +# CONFIG_UBIRSVOL is not set +# CONFIG_UBIUPDATEVOL is not set +# CONFIG_WALL is not set +# CONFIG_ADJTIMEX is not set +CONFIG_BBCONFIG=y +CONFIG_FEATURE_COMPRESS_BBCONFIG=y +# CONFIG_BEEP is not set +CONFIG_FEATURE_BEEP_FREQ=0 +CONFIG_FEATURE_BEEP_LENGTH_MS=0 +# CONFIG_CHAT is not set +# CONFIG_FEATURE_CHAT_NOFAIL is not set +# CONFIG_FEATURE_CHAT_TTY_HIFI is not set +# CONFIG_FEATURE_CHAT_IMPLICIT_CR is not set +# CONFIG_FEATURE_CHAT_SWALLOW_OPTS is not set +# CONFIG_FEATURE_CHAT_SEND_ESCAPES is not set +# CONFIG_FEATURE_CHAT_VAR_ABORT_LEN is not set +# CONFIG_FEATURE_CHAT_CLR_ABORT is not set +CONFIG_CHRT=y +CONFIG_CROND=y +# CONFIG_FEATURE_CROND_D is not set +# CONFIG_FEATURE_CROND_CALL_SENDMAIL is not set +CONFIG_FEATURE_CROND_DIR="/etc/cron" +CONFIG_CRONTAB=y +CONFIG_DC=y +# CONFIG_FEATURE_DC_LIBM is not set +# CONFIG_DEVFSD is not set +# CONFIG_DEVFSD_MODLOAD is not set +# CONFIG_DEVFSD_FG_NP is not set +# CONFIG_DEVFSD_VERBOSE is not set +# CONFIG_FEATURE_DEVFS is not set +CONFIG_DEVMEM=y +CONFIG_EJECT=y +CONFIG_FEATURE_EJECT_SCSI=y +CONFIG_FBSPLASH=y +# CONFIG_FLASHCP is not set +# CONFIG_FLASH_LOCK is not set +# CONFIG_FLASH_UNLOCK is not set +# CONFIG_FLASH_ERASEALL is not set +CONFIG_IONICE=y +CONFIG_INOTIFYD=y +# CONFIG_LAST is not set +# CONFIG_FEATURE_LAST_SMALL is not set +# CONFIG_FEATURE_LAST_FANCY is not set +# CONFIG_HDPARM is not set +# CONFIG_FEATURE_HDPARM_GET_IDENTITY is not set +# CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF is not set +# CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF is not set +# CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET is not set +# CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF is not set +# CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA is not set +# CONFIG_MAKEDEVS is not set +# CONFIG_FEATURE_MAKEDEVS_LEAF is not set +# CONFIG_FEATURE_MAKEDEVS_TABLE is not set +# CONFIG_MAN is not set +CONFIG_MICROCOM=y +# CONFIG_MOUNTPOINT is not set +# CONFIG_MT is not set +# CONFIG_RAIDAUTORUN is not set +CONFIG_READAHEAD=y +# CONFIG_RUNLEVEL is not set +# CONFIG_RX is not set +CONFIG_SETSID=y +CONFIG_STRINGS=y +CONFIG_TASKSET=y +CONFIG_FEATURE_TASKSET_FANCY=y +CONFIG_TIME=y +CONFIG_TIMEOUT=y +# CONFIG_TTYSIZE is not set +CONFIG_VOLNAME=y +# CONFIG_WATCHDOG is not set + +# +# Networking Utilities +# +CONFIG_NAMEIF=y +CONFIG_FEATURE_NAMEIF_EXTENDED=y +CONFIG_NBDCLIENT=y +CONFIG_NC=y +CONFIG_NC_SERVER=y +CONFIG_NC_EXTRA=y +# CONFIG_NC_110_COMPAT is not set +CONFIG_PING=y +CONFIG_PING6=y +CONFIG_FEATURE_FANCY_PING=y +CONFIG_WHOIS=y +CONFIG_FEATURE_IPV6=y +# CONFIG_FEATURE_UNIX_LOCAL is not set +CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y +# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set +CONFIG_ARP=y +# CONFIG_ARPING is not set +CONFIG_BRCTL=y +CONFIG_FEATURE_BRCTL_FANCY=y +CONFIG_FEATURE_BRCTL_SHOW=y +# CONFIG_DNSD is not set +CONFIG_ETHER_WAKE=y +# CONFIG_FAKEIDENTD is not set +# CONFIG_FTPD is not set +# CONFIG_FEATURE_FTP_WRITE is not set +# CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST is not set +# CONFIG_FTPGET is not set +# CONFIG_FTPPUT is not set +# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set +CONFIG_HOSTNAME=y +# CONFIG_HTTPD is not set +# CONFIG_FEATURE_HTTPD_RANGES is not set +# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set +# CONFIG_FEATURE_HTTPD_SETUID is not set +# CONFIG_FEATURE_HTTPD_BASIC_AUTH is not set +# CONFIG_FEATURE_HTTPD_AUTH_MD5 is not set +# CONFIG_FEATURE_HTTPD_CGI is not set +# CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR is not set +# CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV is not set +# CONFIG_FEATURE_HTTPD_ENCODE_URL_STR is not set +# CONFIG_FEATURE_HTTPD_ERROR_PAGES is not set +# CONFIG_FEATURE_HTTPD_PROXY is not set +# CONFIG_FEATURE_HTTPD_GZIP is not set +CONFIG_IFCONFIG=y +CONFIG_FEATURE_IFCONFIG_STATUS=y +# CONFIG_FEATURE_IFCONFIG_SLIP is not set +# CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ is not set +CONFIG_FEATURE_IFCONFIG_HW=y +# CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS is not set +# CONFIG_IFENSLAVE is not set +# CONFIG_IFPLUGD is not set +CONFIG_IFUPDOWN=y +CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate" +CONFIG_FEATURE_IFUPDOWN_IP=y +CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN=y +# CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN is not set +CONFIG_FEATURE_IFUPDOWN_IPV4=y +CONFIG_FEATURE_IFUPDOWN_IPV6=y +CONFIG_FEATURE_IFUPDOWN_MAPPING=y +# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set +CONFIG_INETD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y +CONFIG_FEATURE_INETD_RPC=y +CONFIG_IP=y +CONFIG_FEATURE_IP_ADDRESS=y +CONFIG_FEATURE_IP_LINK=y +CONFIG_FEATURE_IP_ROUTE=y +CONFIG_FEATURE_IP_TUNNEL=y +CONFIG_FEATURE_IP_RULE=y +# CONFIG_FEATURE_IP_SHORT_FORMS is not set +# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set +# CONFIG_IPADDR is not set +# CONFIG_IPLINK is not set +# CONFIG_IPROUTE is not set +# CONFIG_IPTUNNEL is not set +# CONFIG_IPRULE is not set +# CONFIG_IPCALC is not set +# CONFIG_FEATURE_IPCALC_FANCY is not set +# CONFIG_FEATURE_IPCALC_LONG_OPTIONS is not set +CONFIG_NETSTAT=y +CONFIG_FEATURE_NETSTAT_WIDE=y +CONFIG_FEATURE_NETSTAT_PRG=y +CONFIG_NSLOOKUP=y +# CONFIG_NTPD is not set +# CONFIG_FEATURE_NTPD_SERVER is not set +# CONFIG_PSCAN is not set +CONFIG_ROUTE=y +# CONFIG_SLATTACH is not set +# CONFIG_TCPSVD is not set +CONFIG_TELNET=y +CONFIG_FEATURE_TELNET_TTYPE=y +CONFIG_FEATURE_TELNET_AUTOLOGIN=y +CONFIG_TELNETD=y +# CONFIG_FEATURE_TELNETD_STANDALONE is not set +# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set +CONFIG_TFTP=y +# CONFIG_TFTPD is not set + +# +# Common options for tftp/tftpd +# +CONFIG_FEATURE_TFTP_GET=y +CONFIG_FEATURE_TFTP_PUT=y +# CONFIG_FEATURE_TFTP_BLOCKSIZE is not set +# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set +# CONFIG_TFTP_DEBUG is not set +CONFIG_TRACEROUTE=y +CONFIG_TRACEROUTE6=y +CONFIG_FEATURE_TRACEROUTE_VERBOSE=y +# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set +CONFIG_FEATURE_TRACEROUTE_USE_ICMP=y +CONFIG_TUNCTL=y +CONFIG_FEATURE_TUNCTL_UG=y +# CONFIG_UDHCPC6 is not set +# CONFIG_UDHCPD is not set +# CONFIG_DHCPRELAY is not set +# CONFIG_DUMPLEASES is not set +# CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY is not set +# CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC is not set +CONFIG_DHCPD_LEASES_FILE="" +CONFIG_UDHCPC=y +CONFIG_FEATURE_UDHCPC_ARPING=y +# CONFIG_FEATURE_UDHCP_PORT is not set +CONFIG_UDHCP_DEBUG=0 +# CONFIG_FEATURE_UDHCP_RFC3397 is not set +CONFIG_FEATURE_UDHCP_8021Q=y +CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" +CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 +CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -b -T3 -A10" +# CONFIG_UDPSVD is not set +CONFIG_VCONFIG=y +CONFIG_WGET=y +CONFIG_FEATURE_WGET_STATUSBAR=y +CONFIG_FEATURE_WGET_AUTHENTICATION=y +CONFIG_FEATURE_WGET_LONG_OPTIONS=y +CONFIG_FEATURE_WGET_TIMEOUT=y +# CONFIG_ZCIP is not set + +# +# Print Utilities +# +# CONFIG_LPD is not set +# CONFIG_LPR is not set +# CONFIG_LPQ is not set + +# +# Mail Utilities +# +# CONFIG_MAKEMIME is not set +CONFIG_FEATURE_MIME_CHARSET="us-ascii" +# CONFIG_POPMAILDIR is not set +# CONFIG_FEATURE_POPMAILDIR_DELIVERY is not set +# CONFIG_REFORMIME is not set +# CONFIG_FEATURE_REFORMIME_COMPAT is not set +CONFIG_SENDMAIL=y + +# +# Process Utilities +# +CONFIG_IOSTAT=y +CONFIG_LSOF=y +CONFIG_MPSTAT=y +CONFIG_NMETER=y +# CONFIG_PMAP is not set +CONFIG_POWERTOP=y +# CONFIG_PSTREE is not set +# CONFIG_PWDX is not set +CONFIG_SMEMCAP=y +# CONFIG_TOP is not set +# CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE is not set +# CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS is not set +# CONFIG_FEATURE_TOP_SMP_CPU is not set +# CONFIG_FEATURE_TOP_DECIMALS is not set +# CONFIG_FEATURE_TOP_SMP_PROCESS is not set +# CONFIG_FEATURE_TOPMEM is not set +# CONFIG_UPTIME is not set +# CONFIG_FEATURE_UPTIME_UTMP_SUPPORT is not set +# CONFIG_FREE is not set +# CONFIG_FUSER is not set +# CONFIG_KILL is not set +# CONFIG_KILLALL is not set +# CONFIG_KILLALL5 is not set +# CONFIG_PGREP is not set +CONFIG_PIDOF=y +CONFIG_FEATURE_PIDOF_SINGLE=y +CONFIG_FEATURE_PIDOF_OMIT=y +# CONFIG_PKILL is not set +# CONFIG_PS is not set +# CONFIG_FEATURE_PS_WIDE is not set +# CONFIG_FEATURE_PS_LONG is not set +# CONFIG_FEATURE_PS_TIME is not set +# CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS is not set +# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set +CONFIG_RENICE=y +# CONFIG_BB_SYSCTL is not set +# CONFIG_FEATURE_SHOW_THREADS is not set +# CONFIG_WATCH is not set + +# +# Runit Utilities +# +# CONFIG_RUNSV is not set +# CONFIG_RUNSVDIR is not set +# CONFIG_FEATURE_RUNSVDIR_LOG is not set +# CONFIG_SV is not set +CONFIG_SV_DEFAULT_SERVICE_DIR="" +# CONFIG_SVLOGD is not set +# CONFIG_CHPST is not set +# CONFIG_SETUIDGID is not set +# CONFIG_ENVUIDGID is not set +# CONFIG_ENVDIR is not set +# CONFIG_SOFTLIMIT is not set +# CONFIG_CHCON is not set +# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set +# CONFIG_GETENFORCE is not set +# CONFIG_GETSEBOOL is not set +# CONFIG_LOAD_POLICY is not set +# CONFIG_MATCHPATHCON is not set +# CONFIG_RESTORECON is not set +# CONFIG_RUNCON is not set +# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set +# CONFIG_SELINUXENABLED is not set +# CONFIG_SETENFORCE is not set +# CONFIG_SETFILES is not set +# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set +# CONFIG_SETSEBOOL is not set +# CONFIG_SESTATUS is not set + +# +# Shells +# +CONFIG_ASH=y +CONFIG_ASH_BASH_COMPAT=y +CONFIG_ASH_IDLE_TIMEOUT=y +CONFIG_ASH_JOB_CONTROL=y +CONFIG_ASH_ALIAS=y +CONFIG_ASH_GETOPTS=y +CONFIG_ASH_BUILTIN_ECHO=y +CONFIG_ASH_BUILTIN_PRINTF=y +CONFIG_ASH_BUILTIN_TEST=y +# CONFIG_ASH_CMDCMD is not set +# CONFIG_ASH_MAIL is not set +CONFIG_ASH_OPTIMIZE_FOR_SIZE=y +CONFIG_ASH_RANDOM_SUPPORT=y +CONFIG_ASH_EXPAND_PRMT=y +# CONFIG_CTTYHACK is not set +# CONFIG_HUSH is not set +# CONFIG_HUSH_BASH_COMPAT is not set +# CONFIG_HUSH_BRACE_EXPANSION is not set +# CONFIG_HUSH_HELP is not set +# CONFIG_HUSH_INTERACTIVE is not set +# CONFIG_HUSH_SAVEHISTORY is not set +# CONFIG_HUSH_JOB is not set +# CONFIG_HUSH_TICK is not set +# CONFIG_HUSH_IF is not set +# CONFIG_HUSH_LOOPS is not set +# CONFIG_HUSH_CASE is not set +# CONFIG_HUSH_FUNCTIONS is not set +# CONFIG_HUSH_LOCAL is not set +# CONFIG_HUSH_RANDOM_SUPPORT is not set +# CONFIG_HUSH_EXPORT_N is not set +# CONFIG_HUSH_MODE_X is not set +# CONFIG_MSH is not set +CONFIG_FEATURE_SH_IS_ASH=y +# CONFIG_FEATURE_SH_IS_HUSH is not set +# CONFIG_FEATURE_SH_IS_NONE is not set +CONFIG_FEATURE_BASH_IS_ASH=y +# CONFIG_FEATURE_BASH_IS_HUSH is not set +# CONFIG_FEATURE_BASH_IS_NONE is not set +CONFIG_SH_MATH_SUPPORT=y +# CONFIG_SH_MATH_SUPPORT_64 is not set +CONFIG_FEATURE_SH_EXTRA_QUIET=y +# CONFIG_FEATURE_SH_STANDALONE is not set +# CONFIG_FEATURE_SH_NOFORK is not set +CONFIG_FEATURE_SH_HISTFILESIZE=y + +# +# System Logging Utilities +# +CONFIG_SYSLOGD=y +CONFIG_FEATURE_ROTATE_LOGFILE=y +CONFIG_FEATURE_REMOTE_LOG=y +CONFIG_FEATURE_SYSLOGD_DUP=y +CONFIG_FEATURE_SYSLOGD_CFG=y +CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256 +CONFIG_FEATURE_IPC_SYSLOG=y +CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16 +CONFIG_LOGREAD=y +CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y +CONFIG_FEATURE_KMSG_SYSLOG=y +CONFIG_KLOGD=y + +# +# klogd should not be used together with syslog to kernel printk buffer +# +CONFIG_FEATURE_KLOGD_KLOGCTL=y +CONFIG_LOGGER=y diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/inetd b/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/inetd new file mode 100755 index 0000000..cf50bcd --- /dev/null +++ b/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/inetd @@ -0,0 +1,33 @@ +#!/bin/sh +# +# start/stop inetd super server. + +if ! [ -x /usr/sbin/inetd ]; then + exit 0 +fi + +case "$1" in + start) + echo -n "Starting internet superserver:" + echo -n " inetd" ; start-stop-daemon -S -x /usr/sbin/inetd > /dev/null + echo "." + ;; + stop) + echo -n "Stopping internet superserver:" + echo -n " inetd" ; start-stop-daemon -K -x /usr/sbin/inetd > /dev/null + echo "." + ;; + restart) + echo -n "Restarting internet superserver:" + echo -n " inetd " + killall -HUP inetd + echo "." + ;; + *) + echo "Usage: /etc/init.d/inetd {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 + diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/inetd.conf b/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/inetd.conf new file mode 100644 index 0000000..bafaf40 --- /dev/null +++ b/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/inetd.conf @@ -0,0 +1,23 @@ +# /etc/inetd.conf: see inetd(8) for further informations. +# +# Internet server configuration database +# +# If you want to disable an entry so it isn't touched during +# package updates just comment it out with a single '#' character. +# +# +# +#:INTERNAL: Internal services +#echo stream tcp nowait root internal +#echo dgram udp wait root internal +#chargen stream tcp nowait root internal +#chargen dgram udp wait root internal +#discard stream tcp nowait root internal +#discard dgram udp wait root internal +#daytime stream tcp nowait root internal +#daytime dgram udp wait root internal +#time stream tcp nowait root internal +#time dgram udp wait root internal +ftp stream tcp nowait root /usr/sbin/vsftpd vsftpd +telnet stream tcp nowait root /usr/sbin/telnetd telnetd +8001 stream tcp nowait root /usr/bin/streamproxy streamproxy diff --git a/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/mount_single_uuid.patch b/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/mount_single_uuid.patch new file mode 100644 index 0000000..9577c07 --- /dev/null +++ b/meta-openvuplus/recipes-core/busybox/busybox-1.22.1/mount_single_uuid.patch @@ -0,0 +1,13 @@ +Index: busybox-1.18.5/util-linux/mount.c +=================================================================== +--- busybox-1.18.5.orig/util-linux/mount.c ++++ busybox-1.18.5/util-linux/mount.c +@@ -1934,6 +1934,8 @@ int mount_main(int argc UNUSED_PARAM, ch + // "proc") or a full path from root + if (argv[0]) { + ++ // Check for UUID= or LABEL= entries too ++ resolve_mount_spec(&mtcur->mnt_fsname); + // Is this what we're looking for? + if (strcmp(argv[0], mtcur->mnt_fsname) != 0 + && strcmp(storage_path, mtcur->mnt_fsname) != 0 diff --git a/meta-openvuplus/recipes-core/busybox/busybox_1.19.4.bbappend b/meta-openvuplus/recipes-core/busybox/busybox_1.19.4.bbappend deleted file mode 100644 index cf4cd40..0000000 --- a/meta-openvuplus/recipes-core/busybox/busybox_1.19.4.bbappend +++ /dev/null @@ -1,42 +0,0 @@ -PR .= "-vuplus11" - -SRC_URI += " \ - file://0001-ifupdown-support-post-up-pre-down-hooks.patch \ - file://0002-ifupdown-code-shrink.patch \ - file://0003-ifupdown-remove-interface-from-state_list-if-iface_u.patch \ - file://0004-ifupdown-support-metric-for-static-default-gw.patch \ - file://0005-ifupdown-improve-compatibility-with-Debian.patch \ - file://0006-get_linux_version_code-don-t-fail-on-3.0-foo.patch \ - file://0007-ifplugd-move-read_pid-to-libbb-pidfile.c-and-rename-.patch \ - file://0009-udhcpc-calculate-broadcast-address-if-not-given-by-s.patch \ - file://0010-udhcpc-obtain-hostname-from-OS-by-default.patch \ - file://0011-mount-don-t-pass-option-auto-to-kernel.patch \ - file://0001-work-around-linux-ext2_fs.h-breakage.patch \ - file://0002-Create-and-use-our-own-copy-of-linux-ext2_fs.h.patch \ - file://0003-Drop-include-bb_linux_ext2_fs.h-use-existing-e2fspro.patch \ - file://mount_single_uuid.patch \ - file://change-passwd-default-algorithm.patch \ - file://inetd \ - file://inetd.conf \ -" -# 0008-ifupdown-dhcp_down-wait-until-udhcpc-has-been-killed.patch is removed. if patched, postdown is not working.(/etc/network/interfaces) - -DEPENDS += "mtd-utils" - -PACKAGES =+ "${PN}-inetd" -INITSCRIPT_PACKAGES += "${PN}-inetd" -INITSCRIPT_NAME_${PN}-inetd = "inetd.${BPN}" -CONFFILES_${PN}-inetd = "${sysconfdir}/inetd.conf" -FILES_${PN}-inetd = "${sysconfdir}/init.d/inetd.${BPN} ${sysconfdir}/inetd.conf" -RDEPENDS_${PN}-inetd += "${PN}" - -RRECOMMENDS_${PN} += "${PN}-inetd" - -do_install_append() { - if grep -q "CONFIG_CRONTAB=y" ${WORKDIR}/defconfig; then - install -d ${D}${sysconfdir}/cron/crontabs - fi -} - -FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" - diff --git a/meta-openvuplus/recipes-core/busybox/busybox_1.22.1.bbappend b/meta-openvuplus/recipes-core/busybox/busybox_1.22.1.bbappend new file mode 100644 index 0000000..52c9f78 --- /dev/null +++ b/meta-openvuplus/recipes-core/busybox/busybox_1.22.1.bbappend @@ -0,0 +1,28 @@ +PR .= "-vuplus0" + +SRC_URI += " \ + file://0011-mount-don-t-pass-option-auto-to-kernel.patch \ + file://mount_single_uuid.patch \ + file://inetd \ + file://inetd.conf \ +" + +DEPENDS += "mtd-utils" + +PACKAGES =+ "${PN}-inetd" +INITSCRIPT_PACKAGES += "${PN}-inetd" +INITSCRIPT_NAME_${PN}-inetd = "inetd.${BPN}" +CONFFILES_${PN}-inetd = "${sysconfdir}/inetd.conf" +FILES_${PN}-inetd = "${sysconfdir}/init.d/inetd.${BPN} ${sysconfdir}/inetd.conf" +RDEPENDS_${PN}-inetd += "${PN}" + +RRECOMMENDS_${PN} += "${PN}-inetd" + +do_install_append() { + if grep -q "CONFIG_CRONTAB=y" ${WORKDIR}/defconfig; then + install -d ${D}${sysconfdir}/cron/crontabs + fi +} + +FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" + diff --git a/meta-openvuplus/recipes-core/dbus/dbus-1.4.16/compile-under-c++11.patch b/meta-openvuplus/recipes-core/dbus/dbus-1.4.16/compile-under-c++11.patch deleted file mode 100644 index 38ab7e2..0000000 --- a/meta-openvuplus/recipes-core/dbus/dbus-1.4.16/compile-under-c++11.patch +++ /dev/null @@ -1,34 +0,0 @@ -From a942d1543f4d87db821c5836986129dea79a173d Mon Sep 17 00:00:00 2001 -From: Marc Mutz -Date: Thu, 16 Feb 2012 08:43:40 +0100 -Subject: [PATCH] dbus-protocol.h: compile under C++11 - -C++11 compilers have a feature called 'user-defined string literals' which -allow arbitrary string suffixes to have user-defined meaning. - -This makes code that concatenates macros with string literals without -intervening whitespace illegal under C++11. Fortunately, string literal -concatenation has allowed intervening whitespace since the dawn of time, -so the solution is to simply pad with spaces. - -Tested (header) with GCC 4.7 (trunk). ---- - dbus/dbus-protocol.h | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/dbus/dbus-protocol.h b/dbus/dbus-protocol.h -index 8aa15e5..60605ab 100644 ---- a/dbus/dbus-protocol.h -+++ b/dbus/dbus-protocol.h -@@ -456,7 +456,7 @@ extern "C" { - /** XML system identifier of the introspection format version 1.0 */ - #define DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" - /** XML document type declaration of the introspection format version 1.0 */ --#define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "\n" -+#define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "\n" - - /** @} */ - --- -1.7.2.3 - diff --git a/meta-openvuplus/recipes-core/dbus/dbus_1.4.16.bbappend b/meta-openvuplus/recipes-core/dbus/dbus_1.4.16.bbappend deleted file mode 100644 index ff7200c..0000000 --- a/meta-openvuplus/recipes-core/dbus/dbus_1.4.16.bbappend +++ /dev/null @@ -1,5 +0,0 @@ -PR .= "-dream1" - -SRC_URI += "file://compile-under-c++11.patch" - -FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" diff --git a/meta-openvuplus/recipes-core/gettext/gettext/gettext_remove_gets.patch b/meta-openvuplus/recipes-core/gettext/gettext/gettext_remove_gets.patch deleted file mode 100644 index ac0d5b5..0000000 --- a/meta-openvuplus/recipes-core/gettext/gettext/gettext_remove_gets.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff --git a/gettext-runtime/gnulib-lib/stdio.in.h b/gettext-runtime/gnulib-lib/stdio.in.h -index c43848e..38e0b53 100644 ---- a/gettext-runtime/gnulib-lib/stdio.in.h -+++ b/gettext-runtime/gnulib-lib/stdio.in.h -@@ -140,8 +140,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " - /* It is very rare that the developer ever has full control of stdin, - so any use of gets warrants an unconditional warning. Assume it is - always declared, since it is required by C89. */ -+#ifdef gets - #undef gets - _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); -+#endif - - #if @GNULIB_FOPEN@ - # if @REPLACE_FOPEN@ -diff --git a/gettext-tools/gnulib-lib/stdio.in.h b/gettext-tools/gnulib-lib/stdio.in.h -index c43848e..38e0b53 100644 ---- a/gettext-tools/gnulib-lib/stdio.in.h -+++ b/gettext-tools/gnulib-lib/stdio.in.h -@@ -140,8 +140,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " - /* It is very rare that the developer ever has full control of stdin, - so any use of gets warrants an unconditional warning. Assume it is - always declared, since it is required by C89. */ -+#ifdef gets - #undef gets - _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); -+#endif - - #if @GNULIB_FOPEN@ - # if @REPLACE_FOPEN@ -diff --git a/gettext-tools/libgettextpo/stdio.in.h b/gettext-tools/libgettextpo/stdio.in.h -index c43848e..38e0b53 100644 ---- a/gettext-tools/libgettextpo/stdio.in.h -+++ b/gettext-tools/libgettextpo/stdio.in.h -@@ -140,8 +140,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " - /* It is very rare that the developer ever has full control of stdin, - so any use of gets warrants an unconditional warning. Assume it is - always declared, since it is required by C89. */ -+#ifdef gets - #undef gets - _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); -+#endif - - #if @GNULIB_FOPEN@ - # if @REPLACE_FOPEN@ diff --git a/meta-openvuplus/recipes-core/gettext/gettext_0.18.1.1.bbappend b/meta-openvuplus/recipes-core/gettext/gettext_0.18.1.1.bbappend deleted file mode 100644 index 1fdc44f..0000000 --- a/meta-openvuplus/recipes-core/gettext/gettext_0.18.1.1.bbappend +++ /dev/null @@ -1,7 +0,0 @@ -PR .= "-vuplus1" - -SRC_URI += " \ - file://gettext_remove_gets.patch \ -" - -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" diff --git a/meta-openvuplus/recipes-core/init-ifupdown/init-ifupdown/interfaces b/meta-openvuplus/recipes-core/init-ifupdown/init-ifupdown/interfaces new file mode 100644 index 0000000..673618f --- /dev/null +++ b/meta-openvuplus/recipes-core/init-ifupdown/init-ifupdown/interfaces @@ -0,0 +1,10 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Ethernet +auto eth0 +iface eth0 inet dhcp + diff --git a/meta-openvuplus/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend b/meta-openvuplus/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend new file mode 100644 index 0000000..3728583 --- /dev/null +++ b/meta-openvuplus/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend @@ -0,0 +1,4 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PR .= "-vuplus0" + diff --git a/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/bootmisc.sh b/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/bootmisc.sh new file mode 100644 index 0000000..80f7ead --- /dev/null +++ b/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/bootmisc.sh @@ -0,0 +1,71 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: bootmisc +# Required-Start: $local_fs mountvirtfs +# Required-Stop: $local_fs +# Default-Start: S +# Default-Stop: 0 6 +# Short-Description: Misc and other. +### END INIT INFO + +. /etc/default/rcS +# +# Put a nologin file in /etc to prevent people from logging in before +# system startup is complete. +# +if test "$DELAYLOGIN" = yes +then + echo "System bootup in progress - please wait" > /etc/nologin + cp /etc/nologin /etc/nologin.boot +fi + +# +# Set pseudo-terminal access permissions. +# +if test -c /dev/ttyp0 +then + chmod 666 /dev/tty[p-za-e][0-9a-f] + chown root:tty /dev/tty[p-za-e][0-9a-f] +fi + +# +# Apply /proc settings if defined +# +SYSCTL_CONF="/etc/sysctl.conf" +if [ -f "${SYSCTL_CONF}" ] +then + if [ -x "/sbin/sysctl" ] + then + /sbin/sysctl -p "${SYSCTL_CONF}" + else + echo "To have ${SYSCTL_CONF} applied during boot, install package ." + fi +fi + +# +# Update /etc/motd. +# +if test "$EDITMOTD" != no +then + uname -a > /etc/motd.tmp + sed 1d /etc/motd >> /etc/motd.tmp + mv /etc/motd.tmp /etc/motd +fi + +# +# This is as good a place as any for a sanity check + +# Set the system clock from hardware clock +# If the timestamp is more recent than the current time, +# use the timestamp instead. +test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh start +if test -e /etc/timestamp +then + SYSTEMDATE=`date -u +%4Y%2m%2d%2H%2M` + read TIMESTAMP < /etc/timestamp + if [ ${TIMESTAMP} -gt $SYSTEMDATE ]; then + date -u ${TIMESTAMP#????}${TIMESTAMP%????????} + test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh stop + fi +fi +: exit 0 diff --git a/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/mountrun.sh b/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/mountrun.sh deleted file mode 100755 index f5ca2f9..0000000 --- a/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/mountrun.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -mountpoint -q /var/volatile || mount /var/volatile -mkdir -m 0755 -p /var/volatile/run diff --git a/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh b/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh index c618629..442321a 100755 --- a/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh +++ b/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh @@ -8,165 +8,186 @@ # Short-Description: Populate the volatile filesystem ### END INIT INFO -. /etc/default/rcS - -CFGDIR="/etc/default/volatiles" -TMPROOT="/var/tmp" +# Get ROOT_DIR +DIRNAME=`dirname $0` +ROOT_DIR=`echo $DIRNAME | sed -ne 's:/etc/.*::p'` + +[ -e ${ROOT_DIR}/etc/default/rcS ] && . ${ROOT_DIR}/etc/default/rcS +# When running populate-volatile.sh at rootfs time, disable cache. +[ -n "$ROOT_DIR" ] && VOLATILE_ENABLE_CACHE=no +# If rootfs is read-only, disable cache. +[ "$ROOTFS_READ_ONLY" = "yes" ] && VOLATILE_ENABLE_CACHE=no + +CFGDIR="${ROOT_DIR}/etc/default/volatiles" +TMPROOT="${ROOT_DIR}/var/volatile/tmp" COREDEF="00_core" [ "${VERBOSE}" != "no" ] && echo "Populating volatile Filesystems." create_file() { - EXEC=" - touch \"$1\"; - chown ${TUSER}.${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\" >/dev/ttyS0 2>&1; - chmod ${TMODE} $1 || echo \"Failed to set mode -${TMODE}- for -$1-.\" >/dev/ttyS0 2>&1 " + EXEC=" + touch \"$1\"; + chown ${TUSER}.${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\" >/dev/ttyS0 2>&1; + chmod ${TMODE} $1 || echo \"Failed to set mode -${TMODE}- for -$1-.\" >/dev/ttyS0 2>&1 " test "$VOLATILE_ENABLE_CACHE" = yes && echo "$EXEC" >> /etc/volatile.cache.build [ -e "$1" ] && { - [ "${VERBOSE}" != "no" ] && echo "Target already exists. Skipping." + [ "${VERBOSE}" != "no" ] && echo "Target already exists. Skipping." } || { - eval $EXEC & + if [ -z "$ROOT_DIR" ]; then + eval $EXEC & + else + # Creating some files at rootfs time may fail and should fail, + # but these failures should not be logged to make sure the do_rootfs + # process doesn't fail. This does no harm, as this script will + # run on target to set up the correct files and directories. + eval $EXEC > /dev/null 2>&1 + fi } } mk_dir() { - EXEC=" - mkdir -p \"$1\"; - chown ${TUSER}.${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\" >/dev/ttyS0 2>&1; + EXEC=" + mkdir -p \"$1\"; + chown ${TUSER}.${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\" >/dev/ttyS0 2>&1; chmod ${TMODE} $1 || echo \"Failed to set mode -${TMODE}- for -$1-.\" >/dev/ttyS0 2>&1 " test "$VOLATILE_ENABLE_CACHE" = yes && echo "$EXEC" >> /etc/volatile.cache.build - [ -e "$1" ] && { - [ "${VERBOSE}" != "no" ] && echo "Target already exists. Skipping." + [ "${VERBOSE}" != "no" ] && echo "Target already exists. Skipping." } || { - eval $EXEC & + if [ -z "$ROOT_DIR" ]; then + eval $EXEC + else + # For the same reason with create_file(), failures should + # not be logged. + eval $EXEC > /dev/null 2>&1 + fi } } link_file() { - EXEC="test -e \"$2\" -o -L $2 || ln -s \"$1\" \"$2\" >/dev/ttyS0 2>&1" + EXEC=" + if [ -L \"$2\" ]; then + [ \"\$(readlink -f \"$2\")\" != \"\$(readlink -f \"$1\")\" ] && { rm -f \"$2\"; ln -sf \"$1\" \"$2\"; }; + elif [ -d \"$2\" ]; then + cp -a $2/* $1 2>/dev/null; + cp -a $2/.[!.]* $1 2>/dev/null; + rm -rf \"$2\"; + ln -sf \"$1\" \"$2\"; + else + ln -sf \"$1\" \"$2\"; + fi + " test "$VOLATILE_ENABLE_CACHE" = yes && echo " $EXEC" >> /etc/volatile.cache.build - - [ -e "$2" ] && { - echo "Cannot create link over existing -${TNAME}-." >&2 - } || { - eval $EXEC & - } + + if [ -z "$ROOT_DIR" ]; then + eval $EXEC & + else + # For the same reason with create_file(), failures should + # not be logged. + eval $EXEC > /dev/null 2>&1 + fi } check_requirements() { + cleanup() { + rm "${TMP_INTERMED}" + rm "${TMP_DEFINED}" + rm "${TMP_COMBINED}" + } - cleanup() { - rm "${TMP_INTERMED}" - rm "${TMP_DEFINED}" - rm "${TMP_COMBINED}" - } - - CFGFILE="$1" - - [ `basename "${CFGFILE}"` = "${COREDEF}" ] && return 0 - - TMP_INTERMED="${TMPROOT}/tmp.$$" - TMP_DEFINED="${TMPROOT}/tmpdefined.$$" - TMP_COMBINED="${TMPROOT}/tmpcombined.$$" - + CFGFILE="$1" + [ `basename "${CFGFILE}"` = "${COREDEF}" ] && return 0 - cat /etc/passwd | sed 's@\(^:\)*:.*@\1@' | sort | uniq > "${TMP_DEFINED}" - cat ${CFGFILE} | grep -v "^#" | cut -d " " -f 2 > "${TMP_INTERMED}" - cat "${TMP_DEFINED}" "${TMP_INTERMED}" | sort | uniq > "${TMP_COMBINED}" + TMP_INTERMED="${TMPROOT}/tmp.$$" + TMP_DEFINED="${TMPROOT}/tmpdefined.$$" + TMP_COMBINED="${TMPROOT}/tmpcombined.$$" - NR_DEFINED_USERS="`cat "${TMP_DEFINED}" | wc -l`" - NR_COMBINED_USERS="`cat "${TMP_COMBINED}" | wc -l`" + sed 's@\(^:\)*:.*@\1@' ${ROOT_DIR}/etc/passwd | sort | uniq > "${TMP_DEFINED}" + cat ${CFGFILE} | grep -v "^#" | cut -s -d " " -f 2 > "${TMP_INTERMED}" + cat "${TMP_DEFINED}" "${TMP_INTERMED}" | sort | uniq > "${TMP_COMBINED}" + NR_DEFINED_USERS="`cat "${TMP_DEFINED}" | wc -l`" + NR_COMBINED_USERS="`cat "${TMP_COMBINED}" | wc -l`" - [ "${NR_DEFINED_USERS}" -ne "${NR_COMBINED_USERS}" ] && { - echo "Undefined users:" - diff "${TMP_DEFINED}" "${TMP_COMBINED}" | grep "^>" - cleanup - return 1 - } + [ "${NR_DEFINED_USERS}" -ne "${NR_COMBINED_USERS}" ] && { + echo "Undefined users:" + diff "${TMP_DEFINED}" "${TMP_COMBINED}" | grep "^>" + cleanup + return 1 + } - cat /etc/group | sed 's@\(^:\)*:.*@\1@' | sort | uniq > "${TMP_DEFINED}" - cat ${CFGFILE} | grep -v "^#" | cut -d " " -f 3 > "${TMP_INTERMED}" - cat "${TMP_DEFINED}" "${TMP_INTERMED}" | sort | uniq > "${TMP_COMBINED}" + sed 's@\(^:\)*:.*@\1@' ${ROOT_DIR}/etc/group | sort | uniq > "${TMP_DEFINED}" + cat ${CFGFILE} | grep -v "^#" | cut -s -d " " -f 3 > "${TMP_INTERMED}" + cat "${TMP_DEFINED}" "${TMP_INTERMED}" | sort | uniq > "${TMP_COMBINED}" - NR_DEFINED_GROUPS="`cat "${TMP_DEFINED}" | wc -l`" - NR_COMBINED_GROUPS="`cat "${TMP_COMBINED}" | wc -l`" + NR_DEFINED_GROUPS="`cat "${TMP_DEFINED}" | wc -l`" + NR_COMBINED_GROUPS="`cat "${TMP_COMBINED}" | wc -l`" - [ "${NR_DEFINED_GROUPS}" -ne "${NR_COMBINED_GROUPS}" ] && { - echo "Undefined groups:" - diff "${TMP_DEFINED}" "${TMP_COMBINED}" | grep "^>" - cleanup - return 1 - } + [ "${NR_DEFINED_GROUPS}" -ne "${NR_COMBINED_GROUPS}" ] && { + echo "Undefined groups:" + diff "${TMP_DEFINED}" "${TMP_COMBINED}" | grep "^>" + cleanup + return 1 + } - # Add checks for required directories here + # Add checks for required directories here - cleanup - return 0 - } + cleanup + return 0 +} apply_cfgfile() { + CFGFILE="$1" - CFGFILE="$1" - - check_requirements "${CFGFILE}" || { - echo "Skipping ${CFGFILE}" - return 1 - } - - cat ${CFGFILE} | grep -v "^#" | \ - while read LINE; do - - eval `echo "$LINE" | sed -n "s/\(.*\)\ \(.*\) \(.*\)\ \(.*\)\ \(.*\)\ \(.*\)/TTYPE=\1 ; TUSER=\2; TGROUP=\3; TMODE=\4; TNAME=\5 TLTARGET=\6/p"` - - [ "${VERBOSE}" != "no" ] && echo "Checking for -${TNAME}-." - - - [ "${TTYPE}" = "l" ] && { - TSOURCE="$TLTARGET" - [ -L "${TNAME}" ] || { - [ "${VERBOSE}" != "no" ] && echo "Creating link -${TNAME}- pointing to -${TSOURCE}-." - link_file "${TSOURCE}" "${TNAME}" & - } - continue - } - - [ -L "${TNAME}" ] && { - [ "${VERBOSE}" != "no" ] && echo "Found link." - NEWNAME=`ls -l "${TNAME}" | sed -e 's/^.*-> \(.*\)$/\1/'` - echo ${NEWNAME} | grep -v "^/" >/dev/null && { - TNAME="`echo ${TNAME} | sed -e 's@\(.*\)/.*@\1@'`/${NEWNAME}" - [ "${VERBOSE}" != "no" ] && echo "Converted relative linktarget to absolute path -${TNAME}-." - } || { - TNAME="${NEWNAME}" - [ "${VERBOSE}" != "no" ] && echo "Using absolute link target -${TNAME}-." - } - } - - case "${TTYPE}" in - "f") [ "${VERBOSE}" != "no" ] && echo "Creating file -${TNAME}-." - create_file "${TNAME}" & - ;; - "d") [ "${VERBOSE}" != "no" ] && echo "Creating directory -${TNAME}-." - mk_dir "${TNAME}" & - # Add check to see if there's an entry in fstab to mount. - ;; - *) [ "${VERBOSE}" != "no" ] && echo "Invalid type -${TTYPE}-." - continue - ;; - esac - - - done - - return 0 + check_requirements "${CFGFILE}" || { + echo "Skipping ${CFGFILE}" + return 1 + } - } + cat ${CFGFILE} | grep -v "^#" | \ + while read LINE; do + eval `echo "$LINE" | sed -n "s/\(.*\)\ \(.*\) \(.*\)\ \(.*\)\ \(.*\)\ \(.*\)/TTYPE=\1 ; TUSER=\2; TGROUP=\3; TMODE=\4; TNAME=\5 TLTARGET=\6/p"` + TNAME=${ROOT_DIR}${TNAME} + [ "${VERBOSE}" != "no" ] && echo "Checking for -${TNAME}-." + + [ "${TTYPE}" = "l" ] && { + TSOURCE="$TLTARGET" + [ "${VERBOSE}" != "no" ] && echo "Creating link -${TNAME}- pointing to -${TSOURCE}-." + link_file "${TSOURCE}" "${TNAME}" + continue + } + + [ -L "${TNAME}" ] && { + [ "${VERBOSE}" != "no" ] && echo "Found link." + NEWNAME=`ls -l "${TNAME}" | sed -e 's/^.*-> \(.*\)$/\1/'` + echo ${NEWNAME} | grep -v "^/" >/dev/null && { + TNAME="`echo ${TNAME} | sed -e 's@\(.*\)/.*@\1@'`/${NEWNAME}" + [ "${VERBOSE}" != "no" ] && echo "Converted relative linktarget to absolute path -${TNAME}-." + } || { + TNAME="${NEWNAME}" + [ "${VERBOSE}" != "no" ] && echo "Using absolute link target -${TNAME}-." + } + } + + case "${TTYPE}" in + "f") [ "${VERBOSE}" != "no" ] && echo "Creating file -${TNAME}-." + create_file "${TNAME}" & + ;; + "d") [ "${VERBOSE}" != "no" ] && echo "Creating directory -${TNAME}-." + mk_dir "${TNAME}" + # Add check to see if there's an entry in fstab to mount. + ;; + *) [ "${VERBOSE}" != "no" ] && echo "Invalid type -${TTYPE}-." + continue + ;; + esac + done + return 0 +} clearcache=0 exec 9&- -if test -e /etc/volatile.cache -a "$VOLATILE_ENABLE_CACHE" = "yes" -a "x$1" != "xupdate" -a "x$clearcache" = "x0" +if test -e ${ROOT_DIR}/etc/volatile.cache -a "$VOLATILE_ENABLE_CACHE" = "yes" -a "x$1" != "xupdate" -a "x$clearcache" = "x0" then - sh /etc/volatile.cache -else - rm -f /etc/volatile.cache /etc/volatile.cache.build + sh ${ROOT_DIR}/etc/volatile.cache +else + rm -f ${ROOT_DIR}/etc/volatile.cache ${ROOT_DIR}/etc/volatile.cache.build for file in `ls -1 "${CFGDIR}" | sort`; do apply_cfgfile "${CFGDIR}/${file}" done - [ -e /etc/volatile.cache.build ] && sync && mv /etc/volatile.cache.build /etc/volatile.cache + [ -e ${ROOT_DIR}/etc/volatile.cache.build ] && sync && mv ${ROOT_DIR}/etc/volatile.cache.build ${ROOT_DIR}/etc/volatile.cache fi -if test -f /etc/ld.so.cache -a ! -f /var/run/ld.so.cache +if [ -z "${ROOT_DIR}" ] && [ -f /etc/ld.so.cache ] && [ ! -f /var/run/ld.so.cache ] then ln -s /etc/ld.so.cache /var/run/ld.so.cache fi diff --git a/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/vusolo/bootmisc.sh b/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/vusolo/bootmisc.sh index c2a9536..c73af09 100755 --- a/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/vusolo/bootmisc.sh +++ b/meta-openvuplus/recipes-core/initscripts/initscripts-1.0/vusolo/bootmisc.sh @@ -54,13 +54,6 @@ fi # # This is as good a place as any for a sanity check -# /tmp should be a symlink to /var/tmp to cut down on the number -# of mounted ramdisks. -if test ! -L /tmp && test -d /var/tmp -then - rm -rf /tmp - ln -sf /var/tmp /tmp -fi # Set the system clock from hardware clock # If the timestamp is more recent than the current time, diff --git a/meta-openvuplus/recipes-core/initscripts/initscripts_1.0.bbappend b/meta-openvuplus/recipes-core/initscripts/initscripts_1.0.bbappend index 168eeeb..9474af7 100644 --- a/meta-openvuplus/recipes-core/initscripts/initscripts_1.0.bbappend +++ b/meta-openvuplus/recipes-core/initscripts/initscripts_1.0.bbappend @@ -1,4 +1,4 @@ -PR .= "-vuplus9" +PR .= "-vuplus11" FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" @@ -6,9 +6,12 @@ SRC_URI_append = " \ file://turnoff_power \ file://hotplug_br \ file://make_mac_sector \ - file://mountrun.sh \ " +do_configure_prepend() { + sed -i 's/tty0/ttyS0/' ${WORKDIR}/banner.sh +} + do_install_append() { rm ${D}${sysconfdir}/*.d/*save-rtc.sh @@ -17,9 +20,6 @@ do_install_append() { install -m 0755 ${WORKDIR}/hotplug_br ${D}/usr/bin install -m 0755 ${WORKDIR}/make_mac_sector ${D}/usr/bin - install -m 0755 ${WORKDIR}/mountrun.sh ${D}${sysconfdir}/init.d - ln -s ../init.d/mountrun.sh ${D}${sysconfdir}/rcS.d/S02mountrun.sh - # rename umountnfs script because it should run before network is disabled mv ${D}${sysconfdir}/rc0.d/S31umountnfs.sh ${D}${sysconfdir}/rc0.d/K31umountnfs.sh || /bin/true mv ${D}${sysconfdir}/rc6.d/S31umountnfs.sh ${D}${sysconfdir}/rc6.d/K31umountnfs.sh || /bin/true diff --git a/meta-openvuplus/recipes-core/meta/distro-feed-configs.bbappend b/meta-openvuplus/recipes-core/meta/distro-feed-configs.bbappend index 6383e50..ec21862 100644 --- a/meta-openvuplus/recipes-core/meta/distro-feed-configs.bbappend +++ b/meta-openvuplus/recipes-core/meta/distro-feed-configs.bbappend @@ -1,2 +1,2 @@ -PR .= "-vuplus3" +PR .= "-vuplus1" diff --git a/meta-openvuplus/recipes-core/netbase/netbase/interfaces b/meta-openvuplus/recipes-core/netbase/netbase/interfaces deleted file mode 100644 index 673618f..0000000 --- a/meta-openvuplus/recipes-core/netbase/netbase/interfaces +++ /dev/null @@ -1,10 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - -# Ethernet -auto eth0 -iface eth0 inet dhcp - diff --git a/meta-openvuplus/recipes-core/netbase/netbase_4.47.bbappend b/meta-openvuplus/recipes-core/netbase/netbase_4.47.bbappend deleted file mode 100644 index 098b654..0000000 --- a/meta-openvuplus/recipes-core/netbase/netbase_4.47.bbappend +++ /dev/null @@ -1,7 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" - -PR .= "-vuplus2" - -#do_install_append () { -# touch ${D}${sysconfdir}/resolv.conf -#} diff --git a/meta-openvuplus/recipes-core/packagegroup/packagegroup-core-boot.bbappend b/meta-openvuplus/recipes-core/packagegroup/packagegroup-core-boot.bbappend new file mode 100644 index 0000000..ec21862 --- /dev/null +++ b/meta-openvuplus/recipes-core/packagegroup/packagegroup-core-boot.bbappend @@ -0,0 +1,2 @@ +PR .= "-vuplus1" + diff --git a/meta-openvuplus/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/meta-openvuplus/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend index ea95d2a..80b8d76 100644 --- a/meta-openvuplus/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend +++ b/meta-openvuplus/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend @@ -1,4 +1,4 @@ -PR .= "-vuplus3" +PR .= "-vuplus0" do_install_append() { sed -e 's,^id:5:initdefault:$,id:3:initdefault:,' -i ${D}${sysconfdir}/inittab diff --git a/meta-openvuplus/recipes-core/tasks/task-core-boot.bb b/meta-openvuplus/recipes-core/tasks/task-core-boot.bb deleted file mode 100644 index 498f2f5..0000000 --- a/meta-openvuplus/recipes-core/tasks/task-core-boot.bb +++ /dev/null @@ -1,6 +0,0 @@ -PR = "${INC_PR}.3" - -RDEPENDS_${PN} = " \ - " - -require task-core-boot.inc diff --git a/meta-openvuplus/recipes-core/tasks/task-core-boot.inc b/meta-openvuplus/recipes-core/tasks/task-core-boot.inc deleted file mode 100644 index 173e9fb..0000000 --- a/meta-openvuplus/recipes-core/tasks/task-core-boot.inc +++ /dev/null @@ -1,37 +0,0 @@ -SUMMARY = "minimal bootable image" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ - file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" - -inherit task - -PACKAGE_ARCH = "${MACHINE_ARCH}" -INC_PR = "r2" - -# -# Set by the machine configuration with packages essential for device bootup -# -MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" -MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" - -# Distro can override the following VIRTUAL-RUNTIME providers: -VIRTUAL-RUNTIME_dev_manager ?= "udev" -VIRTUAL-RUNTIME_init_manager ?= "sysvinit" -VIRTUAL-RUNTIME_initscripts ?= "initscripts" -VIRTUAL-RUNTIME_keymaps ?= "keymaps" - -RDEPENDS_${PN} += " \ - base-files \ - base-passwd \ - busybox \ - ${VIRTUAL-RUNTIME_initscripts} \ - ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \ - modutils-initscripts \ - netbase \ - ${VIRTUAL-RUNTIME_init_manager} \ - ${VIRTUAL-RUNTIME_dev_manager} \ - ${VIRTUAL-RUNTIME_update-alternatives} \ - ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}" - -RRECOMMENDS_${PN} += "${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}" - diff --git a/meta-openvuplus/recipes-core/udev/udev-124/40-od-devfs-compatibility.rules b/meta-openvuplus/recipes-core/udev/udev-124/40-od-devfs-compatibility.rules deleted file mode 100644 index 4499cf1..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/40-od-devfs-compatibility.rules +++ /dev/null @@ -1,19 +0,0 @@ -# There are a number of modifiers that are allowed to be used in some -# of the different fields. They provide the following subsitutions: -# -# %n the "kernel number" of the device. -# For example, 'sda3' has a "kernel number" of '3' -# %e the smallest number for that name which does not matches an existing node -# %k the kernel name for the device -# %M the kernel major number for the device -# %m the kernel minor number for the device -# %b the bus id for the device -# %c the string returned by the PROGRAM -# %s{filename} the content of a sysfs attribute -# %% the '%' char itself -# - -KERNEL=="i2c-[0-9]*", SYMLINK+="i2c/%n" -KERNEL=="fb[0-9]*", SYMLINK+="fb/%n" -KERNEL=="mtdblock[0-9]*", SYMLINK+="mtdblock/%n" -KERNEL=="tty[0-9]*", SYMLINK+="vc/%n" diff --git a/meta-openvuplus/recipes-core/udev/udev-124/41-od-linux-2.6.18-misc.rules b/meta-openvuplus/recipes-core/udev/udev-124/41-od-linux-2.6.18-misc.rules deleted file mode 100644 index 4a7e72f..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/41-od-linux-2.6.18-misc.rules +++ /dev/null @@ -1,26 +0,0 @@ -# There are a number of modifiers that are allowed to be used in some -# of the different fields. They provide the following subsitutions: -# -# %n the "kernel number" of the device. -# For example, 'sda3' has a "kernel number" of '3' -# %e the smallest number for that name which does not matches an existing node -# %k the kernel name for the device -# %M the kernel major number for the device -# %m the kernel minor number for the device -# %b the bus id for the device -# %c the string returned by the PROGRAM -# %s{filename} the content of a sysfs attribute -# %% the '%' char itself -# - -KERNEL=="fp0", NAME="dbox/fp0" -KERNEL=="oled0", NAME="dbox/oled0" -KERNEL=="lcd0", NAME="dbox/lcd0" -KERNEL=="hsm0", NAME="misc/hsm0" -KERNEL=="vtuner0", NAME="misc/vtuner0" -KERNEL=="vtuner1", NAME="misc/vtuner1" -KERNEL=="vtuner2", NAME="misc/vtuner2" -KERNEL=="vtuner3", NAME="misc/vtuner3" -KERNEL=="pvr", NAME="misc/pvr" -KERNEL=="dp", NAME="misc/dp" -KERNEL=="ni2c", NAME="misc/ni2c" diff --git a/meta-openvuplus/recipes-core/udev/udev-124/42-od-oled-compatibility.rules b/meta-openvuplus/recipes-core/udev/udev-124/42-od-oled-compatibility.rules deleted file mode 100644 index bf501bf..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/42-od-oled-compatibility.rules +++ /dev/null @@ -1,16 +0,0 @@ -# There are a number of modifiers that are allowed to be used in some -# of the different fields. They provide the following subsitutions: -# -# %n the "kernel number" of the device. -# For example, 'sda3' has a "kernel number" of '3' -# %e the smallest number for that name which does not matches an existing node -# %k the kernel name for the device -# %M the kernel major number for the device -# %m the kernel minor number for the device -# %b the bus id for the device -# %c the string returned by the PROGRAM -# %s{filename} the content of a sysfs attribute -# %% the '%' char itself -# - -KERNEL=="*oled0", SYMLINK+="dbox/lcd0" diff --git a/meta-openvuplus/recipes-core/udev/udev-124/default b/meta-openvuplus/recipes-core/udev/udev-124/default deleted file mode 100755 index d0050b8..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/default +++ /dev/null @@ -1,4 +0,0 @@ -# Default for /etc/init.d/udev - -# Comment this out to disable device cache -#DEVCACHE="/etc/dev.tar" diff --git a/meta-openvuplus/recipes-core/udev/udev-124/devfs-udev.rules b/meta-openvuplus/recipes-core/udev/udev-124/devfs-udev.rules deleted file mode 100644 index 0ba1ad4..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/devfs-udev.rules +++ /dev/null @@ -1,108 +0,0 @@ -# The use of these rules is not recommended or supported. -# In a world where devices can come and go at any time, the devfs scheme -# of simple device enumeration does not help _anything_. Just forget about -# it. Use custom rules to name your device or look at the persistent device -# naming scheme, which is implemented for disks and add your subsystem. - -# ide block devices -BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}" - -# md block devices -KERNEL="md[0-9]*", NAME="md/%n" - -# floppy devices -KERNEL="fd[0-9]*", NAME="floppy/%n" - -# tty devices -KERNEL="tty[0-9]*", NAME="vc/%n", SYMLINK="%k" -KERNEL="ttyS[0-9]*", NAME="tts/%n", SYMLINK="%k" -KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n" - -# vc devices -KERNEL="vcs", NAME="vcc/0" -KERNEL="vcs[0-9]*", NAME="vcc/%n" -KERNEL="vcsa", NAME="vcc/a0" -KERNEL="vcsa[0-9]*", NAME="vcc/a%n" - -# v4l devices -KERNEL="video[0-9]*", NAME="v4l/video%n" -KERNEL="radio[0-9]*", NAME="v4l/radio%n" -KERNEL="vbi[0-9]*", NAME="v4l/vbi%n" -KERNEL="vtx[0-9]*", NAME="v4l/vtx%n" - -# dm devices (ignore them) -KERNEL="dm-[0-9]*", NAME="" - -# i2c devices -KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k" - -# loop devices -KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k" - -# ramdisks -KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k" - -# framebuffer devices -KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k" - -# misc -KERNEL="rtc", NAME="misc/%k", SYMLINK="%k" -KERNEL="psaux", NAME="misc/%k", SYMLINK="%k" -KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k" -KERNEL="rtc", NAME="misc/%k", SYMLINK="%k" -KERNEL="psaux", NAME="misc/%k", SYMLINK="%k" -KERNEL="uinput", NAME="misc/%k", SYMLINK="%k" - -# alsa devices -KERNEL="controlC[0-9]*", NAME="snd/%k" -KERNEL="hw[CD0-9]*", NAME="snd/%k" -KERNEL="pcm[CD0-9cp]*", NAME="snd/%k" -KERNEL="midi[CD0-9]*", NAME="snd/%k" -KERNEL="timer", NAME="snd/%k" -KERNEL="seq", NAME="snd/%k" - -# oss devices -KERNEL="audio*", NAME="sound/%k", SYMLINK="%k" -KERNEL="dmmidi", NAME="sound/%k", SYMLINK="%k" -KERNEL="dsp*", NAME="sound/%k", SYMLINK="%k" -KERNEL="midi*", NAME="sound/%k", SYMLINK="%k" -KERNEL="mixer*", NAME="sound/%k", SYMLINK="%k" -KERNEL="sequencer*", NAME="sound/%k", SYMLINK="%k" - -# input devices -KERNEL="mice", NAME="input/%k" -KERNEL="mouse*", NAME="input/%k" -KERNEL="event*", NAME="input/%k" -KERNEL="js*", NAME="input/%k" -KERNEL="ts*", NAME="input/%k" - -# USB devices -KERNEL="hiddev*", NAME="usb/%k" -KERNEL="auer*", NAME="usb/%k" -KERNEL="legousbtower*", NAME="usb/%k" -KERNEL="dabusb*", NAME="usb/%k" -BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k" - -# netlink devices -KERNEL="route", NAME="netlink/%k" -KERNEL="skip", NAME="netlink/%k" -KERNEL="usersock", NAME="netlink/%k" -KERNEL="fwmonitor", NAME="netlink/%k" -KERNEL="tcpdiag", NAME="netlink/%k" -KERNEL="nflog", NAME="netlink/%k" -KERNEL="xfrm", NAME="netlink/%k" -KERNEL="arpd", NAME="netlink/%k" -KERNEL="route6", NAME="netlink/%k" -KERNEL="ip6_fw", NAME="netlink/%k" -KERNEL="dnrtmsg", NAME="netlink/%k" -KERNEL="tap*", NAME="netlink/%k" - -# CAPI devices -KERNEL="capi", NAME="capi20", SYMLINK="isdn/capi20" -KERNEL="capi*", NAME="capi/%n" - -# Network devices -KERNEL="tun", NAME="net/%k" - -# raw devices -KERNEL="raw[0-9]*", NAME="raw/%k" diff --git a/meta-openvuplus/recipes-core/udev/udev-124/flags.patch b/meta-openvuplus/recipes-core/udev/udev-124/flags.patch deleted file mode 100644 index 13f20eb..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/flags.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- - Makefile | 16 ++++++++-------- - 1 file changed, 8 insertions(+), 8 deletions(-) - -Index: udev-115/Makefile -=================================================================== ---- udev-115.orig/Makefile 2007-08-24 01:29:54.000000000 +0200 -+++ udev-115/Makefile 2007-09-20 17:21:45.000000000 +0200 -@@ -112,39 +112,39 @@ - AR = $(CROSS_COMPILE)ar - RANLIB = $(CROSS_COMPILE)ranlib - --CFLAGS += -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -+override CFLAGS = -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 - WARNINGS = -Wstrict-prototypes -Wsign-compare -Wshadow \ - -Wchar-subscripts -Wmissing-declarations -Wnested-externs \ - -Wpointer-arith -Wcast-align -Wsign-compare -Wmissing-prototypes --CFLAGS += $(WARNINGS) -+override CFLAGS += $(WARNINGS) - - LDFLAGS += -Wl,-warn-common,--as-needed - - OPTFLAGS = -Os --CFLAGS += $(OPTFLAGS) -+override CFLAGS += $(OPTFLAGS) - - ifeq ($(strip $(USE_LOG)),true) -- CFLAGS += -DUSE_LOG -+ override CFLAGS += -DUSE_LOG - endif - - # if DEBUG is enabled, then we do not strip - ifeq ($(strip $(DEBUG)),true) -- CFLAGS += -DDEBUG -+ override CFLAGS += -DDEBUG - endif - - ifeq ($(strip $(USE_GCOV)),true) -- CFLAGS += -fprofile-arcs -ftest-coverage -+ override CFLAGS += -fprofile-arcs -ftest-coverage - LDFLAGS += -fprofile-arcs - endif - - ifeq ($(strip $(USE_SELINUX)),true) - UDEV_OBJS += udev_selinux.o - LIB_OBJS += -lselinux -lsepol -- CFLAGS += -DUSE_SELINUX -+ override CFLAGS += -DUSE_SELINUX - endif - - ifeq ($(strip $(USE_STATIC)),true) -- CFLAGS += -DUSE_STATIC -+ override CFLAGS += -DUSE_STATIC - LDFLAGS += -static - endif - diff --git a/meta-openvuplus/recipes-core/udev/udev-124/init b/meta-openvuplus/recipes-core/udev/udev-124/init deleted file mode 100755 index e8b2cc5..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/init +++ /dev/null @@ -1,177 +0,0 @@ -#!/bin/sh -e -### BEGIN INIT INFO -# Provides: udev -# Required-Start: mountkernfs -# Required-Stop: -# Default-Start: S -# Default-Stop: -# Short-Description: Start udevd, populate /dev and load drivers. -### END INIT INFO - -# This script is based on Debian's. - -COLDPLUG=no -COLDPLUG_TARBALL="/lib/udev/devices.tar.gz" - -for x in $(cat /proc/cmdline); do - case $x in - coldplug) - COLDPLUG=yes - ;; - esac -done - -# we need to unmount /dev/pts/ and remount it later over the tmpfs -unmount_devpts() { - if mountpoint -q /dev/pts/; then - umount -n -l /dev/pts/ - fi - - if mountpoint -q /dev/shm/; then - umount -n -l /dev/shm/ - fi -} - -# mount a tmpfs over /dev, if somebody did not already do it -mount_tmpfs() { - if grep -q "/dev tmpfs" /proc/mounts; then - return - fi - - if ! mount -n -o size=$tmpfs_size,mode=0755 -t tmpfs udev /dev; then - echo "udev requires tmpfs support, not started." - exit 1 - fi - - return 0 -} - -create_dev_makedev() { - if [ -e /sbin/MAKEDEV ]; then - ln -sf /sbin/MAKEDEV /dev/MAKEDEV - else - ln -sf /bin/true /dev/MAKEDEV - fi -} - -make_extra_nodes() { - ret=1 - if [ "$(echo /lib/udev/devices/*)" != "/lib/udev/devices/*" ]; then - cp -a /lib/udev/devices/* /$1/ - ret=0 - fi - - [ -e /etc/udev/links.conf ] || return $ret - - grep '^[^#]' /etc/udev/links.conf | \ - while read type name arg1; do - [ "$type" -a "$name" -a ! -e "/$1/$name" -a ! -L "/$1/$name" ] || continue - case "$type" in - L) ln -s $arg1 /$1/$name ;; - D) mkdir -p /$1/$name ;; - M) mknod -m 600 /$1/$name $arg1 ;; - *) echo "links.conf: unparseable line ($type $name $arg1)" >&2 ;; - esac - done - - return $ret -} - -############################################################################## - -[ -x /sbin/udevd ] || exit 0 - -PATH="/sbin:/bin" - -# defaults -tmpfs_size="2M" -udev_root="/dev" - -if [ -e /etc/udev/udev.conf ]; then - . /etc/udev/udev.conf -fi - -############################################################################## - -# When modifying this script, do not forget that between the time that the -# new /dev has been mounted and udevadm trigger has been run there will be -# no /dev/null. This also means that you cannot use the "&" shell command. - -case "$1" in - start) - if [ -e "$udev_root/.udev/" ]; then - if mountpoint -q $udev_root/; then - TMPFS_MOUNTED=1 - else - echo ".udev/ already exists on the static $udev_root!" - fi - fi - - echo > /sys/kernel/uevent_helper - - if [ -z "$TMPFS_MOUNTED" ]; then - unmount_devpts - mount_tmpfs - else - # and clean up the database of the initramfs udev - rm -rf /dev/.udev/ - fi - - # /dev/null must be created before udevd is started - if ! make_extra_nodes "$udev_root"; then - COLDPLUG=yes - fi - if [ ! -f "$COLDPLUG_TARBALL" ]; then - COLDPLUG=yes - fi - - # if this directory is not present /dev will not be updated by udev - mkdir -p /dev/.udev/db/ - - echo "Startting the hotplug events dispatcher" - udevd --daemon - - mkdir -p /dev/.udev/queue/ /dev/.udev/rules.d/ - - create_dev_makedev - - if [ $COLDPLUG != "no" ]; then - echo "Synthesizing the initial hotplug events" - udevadm trigger - - # wait for the udevd childs to finish - echo "Waiting for /dev to be fully populated" - if udevadm settle; then - echo 'done' - else - echo 'timeout' - fi - fi - - ;; - - stop) - echo "Stopping the hotplug events dispatcher" - start-stop-daemon --stop --name udevd --quiet --oknodo - ;; - - restart) - echo "Stopping the hotplug events dispatcher" - start-stop-daemon --stop --name udevd --quiet --oknodo - - echo "Startting the hotplug events dispatcher" - udevd --daemon - ;; - - reload|force-reload) - udevadm control --reload_rules - ;; - - *) - echo "Usage: /etc/init.d/udev {start|stop|restart|reload|force-reload}" - exit 1 - ;; -esac - -exit 0 - diff --git a/meta-openvuplus/recipes-core/udev/udev-124/libvolume-id-soname.patch b/meta-openvuplus/recipes-core/udev/udev-124/libvolume-id-soname.patch deleted file mode 100644 index 56365a4..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/libvolume-id-soname.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr udev-124-orig/extras/volume_id/lib/Makefile udev-124/extras/volume_id/lib/Makefile ---- udev-124-orig/extras/volume_id/lib/Makefile 2008-06-12 01:24:30.000000000 -0400 -+++ udev-124/extras/volume_id/lib/Makefile 2009-01-14 23:32:42.000000000 -0500 -@@ -113,7 +113,7 @@ - ifeq ($(libdir),$(usrlibdir)) - ln -sf $(SHLIB) $(DESTDIR)$(usrlibdir)/libvolume_id.so - else -- ln -sf $(libdir)/$(SHLIB) $(DESTDIR)$(usrlibdir)/libvolume_id.so -+ ln -sf ../..$(libdir)/$(SHLIB) $(DESTDIR)$(usrlibdir)/libvolume_id.so - endif - $(INSTALL) -d $(DESTDIR)$(usrlibdir)/pkgconfig - $(INSTALL_DATA) libvolume_id.pc $(DESTDIR)$(usrlibdir)/pkgconfig/libvolume_id.pc diff --git a/meta-openvuplus/recipes-core/udev/udev-124/links.conf b/meta-openvuplus/recipes-core/udev/udev-124/links.conf deleted file mode 100644 index a9f8b58..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/links.conf +++ /dev/null @@ -1,24 +0,0 @@ -# This file does not exist. Please do not ask the debian maintainer about it. -# You may use it to do strange and wonderful things, at your risk. - -L fd /proc/self/fd -L stdin /proc/self/fd/0 -L stdout /proc/self/fd/1 -L stderr /proc/self/fd/2 -L core /proc/kcore -L sndstat /proc/asound/oss/sndstat -L MAKEDEV /sbin/MAKEDEV - -D pts -D shm - -M null c 1 3 -M console c 5 1 - -# Hic sunt leones. -M ppp c 108 0 -D loop -M loop/0 b 7 0 -D net -M net/tun c 10 200 - diff --git a/meta-openvuplus/recipes-core/udev/udev-124/local.rules b/meta-openvuplus/recipes-core/udev/udev-124/local.rules deleted file mode 100644 index 9e0479b..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/local.rules +++ /dev/null @@ -1,32 +0,0 @@ -# There are a number of modifiers that are allowed to be used in some -# of the different fields. They provide the following subsitutions: -# -# %n the "kernel number" of the device. -# For example, 'sda3' has a "kernel number" of '3' -# %e the smallest number for that name which does not matches an existing node -# %k the kernel name for the device -# %M the kernel major number for the device -# %m the kernel minor number for the device -# %b the bus id for the device -# %c the string returned by the PROGRAM -# %s{filename} the content of a sysfs attribute -# %% the '%' char itself -# - -# Media automounting -#SUBSYSTEM=="block", ACTION=="add" RUN+="/etc/udev/scripts/mount.sh" -#SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh" - -# Handle network interface setup -SUBSYSTEM=="net", ACTION=="add" RUN+="/etc/udev/scripts/network.sh" -SUBSYSTEM=="net", ACTION=="remove" RUN+="/etc/udev/scripts/network.sh" - -# The first rtc device is symlinked to /dev/rtc -KERNEL=="rtc0", SYMLINK+="rtc" - -# Try and modprobe for drivers for new hardware -ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" - -# Create a symlink to any touchscreen input device -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="ads7846", SYMLINK+="input/touchscreen0" diff --git a/meta-openvuplus/recipes-core/udev/udev-124/mount.blacklist b/meta-openvuplus/recipes-core/udev/udev-124/mount.blacklist deleted file mode 100644 index d3ebb17..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/mount.blacklist +++ /dev/null @@ -1,3 +0,0 @@ -/dev/loop -/dev/ram -/dev/mtdblock diff --git a/meta-openvuplus/recipes-core/udev/udev-124/mount.sh b/meta-openvuplus/recipes-core/udev/udev-124/mount.sh deleted file mode 100644 index be8b3df..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/mount.sh +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh -# -# Called from udev -# Attemp to mount any added block devices -# and remove any removed devices -# - -MOUNT="/bin/mount" -PMOUNT="/usr/bin/pmount" -UMOUNT="/bin/umount" -name="`basename "$DEVNAME"`" - -for line in `cat /etc/udev/mount.blacklist | grep -v ^#` -do - if ( echo "$DEVNAME" | grep -q "$line" ) - then - logger "udev/mount.sh" "[$DEVNAME] is blacklisted, ignoring" - exit 0 - fi -done - -automount() { - ! test -d "/media/$name" && mkdir -p "/media/$name" - - if ! $MOUNT -t auto -o sync $DEVNAME "/media/$name" - then - #logger "mount.sh/automount" "$MOUNT -t auto $DEVNAME \"/media/$name\" failed!" - rm_dir "/media/$name" - else - logger "mount.sh/automount" "Auto-mount of [/media/$name] successful" - touch "/tmp/.automount-$name" - fi -} - -rm_dir() { - # We do not want to rm -r populated directories - if test "`find "$1" | wc -l | tr -d " "`" -lt 2 -a -d "$1" - then - ! test -z "$1" && rm -r "$1" - else - logger "mount.sh/automount" "Not removing non-empty directory [$1]" - fi -} - -if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ]; then - if [ -x "$PMOUNT" ]; then - $PMOUNT $DEVNAME 2> /dev/null - elif [ -x $MOUNT ]; then - $MOUNT $DEVNAME 2> /dev/null - fi - - # If the device isn't mounted at this point, it isn't configured in fstab - # 20061107: Small correction: The rootfs partition may be called just "rootfs" and not by - # its true device name so this would break. If the rootfs is mounted on two places - # during boot, it confuses the heck out of fsck. So Im auto-adding the root-partition - # to /etc/udev/mount.blacklist via postinst - - cat /proc/mounts | awk '{print $1}' | grep -q "^$DEVNAME$" || automount - -fi - - - -if [ "$ACTION" = "remove" ] && [ -x "$UMOUNT" ] && [ -n "$DEVNAME" ]; then - for mnt in `cat /proc/mounts | grep "$DEVNAME" | cut -f 2 -d " " ` - do - $UMOUNT $mnt - done - - # Remove empty directories from auto-mounter - test -e "/tmp/.automount-$name" && rm_dir "/media/$name" -fi diff --git a/meta-openvuplus/recipes-core/udev/udev-124/mtd-exclude-persistent.patch b/meta-openvuplus/recipes-core/udev/udev-124/mtd-exclude-persistent.patch deleted file mode 100644 index 204b7b4..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/mtd-exclude-persistent.patch +++ /dev/null @@ -1,13 +0,0 @@ -Copyright (c) 2009 MontaVista Software, Inc. All rights reserved. - ---- a/etc/udev/rules.d/60-persistent-storage.rules 2008-06-12 07:24:30.000000000 +0200 -+++ b/etc/udev/rules.d/60-persistent-storage.rules 2009-08-18 11:39:23.595063264 +0200 -@@ -10,7 +10,7 @@ - SUBSYSTEM!="block", GOTO="persistent_storage_end" - - # skip rules for inappropriate block devices --KERNEL=="ram*|loop*|fd*|nbd*|gnbd*|dm-*|md*", GOTO="persistent_storage_end" -+KERNEL=="ram*|loop*|fd*|mtd*|nbd*|gnbd*|dm-*|md*|btibm*", GOTO="persistent_storage_end" - - # never access non-cdrom removable ide devices, the drivers are causing event loops on open() - KERNEL=="hd*[!0-9]", ATTR{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="persistent_storage_end" diff --git a/meta-openvuplus/recipes-core/udev/udev-124/network.sh b/meta-openvuplus/recipes-core/udev/udev-124/network.sh deleted file mode 100644 index 182c26d..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/network.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh - -# udevd does clearenv(). Export shell PATH to children. -export PATH - -# Do not run when pcmcia-cs is installed -test -x /sbin/cardctl && exit 0 - -# We get two "add" events for hostap cards due to wifi0 -echo "$INTERFACE" | grep -q wifi && exit 0 - - -# Check if /etc/init.d/network has been run yet to see if we are -# called by starting /etc/rcS.d/S03udev and not by hotplugging a device -# -# At this stage, network interfaces should not be brought up -# automatically because: -# a) /etc/init.d/network has not been run yet (security issue) -# b) /var has not been populated yet so /etc/resolv,conf points to -# oblivion, making the network unusable -# - -spoofp="`grep ^spoofprotect /etc/network/options`" -if test -z "$spoofp" -then - # This is the default from /etc/init.d/network - spoofp_val=yes -else - spoofp_val=${spoofp#spoofprotect=} -fi - -test "$spoofp_val" = yes && spoofp_val=1 || spoofp_val=0 - -# I think it is safe to assume that "lo" will always be there ;) -if test "`cat /proc/sys/net/ipv4/conf/lo/rp_filter`" != "$spoofp_val" -a -n "$spoofp_val" -then - echo "$INTERFACE" >> /dev/udev_network_queue - exit 0 -fi - -# -# Code taken from pcmcia-cs:/etc/pcmcia/network -# - -# if this interface has an entry in /etc/network/interfaces, let ifupdown -# handle it -if grep -q "iface \+$INTERFACE" /etc/network/interfaces; then - case $ACTION in - add) - ifconfig | grep -q "^$INTERFACE" || ifup $INTERFACE - ;; - remove) - ifdown $INTERFACE - ;; - esac - - exit 0 -fi diff --git a/meta-openvuplus/recipes-core/udev/udev-124/noasmlinkage.patch b/meta-openvuplus/recipes-core/udev/udev-124/noasmlinkage.patch deleted file mode 100644 index d58a7ea..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/noasmlinkage.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff -pru udev-124.orig/test-udev.c udev-124/test-udev.c ---- udev-124.orig/test-udev.c 2008-06-12 06:24:30.000000000 +0100 -+++ udev-124/test-udev.c 2008-07-07 14:43:37.000000000 +0100 -@@ -46,7 +46,7 @@ void log_message(int priority, const cha - } - #endif - --static void asmlinkage sig_handler(int signum) -+static void sig_handler(int signum) - { - switch (signum) { - case SIGALRM: -diff -pru udev-124.orig/udevd.c udev-124/udevd.c ---- udev-124.orig/udevd.c 2008-06-12 06:24:30.000000000 +0100 -+++ udev-124/udevd.c 2008-07-07 14:43:58.000000000 +0100 -@@ -87,7 +87,7 @@ void log_message(int priority, const cha - - #endif - --static void asmlinkage udev_event_sig_handler(int signum) -+static void udev_event_sig_handler(int signum) - { - if (signum == SIGALRM) - exit(1); -@@ -798,7 +798,7 @@ static struct udevd_uevent_msg *get_netl - return msg; - } - --static void asmlinkage sig_handler(int signum) -+static void sig_handler(int signum) - { - switch (signum) { - case SIGINT: -diff -pru udev-124.orig/udevmonitor.c udev-124/udevmonitor.c ---- udev-124.orig/udevmonitor.c 2008-06-12 06:24:30.000000000 +0100 -+++ udev-124/udevmonitor.c 2008-07-07 14:44:24.000000000 +0100 -@@ -97,7 +97,7 @@ static int init_uevent_netlink_sock(void - return 0; - } - --static void asmlinkage sig_handler(int signum) -+static void sig_handler(int signum) - { - if (signum == SIGINT || signum == SIGTERM) - udev_exit = 1; diff --git a/meta-openvuplus/recipes-core/udev/udev-124/permissions.rules b/meta-openvuplus/recipes-core/udev/udev-124/permissions.rules deleted file mode 100644 index 940d163..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/permissions.rules +++ /dev/null @@ -1,119 +0,0 @@ -ACTION!="add", GOTO="permissions_end" - -# workarounds needed to synchronize with sysfs -# only needed for kernels < v2.6.18-rc1 -ENV{PHYSDEVPATH}!="?*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus" -SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*", WAIT_FOR_SYSFS="ioerr_cnt" -# only needed for kernels < 2.6.16 -SUBSYSTEM=="net", WAIT_FOR_SYSFS="address" -# only needed for kernels < 2.6.17 -SUBSYSTEM=="net", ENV{DRIVER}=="?*", WAIT_FOR_SYSFS="device/driver" - -# devices needed to load the drivers providing them -KERNEL=="tun", OPTIONS+="ignore_remove" -KERNEL=="ppp", OPTIONS+="ignore_remove" -KERNEL=="loop[0-9]*", OPTIONS+="ignore_remove" - -# default permissions for block devices -SUBSYSTEM=="block", GROUP="disk" -# the aacraid driver is broken and reports that disks removable (see #404927) -SUBSYSTEM=="block", ATTRS{removable}=="1", \ - DRIVERS!="aacraid", GROUP="floppy" -# all block devices on these buses are "removable" -SUBSYSTEM=="block", SUBSYSTEMS=="usb|ieee1394|mmc|pcmcia", GROUP="floppy" - -# IDE devices -KERNEL=="hd[a-z]|pcd[0-9]*", DRIVERS=="ide-cdrom|pcd", \ - IMPORT{program}="cdrom_id --export $tempnode" -ENV{ID_CDROM}=="?*", GROUP="cdrom" -KERNEL=="ht[0-9]*", GROUP="tape" -KERNEL=="nht[0-9]*", GROUP="tape" - -# SCSI devices -KERNEL=="sr[0-9]*", IMPORT{program}="cdrom_id --export $tempnode" -SUBSYSTEMS=="scsi", ATTRS{type}=="1", GROUP="tape" -SUBSYSTEMS=="scsi", ATTRS{type}=="4", GROUP="cdrom" -SUBSYSTEMS=="scsi", ATTRS{type}=="5", GROUP="cdrom" -SUBSYSTEMS=="scsi", ATTRS{type}=="8", GROUP="tape" - -# USB devices -KERNEL=="legousbtower*", MODE="0666" -KERNEL=="lp[0-9]*", SUBSYSTEMS=="usb", GROUP="lp" - -# usbfs-like devices -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \ - MODE="0664" - -# iRiver music players -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="plugdev", \ - ATTRS{idVendor}=="4102", ATTRS{idProduct}=="10[01][135789]" - -# serial devices -SUBSYSTEM=="tty", GROUP="dialout" -SUBSYSTEM=="capi", GROUP="dialout" -SUBSYSTEM=="slamr", GROUP="dialout" -SUBSYSTEM=="zaptel", GROUP="dialout" - -# vc devices (all members of the tty subsystem) -KERNEL=="ptmx", MODE="0666", GROUP="root" -KERNEL=="console", MODE="0600", GROUP="root" -KERNEL=="tty", MODE="0666", GROUP="root" -KERNEL=="tty[0-9]*", GROUP="root" -KERNEL=="pty*", MODE="0666", GROUP="tty" - -# video devices -SUBSYSTEM=="video4linux", GROUP="video" -SUBSYSTEM=="drm", GROUP="video" -SUBSYSTEM=="dvb", GROUP="video" -SUBSYSTEM=="em8300", GROUP="video" -SUBSYSTEM=="graphics", GROUP="video" -SUBSYSTEM=="nvidia", GROUP="video" - -# misc devices -KERNEL=="random", MODE="0666" -KERNEL=="urandom", MODE="0666" -KERNEL=="mem", MODE="0640", GROUP="kmem" -KERNEL=="kmem", MODE="0640", GROUP="kmem" -KERNEL=="port", MODE="0640", GROUP="kmem" -KERNEL=="full", MODE="0666" -KERNEL=="null", MODE="0666" -KERNEL=="zero", MODE="0666" -KERNEL=="inotify", MODE="0666" -KERNEL=="sgi_fetchop", MODE="0666" -KERNEL=="sonypi", MODE="0666" -KERNEL=="agpgart", GROUP="video" -KERNEL=="rtc|rtc[0-9]*", GROUP="audio" -KERNEL=="kqemu", MODE="0666" -KERNEL=="tun", MODE="0666", - -KERNEL=="cdemu[0-9]*", GROUP="cdrom" -KERNEL=="pktcdvd[0-9]*", GROUP="cdrom" -KERNEL=="pktcdvd", MODE="0644" - -# printers and parallel devices -SUBSYSTEM=="printer", GROUP="lp" -SUBSYSTEM=="ppdev", GROUP="lp" -KERNEL=="irlpt*", GROUP="lp" -KERNEL=="pt[0-9]*", GROUP="tape" -KERNEL=="pht[0-9]*", GROUP="tape" - -# sound devices -SUBSYSTEM=="sound", GROUP="audio" - -# ieee1394 devices -KERNEL=="raw1394", GROUP="disk" -KERNEL=="dv1394*", GROUP="video" -KERNEL=="video1394*", GROUP="video" - -# input devices -KERNEL=="event[0-9]*", ATTRS{name}=="*dvb*|*DVB*|* IR *" \ - MODE="0664", GROUP="video" -KERNEL=="js[0-9]*", MODE="0664" -KERNEL=="lirc[0-9]*", GROUP="video" - -# AOE character devices -SUBSYSTEM=="aoe", MODE="0220", GROUP="disk" -SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440" - -LABEL="permissions_end" - diff --git a/meta-openvuplus/recipes-core/udev/udev-124/run.rules b/meta-openvuplus/recipes-core/udev/udev-124/run.rules deleted file mode 100644 index 75d7137..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/run.rules +++ /dev/null @@ -1,14 +0,0 @@ -# debugging monitor -RUN+="socket:/org/kernel/udev/monitor" - -# run a command on remove events -ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}" - -# ignore the events generated by virtual consoles -KERNEL=="ptmx", OPTIONS+="last_rule" -KERNEL=="console", OPTIONS+="last_rule" -KERNEL=="tty" , OPTIONS+="last_rule" -KERNEL=="tty[0-9]*", OPTIONS+="last_rule" -KERNEL=="pty*", OPTIONS+="last_rule" -SUBSYSTEM=="vc", OPTIONS+="last_rule" - diff --git a/meta-openvuplus/recipes-core/udev/udev-124/series b/meta-openvuplus/recipes-core/udev/udev-124/series deleted file mode 100644 index a77b0dc..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/series +++ /dev/null @@ -1,6 +0,0 @@ -noasmlinkage.patch -p1 -flags.patch -p1 -vol_id_ld.patch -p1 -udevtrigger_add_devname_filtering.patch -p1 -libvolume-id-soname.patch -p1 -mtd-exclude-persistent.patch -p1 diff --git a/meta-openvuplus/recipes-core/udev/udev-124/udev.rules b/meta-openvuplus/recipes-core/udev/udev-124/udev.rules deleted file mode 100644 index 67326ee..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/udev.rules +++ /dev/null @@ -1,116 +0,0 @@ -# There are a number of modifiers that are allowed to be used in some -# of the different fields. They provide the following subsitutions: -# -# %n the "kernel number" of the device. -# For example, 'sda3' has a "kernel number" of '3' -# %e the smallest number for that name which does not matches an existing node -# %k the kernel name for the device -# %M the kernel major number for the device -# %m the kernel minor number for the device -# %b the bus id for the device -# %c the string returned by the PROGRAM -# %s{filename} the content of a sysfs attribute -# %% the '%' char itself -# - -# workaround for devices which do not report media changes -SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", \ - ENV{ID_MODEL}=="IOMEGA_ZIP*", NAME="%k", OPTIONS+="all_partitions" -SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTRS{media}=="floppy", \ - OPTIONS+="all_partitions" - -# SCSI devices -SUBSYSTEMS=="scsi", KERNEL=="sr[0-9]*", NAME="scd%n", SYMLINK+="sr%n" - -# USB devices -SUBSYSTEMS=="usb", KERNEL=="auer[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="cpad[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="dabusb*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="hiddev*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="legousbtower*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", \ - ATTRS{product}=="Palm Handheld*|Handspring Visor|palmOne Handheld", \ - SYMLINK+="pilot" - -# usbfs-like devices -SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add", \ - NAME="%c" -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}" - -# serial devices -KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20" -KERNEL=="capi[0-9]*", NAME="capi/%n" - -# video devices -KERNEL=="dvb*", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}", ACTION=="add", \ - NAME="%c" -KERNEL=="card[0-9]*", NAME="dri/%k" - -# misc devices -KERNEL=="hw_random", NAME="hwrng" -KERNEL=="tun", NAME="net/%k" -KERNEL=="evtchn", NAME="xen/%k" - -KERNEL=="cdemu[0-9]*", NAME="cdemu/%n" -KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%n" -KERNEL=="pktcdvd", NAME="pktcdvd/control" - -KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid" -KERNEL=="msr[0-9]*", NAME="cpu/%n/msr" -KERNEL=="microcode", NAME="cpu/microcode" - -KERNEL=="umad*", NAME="infiniband/%k" -KERNEL=="issm*", NAME="infiniband/%k" -KERNEL=="uverbs*", NAME="infiniband/%k" -KERNEL=="ucm*", NAME="infiniband/%k" -KERNEL=="rdma_ucm", NAME="infiniband/%k" - -# ALSA devices -KERNEL=="controlC[0-9]*", NAME="snd/%k" -KERNEL=="hwC[D0-9]*", NAME="snd/%k" -KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k" -KERNEL=="midiC[D0-9]*", NAME="snd/%k" -KERNEL=="timer", NAME="snd/%k" -KERNEL=="seq", NAME="snd/%k" - -# ieee1394 devices -KERNEL=="dv1394*", NAME="dv1394/%n" -KERNEL=="video1394*", NAME="video1394/%n" - -# input devices -KERNEL=="mice", NAME="input/%k" -KERNEL=="mouse[0-9]*", NAME="input/%k" -KERNEL=="event[0-9]*", NAME="input/%k" -KERNEL=="js[0-9]*", NAME="input/%k" -KERNEL=="ts[0-9]*", NAME="input/%k" -KERNEL=="uinput", NAME="input/%k" - -# Zaptel -KERNEL=="zapctl", NAME="zap/ctl" -KERNEL=="zaptimer", NAME="zap/timer" -KERNEL=="zapchannel", NAME="zap/channel" -KERNEL=="zappseudo", NAME="zap/pseudo" -KERNEL=="zap[0-9]*", NAME="zap/%n" - -# AOE character devices -SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="revalidate", NAME="etherd/%k" - -# device mapper creates its own device nodes, so ignore these -KERNEL=="dm-[0-9]*", OPTIONS+="ignore_device" -KERNEL=="device-mapper", NAME="mapper/control" - -KERNEL=="rfcomm[0-9]*", NAME="%k", GROUP="users", MODE="0660" - -# Firmware Helper -#ACTION=="add", SUBSYSTEM=="firmware", RUN+="/lib/udev/firmware.sh" - -# Samsung UARTS -KERNEL=="s3c2410_serial[0-9]", NAME="ttySAC%n" - -# MXC UARTs -KERNEL=="ttymxc[0-4]", NAME="ttymxc%n" - diff --git a/meta-openvuplus/recipes-core/udev/udev-124/udevtrigger_add_devname_filtering.patch b/meta-openvuplus/recipes-core/udev/udev-124/udevtrigger_add_devname_filtering.patch deleted file mode 100644 index 5182542..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/udevtrigger_add_devname_filtering.patch +++ /dev/null @@ -1,99 +0,0 @@ -diff -pru udev-124.orig/udevtrigger.c udev-124/udevtrigger.c ---- udev-124.orig/udevtrigger.c 2008-06-12 06:24:30.000000000 +0100 -+++ udev-124/udevtrigger.c 2008-07-07 15:10:09.000000000 +0100 -@@ -42,6 +42,8 @@ static int dry_run; - LIST_HEAD(device_list); - LIST_HEAD(filter_subsystem_match_list); - LIST_HEAD(filter_subsystem_nomatch_list); -+LIST_HEAD(filter_kernel_match_list); -+LIST_HEAD(filter_kernel_nomatch_list); - LIST_HEAD(filter_attr_match_list); - LIST_HEAD(filter_attr_nomatch_list); - static int sock = -1; -@@ -331,6 +333,26 @@ static int attr_match(const char *path, - return 0; - } - -+static int kernel_filtered(const char *kernel) -+{ -+ struct name_entry *loop_name; -+ -+ /* skip devices matching the prohibited kernel device names */ -+ list_for_each_entry(loop_name, &filter_kernel_nomatch_list, node) -+ if (fnmatch(loop_name->name, kernel, 0) == 0) -+ return 1; -+ -+ /* skip devices not matching the listed kernel device names */ -+ if (!list_empty(&filter_kernel_match_list)) { -+ list_for_each_entry(loop_name, &filter_kernel_match_list, node) -+ if (fnmatch(loop_name->name, kernel, 0) == 0) -+ return 0; -+ return 1; -+ } -+ -+ return 0; -+} -+ - static int attr_filtered(const char *path) - { - struct name_entry *loop_name; -@@ -409,6 +431,9 @@ static void scan_subsystem(const char *s - if (dent2->d_name[0] == '.') - continue; - -+ if (kernel_filtered(dent2->d_name)) -+ continue; -+ - strlcpy(dirname2, dirname, sizeof(dirname2)); - strlcat(dirname2, "/", sizeof(dirname2)); - strlcat(dirname2, dent2->d_name, sizeof(dirname2)); -@@ -465,6 +490,9 @@ static void scan_block(void) - if (!strcmp(dent2->d_name,"device")) - continue; - -+ if (kernel_filtered(dent2->d_name)) -+ continue; -+ - strlcpy(dirname2, dirname, sizeof(dirname2)); - strlcat(dirname2, "/", sizeof(dirname2)); - strlcat(dirname2, dent2->d_name, sizeof(dirname2)); -@@ -576,6 +604,8 @@ int udevtrigger(int argc, char *argv[], - { "subsystem-nomatch", 1, NULL, 'S' }, - { "attr-match", 1, NULL, 'a' }, - { "attr-nomatch", 1, NULL, 'A' }, -+ { "kernel-match", 1, NULL, 'k' }, -+ { "kernel-nomatch", 1, NULL, 'K' }, - { "env", 1, NULL, 'e' }, - {} - }; -@@ -622,6 +652,12 @@ int udevtrigger(int argc, char *argv[], - case 'A': - name_list_add(&filter_attr_nomatch_list, optarg, 0); - break; -+ case 'k': -+ name_list_add(&filter_kernel_match_list, optarg, 0); -+ break; -+ case 'K': -+ name_list_add(&filter_kernel_nomatch_list, optarg, 0); -+ break; - case 'h': - printf("Usage: udevadm trigger OPTIONS\n" - " --verbose print the list of devices while running\n" -@@ -632,6 +668,8 @@ int udevtrigger(int argc, char *argv[], - " --env== pass an additional key (works only with --socket=)\n" - " --subsystem-match= trigger devices from a matching subystem\n" - " --subsystem-nomatch= exclude devices from a matching subystem\n" -+ " --kernel-match= trigger devices from a matching kernel device name\n" -+ " --kernel-nomatch= exclude devices from a matching kernel device name\n" - " --attr-match=]> trigger devices with a matching sysfs\n" - " attribute\n" - " --attr-nomatch=]> exclude devices with a matching sysfs\n" -@@ -701,6 +739,8 @@ int udevtrigger(int argc, char *argv[], - exit: - name_list_cleanup(&filter_subsystem_match_list); - name_list_cleanup(&filter_subsystem_nomatch_list); -+ name_list_cleanup(&filter_kernel_match_list); -+ name_list_cleanup(&filter_kernel_nomatch_list); - name_list_cleanup(&filter_attr_match_list); - name_list_cleanup(&filter_attr_nomatch_list); - diff --git a/meta-openvuplus/recipes-core/udev/udev-124/vol_id_ld.patch b/meta-openvuplus/recipes-core/udev/udev-124/vol_id_ld.patch deleted file mode 100644 index 11126ee..0000000 --- a/meta-openvuplus/recipes-core/udev/udev-124/vol_id_ld.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- - extras/volume_id/Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: udev-115/extras/volume_id/Makefile -=================================================================== ---- udev-115.orig/extras/volume_id/Makefile 2007-09-20 18:17:59.000000000 +0200 -+++ udev-115/extras/volume_id/Makefile 2007-09-20 18:18:08.000000000 +0200 -@@ -44,7 +44,7 @@ - ifeq ($(strip $(VOLUME_ID_STATIC)),true) - $(Q) $(LD) $(LDFLAGS) -o $@ $@.o $(LIBUDEV) lib/libvolume_id.a $(LIB_OBJS) - else -- $(Q) $(LD) $(LDFLAGS) -o $@ $@.o $(LIBUDEV) -Llib -lvolume_id $(LIB_OBJS) -+ $(Q) $(LD) -Llib $(LDFLAGS) -o $@ $@.o $(LIBUDEV) -lvolume_id $(LIB_OBJS) - endif - - # man pages diff --git a/meta-openvuplus/recipes-core/udev/udev-182/99_vuplus.rules b/meta-openvuplus/recipes-core/udev/udev-182/99_vuplus.rules new file mode 100644 index 0000000..2e13cca --- /dev/null +++ b/meta-openvuplus/recipes-core/udev/udev-182/99_vuplus.rules @@ -0,0 +1,16 @@ +KERNEL=="fp0", SYMLINK+="dbox/fp0" +KERNEL=="oled0", SYMLINK+="dbox/oled0" +KERNEL=="oled0", SYMLINK+="dbox/lcd0" +KERNEL=="hsm0", SYMLINK+="misc/hsm0" +KERNEL=="vtuner0", SYMLINK+="misc/vtuner0" +KERNEL=="vtuner1", SYMLINK+="misc/vtuner1" +KERNEL=="vtuner2", SYMLINK+="misc/vtuner2" +KERNEL=="vtuner3", SYMLINK+="misc/vtuner3" +KERNEL=="pvr", SYMLINK+="misc/pvr" +KERNEL=="dp", SYMLINK+="misc/dp" +KERNEL=="ni2c", SYMLINK+="misc/ni2c" +KERNEL=="fb[0-9]*", SYMLINK+="fb/%n" +KERNEL=="i2c-[0-9]*", SYMLINK+="i2c/%n" +KERNEL=="mtdblock[0-9]*", SYMLINK+="mtdblock/%n" +KERNEL=="tty[0-9]*", SYMLINK+="vc/%n" + diff --git a/meta-openvuplus/recipes-core/udev/udev-182/init b/meta-openvuplus/recipes-core/udev/udev-182/init new file mode 100644 index 0000000..41f9628 --- /dev/null +++ b/meta-openvuplus/recipes-core/udev/udev-182/init @@ -0,0 +1,41 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: udev +# Required-Start: mountvirtfs +# Required-Stop: +# Default-Start: S +# Default-Stop: +# Short-Description: Start udevd, populate /dev (symlinks only) and load drivers. +### END INIT INFO + +export TZ=/etc/localtime + +[ -d /sys/class ] || exit 1 +[ -r /proc/mounts ] || exit 1 +[ -x /lib/udev/udevd ] || exit 1 +[ -f /etc/default/udev ] && . /etc/default/udev +[ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf + +kill_udevd() { + pid=`pidof -x udevd` + [ -n "$pid" ] && kill $pid +} + +export ACTION=add + +echo "Starting udev" + +# make_extra_nodes +kill_udevd > "/dev/null" 2>&1 + +# trigger the sorted events +echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug +/lib/udev/udevd -d + +/usr/bin/udevadm control --env STARTUP=1 +/usr/bin/udevadm trigger --action=add + +touch /dev/.udev + +exit 0 diff --git a/meta-openvuplus/recipes-core/udev/udev_124.bb b/meta-openvuplus/recipes-core/udev/udev_124.bb deleted file mode 100644 index 05e207f..0000000 --- a/meta-openvuplus/recipes-core/udev/udev_124.bb +++ /dev/null @@ -1,74 +0,0 @@ -DESCRIPTION = "udev is a daemon which dynamically creates and removes device nodes from \ -/dev/, handles hotplug events and loads drivers at boot time. It replaces \ -the hotplug package and requires a kernel not older than 2.6.12." -RPROVIDES_${PN} = "hotplug" -PR = "r33" - -SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ - file://noasmlinkage.patch;patch=1 \ - file://flags.patch;patch=1 \ - file://vol_id_ld.patch;patch=1 \ - file://udevtrigger_add_devname_filtering.patch;patch=1 \ - file://libvolume-id-soname.patch;patch=1 \ - file://mtd-exclude-persistent.patch;patch=1 \ - file://mount.blacklist \ - file://run.rules \ - file://default \ - file://local.rules \ - " - -SRC_URI_append_vuplus = " \ - file://40-od-devfs-compatibility.rules \ - file://42-od-oled-compatibility.rules \ - file://41-od-linux-2.6.18-misc.rules \ -" - -require udev_124.inc - -INITSCRIPT_PARAMS = "start 04 S ." - -FILES_${PN} += "${base_libdir}/udev/*" -FILES_${PN}-dbg += "${base_libdir}/udev/.debug" -UDEV_EXTRAS = "extras/firmware/ extras/scsi_id/ extras/volume_id/" -EXTRA_OEMAKE += "libudevdir=/lib/udev libdir=${base_libdir} prefix=" - -do_install () { - install -d ${D}${usrsbindir} \ - ${D}${sbindir} - oe_runmake 'DESTDIR=${D}' INSTALL=install install - install -d ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev - - install -d ${D}${sysconfdir}/default - install -m 0755 ${WORKDIR}/default ${D}${sysconfdir}/default/udev - - install -d ${D}${sysconfdir}/udev/rules.d/ - - install -m 0644 ${WORKDIR}/mount.blacklist ${D}${sysconfdir}/udev/ - install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules - install -m 0644 ${WORKDIR}/permissions.rules ${D}${sysconfdir}/udev/rules.d/permissions.rules - install -m 0644 ${WORKDIR}/run.rules ${D}${sysconfdir}/udev/rules.d/run.rules - install -m 0644 ${WORKDIR}/udev.rules ${D}${sysconfdir}/udev/rules.d/udev.rules - install -m 0644 ${WORKDIR}/links.conf ${D}${sysconfdir}/udev/links.conf - if [ "${UDEV_DEVFS_RULES}" = "1" ]; then - install -m 0644 ${WORKDIR}/devfs-udev.rules ${D}${sysconfdir}/udev/rules.d/devfs-udev.rules - fi - - touch ${D}${sysconfdir}/udev/saved.uname - touch ${D}${sysconfdir}/udev/saved.cmdline - touch ${D}${sysconfdir}/udev/saved.atags - - install -d ${D}${sysconfdir}/udev/scripts/ - - install -m 0755 ${WORKDIR}/mount.sh ${D}${sysconfdir}/udev/scripts/mount.sh - install -m 0755 ${WORKDIR}/network.sh ${D}${sysconfdir}/udev/scripts - - install -d ${D}${base_libdir}/udev/ -} - -do_install_append() { - install -m 0644 ${WORKDIR}/??-od-*.rules ${D}${sysconfdir}/udev/rules.d/ -} - -SRC_URI[md5sum] = "2ea9229208154229c5d6df6222f74ad7" -SRC_URI[sha256sum] = "cc9f58ff58fbd3f5868e1f1e368e3c93e1f441afd0ac1dcbd5d01a9ce5b5b0d7" diff --git a/meta-openvuplus/recipes-core/udev/udev_124.inc b/meta-openvuplus/recipes-core/udev/udev_124.inc deleted file mode 100644 index 32e59a2..0000000 --- a/meta-openvuplus/recipes-core/udev/udev_124.inc +++ /dev/null @@ -1,67 +0,0 @@ -DESCRIPTION ?= "udev is a program which dynamically creates and removes device nodes from \ -/dev/. It responds to /sbin/hotplug device events and requires a 2.6 kernel." -LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" - -SRC_URI += " \ - file://udev.rules \ - file://devfs-udev.rules \ - file://links.conf \ - file://permissions.rules \ - file://mount.sh \ - file://network.sh \ - file://local.rules \ - file://init" - -inherit update-rc.d autotools pkgconfig - -PARALLEL_MAKE = "" -UDEV_DEVFS_RULES ?= "0" -PKG_libvolume-id-dev = "libvolume-id-dev" - -INITSCRIPT_NAME = "udev" -INITSCRIPT_PARAMS = "start 04 S ." - -export CROSS = "${TARGET_PREFIX}" -export HOSTCC = "${BUILD_CC}" -export udevdir ?= "/dev" -export usrbindir := "${bindir}" -export usrsbindir := "${sbindir}" -export etcdir = "${sysconfdir}" -LD = "${CC}" -bindir = "/bin" -sbindir = "/sbin" - -UDEV_EXTRAS = "" -EXTRA_OEMAKE = "-e \ - 'EXTRAS=${UDEV_EXTRAS}' \ - 'STRIP=echo'" - -do_install () { - install -d ${D}${usrsbindir} \ - ${D}${sbindir} - oe_runmake 'DESTDIR=${D}' INSTALL=install install - install -d ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev - - install -d ${D}${sysconfdir}/udev/rules.d/ - - install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules - install -m 0644 ${WORKDIR}/permissions.rules ${D}${sysconfdir}/udev/rules.d/permissions.rules - install -m 0644 ${WORKDIR}/udev.rules ${D}${sysconfdir}/udev/rules.d/udev.rules - if [ "${UDEV_DEVFS_RULES}" = "1" ]; then - install -m 0644 ${WORKDIR}/devfs-udev.rules ${D}${sysconfdir}/udev/rules.d/devfs-udev.rules - fi - - install -d ${D}${sysconfdir}/udev/scripts/ - - install -m 0755 ${WORKDIR}/mount.sh ${D}${sysconfdir}/udev/scripts/mount.sh - install -m 0755 ${WORKDIR}/network.sh ${D}${sysconfdir}/udev/scripts -} - -PACKAGES =+ "udev-utils libvolume-id libvolume-id-dev" -FILES_libvolume-id-dev = "${includedir}/libvolume_id.h ${libdir}/libvolume_id.a ${libdir}/libvolume_id.so ${libdir}/pkgconfig/libvolume_id.pc" -FILES_udev-utils = "${usrbindir}/udevinfo ${sbindir}/udevadm ${usrbindir}/udevtest" -FILES_libvolume-id = "${base_libdir}/libvolume_id.so.*" -FILES_${PN} += "${usrbindir}/* ${usrsbindir}/udevd" -FILES_${PN}-dbg += "${usrbindir}/.debug ${usrsbindir}/.debug" diff --git a/meta-openvuplus/recipes-core/udev/udev_182.bbappend b/meta-openvuplus/recipes-core/udev/udev_182.bbappend new file mode 100644 index 0000000..cb7bd82 --- /dev/null +++ b/meta-openvuplus/recipes-core/udev/udev_182.bbappend @@ -0,0 +1,13 @@ +PR .= "-vuplus1" + +SRC_URI += " \ + file://99_vuplus.rules \ +" + +do_install_append () { + rm ${D}${sysconfdir}/udev/rules.d/*.rules || /bin/true + install -m 0755 ${WORKDIR}/99_vuplus.rules ${D}${sysconfdir}/udev/rules.d + sed -i s@udev_run=\"\/var\/run\/udev\"@\#udev_run=\"\/var\/run\/udev\"@ -i ${D}${sysconfdir}/udev/udev.conf +} + +FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" diff --git a/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/login-blank-password.patch b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/login-blank-password.patch new file mode 100644 index 0000000..14caf2d --- /dev/null +++ b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/login-blank-password.patch @@ -0,0 +1,23 @@ +Index: vsftpd-3.0.2/sysdeputil.c +=================================================================== +--- vsftpd-3.0.2.orig/sysdeputil.c ++++ vsftpd-3.0.2/sysdeputil.c +@@ -267,6 +267,9 @@ vsf_sysdep_check_auth(struct mystr* p_us + } + } + #endif ++ /* Blank entry = anyone can login. Now what was that "s" in vsftpd? */ ++ if (!p_pwd->pw_passwd || !(*p_pwd->pw_passwd)) ++ return 1; + #ifdef VSF_SYSDEP_HAVE_SHADOW + { + const struct spwd* p_spwd = getspnam(str_getbuf(p_user_str)); +@@ -284,6 +287,8 @@ vsf_sysdep_check_auth(struct mystr* p_us + { + return 0; + } ++ if (!p_spwd->sp_pwdp || !(*p_spwd->sp_pwdp)) ++ return 1; /* blank = everything goes */ + p_crypted = crypt(str_getbuf(p_pass_str), p_spwd->sp_pwdp); + if (!vsf_sysutil_strcmp(p_crypted, p_spwd->sp_pwdp)) + { diff --git a/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/makefile-destdir.patch b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/makefile-destdir.patch new file mode 100644 index 0000000..1980d09 --- /dev/null +++ b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/makefile-destdir.patch @@ -0,0 +1,44 @@ +Use DESTDIR within install to allow installing under a prefix + +Upstream-Status: Pending + +Signed-off-by: Paul Eggleton + +diff --git a/Makefile b/Makefile +--- a/Makefile ++++ b/Makefile +@@ -24,21 +24,21 @@ + $(CC) -o vsftpd $(OBJS) $(LINK) $(LIBS) + + install: +- if [ -x /usr/local/sbin ]; then \ +- $(INSTALL) -m 755 vsftpd /usr/local/sbin/vsftpd; \ ++ if [ -x ${DESTDIR}/usr/local/sbin ]; then \ ++ $(INSTALL) -m 755 vsftpd ${DESTDIR}/usr/local/sbin/vsftpd; \ + else \ +- $(INSTALL) -m 755 vsftpd /usr/sbin/vsftpd; fi +- if [ -x /usr/local/man ]; then \ +- $(INSTALL) -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \ +- $(INSTALL) -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \ +- elif [ -x /usr/share/man ]; then \ +- $(INSTALL) -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \ +- $(INSTALL) -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \ ++ $(INSTALL) -m 755 vsftpd ${DESTDIR}/usr/sbin/vsftpd; fi ++ if [ -x ${DESTDIR}/usr/local/man ]; then \ ++ $(INSTALL) -m 644 vsftpd.8 ${DESTDIR}/usr/local/man/man8/vsftpd.8; \ ++ $(INSTALL) -m 644 vsftpd.conf.5 ${DESTDIR}/usr/local/man/man5/vsftpd.conf.5; \ ++ elif [ -x ${DESTDIR}/usr/share/man ]; then \ ++ $(INSTALL) -m 644 vsftpd.8 ${DESTDIR}/usr/share/man/man8/vsftpd.8; \ ++ $(INSTALL) -m 644 vsftpd.conf.5 ${DESTDIR}/usr/share/man/man5/vsftpd.conf.5; \ + else \ +- $(INSTALL) -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \ +- $(INSTALL) -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi +- if [ -x /etc/xinetd.d ]; then \ +- $(INSTALL) -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd; fi ++ $(INSTALL) -m 644 vsftpd.8 ${DESTDIR}/usr/man/man8/vsftpd.8; \ ++ $(INSTALL) -m 644 vsftpd.conf.5 ${DESTDIR}/usr/man/man5/vsftpd.conf.5; fi ++ if [ -x ${DESTDIR}/etc/xinetd.d ]; then \ ++ $(INSTALL) -m 644 xinetd.d/vsftpd ${DESTDIR}/etc/xinetd.d/vsftpd; fi + + clean: + rm -f *.o *.swp vsftpd diff --git a/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/makefile-libs.patch b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/makefile-libs.patch new file mode 100644 index 0000000..9a10f72 --- /dev/null +++ b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/makefile-libs.patch @@ -0,0 +1,21 @@ +Hardcode LIBS instead of using a script to determine available libs + +We want to avoid this dynamic detection so we have a deterministic +build. + +Upstream-Status: Inappropriate [config] + +Signed-off-by: Paul Eggleton + +diff --git a/Makefile b/Makefile +--- a/Makefile ++++ b/Makefile +@@ -5,7 +5,7 @@ + #CFLAGS = -g + CFLAGS = -O2 -Wall -W -Wshadow #-pedantic -Werror -Wconversion + +-LIBS = `./vsf_findlibs.sh` ++LIBS = -lssl -lcrypto -lnsl -lresolv + LINK = -Wl,-s + + OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \ diff --git a/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/makefile-strip.patch b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/makefile-strip.patch new file mode 100644 index 0000000..fd31600 --- /dev/null +++ b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/makefile-strip.patch @@ -0,0 +1,17 @@ +Disable stripping at link time + +Upstream-Status: Inappropriate [config] + +Signed-off-by: Paul Eggleton + +diff --git a/Makefile b/Makefile +--- a/Makefile ++++ b/Makefile +@@ -9,7 +9,6 @@ CFLAGS = -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 \ + #-pedantic -Wconversion + + LIBS = -lssl -lcrypto -lnsl -lresolv +-LINK = -Wl,-s + LDFLAGS = -fPIE -pie -Wl,-z,relro -Wl,-z,now + + OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \ diff --git a/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/nopam-with-tcp_wrappers.patch b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/nopam-with-tcp_wrappers.patch new file mode 100644 index 0000000..fdcf3a0 --- /dev/null +++ b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/nopam-with-tcp_wrappers.patch @@ -0,0 +1,17 @@ +Disable PAM + +Upstream-Status: Inappropriate [config] + +Signed-off-by: Roy.Li +diff -ur vsftpd-2.0.1_org/builddefs.h vsftpd-2.0.1_patch/builddefs.h +--- vsftpd-2.0.1_org/builddefs.h 2004-07-02 16:36:59.000000000 +0200 ++++ vsftpd-2.0.1_patch/builddefs.h 2004-07-21 09:34:49.044900488 +0200 +@@ -2,7 +2,7 @@ + #define VSF_BUILDDEFS_H + + #define VSF_BUILD_TCPWRAPPERS +-#define VSF_BUILD_PAM ++#undef VSF_BUILD_PAM + #undef VSF_BUILD_SSL + + #endif /* VSF_BUILDDEFS_H */ diff --git a/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/nopam.patch b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/nopam.patch new file mode 100644 index 0000000..cf0d68e --- /dev/null +++ b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/nopam.patch @@ -0,0 +1,16 @@ +Disable PAM + +Upstream-Status: Inappropriate [config] + +diff -ur vsftpd-2.0.1_org/builddefs.h vsftpd-2.0.1_patch/builddefs.h +--- vsftpd-2.0.1_org/builddefs.h 2004-07-02 16:36:59.000000000 +0200 ++++ vsftpd-2.0.1_patch/builddefs.h 2004-07-21 09:34:49.044900488 +0200 +@@ -2,7 +2,7 @@ + #define VSF_BUILDDEFS_H + + #undef VSF_BUILD_TCPWRAPPERS +-#define VSF_BUILD_PAM ++#undef VSF_BUILD_PAM + #undef VSF_BUILD_SSL + + #endif /* VSF_BUILDDEFS_H */ diff --git a/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/vsftpd-tcp_wrappers-support.patch b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/vsftpd-tcp_wrappers-support.patch new file mode 100644 index 0000000..69745b3 --- /dev/null +++ b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/vsftpd-tcp_wrappers-support.patch @@ -0,0 +1,25 @@ +Enable tcp_wrapper. + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Roy.Li +--- + builddefs.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/builddefs.h b/builddefs.h +index e908352..0106d1a 100644 +--- a/builddefs.h ++++ b/builddefs.h +@@ -1,7 +1,7 @@ + #ifndef VSF_BUILDDEFS_H + #define VSF_BUILDDEFS_H + +-#undef VSF_BUILD_TCPWRAPPERS ++#define VSF_BUILD_TCPWRAPPERS + #define VSF_BUILD_PAM + #undef VSF_BUILD_SSL + +-- +1.7.1 + diff --git a/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/vsftpd.conf b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/vsftpd.conf new file mode 100644 index 0000000..07c029e --- /dev/null +++ b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd-3.0.2/vsftpd.conf @@ -0,0 +1,145 @@ +# Example config file /etc/vsftpd.conf +# +# The default compiled in settings are fairly paranoid. This sample file +# loosens things up a bit, to make the ftp daemon more usable. +# Please see vsftpd.conf.5 for all compiled in defaults. +# +# READ THIS: This example file is NOT an exhaustive list of vsftpd options. +# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's +# capabilities. + +# run standalone +listen=NO + +# No PAM sessions to save resources +session_support=NO + +# Allow anonymous FTP? (Beware - allowed by default if you comment this out). +anonymous_enable=NO +# +# Uncomment this to allow local users to log in. +local_enable=YES +# +# Uncomment this to enable any form of FTP write command. +write_enable=YES +# +# Default umask for local users is 077. You may wish to change this to 022, +# if your users expect that (022 is used by most other ftpd's) +local_umask=022 +# +# Uncomment this to allow the anonymous FTP user to upload files. This only +# has an effect if the above global write enable is activated. Also, you will +# obviously need to create a directory writable by the FTP user. +#anon_upload_enable=YES +# +# Uncomment this if you want the anonymous FTP user to be able to create +# new directories. +#anon_mkdir_write_enable=YES +# +# Activate directory messages - messages given to remote users when they +# go into a certain directory. +dirmessage_enable=YES +# +# Activate logging of uploads/downloads. +xferlog_enable=NO +# +# Make sure PORT transfer connections originate from port 20 (ftp-data). +connect_from_port_20=NO +# +# If you want, you can arrange for uploaded anonymous files to be owned by +# a different user. Note! Using "root" for uploaded files is not +# recommended! +#chown_uploads=YES +#chown_username=whoever +# +# You may override where the log file goes if you like. The default is shown +# below. +#xferlog_file=/var/log/vsftpd.log +# +# If you want, you can have your log file in standard ftpd xferlog format +xferlog_std_format=YES +# +# You may change the default value for timing out an idle session. +#idle_session_timeout=600 +# +# You may change the default value for timing out a data connection. +#data_connection_timeout=120 +# +# It is recommended that you define on your system a unique user which the +# ftp server can use as a totally isolated and unprivileged user. +#nopriv_user=ftp +# +# Enable this and the server will recognise asynchronous ABOR requests. Not +# recommended for security (the code is non-trivial). Not enabling it, +# however, may confuse older FTP clients. +#async_abor_enable=YES +# +# By default the server will pretend to allow ASCII mode but in fact ignore +# the request. Turn on the below options to have the server actually do ASCII +# mangling on files when in ASCII mode. +# Beware that turning on ascii_download_enable enables malicious remote parties +# to consume your I/O resources, by issuing the command "SIZE /big/file" in +# ASCII mode. +# These ASCII options are split into upload and download because you may wish +# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking), +# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be +# on the client anyway.. +#ascii_upload_enable=YES +#ascii_download_enable=YES +# +# You may fully customise the login banner string: +#ftpd_banner=Welcome to blah FTP service. +# +# You may specify a file of disallowed anonymous e-mail addresses. Apparently +# useful for combatting certain DoS attacks. +#deny_email_enable=YES +# (default follows) +#banned_email_file=/etc/vsftpd.banned_emails +# +# You may specify an explicit list of local users to chroot() to their home +# directory. If chroot_local_user is YES, then this list becomes a list of +# users to NOT chroot(). +#chroot_list_enable=YES +# (default follows) +#chroot_list_file=/etc/vsftpd.chroot_list +# +# You may activate the "-R" option to the builtin ls. This is disabled by +# default to avoid remote users being able to cause excessive I/O on large +# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume +# the presence of the "-R" option, so there is a strong case for enabling it. +#ls_recurse_enable=YES +# +# This string is the name of the PAM service vsftpd will use. +pam_service_name=vsftpd +# +# This option is examined if userlist_enable is activated. If you set this +# setting to NO, then users will be denied login unless they are explicitly +# listed in the file specified by userlist_file. When login is denied, the +# denial is issued before the user is asked for a password. +userlist_deny=YES +# +# If enabled, vsftpd will load a list of usernames, from the filename given by +# userlist_file. If a user tries to log in using a name in this file, they +# will be denied before they are asked for a password. This may be useful in +# preventing cleartext passwords being transmitted. See also userlist_deny. +userlist_enable=NO +# +# If enabled, vsftpd will display directory listings with the time in your +# local time zone. The default is to display GMT. The times returned by the +# MDTM FTP command are also affected by this option. +use_localtime=YES +# +# If set to YES, local users will be (by default) placed in a chroot() jail in +# their home directory after login. Warning: This option has security +# implications, especially if the users have upload permission, or shell access. +# Only enable if you know what you are doing. Note that these security implications +# are not vsftpd specific. They apply to all FTP daemons which offer to put +# local users in chroot() jails. +chroot_local_user=NO +# +allow_writeable_chroot=YES +# +tcp_wrappers=NO + +local_root=/ + diff --git a/meta-openvuplus/recipes-daemon/vsftpd/vsftpd_3.0.2.bb b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd_3.0.2.bb new file mode 100644 index 0000000..d758c49 --- /dev/null +++ b/meta-openvuplus/recipes-daemon/vsftpd/vsftpd_3.0.2.bb @@ -0,0 +1,63 @@ +SUMMARY = "Very Secure FTP server" +HOMEPAGE = "https://security.appspot.com/vsftpd.html" +SECTION = "network" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271" +PR = "r1" + +DEPENDS = "libcap openssl tcp-wrappers" + +SRC_URI = "https://security.appspot.com/downloads/vsftpd-${PV}.tar.gz \ + file://makefile-destdir.patch \ + file://makefile-libs.patch \ + file://makefile-strip.patch \ + file://vsftpd.conf \ + file://login-blank-password.patch \ +" + +LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271 \ + file://COPYRIGHT;md5=04251b2eb0f298dae376d92454f6f72e \ + file://LICENSE;md5=654df2042d44b8cac8a5654fc5be63eb" +SRC_URI[md5sum] = "8b00c749719089401315bd3c44dddbb2" +SRC_URI[sha256sum] = "be46f0e2c5528fe021fafc8dab1ecfea0c1f183063a06977f8537fcd0b195e56" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[tcp-wrappers] = ",,tcp-wrappers" +SRC_URI +="${@base_contains('PACKAGECONFIG', 'tcp-wrappers', 'file://vsftpd-tcp_wrappers-support.patch', '', d)}" + +DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" +RDEPENDS_${PN} += "${@base_contains('DISTRO_FEATURES', 'pam', 'pam-plugin-listfile', '', d)}" +PAMLIB = "${@base_contains('DISTRO_FEATURES', 'pam', '-L${STAGING_BASELIBDIR} -lpam', '', d)}" +NOPAM_SRC ="${@base_contains('PACKAGECONFIG', 'tcp-wrappers', 'file://nopam-with-tcp_wrappers.patch', 'file://nopam.patch', d)}" +SRC_URI += "${@base_contains('DISTRO_FEATURES', 'pam', '', '${NOPAM_SRC}', d)}" + +CONFFILES_${PN} = "${sysconfdir}/vsftpd.conf" +LDFLAGS_append =" -lcrypt -lcap" + +do_configure() { + # Fix hardcoded /usr, /etc, /var mess. + cat tunables.c|sed s:\"/usr:\"${prefix}:g|sed s:\"/var:\"${localstatedir}:g \ + |sed s:\"${prefix}/share/empty:\"${localstatedir}/share/empty:g |sed s:\"/etc:\"${sysconfdir}:g > tunables.c.new + mv tunables.c.new tunables.c +} + +do_compile() { + oe_runmake "LIBS=-L${STAGING_LIBDIR} -lcrypt -lcap ${PAMLIB} -lwrap" +} + +do_install() { + install -d ${D}${sbindir} + install -d ${D}${mandir}/man8 + install -d ${D}${mandir}/man5 + oe_runmake 'DESTDIR=${D}' install + install -d ${D}${sysconfdir} + install -m 600 ${WORKDIR}/vsftpd.conf ${D}${sysconfdir}/vsftpd.conf + if ! test -z ${PAMLIB} ; then + install -d ${D}${sysconfdir}/pam.d/ + cp ${S}/RedHat/vsftpd.pam ${D}${sysconfdir}/pam.d/vsftpd + sed -i "s:/lib/security:${base_libdir}/security:" ${D}${sysconfdir}/pam.d/vsftpd + sed -i "s:ftpusers:vsftpd.ftpusers:" ${D}${sysconfdir}/pam.d/vsftpd + fi + + install -d ${D}${localstatedir}/share/empty +} diff --git a/meta-openvuplus/recipes-devtools/bison/bison/bison_remove_gets.patch b/meta-openvuplus/recipes-devtools/bison/bison/bison_remove_gets.patch deleted file mode 100644 index 4e15a88..0000000 --- a/meta-openvuplus/recipes-devtools/bison/bison/bison_remove_gets.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/lib/stdio.in.h b/lib/stdio.in.h -index be44891..c2f3041 100644 ---- a/lib/stdio.in.h -+++ b/lib/stdio.in.h -@@ -180,8 +180,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " - /* It is very rare that the developer ever has full control of stdin, - so any use of gets warrants an unconditional warning. Assume it is - always declared, since it is required by C89. */ -+#ifdef gets - #undef gets - _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); -+#endif - - #if @GNULIB_FOPEN@ - # if @REPLACE_FOPEN@ diff --git a/meta-openvuplus/recipes-devtools/bison/bison_2.5.bbappend b/meta-openvuplus/recipes-devtools/bison/bison_2.5.bbappend deleted file mode 100644 index ad00cc7..0000000 --- a/meta-openvuplus/recipes-devtools/bison/bison_2.5.bbappend +++ /dev/null @@ -1,7 +0,0 @@ -PR .= "-vuplus1" - -SRC_URI_virtclass-native += " \ - file://bison_remove_gets.patch \ -" - -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" diff --git a/meta-openvuplus/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bbappend b/meta-openvuplus/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bbappend deleted file mode 100644 index 63c4e16..0000000 --- a/meta-openvuplus/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bbappend +++ /dev/null @@ -1,10 +0,0 @@ -PR .= "-vuplus0" - -do_install_append () { - for i in ext2 ext3 ext4 ext4dev; do - rm ${D}${base_sbindir}/fsck.${i} || /bin/true; - rm ${D}${base_sbindir}/mkfs.${i} || /bin/true; - ln -sf e2fsck ${D}${base_sbindir}/fsck.${i} - ln -sf mke2fs ${D}${base_sbindir}/mkfs.${i} - done; -} diff --git a/meta-openvuplus/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend b/meta-openvuplus/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend new file mode 100644 index 0000000..63c4e16 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend @@ -0,0 +1,10 @@ +PR .= "-vuplus0" + +do_install_append () { + for i in ext2 ext3 ext4 ext4dev; do + rm ${D}${base_sbindir}/fsck.${i} || /bin/true; + rm ${D}${base_sbindir}/mkfs.${i} || /bin/true; + ln -sf e2fsck ${D}${base_sbindir}/fsck.${i} + ln -sf mke2fs ${D}${base_sbindir}/mkfs.${i} + done; +} diff --git a/meta-openvuplus/recipes-devtools/gdb/gdb-cross_7.4.bbappend b/meta-openvuplus/recipes-devtools/gdb/gdb-cross_7.4.bbappend deleted file mode 100644 index 8c027e6..0000000 --- a/meta-openvuplus/recipes-devtools/gdb/gdb-cross_7.4.bbappend +++ /dev/null @@ -1,3 +0,0 @@ -PR .= "-vuplus1" - -EXPAT = "--without-expat" diff --git a/meta-openvuplus/recipes-devtools/gdb/gdb_7.4.bbappend b/meta-openvuplus/recipes-devtools/gdb/gdb_7.4.bbappend deleted file mode 100644 index 8c027e6..0000000 --- a/meta-openvuplus/recipes-devtools/gdb/gdb_7.4.bbappend +++ /dev/null @@ -1,3 +0,0 @@ -PR .= "-vuplus1" - -EXPAT = "--without-expat" diff --git a/meta-openvuplus/recipes-devtools/ltrace/ltrace/0001-breakpoints.c-fix-compile-for-mips.patch b/meta-openvuplus/recipes-devtools/ltrace/ltrace/0001-breakpoints.c-fix-compile-for-mips.patch deleted file mode 100644 index 3abf945..0000000 --- a/meta-openvuplus/recipes-devtools/ltrace/ltrace/0001-breakpoints.c-fix-compile-for-mips.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 5f2fcb0b81adb0aad534c8cdb1241cfc84b23294 Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Tue, 10 Apr 2012 01:35:24 +0200 -Subject: [PATCH] breakpoints.c: fix compile for mips - ---- - breakpoints.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/breakpoints.c b/breakpoints.c -index ec84e6e..57fa608 100644 ---- a/breakpoints.c -+++ b/breakpoints.c -@@ -152,7 +152,7 @@ enable_all_breakpoints(Process *proc) { - memcpy(new_sym,sym,sizeof(*new_sym) + strlen(sym->name) + 1); - new_sym->next=proc->list_of_symbols; - proc->list_of_symbols=new_sym; -- insert_breakpoint(proc, addr, new_sym); -+ insert_breakpoint(proc, addr, new_sym, 1); - sym=sym->next; - } - } --- -1.7.5.4 - diff --git a/meta-openvuplus/recipes-devtools/ltrace/ltrace/ltrace_fix_compile_error_initialize_linkmap.patch b/meta-openvuplus/recipes-devtools/ltrace/ltrace/ltrace_fix_compile_error_initialize_linkmap.patch new file mode 100644 index 0000000..270b67f --- /dev/null +++ b/meta-openvuplus/recipes-devtools/ltrace/ltrace/ltrace_fix_compile_error_initialize_linkmap.patch @@ -0,0 +1,13 @@ +diff --git a/sysdeps/linux-gnu/proc.c b/sysdeps/linux-gnu/proc.c +index 6e01d28..d69c985 100644 +--- a/sysdeps/linux-gnu/proc.c ++++ b/sysdeps/linux-gnu/proc.c +@@ -484,7 +484,7 @@ crawl_linkmap(struct process *proc, struct lt_r_debug_64 *dbg) + arch_addr_t addr = (arch_addr_t)(uintptr_t)dbg->r_map; + + while (addr != 0) { +- struct lt_link_map_64 rlm; ++ struct lt_link_map_64 rlm = {}; + if (lm_fetcher(proc)(proc, addr, &rlm) < 0) { + debug(2, "Unable to read link map"); + return; diff --git a/meta-openvuplus/recipes-devtools/ltrace/ltrace_git.bb b/meta-openvuplus/recipes-devtools/ltrace/ltrace_git.bb deleted file mode 100644 index 860030f..0000000 --- a/meta-openvuplus/recipes-devtools/ltrace/ltrace_git.bb +++ /dev/null @@ -1,16 +0,0 @@ -SUMMARY = "Tracks runtime library calls in dynamically linked programs" -HOMEPAGE = "http://www.ltrace.org/" -SECTION = "devel" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" -DEPENDS = "binutils elfutils libunwind" -SRCREV = "fed1e8d33ab050df892a88110e1a316d285ee650" -PV = "0.6.0" -PR = "r1" - -SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git \ - file://0001-breakpoints.c-fix-compile-for-mips.patch" - -inherit autotools git-project - -EXTRA_OECONF = "--disable-werror" diff --git a/meta-openvuplus/recipes-devtools/ltrace/ltrace_git.bbappend b/meta-openvuplus/recipes-devtools/ltrace/ltrace_git.bbappend new file mode 100644 index 0000000..4970693 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/ltrace/ltrace_git.bbappend @@ -0,0 +1,6 @@ +PR .= "-vuplus0" + +SRC_URI += "file://ltrace_fix_compile_error_initialize_linkmap.patch" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + diff --git a/meta-openvuplus/recipes-devtools/m4/m4-native/m4_remove_gets.patch b/meta-openvuplus/recipes-devtools/m4/m4-native/m4_remove_gets.patch deleted file mode 100644 index 7ee0310..0000000 --- a/meta-openvuplus/recipes-devtools/m4/m4-native/m4_remove_gets.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/lib/stdio.in.h b/lib/stdio.in.h -index b7f3b6f..d7c40bb 100644 ---- a/lib/stdio.in.h -+++ b/lib/stdio.in.h -@@ -161,8 +161,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " - /* It is very rare that the developer ever has full control of stdin, - so any use of gets warrants an unconditional warning. Assume it is - always declared, since it is required by C89. */ -+#ifdef gets - #undef gets - _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); -+#endif - - #if @GNULIB_FOPEN@ - # if @REPLACE_FOPEN@ diff --git a/meta-openvuplus/recipes-devtools/m4/m4-native_1.4.16.bbappend b/meta-openvuplus/recipes-devtools/m4/m4-native_1.4.16.bbappend deleted file mode 100644 index 6a33e52..0000000 --- a/meta-openvuplus/recipes-devtools/m4/m4-native_1.4.16.bbappend +++ /dev/null @@ -1,7 +0,0 @@ -PR .= "-vuplus1" - -SRC_URI += " \ - file://m4_remove_gets.patch \ -" - -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" diff --git a/meta-openvuplus/recipes-devtools/mtd/files/mkfs.ubifs-allow-output-file-creation-on-different-device.patch b/meta-openvuplus/recipes-devtools/mtd/files/mkfs.ubifs-allow-output-file-creation-on-different-device.patch new file mode 100644 index 0000000..e8ddf71 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/mtd/files/mkfs.ubifs-allow-output-file-creation-on-different-device.patch @@ -0,0 +1,36 @@ +diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c +index 200c8a5..00b97f4 100644 +--- a/mkfs.ubifs/mkfs.ubifs.c ++++ b/mkfs.ubifs/mkfs.ubifs.c +@@ -286,6 +286,22 @@ out_free: + return ret; + } + ++/* ++ * same_device - determine if a file is on the same blockdevice as a directory. ++ * @dir_name: directory path name ++ * @file_name: file path name ++ */ ++static int same_device(const char *dir_name, const char *file_name) ++{ ++ struct stat stat1, stat2; ++ ++ if (stat(dir_name, &stat1) == -1) ++ return -1; ++ if (stat(file_name, &stat2) == -1) ++ return -1; ++ return stat1.st_dev == stat2.st_dev; ++} ++ + /** + * calc_min_log_lebs - calculate the minimum number of log LEBs needed. + * @max_bud_bytes: journal size (buds only) +@@ -338,7 +354,7 @@ static int validate_options(void) + + if (!output) + return err_msg("no output file or UBI volume specified"); +- if (root) { ++ if (root && same_device(root, output)) { + tmp = is_contained(output, root); + if (tmp < 0) + return err_msg("failed to perform output file root check"); diff --git a/meta-openvuplus/recipes-devtools/mtd/mtd-utils-1.4.9/mkfs.ubifs-allow-output-file-creation-on-different-device.patch b/meta-openvuplus/recipes-devtools/mtd/mtd-utils-1.4.9/mkfs.ubifs-allow-output-file-creation-on-different-device.patch deleted file mode 100644 index 63f7ae2..0000000 --- a/meta-openvuplus/recipes-devtools/mtd/mtd-utils-1.4.9/mkfs.ubifs-allow-output-file-creation-on-different-device.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c -index f77e5e6..e002be5 100644 ---- a/mkfs.ubifs/mkfs.ubifs.c -+++ b/mkfs.ubifs/mkfs.ubifs.c -@@ -324,6 +324,22 @@ static int in_path(const char *dir_name, const char *file_name) - return ret; - } - -+/* -+ * same_device - determine if a file is on the same blockdevice as a directory. -+ * @dir_name: directory path name -+ * @file_name: file path name -+ */ -+static int same_device(const char *dir_name, const char *file_name) -+{ -+ struct stat stat1, stat2; -+ -+ if (stat(dir_name, &stat1) == -1) -+ return -1; -+ if (stat(file_name, &stat2) == -1) -+ return -1; -+ return stat1.st_dev == stat2.st_dev; -+} -+ - /** - * calc_min_log_lebs - calculate the minimum number of log LEBs needed. - * @max_bud_bytes: journal size (buds only) -@@ -376,7 +392,7 @@ static int validate_options(void) - - if (!output) - return err_msg("no output file or UBI volume specified"); -- if (root && in_path(root, output)) -+ if (root && same_device(root, output) && in_path(root, output)) - return err_msg("output file cannot be in the UBIFS root " - "directory"); - if (!is_power_of_2(c->min_io_size)) diff --git a/meta-openvuplus/recipes-devtools/mtd/mtd-utils_1.4.9.bbappend b/meta-openvuplus/recipes-devtools/mtd/mtd-utils_1.4.9.bbappend deleted file mode 100644 index 0701768..0000000 --- a/meta-openvuplus/recipes-devtools/mtd/mtd-utils_1.4.9.bbappend +++ /dev/null @@ -1,16 +0,0 @@ -PR .= "-vuplus2" - -FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" - -SRC_URI += "file://mkfs.ubifs-allow-output-file-creation-on-different-device.patch" - -PACKAGES_DYNAMIC = "mtd-utils-*" - -ALLOW_EMPTY_${PN} = "1" - -python populate_packages_prepend () { - debug_objs = d.expand('${sbindir}/.debug') - do_split_packages(d, debug_objs, '^(.*)$', 'mtd-utils-%s-dbg', 'mtd-util-dbg %s', recursive=False, match_path=True, prepend=True) - objs = d.expand('${sbindir}') - do_split_packages(d, objs, '^(.*)$', 'mtd-utils-%s', 'mtd-util %s', recursive=False, match_path=True, prepend=True) -} diff --git a/meta-openvuplus/recipes-devtools/mtd/mtd-utils_git.bbappend b/meta-openvuplus/recipes-devtools/mtd/mtd-utils_git.bbappend new file mode 100644 index 0000000..2d18940 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/mtd/mtd-utils_git.bbappend @@ -0,0 +1,16 @@ +PR .= "-vuplus0" + +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI += "file://mkfs.ubifs-allow-output-file-creation-on-different-device.patch" + +PACKAGES_DYNAMIC = "mtd-utils-*" + +ALLOW_EMPTY_${PN} = "1" + +python populate_packages_prepend () { + debug_objs = d.expand('${sbindir}/.debug') + do_split_packages(d, debug_objs, '^(.*)$', 'mtd-utils-%s-dbg', 'mtd-util-dbg %s', recursive=False, match_path=True, prepend=True) + objs = d.expand('${sbindir}') + do_split_packages(d, objs, '^(.*)$', 'mtd-utils-%s', 'mtd-util %s', recursive=False, match_path=True, prepend=True) +} diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg-collateral.bbappend b/meta-openvuplus/recipes-devtools/opkg/opkg-collateral.bbappend deleted file mode 100644 index 8402b35..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg-collateral.bbappend +++ /dev/null @@ -1,3 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" - -PR .= "-vuplus1" diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg-collateral/dest b/meta-openvuplus/recipes-devtools/opkg/opkg-collateral/dest deleted file mode 100644 index e041eb7..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg-collateral/dest +++ /dev/null @@ -1,5 +0,0 @@ -dest root / -dest cf /media/cf/ -dest ram /media/ram/ -dest hdd /media/hdd/ -dest usb /media/usb/ diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg-collateral/lists b/meta-openvuplus/recipes-devtools/opkg/opkg-collateral/lists deleted file mode 100644 index 2427a55..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg-collateral/lists +++ /dev/null @@ -1,2 +0,0 @@ -lists_dir ext /var/tmp - diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0001-Fixed-opkg-losing-auto_installed-flag-on-upgrading.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0001-Fixed-opkg-losing-auto_installed-flag-on-upgrading.patch deleted file mode 100644 index 4553124..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0001-Fixed-opkg-losing-auto_installed-flag-on-upgrading.patch +++ /dev/null @@ -1,32 +0,0 @@ -Upstream-Status: Backport - -From 319d02609992273e887242ed9788db68d3310b6c Mon Sep 17 00:00:00 2001 -From: "pixdamix@gmail.com" - -Date: Thu, 19 Jan 2012 13:52:06 +0000 -Subject: [PATCH 01/10] Fixed opkg losing auto_installed flag on upgrading - -Thanks-to: Christian Hitz - -git-svn-id: http://opkg.googlecode.com/svn/trunk@635 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 ---- - libopkg/opkg_install.c | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c -index 74a2ce1..3925f58 100644 ---- a/libopkg/opkg_install.c -+++ b/libopkg/opkg_install.c -@@ -1449,6 +1449,9 @@ opkg_install_pkg(pkg_t *pkg, int from_upgrade) - /* removing files from old package, to avoid ghost files */ - remove_data_files_and_list(old_pkg); - remove_maintainer_scripts(old_pkg); -+ -+ /* maintain the "Auto-Installed: yes" flag */ -+ pkg->auto_installed = old_pkg->auto_installed; - } - - --- -1.7.9.5 - diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0001-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0001-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch new file mode 100644 index 0000000..e2c9ff9 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/opkg/opkg/0001-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch @@ -0,0 +1,79 @@ +diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c +index eb630d1..de105bf 100644 +--- a/libopkg/pkg_depends.c ++++ b/libopkg/pkg_depends.c +@@ -377,36 +377,23 @@ is_pkg_a_replaces(pkg_t *pkg_scout,pkg_t *pkg) + } + + +-pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) ++static pkg_vec_t * __pkg_hash_fetch_conflicts(pkg_t * pkg, pkg_t * installed_conflicts) + { +- pkg_vec_t * installed_conflicts, * test_vec; ++ pkg_vec_t * test_vec; + compound_depend_t * conflicts; + depend_t ** possible_satisfiers; + depend_t * possible_satisfier; + int i, j, k; + int count; +- abstract_pkg_t * ab_pkg; + pkg_t **pkg_scouts; + pkg_t *pkg_scout; + +- /* +- * this is a setup to check for redundant/cyclic dependency checks, +- * which are marked at the abstract_pkg level +- */ +- if(!(ab_pkg = pkg->parent)){ +- opkg_msg(ERROR, "Internal error: %s not in hash table\n", pkg->name); +- return (pkg_vec_t *)NULL; +- } +- + conflicts = pkg->conflicts; +- if(!conflicts){ +- return (pkg_vec_t *)NULL; +- } +- installed_conflicts = pkg_vec_alloc(); +- +- count = pkg->conflicts_count; + ++ if(!conflicts) ++ return; + ++ count = pkg->conflicts_count; + + /* foreach conflict */ + for(i = 0; i < pkg->conflicts_count; i++){ +@@ -446,10 +433,29 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) + } + conflicts++; + } ++} ++ ++pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) ++{ ++ pkg_vec_t * installed_conflicts; ++ abstract_pkg_t * ab_pkg; ++ ++ /* ++ * this is a setup to check for redundant/cyclic dependency checks, ++ * which are marked at the abstract_pkg level ++ */ ++ if(!(ab_pkg = pkg->parent)){ ++ opkg_msg(ERROR, "Internal error: %s not in hash table\n", pkg->name); ++ return (pkg_vec_t *)NULL; ++ } ++ ++ installed_conflicts = pkg_vec_alloc(); ++ ++ __pkg_hash_fetch_conflicts(pkg, installed_conflicts); + +- if (installed_conflicts->len) +- return installed_conflicts; +- pkg_vec_free(installed_conflicts); ++ if (installed_conflicts->len) ++ return installed_conflicts; ++ pkg_vec_free(installed_conflicts); + return (pkg_vec_t *)NULL; + } + diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0002-Don-t-mark-Conflicts-as-Depends.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0002-Don-t-mark-Conflicts-as-Depends.patch deleted file mode 100644 index 9e122de..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0002-Don-t-mark-Conflicts-as-Depends.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 8c00c6be3723a0dcf05a10b5aba8c1c3b1fe4cf7 Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Wed, 16 May 2012 23:29:04 +0200 -Subject: [PATCH 02/10] Don't mark Conflicts as Depends - -- Fixes 'whatconflicts' sub-command. - -Signed-off-by: Andreas Oberritter ---- - libopkg/pkg_depends.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c -index 1e14d1f..a61e80e 100644 ---- a/libopkg/pkg_depends.c -+++ b/libopkg/pkg_depends.c -@@ -609,8 +609,8 @@ void buildConflicts(pkg_t * pkg) - - conflicts = pkg->conflicts = xcalloc(pkg->conflicts_count, sizeof(compound_depend_t)); - for (i = 0; i < pkg->conflicts_count; i++) { -- conflicts->type = CONFLICTS; - parseDepends(conflicts, pkg->conflicts_str[i]); -+ conflicts->type = CONFLICTS; - free(pkg->conflicts_str[i]); - conflicts++; - } --- -1.7.9.5 - diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0002-pkg_hash_fetch_conflicts-take-into-account-conflicts.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0002-pkg_hash_fetch_conflicts-take-into-account-conflicts.patch new file mode 100644 index 0000000..07e0017 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/opkg/opkg/0002-pkg_hash_fetch_conflicts-take-into-account-conflicts.patch @@ -0,0 +1,35 @@ +diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c +index de105bf..0089463 100644 +--- a/libopkg/pkg_depends.c ++++ b/libopkg/pkg_depends.c +@@ -435,6 +435,22 @@ static pkg_vec_t * __pkg_hash_fetch_conflicts(pkg_t * pkg, pkg_t * installed_con + } + } + ++static void __pkg_hash_fetch_conflictees(pkg_t *pkg, pkg_vec_t *installed_conflicts) ++{ ++ int i; ++ ++ pkg_vec_t *available_pkgs = pkg_vec_alloc(); ++ pkg_hash_fetch_all_installed(available_pkgs); ++ ++ for (i = 0; i < available_pkgs->len; i++) { ++ pkg_t *cpkg = available_pkgs->pkgs[i]; ++ if (pkg_conflicts(cpkg, pkg) && !is_pkg_in_pkg_vec(installed_conflicts, cpkg)) ++ pkg_vec_insert(installed_conflicts, cpkg); ++ } ++ ++ pkg_vec_free(available_pkgs); ++} ++ + pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) + { + pkg_vec_t * installed_conflicts; +@@ -452,6 +468,7 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) + installed_conflicts = pkg_vec_alloc(); + + __pkg_hash_fetch_conflicts(pkg, installed_conflicts); ++ __pkg_hash_fetch_conflictees(pkg, installed_conflicts); + + if (installed_conflicts->len) + return installed_conflicts; diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0003-Statically-link-libopkg-and-libbb.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0003-Statically-link-libopkg-and-libbb.patch deleted file mode 100644 index cfb7268..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0003-Statically-link-libopkg-and-libbb.patch +++ /dev/null @@ -1,107 +0,0 @@ -From 698fdfccb2b2855fbe73ecad159b7987b49ddded Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Thu, 17 May 2012 01:23:43 +0200 -Subject: [PATCH 03/10] Statically link libopkg and libbb - -* Based on https://dev.openwrt.org/browser/trunk/package/opkg/patches/007-force_static.patch - -Signed-off-by: Andreas Oberritter ---- - libbb/Makefile.am | 8 ++++---- - libopkg/Makefile.am | 14 +++----------- - src/Makefile.am | 4 ++-- - tests/Makefile.am | 6 +++--- - 4 files changed, 12 insertions(+), 20 deletions(-) - -diff --git a/libbb/Makefile.am b/libbb/Makefile.am -index 1cc82df..337d94f 100644 ---- a/libbb/Makefile.am -+++ b/libbb/Makefile.am -@@ -2,9 +2,9 @@ HOST_CPU=@host_cpu@ - BUILD_CPU=@build_cpu@ - ALL_CFLAGS=-g -O -Wall -DHOST_CPU_STR=\"@host_cpu@\" -DBUILD_CPU=@build_cpu@ - --noinst_LTLIBRARIES = libbb.la -+noinst_LIBRARIES = libbb.a - --libbb_la_SOURCES = gz_open.c \ -+libbb_a_SOURCES = gz_open.c \ - libbb.h \ - unzip.c \ - wfopen.c \ -@@ -22,5 +22,5 @@ libbb_la_SOURCES = gz_open.c \ - all_read.c \ - mode_string.c - --libbb_la_CFLAGS = $(ALL_CFLAGS) --#libbb_la_LDFLAGS = -static -+libbb_a_CFLAGS = $(ALL_CFLAGS) -+#libbb_a_LDFLAGS = -static -diff --git a/libopkg/Makefile.am b/libopkg/Makefile.am -index 043c5c4..5882595 100644 ---- a/libopkg/Makefile.am -+++ b/libopkg/Makefile.am -@@ -38,18 +38,10 @@ if HAVE_SHA256 - opkg_util_sources += sha256.c sha256.h - endif - --lib_LTLIBRARIES = libopkg.la --libopkg_la_SOURCES = \ -+noinst_LIBRARIES = libopkg.a -+libopkg_a_SOURCES = \ - $(opkg_libcore_sources) \ - $(opkg_cmd_sources) $(opkg_db_sources) \ - $(opkg_util_sources) $(opkg_list_sources) - --libopkg_la_LIBADD = $(top_builddir)/libbb/libbb.la $(CURL_LIBS) $(GPGME_LIBS) $(OPENSSL_LIBS) $(PATHFINDER_LIBS) -- --libopkg_la_LDFLAGS = -version-info 1:0:0 -- --# make sure we only export symbols that are for public use --#libopkg_la_LDFLAGS = -export-symbols-regex "^opkg_.*" -- -- -- -+libopkg_a_LIBADD = $(top_builddir)/libbb/libbb.a $(CURL_LIBS) $(GPGME_LIBS) $(OPENSSL_LIBS) $(PATHFINDER_LIBS) -diff --git a/src/Makefile.am b/src/Makefile.am -index efdc19d..bb7a792 100644 ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -2,5 +2,5 @@ AM_CFLAGS = -I${top_srcdir}/libopkg ${ALL_CFLAGS} - bin_PROGRAMS = opkg-cl - - opkg_cl_SOURCES = opkg-cl.c --opkg_cl_LDADD = $(top_builddir)/libopkg/libopkg.la \ -- $(top_builddir)/libbb/libbb.la -+opkg_cl_LDADD = $(top_builddir)/libopkg/libopkg.a \ -+ $(top_builddir)/libbb/libbb.a -diff --git a/tests/Makefile.am b/tests/Makefile.am -index 1a6f565..132c792 100644 ---- a/tests/Makefile.am -+++ b/tests/Makefile.am -@@ -4,11 +4,11 @@ AM_CFLAGS = $(ALL_CFLAGS) -Wall -g -O3 -I${top_srcdir}/libopkg - #noinst_PROGRAMS = libopkg_test opkg_active_list_test - noinst_PROGRAMS = libopkg_test - --#opkg_hash_test_LDADD = $(top_builddir)/libbb/libbb.la $(top_builddir)/libopkg/libopkg.la -+#opkg_hash_test_LDADD = $(top_builddir)/libbb/libbb.a $(top_builddir)/libopkg/libopkg.a - #opkg_hash_test_SOURCES = opkg_hash_test.c - #opkg_hash_test_CFLAGS = $(ALL_CFLAGS) -I$(top_srcdir) - --#opkg_extract_test_LDADD = $(top_builddir)/libbb/libbb.la $(top_builddir)/libopkg/libopkg.la -+#opkg_extract_test_LDADD = $(top_builddir)/libbb/libbb.a $(top_builddir)/libopkg/libopkg.a - #opkg_extract_test_SOURCES = opkg_extract_test.c - #opkg_extract_test_CFLAGS = $(ALL_CFLAGS) -I$(top_srcdir) - -@@ -16,7 +16,7 @@ noinst_PROGRAMS = libopkg_test - #opkg_active_list_test_SOURCES = opkg_active_list_test.c - #opkg_active_list_test_CFLAGS = $(ALL_CFLAGS) -I$(top_srcdir) - --libopkg_test_LDADD = $(top_builddir)/libopkg/libopkg.la -+libopkg_test_LDADD = $(top_builddir)/libopkg/libopkg.a $(top_builddir)/libbb/libbb.a - libopkg_test_SOURCE = libopkg_test.c - libopkg_test_LDFLAGS = -static - --- -1.7.9.5 - diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0003-opkg_remove-auto-delete-.pyo-files.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0003-opkg_remove-auto-delete-.pyo-files.patch new file mode 100644 index 0000000..403c074 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/opkg/opkg/0003-opkg_remove-auto-delete-.pyo-files.patch @@ -0,0 +1,21 @@ +diff --git a/libopkg/opkg_remove.c b/libopkg/opkg_remove.c +index 23cec55..9ef6dc9 100644 +--- a/libopkg/opkg_remove.c ++++ b/libopkg/opkg_remove.c +@@ -394,8 +394,15 @@ remove_data_files_and_list(pkg_t *pkg) + } + + if (!conf->noaction) { +- opkg_msg(INFO, "Deleting %s.\n", file_name); ++ size_t l = strlen(file_name); ++ opkg_msg(INFO, "Deleting %s.\n", file_name); + unlink(file_name); ++ if (l >= 3 && !strcmp(&file_name[l - 3], ".py")) { ++ char pyo_file_name[l + 2]; ++ strcpy(pyo_file_name, file_name); ++ strcat(pyo_file_name, "o"); ++ unlink(pyo_file_name); ++ } + } else + opkg_msg(INFO, "Not deleting %s. (noaction)\n", + file_name); diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0005-pkg_depends-remove-unused-variables-to-fix-compiler-.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0005-pkg_depends-remove-unused-variables-to-fix-compiler-.patch deleted file mode 100644 index 1820e52..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0005-pkg_depends-remove-unused-variables-to-fix-compiler-.patch +++ /dev/null @@ -1,48 +0,0 @@ -From 4a5bc6cbce81497442f79ded5c78389024df0e60 Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Thu, 17 May 2012 01:14:23 +0200 -Subject: [PATCH 05/10] pkg_depends: remove unused variables to fix compiler - warnings - -Signed-off-by: Andreas Oberritter ---- - libopkg/pkg_depends.c | 5 ----- - 1 file changed, 5 deletions(-) - -diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c -index a61e80e..68a81f9 100644 ---- a/libopkg/pkg_depends.c -+++ b/libopkg/pkg_depends.c -@@ -269,13 +269,10 @@ is_pkg_a_replaces(pkg_t *pkg_scout,pkg_t *pkg) - { - int i ; - int replaces_count = pkg->replaces_count; -- abstract_pkg_t **replaces; - - if (pkg->replaces_count==0) // No replaces, it's surely a conflict - return 0; - -- replaces = pkg->replaces; -- - for (i = 0; i < replaces_count; i++) { - if (strcmp(pkg_scout->name,pkg->replaces[i]->name)==0) { // Found - opkg_msg(DEBUG2, "Seems I've found a replace %s %s\n", -@@ -295,7 +292,6 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) - depend_t ** possible_satisfiers; - depend_t * possible_satisfier; - int i, j, k; -- int count; - abstract_pkg_t * ab_pkg; - pkg_t **pkg_scouts; - pkg_t *pkg_scout; -@@ -315,7 +311,6 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) - } - installed_conflicts = pkg_vec_alloc(); - -- count = pkg->conflicts_count; - - - --- -1.7.9.5 - diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0006-pkg_hash_fetch_conflicts-fix-possible-segfaults.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0006-pkg_hash_fetch_conflicts-fix-possible-segfaults.patch deleted file mode 100644 index 89934f2..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0006-pkg_hash_fetch_conflicts-fix-possible-segfaults.patch +++ /dev/null @@ -1,34 +0,0 @@ -From e2b289330280e9f9fb5dd2cc10c736ca06d273f4 Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Thu, 17 May 2012 01:15:15 +0200 -Subject: [PATCH 06/10] pkg_hash_fetch_conflicts: fix possible segfaults - -Signed-off-by: Andreas Oberritter ---- - libopkg/pkg_depends.c | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - -diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c -index 68a81f9..6ff75f1 100644 ---- a/libopkg/pkg_depends.c -+++ b/libopkg/pkg_depends.c -@@ -322,10 +322,14 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) - /* foreach possible satisfier */ - for(j = 0; j < conflicts->possibility_count; j++){ - possible_satisfier = possible_satisfiers[j]; -- if (!possible_satisfier) -+ if (!possible_satisfier) { - opkg_msg(ERROR, "Internal error: possible_satisfier=NULL\n"); -- if (!possible_satisfier->pkg) -+ continue; -+ } -+ if (!possible_satisfier->pkg) { - opkg_msg(ERROR, "Internal error: possible_satisfier->pkg=NULL\n"); -+ continue; -+ } - test_vec = possible_satisfier->pkg->pkgs; - if (test_vec) { - /* pkg_vec found, it is an actual package conflict --- -1.7.9.5 - diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0007-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0007-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch deleted file mode 100644 index 575c1e1..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0007-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch +++ /dev/null @@ -1,94 +0,0 @@ -From b925a520a63fb291675f707e602d04295236c85b Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Thu, 17 May 2012 01:17:52 +0200 -Subject: [PATCH 07/10] pkg_hash_fetch_conflicts: move iteration over - conflicts to subroutine - -Signed-off-by: Andreas Oberritter ---- - libopkg/pkg_depends.c | 46 ++++++++++++++++++++++++---------------------- - 1 file changed, 24 insertions(+), 22 deletions(-) - -diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c -index 6ff75f1..1999b64 100644 ---- a/libopkg/pkg_depends.c -+++ b/libopkg/pkg_depends.c -@@ -284,39 +284,22 @@ is_pkg_a_replaces(pkg_t *pkg_scout,pkg_t *pkg) - - } - -- --pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) -+static void __pkg_hash_fetch_conflicts(pkg_t * pkg, pkg_vec_t * installed_conflicts) - { -- pkg_vec_t * installed_conflicts, * test_vec; -+ pkg_vec_t * test_vec; - compound_depend_t * conflicts; - depend_t ** possible_satisfiers; - depend_t * possible_satisfier; - int i, j, k; -- abstract_pkg_t * ab_pkg; - pkg_t **pkg_scouts; - pkg_t *pkg_scout; - -- /* -- * this is a setup to check for redundant/cyclic dependency checks, -- * which are marked at the abstract_pkg level -- */ -- if(!(ab_pkg = pkg->parent)){ -- opkg_msg(ERROR, "Internal error: %s not in hash table\n", pkg->name); -- return (pkg_vec_t *)NULL; -- } -- - conflicts = pkg->conflicts; -- if(!conflicts){ -- return (pkg_vec_t *)NULL; -- } -- installed_conflicts = pkg_vec_alloc(); -- -- -- -+ if(!conflicts) -+ return; - - /* foreach conflict */ - for(i = 0; i < pkg->conflicts_count; i++){ -- - possible_satisfiers = conflicts->possibilities; - - /* foreach possible satisfier */ -@@ -352,11 +335,30 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) - } - conflicts++; - } -+} -+ -+pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) -+{ -+ pkg_vec_t * installed_conflicts; -+ abstract_pkg_t * ab_pkg; -+ -+ /* -+ * this is a setup to check for redundant/cyclic dependency checks, -+ * which are marked at the abstract_pkg level -+ */ -+ if(!(ab_pkg = pkg->parent)){ -+ opkg_msg(ERROR, "Internal error: %s not in hash table\n", pkg->name); -+ return (pkg_vec_t *)NULL; -+ } -+ -+ installed_conflicts = pkg_vec_alloc(); -+ -+ __pkg_hash_fetch_conflicts(pkg, installed_conflicts); - - if (installed_conflicts->len) - return installed_conflicts; - pkg_vec_free(installed_conflicts); -- return (pkg_vec_t *)NULL; -+ return (pkg_vec_t *)NULL; - } - - int version_constraints_satisfied(depend_t * depends, pkg_t * pkg) --- -1.7.9.5 - diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0008-pkg_hash_fetch_conflicts-take-into-account-conflicts.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0008-pkg_hash_fetch_conflicts-take-into-account-conflicts.patch deleted file mode 100644 index e958289..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0008-pkg_hash_fetch_conflicts-take-into-account-conflicts.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 53de52b533ee30676d051ee941cfc0a517e9190e Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Thu, 17 May 2012 01:18:42 +0200 -Subject: [PATCH 08/10] pkg_hash_fetch_conflicts: take into account conflicts - of installed packages - -Signed-off-by: Andreas Oberritter ---- - libopkg/pkg_depends.c | 17 +++++++++++++++++ - 1 file changed, 17 insertions(+) - -diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c -index 1999b64..f237733 100644 ---- a/libopkg/pkg_depends.c -+++ b/libopkg/pkg_depends.c -@@ -337,6 +337,22 @@ static void __pkg_hash_fetch_conflicts(pkg_t * pkg, pkg_vec_t * installed_confli - } - } - -+static void __pkg_hash_fetch_conflictees(pkg_t *pkg, pkg_vec_t *installed_conflicts) -+{ -+ int i; -+ -+ pkg_vec_t *available_pkgs = pkg_vec_alloc(); -+ pkg_hash_fetch_all_installed(available_pkgs); -+ -+ for (i = 0; i < available_pkgs->len; i++) { -+ pkg_t *cpkg = available_pkgs->pkgs[i]; -+ if (pkg_conflicts(cpkg, pkg) && !is_pkg_in_pkg_vec(installed_conflicts, cpkg)) -+ pkg_vec_insert(installed_conflicts, cpkg); -+ } -+ -+ pkg_vec_free(available_pkgs); -+} -+ - pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) - { - pkg_vec_t * installed_conflicts; -@@ -354,6 +370,7 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg) - installed_conflicts = pkg_vec_alloc(); - - __pkg_hash_fetch_conflicts(pkg, installed_conflicts); -+ __pkg_hash_fetch_conflictees(pkg, installed_conflicts); - - if (installed_conflicts->len) - return installed_conflicts; --- -1.7.9.5 - diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0009-don-t-add-recommends-pkgs-to-depended-upon-by.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0009-don-t-add-recommends-pkgs-to-depended-upon-by.patch deleted file mode 100644 index e581dc0..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0009-don-t-add-recommends-pkgs-to-depended-upon-by.patch +++ /dev/null @@ -1,26 +0,0 @@ -While removing a package with opkg, the process shouldn't be blocked if -another package RECOMMENDS the package wanted to be removed. This is -because, while generating the dependencies, opkg adds dependencies to -depended_upon_by even if dependency's type is RECOMMEND. The fix is to -skip dependencies of type RECOMMEND while constructing depended_upon_by. - -Bug info: -https://bugzilla.yoctoproject.org/show_bug.cgi?id=2431 - -Upstream-Status: Pending -Signed-off-by: Andrei Gherzan - -Index: trunk/libopkg/pkg_depends.c -=================================================================== ---- trunk.orig/libopkg/pkg_depends.c 2011-09-03 05:54:56.000000000 +0300 -+++ trunk/libopkg/pkg_depends.c 2012-10-20 22:23:03.783573202 +0300 -@@ -785,8 +785,7 @@ - for (i = 0; i < count; i++) { - depends = &pkg->depends[i]; - if (depends->type != PREDEPEND -- && depends->type != DEPEND -- && depends->type != RECOMMEND) -+ && depends->type != DEPEND) - continue; - for (j = 0; j < depends->possibility_count; j++) { - ab_depend = depends->possibilities[j]->pkg; diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0010-opkg_remove-auto-delete-.pyo-files.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0010-opkg_remove-auto-delete-.pyo-files.patch deleted file mode 100644 index 3bc2e5d..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0010-opkg_remove-auto-delete-.pyo-files.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 719cc4ab765c008bd7e4f2d085692657c33d171e Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Mon, 21 May 2012 14:05:37 +0200 -Subject: [PATCH 10/10] opkg_remove: auto-delete .pyo files - -Signed-off-by: Andreas Oberritter ---- - libopkg/opkg_remove.c | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/libopkg/opkg_remove.c b/libopkg/opkg_remove.c -index 5f4219b..4320dc3 100644 ---- a/libopkg/opkg_remove.c -+++ b/libopkg/opkg_remove.c -@@ -375,8 +375,15 @@ remove_data_files_and_list(pkg_t *pkg) - } - - if (!conf->noaction) { -+ size_t l = strlen(file_name); - opkg_msg(INFO, "Deleting %s.\n", file_name); - unlink(file_name); -+ if (l >= 3 && !strcmp(&file_name[l - 3], ".py")) { -+ char pyo_file_name[l + 2]; -+ strcpy(pyo_file_name, file_name); -+ strcat(pyo_file_name, "o"); -+ unlink(pyo_file_name); -+ } - } else - opkg_msg(INFO, "Not deleting %s. (noaction)\n", - file_name); --- -1.7.9.5 - diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0011-opkg-allow-package-move-from-depends-to-recommends.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0011-opkg-allow-package-move-from-depends-to-recommends.patch deleted file mode 100644 index 5b5bc56..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0011-opkg-allow-package-move-from-depends-to-recommends.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -Naur trunk.org/libopkg/opkg_install.c trunk/libopkg/opkg_install.c ---- trunk.org/libopkg/opkg_install.c 2013-02-17 12:40:51.000000000 +0100 -+++ trunk/libopkg/opkg_install.c 2013-02-17 01:17:37.000000000 +0100 -@@ -366,11 +366,12 @@ - - for (k=0; kdepends[k]; -- if (cd1->type != DEPEND) -+ if (cd1->type != DEPEND && cd1->type != RECOMMEND) - continue; - for (l=0; lpossibility_count; l++) { -- if (cd0->possibilities[j] -- == cd1->possibilities[l]) { -+ if ( (cd0->type == cd1->type && cd0->possibilities[j] == cd1->possibilities[l]) || -+ (cd0->type != cd1->type && !strcmp(cd0->possibilities[j]->pkg->name, cd1->possibilities[l]->pkg->name) ) -+ ) { - found = 1; - break; - } diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/0012-opkg-dont-handle-recommends-as-depends.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/0012-opkg-dont-handle-recommends-as-depends.patch deleted file mode 100644 index 9d7ddc3..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/0012-opkg-dont-handle-recommends-as-depends.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -Naur trunk.orig/libopkg/pkg_depends.c trunk/libopkg/pkg_depends.c ---- trunk.orig/libopkg/pkg_depends.c 2013-02-17 16:47:33.000000000 +0100 -+++ trunk/libopkg/pkg_depends.c 2013-02-17 16:07:11.000000000 +0100 -@@ -236,6 +236,11 @@ - /* just mention it politely */ - opkg_msg(NOTICE, "package %s suggests installing %s\n", - pkg->name, satisfier_entry_pkg->name); -+ } -+ else if (compound_depend->type == RECOMMEND) { -+ /* just mention it politely */ -+ opkg_msg(NOTICE, "package %s recommend installing %s\n", -+ pkg->name, satisfier_entry_pkg->name); - } else { - char ** newstuff = NULL; - diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg/unarchive-fixed-uname-gname-cache.patch b/meta-openvuplus/recipes-devtools/opkg/opkg/unarchive-fixed-uname-gname-cache.patch deleted file mode 100644 index 3a13a5b..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg/unarchive-fixed-uname-gname-cache.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff -Naur trunk.org/libbb/unarchive.c trunk/libbb/unarchive.c ---- trunk.org/libbb/unarchive.c 2012-08-30 13:45:44.000000000 +0200 -+++ trunk/libbb/unarchive.c 2012-09-13 11:50:57.822754393 +0200 -@@ -446,12 +446,12 @@ - struct passwd *passwd; - if (!uname) - return FALSE; -- if (!uname_cache[0] && strcmp(uname_cache, uname) == 0) -+ if (!strcmp(uname_cache, uname)) - return TRUE; - passwd = getpwnam(uname); - if (passwd) { - uid_cache = passwd->pw_uid; -- strncpy(uname, uname_cache, 32); -+ strncpy(uname_cache, uname, 32); - return TRUE; - } - return FALSE; -@@ -464,12 +464,12 @@ - struct group *group; - if (!gname) - return FALSE; -- if (!gname_cache[0] && strcmp(gname_cache, gname) == 0) -+ if (!strcmp(gname_cache, gname)) - return TRUE; - group = getgrnam(gname); - if (group) { - gid_cache = group->gr_gid; -- strncpy(gname, gname_cache, 32); -+ strncpy(gname_cache, gname, 32); - return TRUE; - } - return FALSE; diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg_0.2.4.bbappend b/meta-openvuplus/recipes-devtools/opkg/opkg_0.2.4.bbappend new file mode 100644 index 0000000..9147533 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/opkg/opkg_0.2.4.bbappend @@ -0,0 +1,10 @@ +PR .= "-vuplus0" + +SRC_URI += " \ + file://0001-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch \ + file://0002-pkg_hash_fetch_conflicts-take-into-account-conflicts.patch \ + file://0003-opkg_remove-auto-delete-.pyo-files.patch \ + file://0004-Makefile.am-remove-g-and-O-compiler-flags.patch \ +" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" diff --git a/meta-openvuplus/recipes-devtools/opkg/opkg_svn.bbappend b/meta-openvuplus/recipes-devtools/opkg/opkg_svn.bbappend deleted file mode 100644 index 3eadd64..0000000 --- a/meta-openvuplus/recipes-devtools/opkg/opkg_svn.bbappend +++ /dev/null @@ -1,21 +0,0 @@ -PR .= "-vuplus2" - -PATCHES = "file://0009-don-t-add-recommends-pkgs-to-depended-upon-by.patch \ - file://0011-opkg-allow-package-move-from-depends-to-recommends.patch \ - file://0012-opkg-dont-handle-recommends-as-depends.patch" - -PATCHES_virtclass-native = "" - -SRC_URI += "file://0001-Fixed-opkg-losing-auto_installed-flag-on-upgrading.patch \ - file://0002-Don-t-mark-Conflicts-as-Depends.patch \ - file://0003-Statically-link-libopkg-and-libbb.patch \ - file://0004-Makefile.am-remove-g-and-O-compiler-flags.patch \ - file://0005-pkg_depends-remove-unused-variables-to-fix-compiler-.patch \ - file://0006-pkg_hash_fetch_conflicts-fix-possible-segfaults.patch \ - file://0007-pkg_hash_fetch_conflicts-move-iteration-over-conflic.patch \ - file://0008-pkg_hash_fetch_conflicts-take-into-account-conflicts.patch \ - file://0010-opkg_remove-auto-delete-.pyo-files.patch \ - ${PATCHES} \ - file://unarchive-fixed-uname-gname-cache.patch" - -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" diff --git a/meta-openvuplus/recipes-devtools/orc/orc/disable-mips.patch b/meta-openvuplus/recipes-devtools/orc/orc/disable-mips.patch new file mode 100644 index 0000000..090b7fe --- /dev/null +++ b/meta-openvuplus/recipes-devtools/orc/orc/disable-mips.patch @@ -0,0 +1,15 @@ +diff --git a/configure.ac b/configure.ac +index a396b05..2c5c61c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -169,8 +169,8 @@ case "${enable_backend}" in + # AC_DEFINE(ENABLE_BACKEND_ARM, 1, [Enable Arm backend]) + ENABLE_BACKEND_C64X=yes + AC_DEFINE(ENABLE_BACKEND_C64X, 1, [Enable c64x backend]) +- ENABLE_BACKEND_MIPS=yes +- AC_DEFINE(ENABLE_BACKEND_MIPS, 1, [Enable MIPS backend]) ++# ENABLE_BACKEND_MIPS=yes ++# AC_DEFINE(ENABLE_BACKEND_MIPS, 1, [Enable MIPS backend]) + ;; + esac + AM_CONDITIONAL(ENABLE_BACKEND_SSE, test "x$ENABLE_BACKEND_SSE" = "xyes") diff --git a/meta-openvuplus/recipes-devtools/orc/orc_0.4.23.bbappend b/meta-openvuplus/recipes-devtools/orc/orc_0.4.23.bbappend new file mode 100644 index 0000000..b5e59fd --- /dev/null +++ b/meta-openvuplus/recipes-devtools/orc/orc_0.4.23.bbappend @@ -0,0 +1,5 @@ +PR .= "-vuplus0" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://disable-mips.patch" diff --git a/meta-openvuplus/recipes-devtools/python/python-native/04-default-is-optimized.patch b/meta-openvuplus/recipes-devtools/python/python-native/04-default-is-optimized.patch new file mode 100644 index 0000000..8fe147e --- /dev/null +++ b/meta-openvuplus/recipes-devtools/python/python-native/04-default-is-optimized.patch @@ -0,0 +1,20 @@ +Upstream-Status: Inappropriate [embedded specific] + +# When compiling for an embedded system, we need every bit of +# performance we can get. default to optimized with the option +# of opt-out. +# Signed-Off: Michael 'Mickey' Lauer + +Index: Python-2.6.1/Python/compile.c +=================================================================== +--- Python-2.6.1.orig/Python/compile.c ++++ Python-2.6.1/Python/compile.c +@@ -32,7 +32,7 @@ + #include "symtable.h" + #include "opcode.h" + +-int Py_OptimizeFlag = 0; ++int Py_OptimizeFlag = 1; + + #define DEFAULT_BLOCK_SIZE 16 + #define DEFAULT_BLOCKS 8 diff --git a/meta-openvuplus/recipes-devtools/python/python-native_2.7.2.bbappend b/meta-openvuplus/recipes-devtools/python/python-native_2.7.2.bbappend deleted file mode 100644 index ab67e09..0000000 --- a/meta-openvuplus/recipes-devtools/python/python-native_2.7.2.bbappend +++ /dev/null @@ -1,20 +0,0 @@ -PR .= "-vuplus2" - -RPROVIDES += "python-pickle-native python-pprint-native" - -do_install() { - oe_runmake 'DESTDIR=${D}' install - install -d ${D}${bindir}/ - install -m 0755 Parser/pgen ${D}${bindir}/ - - # Make sure we use /usr/bin/env python - for PYTHSCRIPT in `grep -rIl ${bindir}/python ${D}${bindir}`; do - sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT - done - - ln -sf python ${D}${bindir}/python2 - - install -d ${D}${bindir}/python-native - ln -sf ${bindir}/python ${D}${bindir}/python-native/python -} - diff --git a/meta-openvuplus/recipes-devtools/python/python-native_2.7.3.bbappend b/meta-openvuplus/recipes-devtools/python/python-native_2.7.3.bbappend new file mode 100644 index 0000000..de95c93 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/python/python-native_2.7.3.bbappend @@ -0,0 +1,8 @@ +PR .= "-vuplus2" + +SRC_URI += "file://04-default-is-optimized.patch" + +RPROVIDES_${PN} += "python-pickle-native python-pprint-native" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + diff --git a/meta-openvuplus/recipes-devtools/python/python-pycrypto_2.5.bb b/meta-openvuplus/recipes-devtools/python/python-pycrypto_2.5.bb index b7a4811..f7226fd 100644 --- a/meta-openvuplus/recipes-devtools/python/python-pycrypto_2.5.bb +++ b/meta-openvuplus/recipes-devtools/python/python-pycrypto_2.5.bb @@ -12,6 +12,6 @@ SRC_URI[sha256sum] = "e950a78184e2a7defccf5d45e0c29c1e9edeb29984433f0d110a21e963 S = "${WORKDIR}/pycrypto-${PV}" -inherit autotools distutils +inherit autotools-brokensep distutils BBCLASSEXTEND = "native" diff --git a/meta-openvuplus/recipes-devtools/python/python-transmissionrpc_hg.bb b/meta-openvuplus/recipes-devtools/python/python-transmissionrpc_hg.bb index 01db4e3..2947389 100644 --- a/meta-openvuplus/recipes-devtools/python/python-transmissionrpc_hg.bb +++ b/meta-openvuplus/recipes-devtools/python/python-transmissionrpc_hg.bb @@ -8,7 +8,7 @@ PV = "0.7+hg${SRCREV}" PRIORITY = "optional" PR = "r1" -SRC_URI = "hg://bitbucket.org/blueluna;proto=http;module=transmissionrpc;rev=${SRCREV}" +SRC_URI = "hg://bitbucket.org/blueluna;protocol=http;module=transmissionrpc;rev=${SRCREV}" S = "${WORKDIR}/transmissionrpc" diff --git a/meta-openvuplus/recipes-devtools/python/python-twisted_12.0.0.bb b/meta-openvuplus/recipes-devtools/python/python-twisted_12.0.0.bb deleted file mode 100644 index a4314f7..0000000 --- a/meta-openvuplus/recipes-devtools/python/python-twisted_12.0.0.bb +++ /dev/null @@ -1,237 +0,0 @@ -DESCRIPTION = "Twisted is an event-driven networking framework written in Python and licensed under the LGPL. \ -Twisted supports TCP, UDP, SSL/TLS, multicast, Unix sockets, a large number of protocols \ -(including HTTP, NNTP, IMAP, SSH, IRC, FTP, and others), and much more." -HOMEPAGE = "http://www.twistedmatrix.com" -SECTION = "console/network" - -#twisted/topfiles/NEWS:655: - Relicensed: Now under the MIT license, rather than LGPL. -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;beginline=40;md5=3fced11d6df719b47505837a51c16ae5" - -SRC_URI = "http://twistedmatrix.com/Releases/Twisted/12.0/Twisted-${PV}.tar.bz2" -SRC_URI[md5sum] = "cf49a8676c21c50faf1b42b528049471" -SRC_URI[sha256sum] = "e5561c9714583fd052ea9e0b10331609a719b3878f9d2593e4c57eab0ba0effd" - -S = "${WORKDIR}/Twisted-${PV}" -PR = "r2" - -inherit setuptools - -do_install_append() { - # remove some useless files before packaging - find ${D} -name "*.bat" -o -name "*.c" -o -name "*.h" -exec rm {} \; -} - -PACKAGES += "\ - ${PN}-zsh \ - ${PN}-test \ - ${PN}-protocols \ - ${PN}-bin \ - ${PN}-conch \ - ${PN}-lore \ - ${PN}-mail \ - ${PN}-names \ - ${PN}-news \ - ${PN}-runner \ - ${PN}-web \ - ${PN}-words \ - ${PN}-flow \ - ${PN}-pair \ - ${PN}-core \ -" - -RDEPENDS_${PN} += "\ - ${PN}-bin \ - ${PN}-conch \ - ${PN}-lore \ - ${PN}-mail \ - ${PN}-names \ - ${PN}-news \ - ${PN}-runner \ - ${PN}-web \ - ${PN}-words \ -" - -ALLOW_EMPTY_${PN} = "1" -FILES_${PN} = "" - -FILES_${PN}-test = " \ - ${libdir}/${PYTHON_DIR}/site-packages/twisted/test \ - ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/test \ -" -RDEPENDS_${PN}-test = "${PN}" - -FILES_${PN}-protocols = " \ - ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/ \ -" - -FILES_${PN}-zsh = " \ - ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zsh \ - ${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.* \ -" - -FILES_${PN}-bin = " \ - ${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols/_c_urlarg.so \ - ${libdir}/${PYTHON_DIR}/site-packages/twisted/spread/cBanana.so \ -" - -FILES_${PN}-conch = " \ - ${bindir}/ckeygen \ - ${bindir}/tkconch \ - ${bindir}/conch \ - ${bindir}/conchftp \ - ${bindir}/cftp \ - ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_conch.py* \ - ${libdir}/${PYTHON_DIR}/site-packages/twisted/conch \ -" -RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols" - -FILES_${PN}-core = " \ -${bindir}/manhole \ -${bindir}/mktap \ -${bindir}/twistd \ -${bindir}/tap2deb \ -${bindir}/tap2rpm \ -${bindir}/tapconvert \ -${bindir}/tkmktap \ -${bindir}/trial \ -${bindir}/easy_install* \ -${bindir}/pyhtmlizer \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/__init__.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/notestplugin.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/testplugin.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_ftp.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_inet.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_manhole.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_portforward.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_socks.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_telnet.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_trial.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/dropin.cache \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/application \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/cred \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/enterprise \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/internet \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/manhole \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/persisted \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/protocols\ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python\ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/timeoutqueue.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/filepath.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dxprofile.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/plugin.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/htmlizer.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/__init__.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dispatch.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/hook.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadpool.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/otp.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/usage.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/roots.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/versions.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/urlpath.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/util.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/components.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/logfile.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/runtime.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/reflect.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/context.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/threadable.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/rebuild.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/failure.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/lockfile.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/formmethod.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/finalize.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/win32.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/dist.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/shortcut.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zipstream.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/release.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/syslog.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/log.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/compat.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/zshcomp.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/procutils.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/text.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_twisted_zsh_stub \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_epoll.so \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/_initgroups.so \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/scripts/ \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/spread/ \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/tap/ \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/trial/ \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/__init__.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/_version.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/copyright.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/im.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/python/*.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/*.py* \ -" -RDEPENDS_${PN}-core = "python-core python-zopeinterface" - -FILES_${PN}-lore = " \ -${bindir}/bookify \ -${bindir}/lore \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_lore.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/lore \ -" -RDEPENDS_${PN}-lore = "${PN}-core" - -FILES_${PN}-mail = " \ -${bindir}/mailmail \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_mail.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/mail \ -" -RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols" - -FILES_${PN}-names = " \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_names.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/names \ -" -RDEPENDS_${PN}-names = "${PN}-core" - -FILES_${PN}-news = " \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_news.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/news \ -" -RDEPENDS_${PN}-news = "${PN}-core ${PN}-protocols" - -FILES_${PN}-runner = " \ -${libdir}/site-packages/twisted/runner/portmap.so \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/runner\ -" -RDEPENDS_${PN}-runner = "${PN}-core ${PN}-protocols" - -FILES_${PN}-web = " \ -${bindir}/websetroot \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_web.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/web\ -" -RDEPENDS_${PN}-web += "${PN}-core ${PN}-protocols" - -FILES_${PN}-words = " \ -${bindir}/im \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_words.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/words\ -" -RDEPENDS_${PN}-words += "${PN}-core" - -FILES_${PN}-flow = " \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_flow.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/flow \" -RDEPENDS_${PN}-flow += "${PN}-core" - -FILES_${PN}-pair = " \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_pair.py* \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/pair \ -" -RDEPENDS_${PN}-pair += "${PN}-core" - -FILES_${PN}-dbg += " \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/*/.debug \ -${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/.debug \ -" -RDEPENDS_${PN}-dbg = "${PN}" diff --git a/meta-openvuplus/recipes-devtools/python/python-twisted_13.2.%.bbappend b/meta-openvuplus/recipes-devtools/python/python-twisted_13.2.%.bbappend new file mode 100644 index 0000000..f9b0ae8 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/python/python-twisted_13.2.%.bbappend @@ -0,0 +1,29 @@ +PR = "r2" + +inherit setuptools + +PACKAGES =+ "\ + ${PN}-src \ + ${PN}-bin \ +" + +RDEPENDS_{PN} += "${PN}-bin" +RDEPENDS_{PN}-src = "${PN}" +FILES_${PN}-src = " \ + ${libdir}/${PYTHON_DIR}/site-packages/twisted/*.py \ + ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*.py \ + ${libdir}/${PYTHON_DIR}/site-packages/twisted/*/*/*.py \ + " + +RDEPENDS_${PN}-test = "${PN}" +RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols" +RDEPENDS_${PN}-lore = "${PN}-core" +RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols" +RDEPENDS_${PN}-names = "${PN}-core" +RDEPENDS_${PN}-news = "${PN}-core ${PN}-protocols" +RDEPENDS_${PN}-runner = "${PN}-core ${PN}-protocols" +RDEPENDS_${PN}-web += "${PN}-core ${PN}-protocols" +RDEPENDS_${PN}-words += "${PN}-core" +RDEPENDS_${PN}-flow += "${PN}-core" +RDEPENDS_${PN}-pair += "${PN}-core" +RDEPENDS_${PN}-dbg = "${PN}" diff --git a/meta-openvuplus/recipes-devtools/python/python-zopeinterface_4.%.bbappend b/meta-openvuplus/recipes-devtools/python/python-zopeinterface_4.%.bbappend new file mode 100644 index 0000000..335d0f1 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/python/python-zopeinterface_4.%.bbappend @@ -0,0 +1,5 @@ +# apparently missing in python-zopeinterface_3.5.1.bb: +PACKAGES =+ "${PN}-tests" + +# some txt files which should go into -doc +FILES_${PN}-doc += "${PYTHON_SITEPACKAGES_DIR}/*-info" diff --git a/meta-openvuplus/recipes-devtools/python/python/04-default-is-optimized.patch b/meta-openvuplus/recipes-devtools/python/python/04-default-is-optimized.patch new file mode 100644 index 0000000..7ce819a --- /dev/null +++ b/meta-openvuplus/recipes-devtools/python/python/04-default-is-optimized.patch @@ -0,0 +1,60 @@ +Upstream-Status: Inappropriate [embedded specific] + +Updated original patch for python 2.7.3 + +Signed-Off-By: Nitin A Kamble +2012/05/01 + + +# when compiling for an embedded system, we need every bit of +# performance we can get. default to optimized with the option +# of opt-out. +# Signed-Off: Michael 'Mickey' Lauer + +Index: Python-2.7.3/Python/compile.c +=================================================================== +--- Python-2.7.3.orig/Python/compile.c ++++ Python-2.7.3/Python/compile.c +@@ -32,7 +32,7 @@ + #include "symtable.h" + #include "opcode.h" + +-int Py_OptimizeFlag = 0; ++int Py_OptimizeFlag = 1; + + #define DEFAULT_BLOCK_SIZE 16 + #define DEFAULT_BLOCKS 8 +Index: Python-2.7.3/Modules/main.c +=================================================================== +--- Python-2.7.3.orig/Modules/main.c ++++ Python-2.7.3/Modules/main.c +@@ -40,7 +40,7 @@ static char **orig_argv; + static int orig_argc; + + /* command line options */ +-#define BASE_OPTS "3bBc:dEhiJm:OQ:RsStuUvVW:xX?" ++#define BASE_OPTS "3bBc:dEhiJm:NOQ:RsStuUvVW:xX?" + + #ifndef RISCOS + #define PROGRAM_OPTS BASE_OPTS +@@ -69,8 +69,7 @@ Options and arguments (and corresponding + static char *usage_2 = "\ + if stdin does not appear to be a terminal; also PYTHONINSPECT=x\n\ + -m mod : run library module as a script (terminates option list)\n\ +--O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x\n\ +--OO : remove doc-strings in addition to the -O optimizations\n\ ++-N : do NOT optimize generated bytecode\n\ + -R : use a pseudo-random salt to make hash() values of various types be\n\ + unpredictable between separate invocations of the interpreter, as\n\ + a defense against denial-of-service attacks\n\ +@@ -365,8 +364,8 @@ Py_Main(int argc, char **argv) + + /* case 'J': reserved for Jython */ + +- case 'O': +- Py_OptimizeFlag++; ++ case 'N': ++ Py_OptimizeFlag=0; + break; + + case 'B': diff --git a/meta-openvuplus/recipes-devtools/python/python/99-ignore-optimization-flag.patch b/meta-openvuplus/recipes-devtools/python/python/99-ignore-optimization-flag.patch new file mode 100644 index 0000000..a5d9812 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/python/python/99-ignore-optimization-flag.patch @@ -0,0 +1,21 @@ +Upstream-Status: Inappropriate [embedded specific] + +# Reinstate the empty -O option to fix weird mixing of native and target +# binaries and libraries with LD_LIBRARY_PATH when host==target +# +# Signed-off-by: Denys Dmytriyenko + +Index: Python-2.6.6/Modules/main.c +=================================================================== +--- Python-2.6.6.orig/Modules/main.c ++++ Python-2.6.6/Modules/main.c +@@ -327,6 +327,9 @@ Py_Main(int argc, char **argv) + + /* case 'J': reserved for Jython */ + ++ case 'O': /* ignore it */ ++ break; ++ + case 'N': + Py_OptimizeFlag=0; + break; diff --git a/meta-openvuplus/recipes-devtools/python/python/ctypes-error-handling-fix.patch b/meta-openvuplus/recipes-devtools/python/python/ctypes-error-handling-fix.patch index 5e07082..9b9aa11 100644 --- a/meta-openvuplus/recipes-devtools/python/python/ctypes-error-handling-fix.patch +++ b/meta-openvuplus/recipes-devtools/python/python/ctypes-error-handling-fix.patch @@ -1,6 +1,8 @@ ---- a/Modules/_ctypes/_ctypes.c 2012-01-26 15:41:30.000000000 +0100 -+++ b/Modules/_ctypes/_ctypes.c 2012-01-26 15:44:41.046977137 +0100 -@@ -602,10 +602,16 @@ +diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c +index 4ae2c41..ebd9960 100644 +--- a/Modules/_ctypes/_ctypes.c ++++ b/Modules/_ctypes/_ctypes.c +@@ -602,10 +602,16 @@ CDataType_in_dll(PyObject *type, PyObject *args) #ifdef __CYGWIN__ /* dlerror() isn't very helpful on cygwin */ PyErr_Format(PyExc_ValueError, @@ -19,7 +21,7 @@ #endif return NULL; } -@@ -3290,10 +3296,16 @@ +@@ -3343,10 +3349,16 @@ PyCFuncPtr_FromDll(PyTypeObject *type, PyObject *args, PyObject *kwds) #ifdef __CYGWIN__ /* dlerror() isn't very helpful on cygwin */ PyErr_Format(PyExc_AttributeError, diff --git a/meta-openvuplus/recipes-devtools/python/python/fix_pthread_site.patch b/meta-openvuplus/recipes-devtools/python/python/fix_pthread_site.patch index d392060..0554067 100644 --- a/meta-openvuplus/recipes-devtools/python/python/fix_pthread_site.patch +++ b/meta-openvuplus/recipes-devtools/python/python/fix_pthread_site.patch @@ -1,6 +1,8 @@ ---- configure.in.org 2008-05-01 12:40:58.000000000 +0200 -+++ configure.in 2008-05-01 12:39:39.000000000 +0200 -@@ -998,7 +999,7 @@ +diff --git a/configure.in b/configure.in +index d0c9f83..b565f95 100644 +--- a/configure.in ++++ b/configure.in +@@ -1303,7 +1303,7 @@ then # so we need to run a program to see whether it really made the # function available. AC_MSG_CHECKING(whether $CC accepts -pthread) @@ -8,8 +10,8 @@ +AC_CACHE_VAL(ac_cv_pthread, [ac_save_cc="$CC" CC="$CC -pthread" - AC_TRY_RUN([ -@@ -1023,11 +1024,11 @@ + AC_RUN_IFELSE([AC_LANG_SOURCE([[ +@@ -1325,11 +1325,11 @@ fi # If we have set a CC compiler flag for thread support then # check if it works for CXX, too. @@ -23,7 +25,7 @@ if test "$ac_cv_kpthread" = "yes" then -@@ -1056,9 +1057,11 @@ +@@ -1358,9 +1358,11 @@ then fi rm -fr conftest* fi diff --git a/meta-openvuplus/recipes-devtools/python/python/no-ldconfig.patch b/meta-openvuplus/recipes-devtools/python/python/no-ldconfig.patch index fff1ccd..69a8ff2 100644 --- a/meta-openvuplus/recipes-devtools/python/python/no-ldconfig.patch +++ b/meta-openvuplus/recipes-devtools/python/python/no-ldconfig.patch @@ -1,9 +1,10 @@ Fixes exception on 'import uuid' if ldconfig is unavailable. -diff -Naur Python-2.6.7.orig/Lib/ctypes/util.py Python-2.6.7/Lib/ctypes/util.py ---- Python-2.6.7.orig/Lib/ctypes/util.py 2010-03-20 03:11:16.000000000 +0100 -+++ Python-2.6.7/Lib/ctypes/util.py 2012-01-12 15:26:37.562726637 +0100 -@@ -204,7 +204,16 @@ +diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py +index 7aee0ef..e03bb13 100644 +--- a/Lib/ctypes/util.py ++++ b/Lib/ctypes/util.py +@@ -210,7 +210,16 @@ elif os.name == "posix": return res.group(1) def find_library(name): diff --git a/meta-openvuplus/recipes-devtools/python/python/some_configure_fixes.patch b/meta-openvuplus/recipes-devtools/python/python/some_configure_fixes.patch index eced413..b4cd504 100644 --- a/meta-openvuplus/recipes-devtools/python/python/some_configure_fixes.patch +++ b/meta-openvuplus/recipes-devtools/python/python/some_configure_fixes.patch @@ -1,7 +1,9 @@ ---- configure.in 2008-02-13 20:17:17.000000000 +0100 -+++ configure.in 2008-10-21 22:45:31.000000000 +0200 -@@ -3369,27 +3369,9 @@ - AC_MSG_RESULT(no) +diff --git a/configure.in b/configure.in +index 2d997dc..d0c9f83 100644 +--- a/configure.in ++++ b/configure.in +@@ -4167,27 +4167,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[void *x=resizeterm + [AC_MSG_RESULT(no)] ) -AC_MSG_CHECKING(for /dev/ptmx) @@ -28,5 +30,5 @@ -fi +AC_CHECK_FILE(/dev/ptc, AC_DEFINE(HAVE_DEV_PTC, 1, [Define if we have /dev/ptc.])) - case $MACHDEP in - darwin) + if test "$have_long_long" = yes + then diff --git a/meta-openvuplus/recipes-devtools/python/python_2.7.2.bbappend b/meta-openvuplus/recipes-devtools/python/python_2.7.2.bbappend deleted file mode 100644 index dca8c27..0000000 --- a/meta-openvuplus/recipes-devtools/python/python_2.7.2.bbappend +++ /dev/null @@ -1,19 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" - -PR .= "-vuplus0" - -SRC_URI += " \ - file://some_configure_fixes.patch;striplevel=0 \ - file://fix_pthread_site.patch;striplevel=0 \ - file://no-ldconfig.patch \ - file://ctypes-error-handling-fix.patch \ -" - -EXTRA_OECONF += " \ - ac_cv_file__dev_ptmx=yes \ - ac_cv_file__dev_ptc=no \ - ac_cv_no_strict_aliasing_ok=yes \ - ac_cv_pthread=yes \ - ac_cv_cxx_thread=yes \ - ac_cv_sizeof_off_t=8 \ -" diff --git a/meta-openvuplus/recipes-devtools/python/python_2.7.3.bbappend b/meta-openvuplus/recipes-devtools/python/python_2.7.3.bbappend new file mode 100644 index 0000000..0045644 --- /dev/null +++ b/meta-openvuplus/recipes-devtools/python/python_2.7.3.bbappend @@ -0,0 +1,21 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PR .= "-vuplus1" + +SRC_URI += " \ + file://some_configure_fixes.patch \ + file://fix_pthread_site.patch \ + file://no-ldconfig.patch \ + file://ctypes-error-handling-fix.patch \ + file://04-default-is-optimized.patch \ + file://99-ignore-optimization-flag.patch \ +" + +EXTRA_OECONF += " \ + ac_cv_file__dev_ptmx=yes \ + ac_cv_file__dev_ptc=no \ + ac_cv_no_strict_aliasing_ok=yes \ + ac_cv_pthread=yes \ + ac_cv_cxx_thread=yes \ + ac_cv_sizeof_off_t=8 \ +" diff --git a/meta-openvuplus/recipes-devtools/swig/swig_2.0.4.bb b/meta-openvuplus/recipes-devtools/swig/swig_2.0.4.bb deleted file mode 100644 index 9c23462..0000000 --- a/meta-openvuplus/recipes-devtools/swig/swig_2.0.4.bb +++ /dev/null @@ -1,11 +0,0 @@ -require recipes-devtools/swig/swig.inc - -LIC_FILES_CHKSUM = "file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \ - file://LICENSE-GPL;md5=d32239bcb673463ab874e80d47fae504 \ - file://LICENSE-UNIVERSITIES;md5=8ce9dcc8f7c994de4a408b205c72ba08" - -DEPENDS += "libpcre-native libpcre" -PR = "${INC_PR}.1" - -SRC_URI[md5sum] = "4319c503ee3a13d2a53be9d828c3adc0" -SRC_URI[sha256sum] = "763a117730d26f8e5ed67f5718c6c0761fbb8461680fc20269db8c0839e1ec8a" diff --git a/meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch b/meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch index a5fc603..6c922c9 100644 --- a/meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch +++ b/meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch @@ -1,21 +1,20 @@ -Index: ethtool-4/ethtool.c -=================================================================== ---- ethtool-4/ethtool.c (revision 3) -+++ ethtool-4/ethtool.c (working copy) -@@ -1578,6 +1578,27 @@ +diff --git a/ethtool.c b/ethtool.c +index acac32a..a47daaa 100644 +--- a/ethtool.c ++++ b/ethtool.c +@@ -2253,6 +2253,25 @@ static int do_gset(struct cmd_context *ctx) } else if (errno != EOPNOTSUPP) { perror("Cannot get link status"); } -+#if 1 /* ikseong - check running flags */ -+ else -+ { -+ if(ioctl(fd, SIOCGIFFLAGS, ifr) < 0) ++ else{ ++ err = send_ioctl(ctx, &edata); ++ if (err < 0) + { + fprintf(stdout,"SIOCGIFFLAGS error \n"); + } + else + { -+ if((ifr->ifr_flags & IFF_RUNNING)) ++ if((ctx->ifr.ifr_flags & IFF_RUNNING)) + { + fprintf(stdout, " Link detected: yes\n"); + } @@ -23,10 +22,9 @@ Index: ethtool-4/ethtool.c + { + fprintf(stdout, " Link detected: no\n"); + } -+ allfail=0; ++ allfail = 0; + } + } -+#endif - + if (allfail) { fprintf(stdout, "No data available\n"); diff --git a/meta-openvuplus/recipes-extended/ethtool/ethtool_2.6.36.bbappend b/meta-openvuplus/recipes-extended/ethtool/ethtool_2.6.36.bbappend deleted file mode 100644 index 69823b3..0000000 --- a/meta-openvuplus/recipes-extended/ethtool/ethtool_2.6.36.bbappend +++ /dev/null @@ -1,10 +0,0 @@ -PRINC = "1" - -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" - -SRC_URI_append = " file://vuplus.patch" - -SRC_URI[md5sum] = "3b2322695e9ee7bf447ebcdb85f93e83" -SRC_URI[sha256sum] = "639622180fe48dc7bb117ffbf263395d7ae47aac9819b8d9f83ff053ecf17bdd" - -inherit autotools diff --git a/meta-openvuplus/recipes-extended/ethtool/ethtool_3.16.bbappend b/meta-openvuplus/recipes-extended/ethtool/ethtool_3.16.bbappend new file mode 100644 index 0000000..4019644 --- /dev/null +++ b/meta-openvuplus/recipes-extended/ethtool/ethtool_3.16.bbappend @@ -0,0 +1,7 @@ +PR .= "-vuplus0" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI_append = " file://vuplus.patch" + +inherit autotools diff --git a/meta-openvuplus/recipes-extended/libimobiledevice/libplist/fix-parallel-make.patch b/meta-openvuplus/recipes-extended/libimobiledevice/libplist/fix-parallel-make.patch deleted file mode 100644 index 92e0ab1..0000000 --- a/meta-openvuplus/recipes-extended/libimobiledevice/libplist/fix-parallel-make.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 335b25febd4c864ad0ac08479f5cd43fc21b7d73 Mon Sep 17 00:00:00 2001 -From: Nikias Bassen -Date: Mon, 09 Jul 2012 21:17:15 +0000 -Subject: Fix building with parallel build makeopts - ---- -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 0bad840..155994e 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -57,6 +57,8 @@ ADD_SUBDIRECTORY( plutil ) - ADD_SUBDIRECTORY( include ) - ADD_SUBDIRECTORY( test ) - -+ADD_DEPENDENCIES( plist libcnary ) -+ - IF ( SWIG_FOUND AND PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND ) - ADD_SUBDIRECTORY( swig ) - ENDIF ( SWIG_FOUND AND PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND ) --- -cgit v0.9.0.2 - diff --git a/meta-openvuplus/recipes-extended/libimobiledevice/libplist_1.8.bbappend b/meta-openvuplus/recipes-extended/libimobiledevice/libplist_1.8.bbappend deleted file mode 100644 index 62abfc3..0000000 --- a/meta-openvuplus/recipes-extended/libimobiledevice/libplist_1.8.bbappend +++ /dev/null @@ -1,6 +0,0 @@ -PR .= "-vuplus0" - -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" - -SRC_URI_append = " file://fix-parallel-make.patch " - diff --git a/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-extfs-dir.patch b/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-extfs-dir.patch deleted file mode 100644 index aebb31e..0000000 --- a/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-extfs-dir.patch +++ /dev/null @@ -1,18 +0,0 @@ -Upstream-Status: Inappropriate [Configuration] - -Don't show "Warning: cannot open /usr/libexec/mc/extfs.d directory", -because it's packaged separately. - -Signed-off-by: Andreas Oberritter - ---- mc-4.8.1/src/vfs/extfs/extfs.c.orig 2012-05-10 15:50:04.633833530 +0200 -+++ mc-4.8.1/src/vfs/extfs/extfs.c 2012-05-10 15:50:20.349833289 +0200 -@@ -1558,8 +1558,6 @@ - * appear on screen. */ - if (dir == NULL) - { -- if (!silent) -- fprintf (stderr, _("Warning: cannot open %s directory\n"), dirname); - g_free (dirname); - return FALSE; - } diff --git a/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-hints.patch b/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-hints.patch deleted file mode 100644 index a0ccdcd..0000000 --- a/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-hints.patch +++ /dev/null @@ -1,17 +0,0 @@ -Upstream-Status: Pending - -Fixes a text drawing issue if hints are unavailable. - -Signed-off-by: Andreas Oberritter - ---- mc-4.8.1/src/filemanager/midnight.c.orig 2012-05-10 15:30:56.645804130 +0200 -+++ mc-4.8.1/src/filemanager/midnight.c 2012-05-10 15:31:27.601804920 +0200 -@@ -1587,7 +1587,7 @@ - { - char text[BUF_SMALL]; - -- g_snprintf (text, sizeof (text), _("GNU Midnight Commander %s\n"), VERSION); -+ g_snprintf (text, sizeof (text), _("GNU Midnight Commander %s"), VERSION); - set_hintbar (text); - } - } diff --git a/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-sfs-ini.patch b/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-sfs-ini.patch deleted file mode 100644 index fd5afd3..0000000 --- a/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-sfs-ini.patch +++ /dev/null @@ -1,17 +0,0 @@ -Upstream-Status: Inappropriate [Configuration] - -Don't show "sfs_init(): Warning: file /etc/mc/sfs.ini not found", -because it's packaged separately. - -Signed-off-by: Andreas Oberritter - ---- mc-4.8.1/src/vfs/sfs/sfs.c.orig 2012-05-10 15:48:05.405830465 +0200 -+++ mc-4.8.1/src/vfs/sfs/sfs.c 2012-05-10 15:48:24.389830919 +0200 -@@ -419,7 +419,6 @@ - - if (cfg == NULL) - { -- fprintf (stderr, _("%s: Warning: file %s not found\n"), "sfs_init()", mc_sfsini); - g_free (mc_sfsini); - return 0; - } diff --git a/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-syntax-file.patch b/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-syntax-file.patch deleted file mode 100644 index ee0ee46..0000000 --- a/meta-openvuplus/recipes-extended/mc/mc-4.8.1/optional-syntax-file.patch +++ /dev/null @@ -1,18 +0,0 @@ -Upstream-Status: Inappropriate [Configuration] - -Don't show an error message if the syntax file can't -be opened, because it's packaged separately. - -Signed-off-by: Andreas Oberritter - ---- mc-4.8.1/src/editor/syntax.c.orig 2011-12-12 10:15:38.000000000 +0100 -+++ mc-4.8.1/src/editor/syntax.c 2012-05-10 15:07:56.517768788 +0200 -@@ -1522,8 +1522,6 @@ - if (r == -1) - { - edit_free_syntax_rules (edit); -- message (D_ERROR, _("Load syntax file"), -- _("Cannot open file %s\n%s"), f, unix_error_string (errno)); - } - else if (r != 0) - { diff --git a/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-extfs-dir.patch b/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-extfs-dir.patch new file mode 100644 index 0000000..aebb31e --- /dev/null +++ b/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-extfs-dir.patch @@ -0,0 +1,18 @@ +Upstream-Status: Inappropriate [Configuration] + +Don't show "Warning: cannot open /usr/libexec/mc/extfs.d directory", +because it's packaged separately. + +Signed-off-by: Andreas Oberritter + +--- mc-4.8.1/src/vfs/extfs/extfs.c.orig 2012-05-10 15:50:04.633833530 +0200 ++++ mc-4.8.1/src/vfs/extfs/extfs.c 2012-05-10 15:50:20.349833289 +0200 +@@ -1558,8 +1558,6 @@ + * appear on screen. */ + if (dir == NULL) + { +- if (!silent) +- fprintf (stderr, _("Warning: cannot open %s directory\n"), dirname); + g_free (dirname); + return FALSE; + } diff --git a/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-hints.patch b/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-hints.patch new file mode 100644 index 0000000..a0ccdcd --- /dev/null +++ b/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-hints.patch @@ -0,0 +1,17 @@ +Upstream-Status: Pending + +Fixes a text drawing issue if hints are unavailable. + +Signed-off-by: Andreas Oberritter + +--- mc-4.8.1/src/filemanager/midnight.c.orig 2012-05-10 15:30:56.645804130 +0200 ++++ mc-4.8.1/src/filemanager/midnight.c 2012-05-10 15:31:27.601804920 +0200 +@@ -1587,7 +1587,7 @@ + { + char text[BUF_SMALL]; + +- g_snprintf (text, sizeof (text), _("GNU Midnight Commander %s\n"), VERSION); ++ g_snprintf (text, sizeof (text), _("GNU Midnight Commander %s"), VERSION); + set_hintbar (text); + } + } diff --git a/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-sfs-ini.patch b/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-sfs-ini.patch new file mode 100644 index 0000000..fd5afd3 --- /dev/null +++ b/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-sfs-ini.patch @@ -0,0 +1,17 @@ +Upstream-Status: Inappropriate [Configuration] + +Don't show "sfs_init(): Warning: file /etc/mc/sfs.ini not found", +because it's packaged separately. + +Signed-off-by: Andreas Oberritter + +--- mc-4.8.1/src/vfs/sfs/sfs.c.orig 2012-05-10 15:48:05.405830465 +0200 ++++ mc-4.8.1/src/vfs/sfs/sfs.c 2012-05-10 15:48:24.389830919 +0200 +@@ -419,7 +419,6 @@ + + if (cfg == NULL) + { +- fprintf (stderr, _("%s: Warning: file %s not found\n"), "sfs_init()", mc_sfsini); + g_free (mc_sfsini); + return 0; + } diff --git a/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-syntax-file.patch b/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-syntax-file.patch new file mode 100644 index 0000000..ee0ee46 --- /dev/null +++ b/meta-openvuplus/recipes-extended/mc/mc-4.8.13/optional-syntax-file.patch @@ -0,0 +1,18 @@ +Upstream-Status: Inappropriate [Configuration] + +Don't show an error message if the syntax file can't +be opened, because it's packaged separately. + +Signed-off-by: Andreas Oberritter + +--- mc-4.8.1/src/editor/syntax.c.orig 2011-12-12 10:15:38.000000000 +0100 ++++ mc-4.8.1/src/editor/syntax.c 2012-05-10 15:07:56.517768788 +0200 +@@ -1522,8 +1522,6 @@ + if (r == -1) + { + edit_free_syntax_rules (edit); +- message (D_ERROR, _("Load syntax file"), +- _("Cannot open file %s\n%s"), f, unix_error_string (errno)); + } + else if (r != 0) + { diff --git a/meta-openvuplus/recipes-extended/mc/mc_4.8.1.bbappend b/meta-openvuplus/recipes-extended/mc/mc_4.8.1.bbappend deleted file mode 100644 index 73b41c6..0000000 --- a/meta-openvuplus/recipes-extended/mc/mc_4.8.1.bbappend +++ /dev/null @@ -1,26 +0,0 @@ -PR .= "-vuplus0" - -SRC_URI += "file://optional-extfs-dir.patch \ - file://optional-hints.patch \ - file://optional-sfs-ini.patch \ - file://optional-syntax-file.patch" - -PACKAGES += "${PN}-full" - -RDEPENDS_${PN} = "" -RDEPENDS_${PN}-full = "ncurses-terminfo" - -RSUGGESTS_${PN} = "${PN}-full" - -FILES_${PN} = " \ - ${bindir}/* \ - ${sysconfdir}/mc/filehighlight.ini \ - ${sysconfdir}/mc/*.ext \ - ${sysconfdir}/mc/*.keymap \ - ${sysconfdir}/mc/*.menu \ - ${datadir}/${BPN}/mc.* \ - ${datadir}/${BPN}/skins/default.ini \ -" -FILES_${PN}-full = "${libexecdir}/* ${sysconfdir} ${datadir}/${BPN}" - -FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" diff --git a/meta-openvuplus/recipes-extended/mc/mc_4.8.13.bbappend b/meta-openvuplus/recipes-extended/mc/mc_4.8.13.bbappend new file mode 100644 index 0000000..73b41c6 --- /dev/null +++ b/meta-openvuplus/recipes-extended/mc/mc_4.8.13.bbappend @@ -0,0 +1,26 @@ +PR .= "-vuplus0" + +SRC_URI += "file://optional-extfs-dir.patch \ + file://optional-hints.patch \ + file://optional-sfs-ini.patch \ + file://optional-syntax-file.patch" + +PACKAGES += "${PN}-full" + +RDEPENDS_${PN} = "" +RDEPENDS_${PN}-full = "ncurses-terminfo" + +RSUGGESTS_${PN} = "${PN}-full" + +FILES_${PN} = " \ + ${bindir}/* \ + ${sysconfdir}/mc/filehighlight.ini \ + ${sysconfdir}/mc/*.ext \ + ${sysconfdir}/mc/*.keymap \ + ${sysconfdir}/mc/*.menu \ + ${datadir}/${BPN}/mc.* \ + ${datadir}/${BPN}/skins/default.ini \ +" +FILES_${PN}-full = "${libexecdir}/* ${sysconfdir} ${datadir}/${BPN}" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" diff --git a/meta-openvuplus/recipes-extended/procps/procps_3.2.8.bbappend b/meta-openvuplus/recipes-extended/procps/procps_3.2.8.bbappend deleted file mode 100644 index b91eb96..0000000 --- a/meta-openvuplus/recipes-extended/procps/procps_3.2.8.bbappend +++ /dev/null @@ -1,2 +0,0 @@ -PR = "r8" - diff --git a/meta-openvuplus/recipes-extended/shadow/shadow-securetty_4.1.4.3.bbappend b/meta-openvuplus/recipes-extended/shadow/shadow-securetty_4.1.4.3.bbappend deleted file mode 100644 index f6a5fef..0000000 --- a/meta-openvuplus/recipes-extended/shadow/shadow-securetty_4.1.4.3.bbappend +++ /dev/null @@ -1,3 +0,0 @@ -PR .= "-vuplus0" - -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" diff --git a/meta-openvuplus/recipes-extended/shadow/shadow-securetty_4.2.1.bbappend b/meta-openvuplus/recipes-extended/shadow/shadow-securetty_4.2.1.bbappend new file mode 100644 index 0000000..f6a5fef --- /dev/null +++ b/meta-openvuplus/recipes-extended/shadow/shadow-securetty_4.2.1.bbappend @@ -0,0 +1,3 @@ +PR .= "-vuplus0" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" diff --git a/meta-openvuplus/recipes-extended/shadow/shadow_4.%.bbappend b/meta-openvuplus/recipes-extended/shadow/shadow_4.%.bbappend new file mode 100644 index 0000000..274f5e7 --- /dev/null +++ b/meta-openvuplus/recipes-extended/shadow/shadow_4.%.bbappend @@ -0,0 +1,7 @@ +PR .= "-vuplus1" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" + +# remove passwd login +ALTERNATIVE_PRIORITY[login] = "10" + diff --git a/meta-openvuplus/recipes-extended/shadow/shadow_4.1.4.3.bbappend b/meta-openvuplus/recipes-extended/shadow/shadow_4.1.4.3.bbappend deleted file mode 100644 index d8d1769..0000000 --- a/meta-openvuplus/recipes-extended/shadow/shadow_4.1.4.3.bbappend +++ /dev/null @@ -1,25 +0,0 @@ -PR .= "vuplus0" - -FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" - -pkg_postinst_${PN} () { - for i in chpasswd chfn newgrp chsh groups vipw vigr ; do - update-alternatives --install ${sbindir}/$i $i $i.${PN} 200 - done - - if [ "x$D" != "x" ]; then - rootarg="--root=$D" - else - rootarg="" - fi - - pwconv $rootarg - grpconv $rootarg -} - -pkg_prerm_${PN} () { - for i in chpasswd chfn newgrp chsh groups vipw vigr ; do - update-alternatives --remove $i $i.${PN} - done -} - diff --git a/meta-openvuplus/recipes-extended/smartmontools/smartmontools.inc b/meta-openvuplus/recipes-extended/smartmontools/smartmontools.inc deleted file mode 100644 index c1ded3a..0000000 --- a/meta-openvuplus/recipes-extended/smartmontools/smartmontools.inc +++ /dev/null @@ -1,10 +0,0 @@ -SECTION = "console/utils" -SUMMARY = "Control and monitor storage systems using S.M.A.R.T." -LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -INC_PR = "r1" - -SRC_URI = "${SOURCEFORGE_MIRROR}/smartmontools/smartmontools-${PV}.tar.gz" -S = "${WORKDIR}/smartmontools-${PV}" - -inherit autotools diff --git a/meta-openvuplus/recipes-extended/smartmontools/smartmontools_5.42.bb b/meta-openvuplus/recipes-extended/smartmontools/smartmontools_5.42.bb deleted file mode 100644 index 98ebb37..0000000 --- a/meta-openvuplus/recipes-extended/smartmontools/smartmontools_5.42.bb +++ /dev/null @@ -1,6 +0,0 @@ -PR = "${INC_PR}.0" - -SRC_URI[md5sum] = "4460bf9a79a1252ff5c00ba52cf76b2a" -SRC_URI[sha256sum] = "b664d11e814e114ce3a32a4fa918c9e649c684e2897c007b2a8b92574decc374" - -require smartmontools.inc diff --git a/meta-openvuplus/recipes-extended/tzdata/tzdata_2012b.bbappend b/meta-openvuplus/recipes-extended/tzdata/tzdata_2012b.bbappend deleted file mode 100644 index 379c927..0000000 --- a/meta-openvuplus/recipes-extended/tzdata/tzdata_2012b.bbappend +++ /dev/null @@ -1,83 +0,0 @@ -PRINC = "2" - -DEFAULT_TIMEZONE = "CET" - -FILES_${PN} = " \ - ${datadir}/zoneinfo/Africa/Casablanca \ - ${datadir}/zoneinfo/Africa/Harare \ - ${datadir}/zoneinfo/Africa/Kinshasa \ - ${datadir}/zoneinfo/Africa/Nairobi \ - ${datadir}/zoneinfo/America/Anchorage \ - ${datadir}/zoneinfo/America/Bogota \ - ${datadir}/zoneinfo/America/Caracas \ - ${datadir}/zoneinfo/America/Danmarkshavn \ - ${datadir}/zoneinfo/America/Halifax \ - ${datadir}/zoneinfo/America/Manaus \ - ${datadir}/zoneinfo/America/Noronha \ - ${datadir}/zoneinfo/America/Regina \ - ${datadir}/zoneinfo/America/Santiago \ - ${datadir}/zoneinfo/America/Sao_Paulo \ - ${datadir}/zoneinfo/America/St_Johns \ - ${datadir}/zoneinfo/America/Tijuana \ - ${datadir}/zoneinfo/Asia/Almaty \ - ${datadir}/zoneinfo/Asia/Baghdad \ - ${datadir}/zoneinfo/Asia/Baku \ - ${datadir}/zoneinfo/Asia/Bangkok \ - ${datadir}/zoneinfo/Asia/Calcutta \ - ${datadir}/zoneinfo/Asia/Colombo \ - ${datadir}/zoneinfo/Asia/Dhaka \ - ${datadir}/zoneinfo/Asia/Hong_Kong \ - ${datadir}/zoneinfo/Asia/Irkutsk \ - ${datadir}/zoneinfo/Asia/Jerusalem \ - ${datadir}/zoneinfo/Asia/Kabul \ - ${datadir}/zoneinfo/Asia/Kathmandu \ - ${datadir}/zoneinfo/Asia/Kolkata \ - ${datadir}/zoneinfo/Asia/Krasnoyarsk \ - ${datadir}/zoneinfo/Asia/Kuala_Lumpur \ - ${datadir}/zoneinfo/Asia/Magadan \ - ${datadir}/zoneinfo/Asia/Muscat \ - ${datadir}/zoneinfo/Asia/Omsk \ - ${datadir}/zoneinfo/Asia/Rangoon \ - ${datadir}/zoneinfo/Asia/Riyadh \ - ${datadir}/zoneinfo/Asia/Seoul \ - ${datadir}/zoneinfo/Asia/Taipei \ - ${datadir}/zoneinfo/Asia/Tashkent \ - ${datadir}/zoneinfo/Asia/Tehran \ - ${datadir}/zoneinfo/Asia/Tokyo \ - ${datadir}/zoneinfo/Asia/Vladivostok \ - ${datadir}/zoneinfo/Asia/Yakutsk \ - ${datadir}/zoneinfo/Atlantic/Azores \ - ${datadir}/zoneinfo/Atlantic/Cape_Verde \ - ${datadir}/zoneinfo/Australia/Adelaide \ - ${datadir}/zoneinfo/Australia/Brisbane \ - ${datadir}/zoneinfo/Australia/Darwin \ - ${datadir}/zoneinfo/Australia/Hobart \ - ${datadir}/zoneinfo/Australia/Perth \ - ${datadir}/zoneinfo/Australia/Sydney \ - ${datadir}/zoneinfo/Brazil/East \ - ${datadir}/zoneinfo/Brazil/West \ - ${datadir}/zoneinfo/Canada/Newfoundland \ - ${datadir}/zoneinfo/Canada/Saskatchewan \ - ${datadir}/zoneinfo/CET \ - ${datadir}/zoneinfo/CST6CDT \ - ${datadir}/zoneinfo/EST \ - ${datadir}/zoneinfo/EST5EDT \ - ${datadir}/zoneinfo/Europe/Dublin \ - ${datadir}/zoneinfo/Europe/Istanbul \ - ${datadir}/zoneinfo/Europe/Moscow \ - ${datadir}/zoneinfo/MST \ - ${datadir}/zoneinfo/MST7MDT \ - ${datadir}/zoneinfo/Pacific/Auckland \ - ${datadir}/zoneinfo/Pacific/Fiji \ - ${datadir}/zoneinfo/Pacific/Guam \ - ${datadir}/zoneinfo/Pacific/Honolulu \ - ${datadir}/zoneinfo/Pacific/Kwajalein \ - ${datadir}/zoneinfo/Pacific/Midway \ - ${datadir}/zoneinfo/Pacific/Pacific/Norfolk \ - ${datadir}/zoneinfo/Pacific/Tongatapu \ - ${sysconfdir}/localtime \ - ${sysconfdir}/timezone " - -PACKAGES += "${PN}-base" - -FILES_${PN}-base = "${datadir}/zoneinfo" diff --git a/meta-openvuplus/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_201%.bbappend b/meta-openvuplus/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_201%.bbappend new file mode 100644 index 0000000..ee682c3 --- /dev/null +++ b/meta-openvuplus/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_201%.bbappend @@ -0,0 +1,6 @@ +# Remove util-linux-mount from RRECOMMENDS + +PR .= "-vuplus1" + +RRECOMMENDS_ntfs-3g = "" + diff --git a/meta-openvuplus/recipes-graphics/freetype/freetype_2.4.12.bb b/meta-openvuplus/recipes-graphics/freetype/freetype_2.4.12.bb new file mode 100644 index 0000000..82d75f3 --- /dev/null +++ b/meta-openvuplus/recipes-graphics/freetype/freetype_2.4.12.bb @@ -0,0 +1,53 @@ +SUMMARY = "Freetype font rendering library" +DESCRIPTION = "FreeType is a software font engine that is designed to be small, efficient, \ +highly customizable, and portable while capable of producing high-quality output (glyph \ +images). It can be used in graphics libraries, display servers, font conversion tools, text \ +image generation tools, and many other products as well." +HOMEPAGE = "http://www.freetype.org/" +BUGTRACKER = "https://savannah.nongnu.org/bugs/?group=freetype" + +LICENSE = "FreeType | GPLv2+" +LIC_FILES_CHKSUM = "file://docs/LICENSE.TXT;md5=c017ff17fc6f0794adf93db5559ccd56 \ + file://docs/FTL.TXT;md5=d479e83797f699fe873b38dadd0fcd4c \ + file://docs/GPLv2.TXT;md5=8ef380476f642c20ebf40fecb0add2ec" + +SECTION = "libs" + +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/freetype/freetype-${PV}.tar.bz2 \ +" + +SRC_URI[md5sum] = "3463102764315eb86c0d3c2e1f3ffb7d" +SRC_URI[sha256sum] = "a78a17486689ab6852a9e1a759b179827ac9dfd7e2f237ddf169c73398c85381" + +S = "${WORKDIR}/freetype-${PV}" + +inherit autotools-brokensep pkgconfig binconfig + +LIBTOOL = "${S}/builds/unix/${HOST_SYS}-libtool" +EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'" +EXTRA_OEMAKE_class-native = "" +EXTRA_OECONF = "--without-zlib --without-bzip2 CC_BUILD='${BUILD_CC}'" + +do_configure() { + cd builds/unix + libtoolize --force --copy + aclocal -I . + gnu-configize --force + autoconf + cd ${S} + oe_runconf +} + +do_configure_class-native() { + (cd builds/unix && gnu-configize) || die "failure running gnu-configize" + oe_runconf +} + +do_compile_prepend() { + ${BUILD_CC} -o objs/apinames src/tools/apinames.c +} + +BBCLASSEXTEND = "native" + diff --git a/meta-openvuplus/recipes-graphics/libgles/libgles.bb b/meta-openvuplus/recipes-graphics/libgles/libgles.bb index a458de7..35ff369 100644 --- a/meta-openvuplus/recipes-graphics/libgles/libgles.bb +++ b/meta-openvuplus/recipes-graphics/libgles/libgles.bb @@ -22,5 +22,6 @@ do_package_qa() { } PACKAGE_ARCH := "${MACHINE_ARCH}" -FILES_${PN}="/" +PACKAGES = "${PN}" +FILES_${PN}="/usr/lib /usr/include" diff --git a/meta-openvuplus/recipes-graphics/libvugles2/libvugles2_0.1.0.bb b/meta-openvuplus/recipes-graphics/libvugles2/libvugles2_0.1.0.bb index f394ae1..0094885 100644 --- a/meta-openvuplus/recipes-graphics/libvugles2/libvugles2_0.1.0.bb +++ b/meta-openvuplus/recipes-graphics/libvugles2/libvugles2_0.1.0.bb @@ -2,7 +2,7 @@ DESCRIPTION = "shared library for E2 animation" SECTION = "libs" LICENSE = "CLOSED" -RDEPENDS = "libgles" +RDEPENDS_${PN} = "libgles" SRCDATE = "20150109" SRCDATE_PR = "r1" @@ -24,6 +24,9 @@ do_install() { cp -a ${S}/lib/pkgconfig/*.pc ${D}${libdir}/pkgconfig/ } +do_package_qa() { +} + PACKAGE_ARCH := "${MACHINE_ARCH}" PACKAGES = "${PN}" diff --git a/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.31.bb b/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.31.bb index fa6ac5e..1a9aee8 100644 --- a/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.31.bb +++ b/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.31.bb @@ -15,8 +15,8 @@ INHIBIT_DEFAULT_DEPS = "1" DEFAULT_PREFERENCE = "-1" SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \ - file://0001-implement-TIF_RESTORE_SIGMASK-support-and-enable-the.patch;patch=1 \ - file://dvbapi-5.3.patch;patch=1;pnum=1 \ + file://0001-implement-TIF_RESTORE_SIGMASK-support-and-enable-the.patch \ + file://dvbapi-5.3.patch \ " SRC_URI[md5sum] = "84c077a37684e4cbfa67b18154390d8a" diff --git a/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.1.bb b/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.1.bb index 1874d38..4782b26 100644 --- a/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.1.bb +++ b/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.1.bb @@ -1,4 +1,4 @@ -PRINC = "2" +PR .= "-vuplus0" require linux-libc-headers.inc diff --git a/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.3.bb b/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.3.bb index cec3b71..f48bc4a 100644 --- a/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.3.bb +++ b/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.3.bb @@ -1,6 +1,6 @@ -PRINC = "2" +PR .= "-vuplus0" require linux-libc-headers.inc -SRC_URI[md5sum] = "7ceb61f87c097fc17509844b71268935" -SRC_URI[sha256sum] = "c881fc2b53cf0da7ca4538aa44623a7de043a41f76fd5d0f51a31f6ed699d463" +SRC_URI[md5sum] = "98a6cdd7d082b7ea72df9c89842bac74" +SRC_URI[sha256sum] = "8fd669b4e48181b8d44644a45bf421a84bb8d5ec273ef36349796443e442f333" diff --git a/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.9.bb b/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.9.bb index 99bd48c..14f8141 100644 --- a/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.9.bb +++ b/meta-openvuplus/recipes-kernel/linux-libc-headers/linux-libc-headers_3.9.bb @@ -3,5 +3,8 @@ require linux-libc-headers.inc SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v3.0/linux-${PV}.tar.bz2" SRC_URI += "file://scripts-Makefile.headersinst-install-headers-from-sc.patch" +SRC_URI[md5sum] = "2220321a0a14d86200322e51dd5033e2" +SRC_URI[sha256sum] = "97e48f31ed2197f4e7e4938d4fab8da522cf80e60c6ce69668b0805904499305" + diff --git a/meta-openvuplus/recipes-multimedia/cdparanoia/cdparanoia_svn.bb b/meta-openvuplus/recipes-multimedia/cdparanoia/cdparanoia_svn.bb index b88c74b..a6453e5 100644 --- a/meta-openvuplus/recipes-multimedia/cdparanoia/cdparanoia_svn.bb +++ b/meta-openvuplus/recipes-multimedia/cdparanoia/cdparanoia_svn.bb @@ -9,7 +9,7 @@ SRCREV = "17289" PV = "10.2+svnr${SRCPV}" PR = "r1" -SRC_URI = "svn://svn.xiph.org/trunk;module=cdparanoia;proto=http \ +SRC_URI = "svn://svn.xiph.org/trunk;module=cdparanoia;protocol=http \ file://fixes10.patch \ file://Makefile.in.patch \ file://interface_Makefile.in.patch \ @@ -20,7 +20,7 @@ S = "${WORKDIR}/cdparanoia" PARALLEL_MAKE = "" -inherit autotools pkgconfig +inherit autotools-brokensep pkgconfig PACKAGES += "libcdparanoia libcdparanoia-dev libcdparanoia-static" @@ -41,3 +41,4 @@ do_install() { PKGCONFIGDIR="${D}${libdir}/pkgconfig" \ install } + diff --git a/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit-1.1.9/cdrkit-1.1.9-glibc-2.10-3.patch b/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit-1.1.9/cdrkit-1.1.9-glibc-2.10-3.patch deleted file mode 100644 index 9e2f508..0000000 --- a/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit-1.1.9/cdrkit-1.1.9-glibc-2.10-3.patch +++ /dev/null @@ -1,143 +0,0 @@ -diff -puNr cdrkit-1.1.9.orig/include/schily.h cdrkit-1.1.9/include/schily.h ---- cdrkit-1.1.9.orig/include/schily.h 2006-11-25 01:20:20.000000000 +0100 -+++ cdrkit-1.1.9/include/schily.h 2009-03-11 20:31:53.000000000 +0100 -@@ -116,7 +116,7 @@ extern int fexecl(const char *, FILE *, - extern int fexecle(const char *, FILE *, FILE *, FILE *, const char *, ...); - /* 6th arg not const, fexecv forces av[ac] = NULL */ - extern int fexecv(const char *, FILE *, FILE *, FILE *, int, char **); --extern int fexecve(const char *, FILE *, FILE *, FILE *, char * const *, -+extern int f_execve(const char *, FILE *, FILE *, FILE *, char * const *, - char * const *); - extern int fspawnv(FILE *, FILE *, FILE *, int, char * const *); - extern int fspawnl(FILE *, FILE *, FILE *, const char *, const char *, ...); -@@ -190,7 +190,7 @@ extern int schily_error(const char *, .. - extern char *fillbytes(void *, int, char); - extern char *findbytes(const void *, int, char); - extern int findline(const char *, char, const char *, int, char **, int); --extern int getline(char *, int); -+extern int get_line(char *, int); - extern int getstr(char *, int); - extern int breakline(char *, char, char **, int); - extern int getallargs(int *, char * const**, const char *, ...); -diff -puNr cdrkit-1.1.9.orig/librols/fexec.c cdrkit-1.1.9/librols/fexec.c ---- cdrkit-1.1.9.orig/librols/fexec.c 2008-02-25 12:14:07.000000000 +0100 -+++ cdrkit-1.1.9/librols/fexec.c 2009-03-11 20:31:53.000000000 +0100 -@@ -170,7 +170,7 @@ fexecle(name, in, out, err, va_alist) - } while (p != NULL); - va_end(args); - -- ret = fexecve(name, in, out, err, av, env); -+ ret = f_execve(name, in, out, err, av, env); - if (av != xav) - free(av); - return (ret); -@@ -184,11 +184,11 @@ fexecv(name, in, out, err, ac, av) - char *av[]; - { - av[ac] = NULL; /* force list to be null terminated */ -- return (fexecve(name, in, out, err, av, environ)); -+ return (f_execve(name, in, out, err, av, environ)); - } - - EXPORT int --fexecve(name, in, out, err, av, env) -+f_execve(name, in, out, err, av, env) - const char *name; - FILE *in, *out, *err; - char * const av[], * const env[]; -diff -puNr cdrkit-1.1.9.orig/librols/stdio/fgetline.c cdrkit-1.1.9/librols/stdio/fgetline.c ---- cdrkit-1.1.9.orig/librols/stdio/fgetline.c 2006-09-05 10:39:04.000000000 +0200 -+++ cdrkit-1.1.9/librols/stdio/fgetline.c 2009-03-11 20:31:53.000000000 +0100 -@@ -76,7 +76,7 @@ fgetline(f, buf, len) - } - - EXPORT int --getline(buf, len) -+get_line(buf, len) - char *buf; - int len; - { -diff -puNr cdrkit-1.1.9.orig/libusal/scsitransp.c cdrkit-1.1.9/libusal/scsitransp.c ---- cdrkit-1.1.9.orig/libusal/scsitransp.c 2008-02-25 12:14:07.000000000 +0100 -+++ cdrkit-1.1.9/libusal/scsitransp.c 2009-03-11 20:31:53.000000000 +0100 -@@ -301,7 +301,7 @@ usal_yes(char *msg) - - printf("%s", msg); - flush(); -- if (getline(okbuf, sizeof (okbuf)) == EOF) -+ if (get_line(okbuf, sizeof (okbuf)) == EOF) - exit(EX_BAD); - if (streql(okbuf, "y") || streql(okbuf, "yes") || - streql(okbuf, "Y") || streql(okbuf, "YES")) -diff -puNr cdrkit-1.1.9.orig/readom/io.c cdrkit-1.1.9/readom/io.c ---- cdrkit-1.1.9.orig/readom/io.c 2006-12-08 14:38:43.000000000 +0100 -+++ cdrkit-1.1.9/readom/io.c 2009-03-11 20:31:53.000000000 +0100 -@@ -130,7 +130,7 @@ BOOL getvalue(char *s, long *lp, long mi - (*prt)(s, *lp, mini, maxi, dp); - flush(); - line[0] = '\0'; -- if (getline(line, 80) == EOF) -+ if (get_line(line, 80) == EOF) - exit(EX_BAD); - - linep = skipwhite(line); -@@ -178,7 +178,7 @@ again: - vprintf(form, args); - va_end(args); - flush(); -- if (getline(okbuf, sizeof(okbuf)) == EOF) -+ if (get_line(okbuf, sizeof(okbuf)) == EOF) - exit(EX_BAD); - if (okbuf[0] == '?') { - printf("Enter 'y', 'Y', 'yes' or 'YES' if you agree with the previous asked question.\n"); -diff -puNr cdrkit-1.1.9.orig/readom/readom.c cdrkit-1.1.9/readom/readom.c ---- cdrkit-1.1.9.orig/readom/readom.c 2007-04-03 00:43:29.000000000 +0200 -+++ cdrkit-1.1.9/readom/readom.c 2009-03-11 20:31:53.000000000 +0100 -@@ -1605,7 +1605,7 @@ read_generic(SCSI *usalp, parm_t *parmp, - fprintf(stderr, "Copy from SCSI (%d,%d,%d) disk to file\n", - usal_scsibus(usalp), usal_target(usalp), usal_lun(usalp)); - fprintf(stderr, "Enter filename [%s]: ", defname); flush(); -- (void) getline(filename, sizeof (filename)); -+ (void) get_line(filename, sizeof (filename)); - } - - if (askrange) { -@@ -1772,7 +1772,7 @@ write_disk(SCSI *usalp, parm_t *parmp) - fprintf(stderr, "Copy from file to SCSI (%d,%d,%d) disk\n", - usal_scsibus(usalp), usal_target(usalp), usal_lun(usalp)); - fprintf(stderr, "Enter filename [%s]: ", defname); flush(); -- (void) getline(filename, sizeof (filename)); -+ (void) get_line(filename, sizeof (filename)); - fprintf(stderr, "Notice: reading from file always starts at file offset 0.\n"); - - getlong("Enter starting sector for copy:", &addr, 0L, end-1); -diff -puNr cdrkit-1.1.9.orig/wodim/cue.c cdrkit-1.1.9/wodim/cue.c ---- cdrkit-1.1.9.orig/wodim/cue.c 2006-12-08 14:38:43.000000000 +0100 -+++ cdrkit-1.1.9/wodim/cue.c 2009-03-11 20:32:18.000000000 +0100 -@@ -253,7 +253,7 @@ static char *skipwhite(const char *s); - static char *peekword(void); - static char *lineend(void); - static char *markword(char *delim); --static char getdelim(void); -+static char get_delim(void); - static char *getnextitem(char *delim); - static char *neednextitem(char *delim); - static char *nextword(void); -@@ -746,7 +746,7 @@ parse_track(track_t trackp[], state_t *s - if (kp == NULL) - cueabort("Unknown filetype '%s'", word); - -- if (getdelim() == '/') { -+ if (get_delim() == '/') { - word = needitem(); - if (*astol(++word, &secsize) != '\0') - cueabort("Not a number '%s'", word); -@@ -1128,7 +1128,7 @@ linelen--; - } - - static char --getdelim() -+get_delim() - { - return (wordendc); - } diff --git a/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit-1.1.9/xconfig.patch b/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit-1.1.9/xconfig.patch deleted file mode 100644 index 5af1a37..0000000 --- a/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit-1.1.9/xconfig.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- cdrkit-1.1.9/include/xconfig.h.in.orig 2006-12-02 12:10:05.000000000 +0100 -+++ cdrkit-1.1.9/include/xconfig.h.in 2009-03-08 13:29:05.000000000 +0100 -@@ -233,7 +233,11 @@ - /* If using network byte order */ - #cmakedefine WORDS_BIGENDIAN - /* If high bits come first in structures */ --#cmakedefine BITFIELDS_HTOL -+#ifdef WORDS_BIGENDIAN -+#define BITFIELDS_HTOL -+#else -+#define BITFIELDS_LTOH -+#endif - #define HAVE_C_BIGENDIAN /* Flag that WORDS_BIGENDIAN test was done */ - #define HAVE_C_BITFIELDS /* Flag that BITFIELDS_HTOL test was done */ - diff --git a/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit/xconfig.patch b/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit/xconfig.patch new file mode 100644 index 0000000..866b602 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit/xconfig.patch @@ -0,0 +1,25 @@ +--- cdrkit-1.1.9/include/xconfig.h.in.orig 2006-12-02 12:10:05.000000000 +0100 ++++ cdrkit-1.1.9/include/xconfig.h.in 2009-03-08 13:29:05.000000000 +0100 +@@ -233,7 +233,11 @@ + /* If using network byte order */ + #cmakedefine WORDS_BIGENDIAN + /* If high bits come first in structures */ +-#cmakedefine BITFIELDS_HTOL ++#ifdef WORDS_BIGENDIAN ++#define BITFIELDS_HTOL ++#else ++#define BITFIELDS_LTOH ++#endif + #define HAVE_C_BIGENDIAN /* Flag that WORDS_BIGENDIAN test was done */ + #define HAVE_C_BITFIELDS /* Flag that BITFIELDS_HTOL test was done */ + +--- cdrkit-1.1.9/include/CMakeLists.txt.orig 2010-09-27 23:17:34.000000000 +0000 ++++ cdrkit-1.1.9/include/CMakeLists.txt 2010-09-27 23:17:58.000000000 +0000 +@@ -35,7 +35,6 @@ + INCLUDE(TestBigEndian) + TEST_BIG_ENDIAN(WORDS_BIGENDIAN) + +-TRY_RUN(BITFIELDS_HTOL TEST_DUMMY ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/test_BITFIELDS_HTOL.c) + + INCLUDE(CheckIncludeFiles) + diff --git a/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit_1.1.10.bb b/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit_1.1.10.bb new file mode 100644 index 0000000..220781a --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit_1.1.10.bb @@ -0,0 +1,16 @@ +SUMMARY = "A set of tools for CD recording" +HOMEPAGE = "http://www.cdrkit.org" +DEPENDS = "libcap bzip2" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b30d3b2750b668133fc17b401e1b98f8" +PR = "r1" + +SRC_URI = " \ + http://cdrkit.org/releases/${P}.tar.gz;name=archive \ + file://xconfig.patch \ +" + +inherit cmake + +SRC_URI[archive.md5sum] = "3c25505d567113c269dc6e71640646d8" +SRC_URI[archive.sha256sum] = "8b6e90b4068cac6f3a75a501d7a85aba6583b2dc34f434e3eb62d29104b107e5" diff --git a/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit_1.1.9.bb b/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit_1.1.9.bb deleted file mode 100755 index 0d2dc01..0000000 --- a/meta-openvuplus/recipes-multimedia/cdrkit/cdrkit_1.1.9.bb +++ /dev/null @@ -1,26 +0,0 @@ -DESCRIPTION="A set of tools for CD recording" -HOMEPAGE="http://www.cdrkit.org" - -LICENSE="GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=b30d3b2750b668133fc17b401e1b98f8" - -DEPENDS = "libcap2 bzip2" - -PR = "r3" - -SRC_URI="http://cdrkit.org/releases/cdrkit-${PV}.tar.gz \ - file://xconfig.patch;patch=1 \ - file://cdrkit-1.1.9-glibc-2.10-3.patch;patch=1 \ - " - -S="${WORKDIR}/cdrkit-${PV}" - -inherit cmake - -do_install() { - oe_runmake install DESTDIR="${D}" -} - -RC_URI[md5sum] = "cbc0647e5d85f0e8fb3a692ba1d42edd" -SRC_URI[sha256sum] = "d5d58ab4c7bef036a53ef9742b4e57621f61310cd0cd28f558ba0b88c354efa2" - diff --git a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugin-dvbmediasink_0.10.bb b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugin-dvbmediasink_0.10.bb index e2dc6aa..66d33dd 100644 --- a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugin-dvbmediasink_0.10.bb +++ b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugin-dvbmediasink_0.10.bb @@ -13,12 +13,19 @@ inherit autotools pkgconfig git-project SRC_URI = "git://schwerkraft.elitedvb.net/dvbmediasink/dvbmediasink.git;protocol=git;branch=${BRANCH};tag=${SRCREV}" SRC_URI_append_vuplus = " \ - file://fix_dvbaudiosink_async_opt.patch;patch=1;pnum=1 \ - file://fix_dvbvideosink_dm8000_padtemplate.patch;patch=1;pnum=1 \ + file://fix_dvbaudiosink_async_opt.patch \ + file://fix_dvbvideosink_dm8000_padtemplate.patch \ file://fix_dvbaudiosink_support_ddp.patch \ file://Set-only-by-hardware-supported-audio-mpeg-4-profile.patch \ " +S = "${WORKDIR}/git" + +do_configure_prepend() { + sed -i 's/AC_INIT.*$/AC_INIT(gst-plugin-dreambox-dvbmediasink, 0.10, @openvuplus)/' ${S}/configure.ac + sed -i 's/AM_INIT_AUTOMAKE.*$/AM_INIT_AUTOMAKE([foreign subdir-objects])/' ${S}/configure.ac +} + FILES_${PN} = "${libdir}/gstreamer-0.10/*.so" FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la" FILES_${PN}-staticdev += "${libdir}/gstreamer-0.10/*.a" diff --git a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugin-subsink.bb b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugin-subsink.bb new file mode 100644 index 0000000..f771f54 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugin-subsink.bb @@ -0,0 +1,28 @@ +DESCRIPTION = "gstreamer subsink plugin" +SECTION = "multimedia" +PRIORITY = "optional" +DEPENDS = "gstreamer gst-plugins-base" +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" + +inherit gitpkgv + +PV = "0.10.0+git${SRCPV}" +PKGV = "0.10.0+git${GITPKGV}" +PR = "r2" + +SRCREV = "0cb20d602414f25edd8d139627b8e0b2b58aae33" +SRC_URI = "git://git.code.sf.net/p/openpli/gstsubsink" + +S = "${WORKDIR}/git" + +do_configure_prepend() { + sed -i 's/AC_INIT.*$/AC_INIT(gst-plugin-subsink, 0.10.0, @pli4)/' ${S}/configure.ac + sed -i 's/AM_INIT_AUTOMAKE.*$/AM_INIT_AUTOMAKE([foreign subdir-objects])/' ${S}/configure.ac +} +inherit autotools pkgconfig + +FILES_${PN} = "${libdir}/gstreamer-0.10/*.so*" +FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la" +FILES_${PN}-staticdev += "${libdir}/gstreamer-0.10/*.a" +FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug" diff --git a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.1.bb b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.1.bb index 3ef5166..61b163d 100644 --- a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.1.bb +++ b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.1.bb @@ -10,7 +10,7 @@ DEPENDS += "libmusicbrainz tremor curl libmms librtmp libmms faad2" DEPENDS += "gst-plugins-base" CONFLICTS = "librsvg" -PR = "r5" +PR = "r6" GIT_PV = "" SRCREV = "cef47d85294a0dca38631f938b81a3f0dd6891bd" @@ -20,7 +20,7 @@ EXTRA_OECONF += "--disable-examples --disable-experimental --disable-sdl --disab ARM_INSTRUCTION_SET = "arm" -SRC_URI = "git://anongit.freedesktop.org/gstreamer/${PN}" +SRC_URI = "git://anongit.freedesktop.org/gstreamer/${PN};branch=0.10" SRC_URI += " \ file://0003-mpegpsdemux_speedup.diff.patch \ diff --git a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend index 4ba07bc..60c3ec1 100644 --- a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend +++ b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend @@ -1,5 +1,5 @@ DEPENDS += "libmms librtmp" -PR .= "-vuplus1" +PR .= "-vuplus0" SRC_URI += " \ file://0001-mpegtsdemux-fix-bd-streamtype-detection.diff.patch \ diff --git a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.1.bb b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.1.bb index 533d8e0..2ac3584 100644 --- a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.1.bb +++ b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.1.bb @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ file://gst/ffmpegcolorspace/utils.c;beginline=1;endline=20;md5=9c83a200b8e597b26ca29df20fc6ecd0" DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxv', '', d)}" -DEPENDS += "alsa-lib freetype liboil libogg libvorbis libtheora avahi util-linux tremor orc orc-native" +DEPENDS += "alsa-lib freetype liboil libogg libvorbis libtheora avahi util-linux tremor orc orc-native cdparanoia" DEPENDS += "gstreamer" SRCREV = "bdb33163478fdf95938fbdca7eabad3ea920a277" @@ -17,7 +17,7 @@ GIT_PV = "" inherit autotools pkgconfig gettext git-project -SRC_URI = "git://anongit.freedesktop.org/gstreamer/${PN}" +SRC_URI = "git://anongit.freedesktop.org/gstreamer/${PN};branch=0.10" SRC_URI += " \ file://orc.m4-fix-location-of-orcc-when-cross-compiling.patch \ diff --git a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bbappend b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bbappend index a0a4798..7682b84 100644 --- a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bbappend +++ b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bbappend @@ -1,5 +1,5 @@ DEPENDS += "cdparanoia orc orc-native" -PR .= "-vuplus1" +PR .= "-vuplus0" SRC_URI += "file://orc.m4-fix-location-of-orcc-when-cross-compiling.patch \ file://disable-vorbis-encoder.patch" diff --git a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.1.bb b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.1.bb index de33221..7a9c842 100644 --- a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.1.bb +++ b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.1.bb @@ -17,7 +17,7 @@ EXTRA_OECONF = "--enable-orc --disable-esd --disable-aalib --disable-shout2 --di inherit autotools pkgconfig gettext git-project -SRC_URI = "git://anongit.freedesktop.org/gstreamer/${PN}" +SRC_URI = "git://anongit.freedesktop.org/gstreamer/${PN};branch=0.10" SRC_URI += " \ file://orc.m4-fix-location-of-orcc-when-cross-compiling.patch \ diff --git a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.19.1.bb b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.19.1.bb index a9a9f5f..38f8b08 100644 --- a/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.19.1.bb +++ b/meta-openvuplus/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.19.1.bb @@ -15,7 +15,7 @@ SRCREV = "9afc696e5fa9fb980e02df5637f022796763216f" inherit autotools pkgconfig gettext git-project -SRC_URI = "git://anongit.freedesktop.org/gstreamer/${PN}" +SRC_URI = "git://anongit.freedesktop.org/gstreamer/${PN};branch=0.10" SRC_URI += " \ file://orc.m4-fix-location-of-orcc-when-cross-compiling.patch \ diff --git a/meta-openvuplus/recipes-multimedia/gstreamer/gstreamer_0.10.36.1.bb b/meta-openvuplus/recipes-multimedia/gstreamer/gstreamer_0.10.36.1.bb index a92d735..ddacd74 100644 --- a/meta-openvuplus/recipes-multimedia/gstreamer/gstreamer_0.10.36.1.bb +++ b/meta-openvuplus/recipes-multimedia/gstreamer/gstreamer_0.10.36.1.bb @@ -26,7 +26,7 @@ EXTRA_OECONF = "--disable-docs-build --disable-dependency-tracking --with-check= inherit autotools pkgconfig gettext git-project -SRC_URI = "git://anongit.freedesktop.org/gstreamer/${PN}" +SRC_URI = "git://anongit.freedesktop.org/gstreamer/${PN};branch=0.10" SRC_URI += " \ file://check_fix.patch \ diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gst-plugins-package.inc b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gst-plugins-package.inc new file mode 100644 index 0000000..7bb5678 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gst-plugins-package.inc @@ -0,0 +1,58 @@ +PACKAGESPLITFUNCS_prepend = " split_gstreamer10_packages " +PACKAGESPLITFUNCS_append = " set_metapkg_rdepends " + +python split_gstreamer10_packages () { + gst_libdir = d.expand('${libdir}/gstreamer-${LIBV}') + postinst = d.getVar('plugin_postinst', True) + glibdir = d.getVar('libdir', True) + + do_split_packages(d, glibdir, '^lib(.*)\.so\.*', 'lib%s', 'gstreamer %s library', extra_depends='', allow_links=True) + do_split_packages(d, gst_libdir, 'libgst(.*)\.so$', d.expand('${PN}-%s'), 'GStreamer plugin for %s', postinst=postinst, extra_depends=d.expand('${PN}')) + do_split_packages(d, gst_libdir, 'libgst(.*)\.la$', d.expand('${PN}-%s-dev'), 'GStreamer plugin for %s (development files)', extra_depends=d.expand('${PN}-dev')) + do_split_packages(d, gst_libdir, 'libgst(.*)\.a$', d.expand('${PN}-%s-staticdev'), 'GStreamer plugin for %s (static development files)', extra_depends=d.expand('${PN}-staticdev')) +} + +python set_metapkg_rdepends () { + import os + + pn = d.getVar('PN', True) + metapkg = pn + '-meta' + d.setVar('ALLOW_EMPTY_' + metapkg, "1") + d.setVar('FILES_' + metapkg, "") + blacklist = [ pn, pn + '-locale', pn + '-dev', pn + '-dbg', pn + '-doc', pn + '-meta' ] + metapkg_rdepends = [] + packages = d.getVar('PACKAGES', True).split() + pkgdest = d.getVar('PKGDEST', True) + for pkg in packages[1:]: + if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-dbg') and not pkg.count('locale') and not pkg.count('-staticdev'): + # See if the package is empty by looking at the contents of its PKGDEST subdirectory. + # If this subdirectory is empty, then the package is. + # Empty packages do not get added to the meta package's RDEPENDS + pkgdir = os.path.join(pkgdest, pkg) + if os.path.exists(pkgdir): + dir_contents = os.listdir(pkgdir) or [] + else: + dir_contents = [] + is_empty = len(dir_contents) == 0 + if not is_empty: + metapkg_rdepends.append(pkg) + d.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends)) + d.setVar('DESCRIPTION_' + metapkg, pn + ' meta package') +} + +# metapkg has runtime dependency on PN +# each plugin depends on PN, plugin-dev on PN-dev, plugin-staticdev on PN-staticdev +# so we need them even when empty (like in gst-plugins-good case) +ALLOW_EMPTY_${PN} = "1" +ALLOW_EMPTY_${PN}-dev = "1" +ALLOW_EMPTY_${PN}-staticdev = "1" + +PACKAGES += "${PN}-apps ${PN}-meta ${PN}-glib" +FILES_${PN}-apps = "${bindir}" + +RDEPENDS_${PN}-apps += "perl" + +FILES_${PN} = "${datadir}/gstreamer-${LIBV}" +FILES_${PN}-dbg += "${libdir}/gstreamer-${LIBV}/.debug" +FILES_${PN}-glib = "${datadir}/glib-2.0" + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink.bb b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink.bb new file mode 100644 index 0000000..016e149 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink.bb @@ -0,0 +1,36 @@ +DESCRIPTION = "gstreamer dvbmediasink plugin" +SECTION = "multimedia" +PRIORITY = "optional" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" + +DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base" + +GSTVERSION = "1.0" + +SRC_URI = "git://git.code.sf.net/p/openpli/gst-plugin-dvbmediasink;protocol=git;branch=gst-1.0" +SRCREV = "${AUTOREV}" + +S = "${WORKDIR}/git" + +inherit gitpkgv + +PV = "${GSTVERSION}+git${SRCPV}" +PKGV = "${GSTVERSION}+git${GITPKGV}" +PR = "r0" + +do_configure_prepend() { + sed -i 's/AC_INIT.*$/AC_INIT(gst-plugin-dvbmediasink, 1.0.0, @pli4)/' ${S}/configure.ac + sed -i 's/AM_INIT_AUTOMAKE.*$/AM_INIT_AUTOMAKE([foreign])/' ${S}/configure.ac +} + +inherit autotools pkgconfig + +FILES_${PN} = "${libdir}/gstreamer-${GSTVERSION}/*.so*" +FILES_${PN}-dev += "${libdir}/gstreamer-${GSTVERSION}/*.la" +FILES_${PN}-staticdev += "${libdir}/gstreamer-${GSTVERSION}/*.a" +FILES_${PN}-dbg += "${libdir}/gstreamer-${GSTVERSION}/.debug" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +EXTRA_OECONF = "${DVBMEDIASINK_CONFIG} --with-gstversion=${GSTVERSION}" diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink.bbappend b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink.bbappend new file mode 100644 index 0000000..52ea114 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink.bbappend @@ -0,0 +1,19 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += "\ + file://gstreamer10_dvbmediasink_vuplus.patch \ + file://gstreamer10_dvbmediasink_vuplus_wmv.patch \ +" + +PR .= "-vuplus0" + +DVBMEDIASINK_CONFIG = "--with-wmv --with-pcm --with-eac3" + +# Do not strip binary +#INHIBIT_PACKAGE_STRIP = "1" +#do_strip[noexec] = "1" +#do_strip="no" +#do_strip(){ +# pass +#} + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink/gstreamer10_dvbmediasink_vuplus.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink/gstreamer10_dvbmediasink_vuplus.patch new file mode 100644 index 0000000..6cd49bf --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink/gstreamer10_dvbmediasink_vuplus.patch @@ -0,0 +1,199 @@ +diff --git a/gstdvbaudiosink.c b/gstdvbaudiosink.c +index 2725def..a51d28c 100644 +--- a/gstdvbaudiosink.c ++++ b/gstdvbaudiosink.c +@@ -125,8 +125,7 @@ static guint gst_dvbaudiosink_signals[LAST_SIGNAL] = { 0 }; + "framed =(boolean) true; " + + #define LPCMCAPS \ +- "audio/x-private1-lpcm, " \ +- "framed =(boolean) true; " ++ "audio/x-private1-lpcm; " + + #define DTSCAPS \ + "audio/x-dts, " \ +@@ -271,7 +270,9 @@ static void gst_dvbaudiosink_class_init(GstDVBAudioSinkClass *self) + gstbasesink_class->event = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_event); + gstbasesink_class->unlock = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_unlock); + gstbasesink_class->unlock_stop = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_unlock_stop); ++#if GST_VERSION_MAJOR < 1 + gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_set_caps); ++#endif + gstbasesink_class->get_caps = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_get_caps); + + element_class->change_state = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_change_state); +@@ -426,6 +427,11 @@ static gboolean gst_dvbaudiosink_set_caps(GstBaseSink *basesink, GstCaps *caps) + const char *type = gst_structure_get_name(structure); + t_audio_type bypass = AUDIOTYPE_UNKNOWN; + ++ if (self->bypass != AUDIOTYPE_UNKNOWN) { ++ GST_INFO_OBJECT (self, "skip set_caps, should be done only once."); ++ return TRUE; ++ } ++ + self->skip = 0; + self->aac_adts_header_valid = FALSE; + +@@ -775,7 +781,9 @@ static gboolean gst_dvbaudiosink_event(GstBaseSink *sink, GstEvent *event) + self->flushing = TRUE; + /* wakeup the poll */ + write(self->unlockfd[1], "\x01", 1); ++#if GST_VERSION_MAJOR >= 1 + if(self->paused) ret = GST_BASE_SINK_CLASS(parent_class)->event(sink, event); ++#endif + break; + case GST_EVENT_FLUSH_STOP: + if (self->fd >= 0) ioctl(self->fd, AUDIO_CLEAR_BUFFER); +@@ -793,7 +801,9 @@ static gboolean gst_dvbaudiosink_event(GstBaseSink *sink, GstEvent *event) + self->cache = NULL; + } + GST_OBJECT_UNLOCK(self); ++#if GST_VERSION_MAJOR >= 1 + if(self->paused) ret = GST_BASE_SINK_CLASS(parent_class)->event(sink, event); ++#endif + break; + case GST_EVENT_EOS: + { +@@ -828,7 +838,9 @@ static gboolean gst_dvbaudiosink_event(GstBaseSink *sink, GstEvent *event) + if (pfd[1].revents & POLLIN) + { + GST_DEBUG_OBJECT(self, "got buffer empty from driver!\n"); ++#if GST_VERSION_MAJOR >= 1 + ret = GST_BASE_SINK_CLASS(parent_class)->event(sink, event); ++#endif + break; + } + +@@ -899,6 +911,7 @@ static gboolean gst_dvbaudiosink_event(GstBaseSink *sink, GstEvent *event) + } + break; + } ++#if GST_VERSION_MAJOR >= 1 + case GST_EVENT_CAPS: + { + GstCaps *caps; +@@ -913,9 +926,12 @@ static gboolean gst_dvbaudiosink_event(GstBaseSink *sink, GstEvent *event) + } + } + } ++#endif + + default: ++#if GST_VERSION_MAJOR >= 1 + ret = GST_BASE_SINK_CLASS(parent_class)->event(sink, event); ++#endif + break; + } + +diff --git a/gstdvbvideosink.c b/gstdvbvideosink.c +index a6b0a10..903432c 100644 +--- a/gstdvbvideosink.c ++++ b/gstdvbvideosink.c +@@ -299,8 +299,9 @@ static void gst_dvbvideosink_class_init(GstDVBVideoSinkClass *self) + gstbasesink_class->event = GST_DEBUG_FUNCPTR (gst_dvbvideosink_event); + gstbasesink_class->unlock = GST_DEBUG_FUNCPTR (gst_dvbvideosink_unlock); + gstbasesink_class->unlock_stop = GST_DEBUG_FUNCPTR (gst_dvbvideosink_unlock_stop); ++#if GST_VERSION_MAJOR < 1 + gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_dvbvideosink_set_caps); +- ++#endif + element_class->change_state = GST_DEBUG_FUNCPTR (gst_dvbvideosink_change_state); + + gst_dvb_videosink_signals[SIGNAL_GET_DECODER_TIME] = +@@ -402,7 +403,9 @@ static gboolean gst_dvbvideosink_event(GstBaseSink *sink, GstEvent *event) + self->flushing = TRUE; + /* wakeup the poll */ + write(self->unlockfd[1], "\x01", 1); ++#if GST_VERSION_MAJOR >= 1 + if(self->paused) ret = GST_BASE_SINK_CLASS(parent_class)->event(sink, event); ++#endif + break; + case GST_EVENT_FLUSH_STOP: + if (self->fd >= 0) ioctl(self->fd, VIDEO_CLEAR_BUFFER); +@@ -414,7 +417,9 @@ static gboolean gst_dvbvideosink_event(GstBaseSink *sink, GstEvent *event) + } + self->flushing = FALSE; + GST_OBJECT_UNLOCK(self); ++#if GST_VERSION_MAJOR >= 1 + if(self->paused) ret = GST_BASE_SINK_CLASS(parent_class)->event(sink, event); ++#endif + break; + case GST_EVENT_EOS: + { +@@ -449,7 +454,9 @@ static gboolean gst_dvbvideosink_event(GstBaseSink *sink, GstEvent *event) + if (pfd[1].revents & POLLIN) + { + GST_DEBUG_OBJECT (self, "got buffer empty from driver!\n"); ++#if GST_VERSION_MAJOR >= 1 + ret = GST_BASE_SINK_CLASS(parent_class)->event(sink, event); ++#endif + break; + } + +@@ -513,6 +520,7 @@ static gboolean gst_dvbvideosink_event(GstBaseSink *sink, GstEvent *event) + } + break; + } ++#if GST_VERSION_MAJOR >= 1 + case GST_EVENT_CAPS: + { + GstCaps *caps; +@@ -524,8 +532,11 @@ static gboolean gst_dvbvideosink_event(GstBaseSink *sink, GstEvent *event) + } + break; + } ++#endif + default: ++#if GST_VERSION_MAJOR >= 1 + ret = GST_BASE_SINK_CLASS(parent_class)->event(sink, event); ++#endif + break; + } + +@@ -614,6 +625,8 @@ static int video_write(GstBaseSink *sink, GstDVBVideoSink *self, GstBuffer *buff + } + else if (evt.type == VIDEO_EVENT_FRAME_RATE_CHANGED) + { ++ self->framerate = evt.u.frame_rate; ++ GST_INFO_OBJECT(self, "decoder framerate %d", self->framerate); + s = gst_structure_new ("eventFrameRateChanged", + "frame_rate", G_TYPE_INT, evt.u.frame_rate, NULL); + msg = gst_message_new_element (GST_OBJECT(sink), s); +@@ -1289,6 +1302,8 @@ static gboolean gst_dvbvideosink_set_caps(GstBaseSink *basesink, GstCaps *caps) + GstStructure *structure = gst_caps_get_structure (caps, 0); + const char *mimetype = gst_structure_get_name (structure); + self->stream_type = STREAMTYPE_UNKNOWN; ++ self->framerate = -1; ++ self->no_header = 0; + + GST_INFO_OBJECT (self, "caps = %" GST_PTR_FORMAT, caps); + +@@ -1557,6 +1572,10 @@ static gboolean gst_dvbvideosink_set_caps(GstBaseSink *basesink, GstCaps *caps) + gst_buffer_ref (self->codec_data); + } + GST_INFO_OBJECT (self, "MIMETYPE video/x-divx vers. 4 -> STREAMTYPE_MPEG4_Part2"); ++#if GST_VERSION_MAJOR >= 1 ++ self->use_dts = TRUE; ++#endif ++ + break; + case 6: + case 5: +@@ -1622,10 +1641,17 @@ static gboolean gst_dvbvideosink_set_caps(GstBaseSink *basesink, GstCaps *caps) + best = i; + } + } ++ self->framerate = valid_framerates[best]; ++ ++ GST_INFO_OBJECT(self, "framerate %d", self->framerate); ++ + fprintf(f, "%d", valid_framerates[best]); + fclose(f); + } + } ++ else if (self->framerate == -1) ++ GST_INFO_OBJECT(self, "no framerate given!"); ++ + if (self->playing) + { + if (self->fd >= 0) ioctl(self->fd, VIDEO_STOP, 0); diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink/gstreamer10_dvbmediasink_vuplus_wmv.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink/gstreamer10_dvbmediasink_vuplus_wmv.patch new file mode 100644 index 0000000..3a32a5a --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-dvbmediasink/gstreamer10_dvbmediasink_vuplus_wmv.patch @@ -0,0 +1,791 @@ +diff --git a/gstdvbvideosink.c b/gstdvbvideosink.c +index 903432c..dd31dc7 100644 +--- a/gstdvbvideosink.c ++++ b/gstdvbvideosink.c +@@ -150,6 +150,16 @@ void bitstream_put(struct bitstream *bit, unsigned long val, int bits) + } + #endif + ++static unsigned int Vc1ParseSeqHeader( GstDVBVideoSink *self, struct bitstream *bit ); ++static unsigned int Vc1ParseEntryPointHeader( GstDVBVideoSink *self, struct bitstream *bit ); ++static unsigned char Vc1GetFrameType( GstDVBVideoSink *self, struct bitstream *bit ); ++static unsigned char Vc1GetBFractionVal( GstDVBVideoSink *self, struct bitstream *bit ); ++static unsigned char Vc1GetNrOfFramesFromBFractionVal( unsigned char ucBFVal ); ++static unsigned char Vc1HandleStreamBuffer( GstDVBVideoSink *self, unsigned char *data, int flags ); ++ ++#define cVC1NoBufferDataAvailable 0 ++#define cVC1BufferDataAvailable 1 ++ + GST_DEBUG_CATEGORY_STATIC (dvbvideosink_debug); + #define GST_CAT_DEFAULT dvbvideosink_debug + +@@ -338,6 +348,7 @@ static void gst_dvbvideosink_init(GstDVBVideoSink *self) + self->num_non_keyframes = 0; + self->prev_frame = NULL; + #endif ++ + #if GST_VERSION_MAJOR >= 1 + self->use_dts = FALSE; + #endif +@@ -351,6 +362,17 @@ static void gst_dvbvideosink_init(GstDVBVideoSink *self) + self->saved_fallback_framerate[0] = 0; + self->rate = 1.0; + ++ self->ucPrevFramePicType = 0; ++ self->ucVC1_PULLDOWN = 0; ++ self->ucVC1_INTERLACE = 0; ++ self->ucVC1_TFCNTRFLAG = 0; ++ self->ucVC1_FINTERPFLAG = 0; ++ self->ucVC1_PSF = 0; ++ self->ucVC1_HRD_PARAM_FLAG = 0; ++ self->ucVC1_HRD_NUM_LEAKY_BUCKETS = 0; ++ self->ucVC1_PANSCAN_FLAG = 0; ++ self->ucVC1_REFDIST_FLAG = 0; ++ + gst_base_sink_set_sync(GST_BASE_SINK(self), FALSE); + gst_base_sink_set_async_enabled(GST_BASE_SINK(self), TRUE); + } +@@ -875,18 +897,31 @@ static GstFlowReturn gst_dvbvideosink_render(GstBaseSink *sink, GstBuffer *buffe + + if (self->codec_data) + { ++ if (self->codec_type == CT_VC1) ++ { ++ if (self->no_header && self->ucPrevFramePicType == 6) { // I-Frame... ++ GST_INFO_OBJECT(self, "send seq header"); ++ self->must_send_header = 1; ++ } ++ } + if (self->must_send_header) + { + if (self->codec_type != CT_MPEG1 && self->codec_type != CT_MPEG2 && (self->codec_type != CT_DIVX4 || data[3] == 0x00)) + { ++ unsigned char *_codec_data = codec_data; ++ unsigned int _codec_data_size = codec_data_size; ++ if (self->codec_type == CT_VC1) { ++ _codec_data += 1; ++ _codec_data_size -= 1; ++ } + if (self->codec_type == CT_DIVX311) + { + video_write(sink, self, self->codec_data, 0, codec_data_size); + } + else + { +- memcpy(pes_header + pes_header_len, codec_data, codec_data_size); +- pes_header_len += codec_data_size; ++ memcpy(pes_header + pes_header_len, _codec_data, _codec_data_size); ++ pes_header_len += _codec_data_size; + } + self->must_send_header = FALSE; + } +@@ -976,6 +1011,47 @@ static GstFlowReturn gst_dvbvideosink_render(GstBaseSink *sink, GstBuffer *buffe + pes_header_len += 3; + } + } ++#if 1 ++ else if (self->codec_type == CT_VC1 || self->codec_type == CT_VC1_SM) ++ { ++ int skip_header_check; ++ ++ if (data[0] || data[1] || data[2] != 1) { ++ memcpy(pes_header+pes_header_len, "\x00\x00\x01\x0d", 4); ++ pes_header_len += 4; ++ skip_header_check = 1; ++ } ++ else ++ skip_header_check = 0; ++ ++ self->no_header = skip_header_check; ++ ++ if (self->codec_type == CT_VC1) { ++ unsigned char ucRetVal = Vc1HandleStreamBuffer( self, data, skip_header_check ); ++ if ( ucRetVal != cVC1NoBufferDataAvailable ) { ++#if GST_VERSION_MAJOR < 1 ++ data_len = GST_BUFFER_SIZE(self->prev_frame); ++ data = GST_BUFFER_DATA(self->prev_frame); ++#else ++ gst_buffer_unmap(buffer, &map); ++ gst_buffer_map(self->prev_frame, &map, GST_MAP_READ); ++ data_len = map.size; ++ data = map.data; ++#endif ++ } ++ else { ++ GST_DEBUG_OBJECT(self, "first buffer!"); ++ ++ gst_buffer_ref(buffer); ++ self->prev_frame = buffer; ++ ++ goto ok; ++ } ++ ++ cache_prev_frame = TRUE; ++ } ++ } ++#endif + else if (self->codec_type == CT_DIVX311) + { + if (memcmp(data, "\x00\x00\x01\xb6", 4)) +@@ -1204,12 +1280,6 @@ static GstFlowReturn gst_dvbvideosink_render(GstBaseSink *sink, GstBuffer *buffe + } + } + } +- else if (self->codec_type == CT_VC1 || self->codec_type == CT_VC1_SM) +- { +- memcpy(pes_header + pes_header_len, "\x00\x00\x01\x0d", 4); +- pes_header_len += 4; +- payload_len += 4; +- } + + pes_set_payload_size(payload_len, pes_header); + +@@ -1617,12 +1687,90 @@ static gboolean gst_dvbvideosink_set_caps(GstBaseSink *basesink, GstCaps *caps) + self->codec_type = CT_VC1_SM; + GST_INFO_OBJECT (self, "MIMETYPE video/x-wmv -> STREAMTYPE_VC1_SM"); + } ++ ++ if (self->codec_type == CT_VC1) ++ { ++ const GValue *codec_data = gst_structure_get_value(structure, "codec_data"); ++ if (codec_data) ++ { ++ ++ self->codec_data = gst_value_get_buffer (codec_data); ++ gst_buffer_ref (self->codec_data); ++#if GST_VERSION_MAJOR < 1 ++ Vc1HandleStreamBuffer(self, GST_BUFFER_DATA(self->codec_data)+1, 2 ); ++#else ++ GstMapInfo codec_data_map; ++ gst_buffer_map(self->codec_data, &codec_data_map, GST_MAP_READ); ++ Vc1HandleStreamBuffer(self, codec_data_map.data+1, 2 ); ++ gst_buffer_unmap(self->codec_data, &codec_data_map); ++#endif ++ ++ } ++ } ++ else if (self->codec_type == CT_VC1_SM) ++ { ++ const GValue *codec_data = gst_structure_get_value(structure, "codec_data"); ++ ++ if (codec_data) ++ { ++ /* wmv version 3 test */ ++ guint8 *codec_data_pointer, *data; ++ gint codec_size, size; ++ gint width, height; ++#if GST_VERSION_MAJOR < 1 ++ codec_size = GST_BUFFER_SIZE(gst_value_get_buffer(codec_data)); ++ codec_data_pointer = GST_BUFFER_DATA(gst_value_get_buffer(codec_data)); ++#else ++ GstMapInfo codecdatamap; ++ gst_buffer_map(gst_value_get_buffer(codec_data), &codecdatamap, GST_MAP_READ); ++ codec_data_pointer = codecdatamap.data; ++ codec_size = codecdatamap.size; ++#endif ++ if (codec_size > 4) codec_size = 4; ++ gst_structure_get_int(structure, "width", &width); ++ gst_structure_get_int(structure, "height", &height); ++ ++ self->codec_data = gst_buffer_new_and_alloc(19); ++#if GST_VERSION_MAJOR < 1 ++ data = GST_BUFFER_DATA(self->codec_data); ++#else ++ GstMapInfo self_codec_map; ++ gst_buffer_map(self->codec_data, &self_codec_map, GST_MAP_WRITE); ++ data = self_codec_map.data; ++ size = codecdatamap.size; ++#endif ++ memset(data, 0, size); ++ ++ *(data++) = 0x00; ++ *(data++) = 0x00; ++ *(data++) = 0x01; ++ *(data++) = 0x0F; ++ ++ /* width */ ++ *(data++) = (width >> 8) & 0xff; ++ *(data++) = width & 0xff; ++ /* height */ ++ *(data++) = (height >> 8) & 0xff; ++ *(data++) = height & 0xff; ++ ++ if (codec_data && codec_size) ++ memcpy(data, codec_data_pointer, codec_size); ++ ++ codec_data_pointer[0] >>= 4; ++ if (codec_data_pointer[0] != 4 && codec_data_pointer[0] != 0) ++ GST_ERROR_OBJECT(self, "unsupported vc1-sm video compression format (profile %d)", codec_data_pointer[0]); ++#if GST_VERSION_MAJOR >= 1 ++ gst_buffer_unmap(gst_value_get_buffer(codec_data), &self_codec_map); ++ gst_buffer_unmap(self->codec_data, &codecdatamap); ++#endif ++ } ++ } + } + + if (self->stream_type != STREAMTYPE_UNKNOWN) + { + gint numerator, denominator; +- if (gst_structure_get_fraction (structure, "framerate", &numerator, &denominator)) ++ if (self->framerate == -1 && gst_structure_get_fraction (structure, "framerate", &numerator, &denominator)) + { + FILE *f = fopen("/proc/stb/vmpeg/0/fallback_framerate", "w"); + if (f) +@@ -1663,76 +1811,7 @@ static gboolean gst_dvbvideosink_set_caps(GstBaseSink *basesink, GstCaps *caps) + } + if (self->fd >= 0) + { +- if (self->codec_type == CT_VC1) +- { +- const GValue *codec_data = gst_structure_get_value(structure, "codec_data"); +- if (codec_data) +- { +- guint8 *codec_data_pointer; +- gint codec_size; +- guint8 *data; +- video_codec_data_t videocodecdata; +-#if GST_VERSION_MAJOR < 1 +- codec_size = GST_BUFFER_SIZE(gst_value_get_buffer(codec_data)); +- codec_data_pointer = GST_BUFFER_DATA(gst_value_get_buffer(codec_data)); +-#else +- GstMapInfo codecdatamap; +- gst_buffer_map(gst_value_get_buffer(codec_data), &codecdatamap, GST_MAP_READ); +- codec_data_pointer = codecdatamap.data; +- codec_size = codecdatamap.size; +-#endif +- videocodecdata.length = 8 + codec_size; +- data = videocodecdata.data = (guint8*)g_malloc(videocodecdata.length); +- memset(data, 0, videocodecdata.length); +- data += 8; +- memcpy(data, codec_data_pointer, codec_size); +- ioctl(self->fd, VIDEO_SET_CODEC_DATA, &videocodecdata); +- g_free(videocodecdata.data); +-#if GST_VERSION_MAJOR >= 1 +- gst_buffer_unmap(gst_value_get_buffer(codec_data), &codecdatamap); +-#endif +- } +- } +- else if (self->codec_type == CT_VC1_SM) +- { +- const GValue *codec_data = gst_structure_get_value(structure, "codec_data"); +- if (codec_data) +- { +- guint8 *codec_data_pointer; +- gint codec_size; +- guint8 *data; +- video_codec_data_t videocodecdata; +- gint width, height; +-#if GST_VERSION_MAJOR < 1 +- codec_size = GST_BUFFER_SIZE(gst_value_get_buffer(codec_data)); +- codec_data_pointer = GST_BUFFER_DATA(gst_value_get_buffer(codec_data)); +-#else +- GstMapInfo codecdatamap; +- gst_buffer_map(gst_value_get_buffer(codec_data), &codecdatamap, GST_MAP_READ); +- codec_data_pointer = codecdatamap.data; +- codec_size = codecdatamap.size; +-#endif +- if (codec_size > 4) codec_size = 4; +- gst_structure_get_int(structure, "width", &width); +- gst_structure_get_int(structure, "height", &height); +- videocodecdata.length = 33; +- data = videocodecdata.data = (guint8*)g_malloc(videocodecdata.length); +- memset(data, 0, videocodecdata.length); +- data += 18; +- /* width */ +- *(data++) = (width >> 8) & 0xff; +- *(data++) = width & 0xff; +- /* height */ +- *(data++) = (height >> 8) & 0xff; +- *(data++) = height & 0xff; +- if (codec_data && codec_size) memcpy(data, codec_data_pointer, codec_size); +- ioctl(self->fd, VIDEO_SET_CODEC_DATA, &videocodecdata); +- g_free(videocodecdata.data); +-#if GST_VERSION_MAJOR >= 1 +- gst_buffer_unmap(gst_value_get_buffer(codec_data), &codecdatamap); +-#endif +- } +- } ++ + ioctl(self->fd, VIDEO_PLAY); + } + self->playing = TRUE; +@@ -1941,3 +2020,434 @@ GST_PLUGIN_DEFINE ( + "GStreamer", + "http://gstreamer.net/" + ) ++ ++static unsigned int ++Vc1ParseSeqHeader( GstDVBVideoSink *self, struct bitstream *bit ) ++{ ++ unsigned char n; ++ long uiStartAddr = (long)&(bit->data[0]); ++ long uiStopAddr = 0; ++ ++ // skip first 5 bytes (PROFILE,LEVEL,COLORDIFF_FORMAT,FRMRTQ_POSTPROC,BITRTQ_POSTPROC,POSTPROCFLAG,MAX_CODED_WIDTH,MAX_CODED_HEIGHT) ++ bitstream_get( bit, 32 ); ++ bitstream_get( bit, 8 ); ++ self->ucVC1_PULLDOWN = (unsigned char)bitstream_get( bit, 1 ); ++ self->ucVC1_INTERLACE = (unsigned char)bitstream_get( bit, 1 ); ++ self->ucVC1_TFCNTRFLAG = (unsigned char)bitstream_get( bit, 1 ); ++ self->ucVC1_FINTERPFLAG = (unsigned char)bitstream_get( bit, 1 ); ++ // skip 1 bit (RESERVED) ++ bitstream_get( bit, 1 ); ++ self->ucVC1_PSF = (unsigned char)bitstream_get( bit, 1 ); ++ ++ if ( bitstream_get( bit, 1 ) == 1 ) { ++ // DISPLAY_EXT == 1 ++ ++ // skip 28 bits (DISP_HORIZ_SIZE,DISP_VERT_SIZE) ++ bitstream_get( bit, 28 ); ++ ++ if ( bitstream_get( bit, 1 ) == 1 ) { ++ // ASPECT_RATIO_FLAG == 1 ++ if ( bitstream_get( bit, 4 ) == 15 ) ++ { ++ // ASPECT_RATIO == '15' ++ ++ // skip 16 bits (ASPECT_HORIZ_SIZE,ASPECT_VERT_SIZE) ++ bitstream_get( bit, 16 ); ++ } ++ } ++ ++ if ( bitstream_get( bit, 1 ) == 1 ) { ++ int framerate = -1; ++ // FRAMERATE_FLAG == 1 ++ if ( bitstream_get( bit, 1 ) == 0 ) { ++ // FRAMERATEIND == 0 ++ int frameratenr = bitstream_get( bit, 8 ); ++ int frameratedr = bitstream_get( bit, 4 ); ++ ++ GST_DEBUG_OBJECT(self, "VC1 frameratenr %d, frameratedr %d", frameratenr, frameratedr); ++ ++ switch (frameratenr) { ++ case 1: framerate = 24000; break; ++ case 2: framerate = 25000; break; ++ case 3: framerate = 30000; break; ++ case 4: framerate = 50000; break; ++ case 5: framerate = 60000; break; ++ case 6: framerate = 48000; break; ++ case 7: framerate = 72000; break; ++ default: ++ GST_INFO_OBJECT(self, "forbidden VC1 frameratenr %d", frameratenr); ++ break; ++ } ++ if (framerate != -1) { ++ switch (frameratedr) { ++ case 1: break; ++ case 2: framerate *= 1000; ++ framerate /= 1001; ++ break; ++ default: ++ GST_INFO_OBJECT(self, "forbidden VC1 frameratedr %d", frameratedr); ++ break; ++ } ++ } ++ } ++ else { ++ // FRAMERATEIND == 1 ++ int framerateexp = bitstream_get( bit, 16 ); ++ ++ GST_DEBUG_OBJECT(self, "VC1 framerateexp %d", framerateexp); ++ ++ framerate = (framerateexp * 1000) / 32; ++ } ++ ++ if (framerate != -1) { ++ GST_INFO_OBJECT(self, "VC1 seq header framerate %d", framerate); ++ ++ self->framerate = framerate; ++ } ++ } ++ ++ if ( bitstream_get( bit, 1 ) == 1 ) { ++ // COLOR_FORMAT_FLAG ==1 ++ ++ // skip 24 bits (COLOR_PRIM,TRANSFER_CHAR,MATRIX_COEF) ++ bitstream_get( bit, 24 ); ++ } ++ } ++ ++ self->ucVC1_HRD_PARAM_FLAG = (unsigned char)bitstream_get( bit, 1 ); ++ ++ if ( self->ucVC1_HRD_PARAM_FLAG == 1 ) { ++ // ucVC1_HRD_PARAM_FLAG == 1 ++ self->ucVC1_HRD_NUM_LEAKY_BUCKETS = (unsigned char)bitstream_get( bit, 5 ); ++ ++ // skip 8 bits (BIT_RATE_EXPONENT,BUFFER_SIZE_EXPONENT) ++ bitstream_get( bit, 8 ); ++ ++ for ( n = 1; n <= self->ucVC1_HRD_NUM_LEAKY_BUCKETS; n++ ) { ++ // skip 32 bits (HRD_RATE[n],HRD_BUFFER[n]) ++ bitstream_get( bit, 32 ); ++ } ++ } ++ ++ uiStopAddr = (long)&(bit->data[0]); ++ return (unsigned int)(uiStopAddr - uiStartAddr + 1); ++} ++ ++static unsigned int ++Vc1ParseEntryPointHeader( GstDVBVideoSink *self, struct bitstream *bit ) ++{ ++ unsigned char n, ucEXTENDED_MV; ++ long uiStartAddr = (long)&(bit->data[0]); ++ long uiStopAddr = 0; ++ ++ // skip the first two bits (BROKEN_LINK,CLOSED_ENTRY) ++ bitstream_get( bit, 2 ); ++ self->ucVC1_PANSCAN_FLAG = (unsigned char)bitstream_get( bit, 1 ); ++ self->ucVC1_REFDIST_FLAG = (unsigned char)bitstream_get( bit, 1 ); ++ ++ // skip 2 bits (LOOPFILTER,FASTUVMC) ++ bitstream_get( bit, 2 ); ++ ++ ucEXTENDED_MV = (unsigned char)bitstream_get( bit, 1 ); ++ ++ // skip 6 bits (DQUANT,VSTRANSFORM,OVERLAP,QUANTIZER) ++ bitstream_get( bit, 6 ); ++ ++ if ( self->ucVC1_HRD_PARAM_FLAG == 1 ) { ++ for ( n = 1; n <= self->ucVC1_HRD_NUM_LEAKY_BUCKETS; n++ ) { ++ // skip 8 bits (HRD_FULL[n]) ++ bitstream_get( bit, 8 ); ++ } ++ } ++ ++ if ( bitstream_get( bit, 1 ) == 1 ) { ++ // CODED_SIZE_FLAG == 1 ++ ++ // skip 24 bits (CODED_WIDTH,CODED_HEIGHT) ++ bitstream_get( bit, 24 ); ++ } ++ ++ if ( ucEXTENDED_MV == 1 ) { ++ // skip 1 bit (EXTENDED_DMV) ++ bitstream_get( bit, 1 ); ++ } ++ ++ if ( bitstream_get( bit, 1 ) == 1 ) { ++ // RANGE_MAPY_FLAG == 1 ++ ++ // skip 3 bits (RANGE_MAPY) ++ bitstream_get( bit, 3 ); ++ } ++ ++ if ( bitstream_get( bit, 1 ) == 1 ) { ++ // RANGE_MAPUV_FLAG == 1 ++ ++ // skip 3 bits (RANGE_MAPUV) ++ bitstream_get( bit, 3 ); ++ } ++ ++ uiStopAddr = (long)&(bit->data[0]); ++ ++ return (unsigned int)(uiStopAddr - uiStartAddr + 1); ++} ++ ++static unsigned char ++Vc1GetFrameType( GstDVBVideoSink *self, struct bitstream *bit ) ++{ ++ unsigned char ucRetVal = 0; ++ ++ if ( self->ucVC1_INTERLACE == 1 ) { ++ // determine FCM ++ if ( bitstream_get( bit, 1 ) == 1 ) { ++ // Frame- or Field-Interlace Coding Mode -> we have to skip a further bit ++ bitstream_get( bit, 1 ); ++ } ++ else { ++ // Progressive Frame Coding Mode -> no need to consume a further bit ++ } ++ } ++ ++ if ( bitstream_get( bit, 1 ) == 0 ) { ++ // P-Frame detected ++ ucRetVal = 0; ++ } ++ else if ( bitstream_get( bit, 1 ) == 0 ) { ++ // B-Frame detected ++ ucRetVal = 2; ++ } ++ else if ( bitstream_get( bit, 1 ) == 0 ) { ++ // I-Frame detected ++ ucRetVal = 6; ++ } ++ else if ( bitstream_get( bit, 1 ) == 0 ) { ++ // BI-Frame detected ++ ucRetVal = 14; ++ } ++ else { ++ // Skipped-Frame detected ++ ucRetVal = 15; ++ } ++ ++ return ucRetVal; ++} ++ ++static unsigned char ++Vc1GetBFractionVal( GstDVBVideoSink *self, struct bitstream *bit ) ++{ ++ unsigned char ucRetVal = 0; ++ unsigned char ucNumberOfPanScanWindows = 0; ++ unsigned char ucRFF = 0; ++ unsigned char ucRPTFRM = 0; ++ unsigned char ucTmpVar = 0; ++ unsigned char i; ++ ++ if ( self->ucVC1_TFCNTRFLAG == 1 ) { ++ // skip the first 8 bit (TFCNTR) ++ bitstream_get( bit, 8 ); ++ } ++ ++ if ( self->ucVC1_PULLDOWN == 1 ) { ++ if ( self->ucVC1_INTERLACE == 0 || self->ucVC1_PSF == 1 ) { ++ ucRPTFRM = (unsigned char)bitstream_get( bit, 2 ); ++ } ++ else { ++ // skip 1 bit (TFF) ++ bitstream_get( bit, 1 ); ++ ucRFF = (unsigned char)bitstream_get( bit, 1 ); ++ } ++ } ++ ++ if ( self->ucVC1_PANSCAN_FLAG == 1 ) { ++ if ( bitstream_get( bit, 2 ) != 0 ) { ++ // PS_PRESENT ++ if ( self->ucVC1_INTERLACE == 1 && self->ucVC1_PSF == 0 ) { ++ if ( self->ucVC1_PULLDOWN == 1 ) { ++ ucNumberOfPanScanWindows = 2 + ucRFF; ++ } ++ else { ++ ucNumberOfPanScanWindows = 2; ++ } ++ } ++ else { ++ if ( self->ucVC1_PULLDOWN == 1 ) { ++ ucNumberOfPanScanWindows = 1 + ucRPTFRM; ++ } ++ else { ++ ucNumberOfPanScanWindows = 1; ++ } ++ } ++ for ( i = 0; i < ucNumberOfPanScanWindows; i++ ) { ++ // skip 8 bytes (PS_HOFFSET,PS_VOFFSET,PS_WIDTH,PS_HEIGHT) ++ bitstream_get( bit, 32 ); ++ bitstream_get( bit, 32 ); ++ } ++ } ++ } ++ ++ // skip 1 bit (RNDCTRL) ++ bitstream_get( bit, 1 ); ++ ++ if ( self->ucVC1_INTERLACE == 1 ) { ++ // skip 1 bit (UVSAMP) ++ bitstream_get( bit, 1 ); ++ } ++ ++ if ( self->ucVC1_FINTERPFLAG == 1 ) { ++ // skip 1 bit (INTERPFRM) ++ bitstream_get( bit, 1 ); ++ } ++ ++ ucTmpVar = (unsigned char)bitstream_get( bit, 3 ); ++ ucRetVal = ucTmpVar; ++ ++ if ( ucTmpVar > 6 ) { ++ ucRetVal <<= 4; ++ ucTmpVar = (unsigned char)bitstream_get( bit, 4 ); ++ ucRetVal |= ucTmpVar; ++ } ++ ++ return ucRetVal; ++} ++ ++static unsigned char ++Vc1GetNrOfFramesFromBFractionVal( unsigned char ucBFVal ) ++{ ++ unsigned char ucRetVal; ++ ++ switch( ucBFVal ) { ++ case 0: ++ //printf("(1/2)\n"); ++ ucRetVal = 1; ++ break; ++ case 1: ++ //printf("(1/3)\n"); ++ ucRetVal = 2; ++ break; ++ case 3: ++ //printf("(1/4)\n"); ++ ucRetVal = 3; ++ break; ++ case 5: ++ //printf("(1/5)\n"); ++ ucRetVal = 4; ++ break; ++ case 0x72: ++ //printf("(1/6)\n"); ++ ucRetVal = 5; ++ break; ++ case 0x74: ++ //printf("(1/7)\n"); ++ ucRetVal = 6; ++ break; ++ case 0x7A: ++ //printf("(1/8)\n"); ++ ucRetVal = 7; ++ break; ++ default: ++ ucRetVal = 0; ++ //printf("ucBFVal = %d\n", ucBFVal); ++ break; ++ } ++ ++ return ucRetVal; ++} ++ ++static unsigned char ++Vc1HandleStreamBuffer( GstDVBVideoSink *self, unsigned char *data, int flags ) ++{ ++ unsigned char ucPType, ucRetVal = cVC1BufferDataAvailable; ++ unsigned int i = -1; ++ ++ if (flags & 1) ++ goto parse_frame_header; ++ ++ i = 0; ++ ++ if ( ((data[i] == 0) && (data[i+1] == 0) && (data[i+2] == 1)) ) { ++ ++ i += 3; ++ ++ if ( data[i] == 0x0F ) { ++ // Sequence header ++ struct bitstream bitstr; ++ i++; ++ bitstream_init( &bitstr, &data[i], 0 ); ++ i += Vc1ParseSeqHeader(self, &bitstr); ++ //printf("Sequence header\n"); ++ ++ if ( data[i] == 0 && data[i+1] == 0 && data[i+2] == 1 && data[i+3] == 0x0E ) { ++ // Entry Point Header ++ struct bitstream bitstr; ++ i += 4; ++ bitstream_init( &bitstr, &data[i], 0 ); ++ i += Vc1ParseEntryPointHeader(self, &bitstr); ++ //printf("Entry Point header\n"); ++ ++ if ( flags & 2 ) // parse codec_data only ++ return 0; ++ ++ if ( data[i] == 0 && data[i+1] == 0 && data[i+2] == 1 && data[i+3] == 0x0D ) ++ i += 3; ++ else ++ GST_ERROR_OBJECT(self, "No Frame Header after a VC1 Entry Point header!!!"); ++ } ++ else ++ GST_ERROR_OBJECT(self, "No Entry Point Header after a VC1 Sequence header!!!"); ++ } ++ ++ if ( data[i] == 0x0D ) ++parse_frame_header: ++ { ++ // Frame Header ++ struct bitstream bitstr; ++ unsigned char ucBFractionVal = 0; ++ ++ i++; ++ ++ bitstream_init( &bitstr, &data[i], 0 ); ++ ucPType = Vc1GetFrameType( self, &bitstr ); ++ ++ GST_DEBUG_OBJECT(self, "picturetype = %d", ucPType); ++ ++ if ( self->prev_frame == NULL ) { ++ // first frame received ++ ucRetVal = cVC1NoBufferDataAvailable; ++ } ++ else { ++ if ( ucPType == 2 && (self->ucPrevFramePicType == 0 || self->ucPrevFramePicType == 6 || self->ucPrevFramePicType == 15) ) ++ { ++ int num_frames; ++ // last frame was a reference frame (P-,I- or Skipped-Frame) and current frame is a B-Frame ++ // -> correct the timestamp of the previous reference frame ++ ucBFractionVal = Vc1GetBFractionVal( self, &bitstr ); ++ ++ num_frames = Vc1GetNrOfFramesFromBFractionVal( ucBFractionVal ); ++ ++ GST_DEBUG_OBJECT(self, "num_frames = %d", num_frames); ++#if GST_VERSION_MAJOR < 1 ++ GST_BUFFER_TIMESTAMP(self->prev_frame) += (1000000000000ULL / self->framerate) * num_frames; ++#else ++ GST_BUFFER_PTS(self->prev_frame) += (1000000000000ULL / self->framerate) * num_frames; ++#endif ++ } ++ else if ( self->ucPrevFramePicType == 2 ) ++ { ++ // last frame was a B-Frame -> correct the timestamp by the duration ++ // of the preceding reference frame ++#if GST_VERSION_MAJOR < 1 ++ GST_BUFFER_TIMESTAMP(self->prev_frame) -= 1000000000000ULL / self->framerate; ++#else ++ GST_BUFFER_PTS(self->prev_frame) -= 1000000000000ULL / self->framerate; ++#endif ++ } ++ } ++ // save the current picture type ++ self->ucPrevFramePicType = ucPType; ++ } ++ } ++ else ++ GST_ERROR_OBJECT(self, "startcodes in VC1 buffer not correctly aligned!"); ++ ++ return ucRetVal; ++} ++ +diff --git a/gstdvbvideosink.h b/gstdvbvideosink.h +index 8cf1dc2..14429a8 100644 +--- a/gstdvbvideosink.h ++++ b/gstdvbvideosink.h +@@ -71,9 +71,9 @@ typedef enum { + STREAMTYPE_MPEG2 = 0, + STREAMTYPE_MPEG4_H264 = 1, + STREAMTYPE_H263 = 2, +- STREAMTYPE_VC1 = 3, ++ STREAMTYPE_VC1 = 16, + STREAMTYPE_MPEG4_Part2 = 4, +- STREAMTYPE_VC1_SM = 5, ++ STREAMTYPE_VC1_SM = 17, + STREAMTYPE_MPEG1 = 6, + STREAMTYPE_XVID = 10, + STREAMTYPE_DIVX311 = 13, +@@ -116,6 +116,27 @@ struct _GstDVBVideoSink + gboolean must_send_header; + + queue_entry_t *queue; ++ ++ // VC1 stuff.... ++ ++ int no_header; ++ ++ int framerate; // current framerate ++ ++ unsigned char ucPrevFramePicType; ++ ++ // Sequence header variables ++ unsigned char ucVC1_PULLDOWN; ++ unsigned char ucVC1_INTERLACE; ++ unsigned char ucVC1_TFCNTRFLAG ; ++ unsigned char ucVC1_FINTERPFLAG; ++ unsigned char ucVC1_PSF; ++ unsigned char ucVC1_HRD_PARAM_FLAG; ++ unsigned char ucVC1_HRD_NUM_LEAKY_BUCKETS; ++ ++ // Entry Point header variables ++ unsigned char ucVC1_PANSCAN_FLAG; ++ unsigned char ucVC1_REFDIST_FLAG; + }; + + struct _GstDVBVideoSinkClass diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-subsink.bb b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-subsink.bb new file mode 100644 index 0000000..2d171db --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugin-subsink.bb @@ -0,0 +1,35 @@ +DESCRIPTION = "gstreamer subsink plugin" +SECTION = "multimedia" +PRIORITY = "optional" +DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base" +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" + +SRC_URI = "git://git.code.sf.net/p/openpli/gstsubsink;protocol=git;branch=gst-1.0" +SRCREV = "${AUTOREV}" + +S = "${WORKDIR}/git" + +inherit gitpkgv + +GSTVERSION = "1.0" + +PV = "${GSTVERSION}+git${SRCPV}" +PKGV = "${GSTVERSION}+git${GITPKGV}" +PR = "r0" + +EXTRA_OECONF = "--with-gstversion=${GSTVERSION}" + +do_configure_prepend() { + sed -i 's/AC_INIT.*$/AC_INIT(gst-plugin-subsink, 1.0.0, @pli4)/' ${S}/configure.ac + sed -i 's/AM_INIT_AUTOMAKE.*$/AM_INIT_AUTOMAKE([foreign subdir-objects])/' ${S}/configure.ac +} + +inherit autotools pkgconfig + +FILES_${PN} = "${libdir}/gstreamer-${GSTVERSION}/*.so*" +FILES_${PN}-dev += "${libdir}/gstreamer-${GSTVERSION}/*.la" +FILES_${PN}-staticdev += "${libdir}/gstreamer-${GSTVERSION}/*.a" +FILES_${PN}-dbg += "${libdir}/gstreamer-${GSTVERSION}/.debug" + +PACKAGE_ARCH = "${MACHINE_ARCH}" diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad.inc b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad.inc new file mode 100644 index 0000000..c657aee --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad.inc @@ -0,0 +1,135 @@ +require gstreamer1.0-plugins.inc + +LICENSE = "GPLv2+ & LGPLv2+ & LGPLv2.1+ " + +DEPENDS += "gstreamer1.0-plugins-base bzip2 libpng jpeg" + +S = "${WORKDIR}/gst-plugins-bad-${PV}" + +SRC_URI += "file://configure-allow-to-disable-libssh2.patch \ + " + +inherit gettext + +# opengl packageconfig factored out to make it easy for distros +# and BSP layers to pick either (desktop) opengl, gles2, or no GL +PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}" + +PACKAGECONFIG ?= " \ + ${PACKAGECONFIG_GL} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \ + orc curl uvch264 neon sndfile \ + hls sbc dash bz2 smoothstreaming \ + " + +# dash = Dynamic Adaptive Streaming over HTTP +PACKAGECONFIG[assrender] = "--enable-assrender,--disable-assrender,libass" +PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl" +PACKAGECONFIG[gles2] = "--enable-gles2 --enable-egl,--disable-gles2 --disable-egl,virtual/libgles2 virtual/egl" +PACKAGECONFIG[opengl] = "--enable-opengl,--disable-opengl,virtual/libgl libglu" +PACKAGECONFIG[faac] = "--enable-faac,--disable-faac,faac" +PACKAGECONFIG[faad] = "--enable-faad,--disable-faad,faad2" +PACKAGECONFIG[libmms] = "--enable-libmms,--disable-libmms,libmms" +PACKAGECONFIG[modplug] = "--enable-modplug,--disable-modplug,libmodplug" +PACKAGECONFIG[mpg123] = "--enable-mpg123,--disable-mpg123,mpg123" +PACKAGECONFIG[opus] = "--enable-opus,--disable-opus,libopus" +PACKAGECONFIG[flite] = "--enable-flite,--disable-flite,flite-alsa" +PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv" +PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland" +PACKAGECONFIG[uvch264] = "--enable-uvch264,--disable-uvch264,libusb1 udev" +PACKAGECONFIG[directfb] = "--enable-directfb,--disable-directfb,directfb" +PACKAGECONFIG[neon] = "--enable-neon,--disable-neon,neon" +PACKAGECONFIG[openal] = "--enable-openal,--disable-openal,openal-soft" +PACKAGECONFIG[hls] = "--enable-hls,--disable-hls,gnutls" +PACKAGECONFIG[sbc] = "--enable-sbc,--disable-sbc,sbc" +PACKAGECONFIG[dash] = "--enable-dash,--disable-dash,libxml2" +PACKAGECONFIG[bz2] = "--enable-bz2,--disable-bz2,bzip2" +PACKAGECONFIG[fluidsynth] = "--enable-fluidsynth,--disable-fluidsynth,fluidsynth" +PACKAGECONFIG[schroedinger] = "--enable-schro,--disable-schro,schroedinger" +PACKAGECONFIG[smoothstreaming] = "--enable-smoothstreaming,--disable-smoothstreaming,libxml2" +PACKAGECONFIG[bluez] = "--enable-bluez,--disable-bluez,bluez4" +PACKAGECONFIG[rsvg] = "--enable-rsvg,--disable-rsvg,librsvg" +PACKAGECONFIG[sndfile] = "--enable-sndfile,--disable-sndfile,libsndfile1" +PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" +PACKAGECONFIG[rtmp] = "--enable-rtmp,--disable-rtmp,librtmp" +PACKAGECONFIG[libssh2] = "--enable-libssh2,--disable-libssh2,libssh2" + +# these plugins have not been ported to 1.0 (yet): +# directdraw vcd apexsink dc1394 lv2 linsys musepack mythtv +# nas timidity teletextdec sdl xvid wininet acm gsettings +# sndio qtwrapper cdxaparse dccp faceoverlay hdvparse tta +# mve nuvdemux osx_video patchdetect quicktime real sdi +# videomeasure gsettings + +# these plugins have no corresponding library in OE-core or meta-openembedded: +# openni2 winks direct3d directdraw directsound winscreencap osx_video +# apple_media android_media avc chromaprint daala dts gme gsm kate ladspa mimic +# mpeg2enc mplex ofa openjpeg opensles pvr resindvd rtmp soundtouch spandsp spc +# srtp vdpau voaacenc voamrwbenc wasapi zbar + +EXTRA_OECONF += " \ + --enable-dvb \ + --enable-shm \ + --enable-fbdev \ + --enable-decklink \ + --disable-acm \ + --disable-android_media \ + --disable-apexsink \ + --disable-apple_media \ + --disable-avc \ + --disable-chromaprint \ + --disable-cocoa \ + --disable-daala \ + --disable-dc1394 \ + --disable-direct3d \ + --disable-directdraw \ + --disable-directsound \ + --disable-dts \ + --disable-gme \ + --disable-gsettings \ + --disable-gsm \ + --disable-kate \ + --disable-ladspa \ + --disable-linsys \ + --disable-lv2 \ + --disable-mimic \ + --disable-mpeg2enc \ + --disable-mplex \ + --disable-musepack \ + --disable-mythtv \ + --disable-nas \ + --disable-ofa \ + --disable-openjpeg \ + --disable-opensles \ + --disable-osx_video \ + --disable-pvr \ + --disable-quicktime \ + --disable-resindvd \ + --disable-sdl \ + --disable-sdltest \ + --disable-sndio \ + --disable-soundtouch \ + --disable-spandsp \ + --disable-spc \ + --disable-srtp \ + --disable-teletextdec \ + --disable-timidity \ + --disable-vcd \ + --disable-vdpau \ + --disable-voaacenc \ + --disable-voamrwbenc \ + --disable-wasapi \ + --disable-wildmidi \ + --disable-wininet \ + --disable-winscreencap \ + --disable-xvid \ + --disable-zbar \ + ${GSTREAMER_1_0_ORC} \ + " + +ARM_INSTRUCTION_SET = "arm" + +FILES_gstreamer1.0-plugins-bad-opencv += "${datadir}/gst-plugins-bad/1.0/opencv*" + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad/0001-gl-do-not-check-for-GL-GLU-EGL-GLES2-libs-if-disable.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad/0001-gl-do-not-check-for-GL-GLU-EGL-GLES2-libs-if-disable.patch new file mode 100644 index 0000000..042a32c --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad/0001-gl-do-not-check-for-GL-GLU-EGL-GLES2-libs-if-disable.patch @@ -0,0 +1,41 @@ +From deba0da45ec821209a7ed148a4521d562e6512cd Mon Sep 17 00:00:00 2001 +From: Carlos Rafael Giani +Date: Wed, 27 Aug 2014 14:47:25 +0200 +Subject: [PATCH] gl: do not check for GL/GLU/EGL/GLES2 libs if disabled in + configuration + +Upstream-Status: Submitted [https://bugzilla.gnome.org/show_bug.cgi?id=735522] + +Signed-off-by: Carlos Rafael Giani +--- + configure.ac | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 1a46afb..e85d4ba 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -661,10 +661,16 @@ case $host in + fi + ;; + *) +- AG_GST_CHECK_LIBHEADER(GL, GL, glTexImage2D,, GL/gl.h) +- AG_GST_CHECK_LIBHEADER(GLU, GLU, gluSphere,, GL/glu.h) +- AG_GST_CHECK_LIBHEADER(GLES2, GLESv2, glTexImage2D,, GLES2/gl2.h) +- AG_GST_CHECK_LIBHEADER(EGL, EGL, eglGetError,, EGL/egl.h) ++ if test "x$NEED_GL" != "xno"; then ++ AG_GST_CHECK_LIBHEADER(GL, GL, glTexImage2D,, GL/gl.h) ++ AG_GST_CHECK_LIBHEADER(GLU, GLU, gluSphere,, GL/glu.h) ++ fi ++ if test "x$NEED_GLES2" != "xno"; then ++ AG_GST_CHECK_LIBHEADER(GLES2, GLESv2, glTexImage2D,, GLES2/gl2.h) ++ fi ++ if test "x$NEED_EGL" != "xno"; then ++ AG_GST_CHECK_LIBHEADER(EGL, EGL, eglGetError,, EGL/egl.h) ++ fi + + old_LIBS=$LIBS + old_CFLAGS=$CFLAGS +-- +1.8.3.2 + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad/0001-rtmp-fix-seeking-and-potential-segfault.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad/0001-rtmp-fix-seeking-and-potential-segfault.patch new file mode 100644 index 0000000..a704c5c --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad/0001-rtmp-fix-seeking-and-potential-segfault.patch @@ -0,0 +1,63 @@ +From bb9478be40b450629f165d5d3566f4e4a3ee1b66 Mon Sep 17 00:00:00 2001 +From: Athanasios Oikonomou +Date: Tue, 28 Oct 2014 08:48:20 +0200 +Subject: [PATCH] rtmp: fix seeking and potential segfault + +Segfault info: https://bugzilla.gnome.org/show_bug.cgi?id=739263 +Seeking info: http://forums.openpli.org/topic/32910-mediaplayer-seek-doesnt-work-with-rtmp-streams/ + +diff --git a/ext/rtmp/gstrtmpsrc.c b/ext/rtmp/gstrtmpsrc.c +index b9ecfcf..8b4bf22 100644 +--- a/ext/rtmp/gstrtmpsrc.c ++++ b/ext/rtmp/gstrtmpsrc.c +@@ -86,7 +86,6 @@ static void gst_rtmp_src_get_property (GObject * object, guint prop_id, + GValue * value, GParamSpec * pspec); + static void gst_rtmp_src_finalize (GObject * object); + +-static gboolean gst_rtmp_src_unlock (GstBaseSrc * src); + static gboolean gst_rtmp_src_stop (GstBaseSrc * src); + static gboolean gst_rtmp_src_start (GstBaseSrc * src); + static gboolean gst_rtmp_src_is_seekable (GstBaseSrc * src); +@@ -137,7 +136,6 @@ gst_rtmp_src_class_init (GstRTMPSrcClass * klass) + + gstbasesrc_class->start = GST_DEBUG_FUNCPTR (gst_rtmp_src_start); + gstbasesrc_class->stop = GST_DEBUG_FUNCPTR (gst_rtmp_src_stop); +- gstbasesrc_class->unlock = GST_DEBUG_FUNCPTR (gst_rtmp_src_unlock); + gstbasesrc_class->is_seekable = GST_DEBUG_FUNCPTR (gst_rtmp_src_is_seekable); + gstbasesrc_class->prepare_seek_segment = + GST_DEBUG_FUNCPTR (gst_rtmp_src_prepare_seek_segment); +@@ -603,23 +601,6 @@ gst_rtmp_src_start (GstBaseSrc * basesrc) + #undef STR2AVAL + + static gboolean +-gst_rtmp_src_unlock (GstBaseSrc * basesrc) +-{ +- GstRTMPSrc *rtmpsrc = GST_RTMP_SRC (basesrc); +- +- GST_DEBUG_OBJECT (rtmpsrc, "unlock"); +- +- /* This closes the socket, which means that any pending socket calls +- * error out. */ +- if (rtmpsrc->rtmp) { +- RTMP_Close (rtmpsrc->rtmp); +- } +- +- return TRUE; +-} +- +- +-static gboolean + gst_rtmp_src_stop (GstBaseSrc * basesrc) + { + GstRTMPSrc *src; +@@ -627,6 +608,7 @@ gst_rtmp_src_stop (GstBaseSrc * basesrc) + src = GST_RTMP_SRC (basesrc); + + if (src->rtmp) { ++ RTMP_Close (src->rtmp); + RTMP_Free (src->rtmp); + src->rtmp = NULL; + } +-- +1.7.10.4 + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad/configure-allow-to-disable-libssh2.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad/configure-allow-to-disable-libssh2.patch new file mode 100644 index 0000000..d52afd5 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad/configure-allow-to-disable-libssh2.patch @@ -0,0 +1,64 @@ +From f59c5269f92d59a5296cbfeeb682d42095cd88ad Mon Sep 17 00:00:00 2001 +From: Wenzong Fan +Date: Thu, 18 Sep 2014 02:24:07 -0400 +Subject: [PATCH] gstreamer1.0-plugins-bad: allow to disable libssh2 + +libssh2 is automatically linked to if present, this undetermined +dependency may cause build errors like: + + .../x86_64-poky-linux/4.9.0/ld: cannot find -lssh2 + +libssh2 isn't an oe-core recipe, so allow to disable it from +configure. + +Upstream-Status: Pending + +Signed-off-by: Wenzong Fan +--- + configure.ac | 23 +++++++++++++++++------ + 1 file changed, 17 insertions(+), 6 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 0e95c5c..12153b4 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1901,6 +1901,15 @@ AG_GST_CHECK_FEATURE(CHROMAPRINT, [chromaprint], chromaprint, [ + ]) + + dnl *** Curl *** ++AC_ARG_ENABLE([libssh2], ++ [ --enable-libssh2 enable LIBSSH2 support @<:@default=auto@:>@], ++ [case "${enableval}" in ++ yes) NEED_SSH2=yes ;; ++ no) NEED_SSH2=no ;; ++ auto) NEED_SSH2=auto ;; ++ *) AC_MSG_ERROR([bad value ${enableval} for --enable-libssh2]) ;; ++ esac],[NEED_SSH2=auto]) ++ + translit(dnm, m, l) AM_CONDITIONAL(USE_CURL, true) + AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [ + PKG_CHECK_MODULES(CURL, libcurl >= 7.21.0, [ +@@ -1915,12 +1924,14 @@ AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [ + ]) + AC_SUBST(CURL_CFLAGS) + AC_SUBST(CURL_LIBS) +- PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [ +- HAVE_SSH2="yes" +- AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available]) +- ], [ +- HAVE_SSH2="no" +- ]) ++ if test "x$NEED_SSH2" != "xno"; then ++ PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [ ++ HAVE_SSH2="yes" ++ AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available]) ++ ], [ ++ HAVE_SSH2="no" ++ ]) ++ fi + AM_CONDITIONAL(USE_SSH2, test "x$HAVE_SSH2" = "xyes") + AC_SUBST(SSH2_CFLAGS) + AC_SUBST(SSH2_LIBS) +-- +1.7.9.5 + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad_1.4.%.bbappend b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad_1.4.%.bbappend new file mode 100644 index 0000000..f73d38a --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad_1.4.%.bbappend @@ -0,0 +1,14 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +DEPENDS += "libdca" +EXTRA_OECONF := "${@bb.data.getVar('EXTRA_OECONF',d,1).replace('--disable-dts', '--enable-dts --enable-mpegdemux')}" +PACKAGECONFIG += "faac faad libmms hls dash smoothstreaming webp rtmp" +SRC_URI += "file://0001-rtmp-fix-seeking-and-potential-segfault.patch" + +# Do not strip binary +#INHIBIT_PACKAGE_STRIP = "1" +#do_strip[noexec] = "1" +#do_strip="no" +#do_strip(){ +# pass +#} + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad_1.4.5.bb b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad_1.4.5.bb new file mode 100644 index 0000000..59065de --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-bad_1.4.5.bb @@ -0,0 +1,14 @@ +include gstreamer1.0-plugins-bad.inc + +LIC_FILES_CHKSUM = "file://COPYING;md5=73a5855a8119deb017f5f13cf327095d \ + file://gst/tta/filters.h;beginline=12;endline=29;md5=8a08270656f2f8ad7bb3655b83138e5a \ + file://COPYING.LIB;md5=21682e4e8fea52413fd26c60acb907e5 \ + file://gst/tta/crc32.h;beginline=12;endline=29;md5=27db269c575d1e5317fffca2d33b3b50" + +SRC_URI += "file://0001-gl-do-not-check-for-GL-GLU-EGL-GLES2-libs-if-disable.patch" + +SRC_URI[md5sum] = "e0bb39412cf4a48fe0397bcf3a7cd451" +SRC_URI[sha256sum] = "152fad7250683d72f9deb36c5685428338365fe4a4c87ffe15e38783b14f983c" + +S = "${WORKDIR}/gst-plugins-bad-${PV}" + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base.inc b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base.inc new file mode 100644 index 0000000..8fdf53f --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base.inc @@ -0,0 +1,40 @@ +require gstreamer1.0-plugins.inc + +LICENSE = "GPLv2+ & LGPLv2+" + +DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxv', '', d)}" +DEPENDS += "freetype liboil util-linux" + +inherit gettext + +PACKAGES_DYNAMIC =+ "^libgst.*" + +PACKAGECONFIG ?= " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \ + orc ivorbis ogg theora vorbis \ + " + +X11DEPENDS = "virtual/libx11 libsm libxrender" +X11ENABLEOPTS = "--enable-x --enable-xvideo --enable-xshm" +X11DISABLEOPTS = "--disable-x --disable-xvideo --disable-xshm" +PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}" +PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib" +PACKAGECONFIG[ivorbis] = "--enable-ivorbis,--disable-ivorbis,tremor" +PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libogg" +PACKAGECONFIG[theora] = "--enable-theora,--disable-theora,libtheora" +PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis" +PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango" + + +# cdparanoia and libvisual do not seem to exist anywhere in OE +EXTRA_OECONF += " \ + --disable-freetypetest \ + --disable-cdparanoia \ + --disable-libvisual \ + ${GSTREAMER_1_0_ORC} \ +" + +FILES_${PN} += "${datadir}/gst-plugins-base" + +CACHED_CONFIGUREVARS_append_i586 = " ac_cv_header_emmintrin_h=no ac_cv_header_xmmintrin_h=no" diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/0001-riff-media-added-fourcc-to-all-mpeg4-video-caps.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/0001-riff-media-added-fourcc-to-all-mpeg4-video-caps.patch new file mode 100644 index 0000000..b37b06b --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/0001-riff-media-added-fourcc-to-all-mpeg4-video-caps.patch @@ -0,0 +1,27 @@ +From 979c5cb85c4f3e59dcc44c1e6c75315dee7dfbc2 Mon Sep 17 00:00:00 2001 +From: Maros Ondrasek +Date: Thu, 6 Nov 2014 14:03:57 +0100 +Subject: [PATCH] riff-media: added fourcc to all mpeg4 video caps + +--- + gst-libs/gst/riff/riff-media.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c +index 8217d79..48034bf 100644 +--- a/gst-libs/gst/riff/riff-media.c ++++ b/gst-libs/gst/riff/riff-media.c +@@ -487,6 +487,10 @@ gst_riff_create_video_caps (guint32 codec_fcc, + caps = gst_caps_new_simple ("video/mpeg", + "mpegversion", G_TYPE_INT, 4, + "systemstream", G_TYPE_BOOLEAN, FALSE, NULL); ++ gchar *fstr = g_strdup_printf ("%" GST_FOURCC_FORMAT, ++ GST_FOURCC_ARGS (codec_fcc)); ++ gst_caps_set_simple (caps, "fourcc", G_TYPE_STRING, fstr, NULL); ++ g_free (fstr); + if (codec_name) + *codec_name = g_strdup ("MPEG-4"); + break; +-- +2.1.0 + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/do-not-change-eos-event-to-gap-event-if.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/do-not-change-eos-event-to-gap-event-if.patch new file mode 100644 index 0000000..0407a30 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/do-not-change-eos-event-to-gap-event-if.patch @@ -0,0 +1,37 @@ +From b608d027fff6efc2d1988ebf169cbe3b2b44a61b Mon Sep 17 00:00:00 2001 +From: zhouming +Date: Thu, 8 May 2014 12:01:17 +0800 +Subject: [PATCH] ENGR00312034: do not change eos event to gap event if no + data has passed to streamsynchronizer. + +https://bugzilla.gnome.org/show_bug.cgi?id=727074 + +Upstream Status: Pending + +Signed-off-by: zhouming +--- + gst/playback/gststreamsynchronizer.c | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/gst/playback/gststreamsynchronizer.c b/gst/playback/gststreamsynchronizer.c +index 3997d1b..3e17c55 100644 +--- a/gst/playback/gststreamsynchronizer.c ++++ b/gst/playback/gststreamsynchronizer.c +@@ -488,12 +488,11 @@ gst_stream_synchronizer_sink_event (GstPad * pad, GstObject * parent, + } + g_slist_free (pads); + } else { +- /* if EOS, but no data has passed, then send something to replace EOS +- * for preroll purposes */ ++ /* if EOS, but no data has passed, then send EOS event */ + if (!seen_data) { + GstEvent *gap_event; + +- gap_event = gst_event_new_gap (timestamp, GST_CLOCK_TIME_NONE); ++ gap_event = gst_event_new_eos (); + ret = gst_pad_push_event (srcpad, gap_event); + } else { + GstEvent *gap_event; +-- +1.7.9.5 + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/get-caps-from-src-pad-when-query-caps.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/get-caps-from-src-pad-when-query-caps.patch new file mode 100644 index 0000000..0fc561c --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/get-caps-from-src-pad-when-query-caps.patch @@ -0,0 +1,44 @@ +From af0dac26f62aaceb4bf266720911953793e0fc5d Mon Sep 17 00:00:00 2001 +From: zhouming +Date: Wed, 14 May 2014 10:16:20 +0800 +Subject: [PATCH] ENGR00312515: get caps from src pad when query caps + +https://bugzilla.gnome.org/show_bug.cgi?id=728312 + +Upstream Status: Pending + +Signed-off-by: zhouming +--- + gst-libs/gst/tag/gsttagdemux.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + mode change 100644 => 100755 gst-libs/gst/tag/gsttagdemux.c + +diff --git a/gst-libs/gst/tag/gsttagdemux.c b/gst-libs/gst/tag/gsttagdemux.c +old mode 100644 +new mode 100755 +index 9b6c478..ae2294a +--- a/gst-libs/gst/tag/gsttagdemux.c ++++ b/gst-libs/gst/tag/gsttagdemux.c +@@ -1708,6 +1708,19 @@ gst_tag_demux_pad_query (GstPad * pad, GstObject * parent, GstQuery * query) + } + break; + } ++ case GST_QUERY_CAPS: ++ { ++ ++ /* We can hijack caps query if we typefind already */ ++ if (demux->priv->src_caps) { ++ gst_query_set_caps_result (query, demux->priv->src_caps); ++ res = TRUE; ++ } else { ++ res = gst_pad_query_default (pad, parent, query); ++ } ++ break; ++ } ++ + default: + res = gst_pad_query_default (pad, parent, query); + break; +-- +1.7.9.5 + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/taglist-not-send-to-down-stream-if-all-the-frame-cor.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/taglist-not-send-to-down-stream-if-all-the-frame-cor.patch new file mode 100644 index 0000000..51fdc7e --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base/taglist-not-send-to-down-stream-if-all-the-frame-cor.patch @@ -0,0 +1,57 @@ +From 68fa1b1425ad2c5f7c5013d0943153a8a6d0934e Mon Sep 17 00:00:00 2001 +From: Jian Li +Date: Wed, 24 Sep 2014 17:21:02 +0800 +Subject: [PATCH] taglist not send to down stream if all the frame corrupted + +https://bugzilla.gnome.org/show_bug.cgi?id=737246 + +Upstream status: Pending + +Signed-off-by: Jian Li +--- + gst-libs/gst/audio/gstaudiodecoder.c | 9 +++++++++ + gst-libs/gst/video/gstvideodecoder.c | 8 ++++++++ + 2 files changed, 17 insertions(+) + +diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c +index 3504678..3d69efe 100644 +--- a/gst-libs/gst/audio/gstaudiodecoder.c ++++ b/gst-libs/gst/audio/gstaudiodecoder.c +@@ -2083,6 +2083,15 @@ gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, GstEvent * event) + gst_audio_decoder_drain (dec); + GST_AUDIO_DECODER_STREAM_UNLOCK (dec); + ++ /* send taglist if no valid frame is decoded util EOS */ ++ if (dec->priv->taglist && dec->priv->taglist_changed) { ++ GST_DEBUG_OBJECT (dec, "codec tag %" GST_PTR_FORMAT, dec->priv->taglist); ++ if (!gst_tag_list_is_empty (dec->priv->taglist)) ++ gst_audio_decoder_push_event (dec, ++ gst_event_new_tag (gst_tag_list_ref (dec->priv->taglist))); ++ dec->priv->taglist_changed = FALSE; ++ } ++ + /* Forward EOS because no buffer or serialized event will come after + * EOS and nothing could trigger another _finish_frame() call. */ + ret = gst_audio_decoder_push_event (dec, event); +diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c +index dd8abe3..d9bfe4d 100644 +--- a/gst-libs/gst/video/gstvideodecoder.c ++++ b/gst-libs/gst/video/gstvideodecoder.c +@@ -1024,6 +1024,14 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder, + * parent class' ::sink_event() until a later time. + */ + forward_immediate = TRUE; ++ ++ /* send taglist if no valid frame is decoded util EOS */ ++ if (decoder->priv->tags && decoder->priv->tags_changed) { ++ gst_video_decoder_push_event (decoder, ++ gst_event_new_tag (gst_tag_list_ref (decoder->priv->tags))); ++ decoder->priv->tags_changed = FALSE; ++ } ++ + break; + } + case GST_EVENT_GAP: +-- +1.7.9.5 + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base_1.4.%.bbappend b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base_1.4.%.bbappend new file mode 100644 index 0000000..4f1f0f5 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base_1.4.%.bbappend @@ -0,0 +1,14 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +PACKAGECONFIG[cdparanoia] = "--enable-cdparanoia,--disable-cdparanoia,cdparanoia" +PACKAGECONFIG += "cdparanoia" +EXTRA_OECONF := "${@bb.data.getVar('EXTRA_OECONF',d,1).replace('--disable-cdparanoia', '--enable-cdparanoia')}" +SRC_URI += "file://0001-riff-media-added-fourcc-to-all-mpeg4-video-caps.patch" + +# Do not strip binary +#INHIBIT_PACKAGE_STRIP = "1" +#do_strip[noexec] = "1" +#do_strip="no" +#do_strip(){ +# pass +#} + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base_1.4.5.bb b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base_1.4.5.bb new file mode 100644 index 0000000..11cf8b4 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-base_1.4.5.bb @@ -0,0 +1,16 @@ +include gstreamer1.0-plugins-base.inc + +LIC_FILES_CHKSUM = "file://COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \ + file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=a4e1830fce078028c8f0974161272607 \ + file://COPYING.LIB;md5=6762ed442b3822387a51c92d928ead0d \ + " + +SRC_URI += "file://do-not-change-eos-event-to-gap-event-if.patch \ + file://get-caps-from-src-pad-when-query-caps.patch \ + file://taglist-not-send-to-down-stream-if-all-the-frame-cor.patch \ +" + +SRC_URI[md5sum] = "357165af625c0ca353ab47c5d843920e" +SRC_URI[sha256sum] = "77bd8199e7a312d3d71de9b7ddf761a3b78560a2c2a80829d0815ca39cbd551d" + +S = "${WORKDIR}/gst-plugins-base-${PV}" diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good.inc b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good.inc new file mode 100644 index 0000000..299b95f --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good.inc @@ -0,0 +1,57 @@ +require gstreamer1.0-plugins.inc + +LICENSE = "GPLv2+ & LGPLv2.1+" + +# libid3tag +DEPENDS += "gstreamer1.0-plugins-base zlib bzip2 libcap" + +inherit gettext + + +PACKAGECONFIG ?= " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \ + orc cairo flac gdk-pixbuf gudev jpeg libpng soup speex taglib \ + " + +X11DEPENDS = "virtual/libx11 libsm libxrender libxfixes libxdamage" +X11ENABLEOPTS = "--enable-x --enable-xshm" +X11DISABLEOPTS = "--disable-x --disable-xshm" +PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}" +PACKAGECONFIG[pulseaudio] = "--enable-pulse,--disable-pulse,pulseaudio" +PACKAGECONFIG[cairo] = "--enable-cairo,--disable-cairo,cairo" +PACKAGECONFIG[flac] = "--enable-flac,--disable-flac,flac" +PACKAGECONFIG[gdk-pixbuf] = "--enable-gdk_pixbuf,--disable-gdk_pixbuf,gdk-pixbuf" +PACKAGECONFIG[gudev] = "--with-gudev,--without-gudev,udev" +PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack" +PACKAGECONFIG[jpeg] = "--enable-jpeg,--disable-jpeg,jpeg" +PACKAGECONFIG[libpng] = "--enable-libpng,--disable-libpng,libpng" +PACKAGECONFIG[soup] = "--enable-soup,--disable-soup,libsoup-2.4" +PACKAGECONFIG[speex] = "--enable-speex,--disable-speex,speex" +PACKAGECONFIG[taglib] = "--enable-taglib,--disable-taglib,taglib" +PACKAGECONFIG[vpx] = "--enable-vpx,--disable-vpx,libvpx" +PACKAGECONFIG[wavpack] = "--enable-wavpack,--disable-wavpack,wavpack" + +# the 1394 plugins require both libraw1394 and libiec61883 +# the former is included in meta-oe, the latter isn't +# -> disabled + +EXTRA_OECONF += " \ + --enable-oss \ + --enable-gst_v4l2 \ + --without-libv4l2 \ + --disable-directsound \ + --disable-waveform \ + --disable-oss4 \ + --disable-sunaudio \ + --disable-osx_audio \ + --disable-osx_video \ + --disable-aalib \ + --disable-libcaca \ + --disable-libdv \ + --disable-shout2 \ + --disable-examples \ + --disable-dv1394 \ + ${GSTREAMER_1_0_ORC} \ +" + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good/0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good/0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch new file mode 100755 index 0000000..53147df --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good/0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch @@ -0,0 +1,62 @@ +From c782a30482908a4b4dd9cd4abff9f9bc4016698f Mon Sep 17 00:00:00 2001 +From: Song Bing +Date: Tue, 5 Aug 2014 14:40:46 +0800 +Subject: [PATCH] gstrtpmp4gpay: set dafault value for MPEG4 without codec + data in caps. + +https://bugzilla.gnome.org/show_bug.cgi?id=734263 + +Upstream Status: Submitted + +Signed-off-by: Song Bing +--- + gst/rtp/gstrtpmp4gpay.c | 19 ++++++++++++++++++- + 1 file changed, 18 insertions(+), 1 deletion(-) + +diff --git a/gst/rtp/gstrtpmp4gpay.c b/gst/rtp/gstrtpmp4gpay.c +index 7913d9a..1749d39 100644 +--- a/gst/rtp/gstrtpmp4gpay.c ++++ b/gst/rtp/gstrtpmp4gpay.c +@@ -390,6 +390,7 @@ gst_rtp_mp4g_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps) + const GValue *codec_data; + const gchar *media_type = NULL; + gboolean res; ++ const gchar *name; + + rtpmp4gpay = GST_RTP_MP4G_PAY (payload); + +@@ -400,7 +401,6 @@ gst_rtp_mp4g_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps) + GST_LOG_OBJECT (rtpmp4gpay, "got codec_data"); + if (G_VALUE_TYPE (codec_data) == GST_TYPE_BUFFER) { + GstBuffer *buffer; +- const gchar *name; + + buffer = gst_value_get_buffer (codec_data); + GST_LOG_OBJECT (rtpmp4gpay, "configuring codec_data"); +@@ -426,6 +426,23 @@ gst_rtp_mp4g_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps) + + rtpmp4gpay->config = gst_buffer_copy (buffer); + } ++ } else { ++ name = gst_structure_get_name (structure); ++ ++ if (!strcmp (name, "video/mpeg")) { ++ rtpmp4gpay->profile = g_strdup ("1"); ++ ++ /* fixed rate */ ++ rtpmp4gpay->rate = 90000; ++ /* video stream type */ ++ rtpmp4gpay->streamtype = "4"; ++ /* no params for video */ ++ rtpmp4gpay->params = NULL; ++ /* mode */ ++ rtpmp4gpay->mode = "generic"; ++ ++ media_type = "video"; ++ } + } + if (media_type == NULL) + goto config_failed; +-- +1.7.9.5 + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good/decrease_asteriskh263_rank.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good/decrease_asteriskh263_rank.patch new file mode 100755 index 0000000..7f94f50 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good/decrease_asteriskh263_rank.patch @@ -0,0 +1,25 @@ +commit d71d74daac8ed54156ed103958ab455c63c72b0e +Author: Song Bing +Date: Mon Nov 10 11:25:47 2014 +0800 + +[asteriskh263] decrease the rank as we havn't this kind of decoder. + +Decrease the rank as we havn't this kind of decoder. + +https://bugzilla.gnome.org/show_bug.cgi?id=739935 + +Upstream Status: Pending + +Signed-off-by: Song Bing + +diff --git a/gst/rtp/gstasteriskh263.c b/gst/rtp/gstasteriskh263.c +index a01fbc8..8fa3194 100644 +--- a/gst/rtp/gstasteriskh263.c ++++ b/gst/rtp/gstasteriskh263.c +@@ -226,5 +226,5 @@ gboolean + gst_asteriskh263_plugin_init (GstPlugin * plugin) + { + return gst_element_register (plugin, "asteriskh263", +- GST_RANK_SECONDARY, GST_TYPE_ASTERISK_H263); ++ GST_RANK_SECONDARY - 1, GST_TYPE_ASTERISK_H263); + } diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good_1.4.%.bbappend b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good_1.4.%.bbappend new file mode 100644 index 0000000..e6711e7 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good_1.4.%.bbappend @@ -0,0 +1,9 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +# Do not strip binary +#INHIBIT_PACKAGE_STRIP = "1" +#do_strip[noexec] = "1" +#do_strip="no" +#do_strip(){ +# pass +#} diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good_1.4.5.bb b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good_1.4.5.bb new file mode 100644 index 0000000..943ab60 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-good_1.4.5.bb @@ -0,0 +1,13 @@ +include gstreamer1.0-plugins-good.inc + +LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ + file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=a4e1830fce078028c8f0974161272607 \ + file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe" + +SRC_URI += "file://0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch \ + file://decrease_asteriskh263_rank.patch \ +" +SRC_URI[md5sum] = "eaf1a6daf73749bc423feac301d60038" +SRC_URI[sha256sum] = "79b1b5f3f7bcaa8a615202eb5e176121eeb8336960f70687e536ad78dbc7e641" + +S = "${WORKDIR}/gst-plugins-good-${PV}" diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-ugly.inc b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-ugly.inc new file mode 100644 index 0000000..3d6d171 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-ugly.inc @@ -0,0 +1,31 @@ +require gstreamer1.0-plugins.inc + +LICENSE = "GPLv2+ & LGPLv2.1+ & LGPLv2+" +LICENSE_FLAGS = "commercial" + +DEPENDS += "gstreamer1.0-plugins-base libid3tag" + +inherit gettext + + +PACKAGECONFIG ?= " \ + orc a52dec lame mad mpeg2dec \ + " + +PACKAGECONFIG[a52dec] = "--enable-a52dec,--disable-a52dec,liba52" +PACKAGECONFIG[cdio] = "--enable-cdio,--disable-cdio,libcdio" +PACKAGECONFIG[dvdread] = "--enable-dvdread,--disable-dvdread,libdvdread" +PACKAGECONFIG[lame] = "--enable-lame,--disable-lame,lame" +PACKAGECONFIG[mad] = "--enable-mad,--disable-mad,libmad" +PACKAGECONFIG[mpeg2dec] = "--enable-mpeg2dec,--disable-mpeg2dec,mpeg2dec" +PACKAGECONFIG[x264] = "--enable-x264,--disable-x264,x264" + + +EXTRA_OECONF += " \ + --disable-amrnb \ + --disable-amrwb \ + --disable-sidplay \ + --disable-twolame \ + ${GSTREAMER_1_0_ORC} \ + " + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-ugly_1.4.%.bbappend b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-ugly_1.4.%.bbappend new file mode 100644 index 0000000..c9b0ac6 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-ugly_1.4.%.bbappend @@ -0,0 +1,15 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +PACKAGECONFIG[amrnb] = "--enable-amrnb,--disable-amrnb,opencore-amr" +PACKAGECONFIG[amrwb] = "--enable-amrwb,--disable-amrwb,opencore-amr" +PACKAGECONFIG += "cdio dvdread amrnb amrwb mad" +EXTRA_OECONF := "${@bb.data.getVar('EXTRA_OECONF',d,1).replace('--disable-amrnb', '--enable-amrnb').replace('--disable-amrwb', '--enable-amrwb')}" +DEPENDS += "libmad" + +# Do not strip binary +#INHIBIT_PACKAGE_STRIP = "1" +#do_strip[noexec] = "1" +#do_strip="no" +#do_strip(){ +# pass +#} + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-ugly_1.4.5.bb b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-ugly_1.4.5.bb new file mode 100644 index 0000000..25cb28c --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins-ugly_1.4.5.bb @@ -0,0 +1,10 @@ +include gstreamer1.0-plugins-ugly.inc + +LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ + file://tests/check/elements/xingmux.c;beginline=1;endline=21;md5=4c771b8af188724855cb99cadd390068 " + +SRC_URI[md5sum] = "6954beed7bb9a93e426dee543ff46393" +SRC_URI[sha256sum] = "5cd5e81cf618944f4dc935f1669b2125e8bb2fe9cc7dc8dc15b72237aca49067" + +S = "${WORKDIR}/gst-plugins-ugly-${PV}" + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins.inc b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins.inc new file mode 100644 index 0000000..687aa2f --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0-plugins.inc @@ -0,0 +1,57 @@ +SUMMARY = "Plugins for the GStreamer multimedia framework 1.x" +HOMEPAGE = "http://gstreamer.freedesktop.org/" +BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer" +SECTION = "multimedia" +DEPENDS = "gstreamer1.0" + +inherit autotools pkgconfig + +GSTREAMER_1_0_DEBUG ?= "--disable-debug" +GSTREAMER_1_0_GIT_BRANCH ?= "master" +EXTRA_OECONF = "--disable-valgrind ${GSTREAMER_1_0_DEBUG} --disable-examples " + +acpaths = "-I ${S}/common/m4 -I ${S}/m4" + +LIBV = "1.0" +require gst-plugins-package.inc + +PACKAGECONFIG[orc] = "--enable-orc,--disable-orc,orc" + +PACKAGES_DYNAMIC = "^${PN}-.*" + +# apply gstreamer hack after Makefile.in.in in source is replaced by our version from +# ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in, but before configure is executed +# http://lists.linuxtogo.org/pipermail/openembedded-core/2012-November/032233.html +oe_runconf_prepend() { + if [ -e ${S}/po/Makefile.in.in ]; then + sed -i -e "1a\\" -e 'GETTEXT_PACKAGE = @GETTEXT_PACKAGE@' ${S}/po/Makefile.in.in + fi +} + +SRC_URI = "${@get_gst_srcuri(d)}" + +def get_gst_srcuri(d): + # check if expected prefix is present + prefix = "gstreamer1.0-" + bpn = d.getVar("BPN", True) + if not bpn.startswith(prefix): + bb.fatal('Invalid GStreamer 1.0 plugin package name "%s" : must start with "%s"' % (bpn, prefix)) + + # replaced prefix with "gst-", which is what is used for the tarball and repository filenames + gstpkg_basename = "gst-" + bpn[len(prefix):] + pv = d.getVar("PV", True) + branch = d.getVar("GSTREAMER_1_0_GIT_BRANCH", True) + + if pv == "git": + s = "git://anongit.freedesktop.org/gstreamer/%s;branch=%s" % (gstpkg_basename, branch) + else: + s = "http://gstreamer.freedesktop.org/src/%s/%s-%s.tar.xz" % (gstpkg_basename, gstpkg_basename, pv) + return s + +delete_liblink_m4_file() { + # This m4 file contains nastiness which conflicts with libtool 2.2.2 + rm "${S}/m4/lib-link.m4" || true +} + +do_configure[prefuncs] += " delete_liblink_m4_file " + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0.inc b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0.inc new file mode 100644 index 0000000..a01c33c --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0.inc @@ -0,0 +1,27 @@ +SUMMARY = "GStreamer 1.0 multimedia framework" +DESCRIPTION = "GStreamer is a multimedia framework for encoding and decoding video and sound. \ +It supports a wide range of formats including mp3, ogg, avi, mpeg and quicktime." +HOMEPAGE = "http://gstreamer.freedesktop.org/" +BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer" +SECTION = "multimedia" +LICENSE = "LGPLv2+" +DEPENDS = "glib-2.0 libxml2 bison-native flex-native" + +inherit autotools pkgconfig gettext + +GSTREAMER_1_DEBUG ?= "--disable-debug" +EXTRA_OECONF = "--disable-docbook --disable-gtk-doc \ + --disable-dependency-tracking --disable-check \ + --disable-examples --disable-tests \ + --disable-valgrind ${GSTREAMER_1_DEBUG} \ + " + +RRECOMMENDS_${PN}_qemux86 += "kernel-module-snd-ens1370 kernel-module-snd-rawmidi" +RRECOMMENDS_${PN}_qemux86-64 += "kernel-module-snd-ens1370 kernel-module-snd-rawmidi" + +CACHED_CONFIGUREVARS += "ac_cv_header_valgrind_valgrind_h=no" + +FILES_${PN} += " ${libdir}/gstreamer-1.0/*.so" +FILES_${PN}-dev += " ${libdir}/gstreamer-1.0/*.la ${libdir}/gstreamer-1.0/*.a" +FILES_${PN}-dbg += " ${libdir}/gstreamer-1.0/.debug/ ${libexecdir}/gstreamer-1.0/.debug/" + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0/0001-Fix-crash-with-gst-inspect.patch b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0/0001-Fix-crash-with-gst-inspect.patch new file mode 100644 index 0000000..94f5cc5 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0/0001-Fix-crash-with-gst-inspect.patch @@ -0,0 +1,28 @@ +From 6b26f3dbf9bf577d71534ab7410de66d06e46ba2 Mon Sep 17 00:00:00 2001 +From: Carlos Rafael Giani +Date: Sat, 6 Apr 2013 23:52:11 +0200 +Subject: [PATCH] Fix crash with gst-inspect Chris Lord + +Upstream-Status: Pending + +Signed-off-by: Carlos Rafael Giani +--- + tools/gst-inspect.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c +index 23b7c44..b79b02e 100644 +--- a/tools/gst-inspect.c ++++ b/tools/gst-inspect.c +@@ -1556,7 +1556,7 @@ main (int argc, char *argv[]) + g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE); + g_option_context_add_group (ctx, gst_init_get_option_group ()); + if (!g_option_context_parse (ctx, &argc, &argv, &err)) { +- g_printerr ("Error initializing: %s\n", err->message); ++ g_printerr ("Error initializing: %s\n", err ? err->message : "(null)"); + return -1; + } + g_option_context_free (ctx); +-- +1.8.2 + diff --git a/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0_1.4.5.bb b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0_1.4.5.bb new file mode 100644 index 0000000..94be846 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/gstreamer1.0/gstreamer1.0_1.4.5.bb @@ -0,0 +1,14 @@ +include gstreamer1.0.inc + +LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \ + file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d" + +SRC_URI = " \ + http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \ + file://0001-Fix-crash-with-gst-inspect.patch \ +" +SRC_URI[md5sum] = "88a9289c64a4950ebb4f544980234289" +SRC_URI[sha256sum] = "40801aa7f979024526258a0e94707ba42b8ab6f7d2206e56adbc4433155cb0ae" + +S = "${WORKDIR}/gstreamer-${PV}" + diff --git a/meta-openvuplus/recipes-multimedia/libav/libav.inc b/meta-openvuplus/recipes-multimedia/libav/libav.inc new file mode 100644 index 0000000..8b470c1 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/libav/libav.inc @@ -0,0 +1,139 @@ +SUMMARY = "Open source audio and video processing tools and librairies" +DESCRIPTION = "Libav is a friendly and community-driven effort to provide its users \ + with a set of portable, functional and high-performance libraries for \ + dealing with multimedia formats of all sorts. It originates from the \ + FFmpeg codebase, but goes its own way these days, providing its users \ + with reliable releases and a clear vision how to go forward." +HOMEPAGE = "http://libav.org/" +SECTION = "libs" + +LICENSE = "GPLv2+" +LICENSE_FLAGS = "commercial" + +# Provides ffmpeg compat, see http://libav.org/about.html +PROVIDES = "ffmpeg" + +ARM_INSTRUCTION_SET = "arm" + +DEPENDS = "zlib libogg yasm-native" + +INC_PR = "r8" + +inherit autotools pkgconfig + +B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" + +FULL_OPTIMIZATION_armv7a = "-fexpensive-optimizations -fomit-frame-pointer -O4 -ffast-math" +BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}" + +EXTRA_FFCONF_armv7a = "--cpu=cortex-a8" +EXTRA_FFCONF ?= "" + +PACKAGECONFIG ??= "bzip2 x264 theora ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" +PACKAGECONFIG[bzip2] = "--enable-bzlib,--disable-bzlib,bzip2" +PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac" +PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm" +PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack" +PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis" +PACKAGECONFIG[mp3lame] = "--enable-libmp3lame,--disable-libmp3lame,lame" +PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl" +PACKAGECONFIG[schroedinger] = "--enable-libschroedinger,--disable-libschroedinger,schroedinger" +PACKAGECONFIG[speex] = "--enable-libspeex,--disable-libspeex,speex" +PACKAGECONFIG[theora] = "--enable-libtheora,--disable-libtheora,libtheora" +PACKAGECONFIG[vpx] = "--enable-libvpx,--disable-libvpx,libvpx" +PACKAGECONFIG[x11] = "--enable-x11grab,--disable-x11grab,virtual/libx11 libxfixes libxext xproto virtual/libsdl" +PACKAGECONFIG[x264] = "--enable-libx264,--disable-libx264,x264" + +# Check codecs that require --enable-nonfree +USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'faac', 'openssl' ], 'yes', '', d)}" + +EXTRA_OECONF = " \ + --enable-shared \ + --enable-pthreads \ + --enable-gpl \ + ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \ + --enable-avfilter \ + \ + --cross-prefix=${TARGET_PREFIX} \ + --prefix=${prefix} \ + \ + --enable-avserver \ + --enable-avplay \ + --ld="${CCLD}" \ + --arch=${TARGET_ARCH} \ + --target-os="linux" \ + --enable-cross-compile \ + --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \ + --extra-ldflags="${TARGET_LDFLAGS}" \ + --sysroot="${STAGING_DIR_TARGET}" \ + --enable-hardcoded-tables \ + ${EXTRA_FFCONF} \ + --libdir=${libdir} \ + --shlibdir=${libdir} \ +" + +do_configure() { + # We don't have TARGET_PREFIX-pkgconfig + sed -i '/pkg_config_default="${cross_prefix}${pkg_config_default}"/d' ${S}/configure + mkdir -p ${B} + cd ${B} + ${S}/configure ${EXTRA_OECONF} + sed -i -e s:Os:O4:g ${B}/config.h +} + +do_install_append() { + install -m 0644 ${S}/libavfilter/*.h ${D}${includedir}/libavfilter/ +} + +PACKAGES += "${PN}-vhook-dbg ${PN}-vhook ffmpeg-x264-presets" + +RSUGGESTS_${PN} = "mplayer" +FILES_${PN} = "${bindir}" +FILES_${PN}-dev = "${includedir}/${PN}" + +FILES_${PN}-vhook = "${libdir}/vhook" +FILES_${PN}-vhook-dbg += "${libdir}/vhook/.debug" + +FILES_ffmpeg-x264-presets = "${datadir}/*.avpreset" + +LEAD_SONAME = "libavcodec.so" + +FILES_${PN}-dev = "${includedir}" + +python populate_packages_prepend() { + av_libdir = d.expand('${libdir}') + av_pkgconfig = d.expand('${libdir}/pkgconfig') + + # Runtime package + do_split_packages(d, av_libdir, '^lib(.*)\.so\..*', + output_pattern='lib%s', + description='libav %s library', + extra_depends='', + prepend=True, + allow_links=True) + + # Development packages (-dev, -staticdev) + do_split_packages(d, av_libdir, '^lib(.*)\.so$', + output_pattern='lib%s-dev', + description='libav %s development package', + extra_depends='${PN}-dev', + prepend=True, + allow_links=True) + do_split_packages(d, av_pkgconfig, '^lib(.*)\.pc$', + output_pattern='lib%s-dev', + description='libav %s development package', + extra_depends='${PN}-dev', + prepend=True) + do_split_packages(d, av_libdir, '^lib(.*)\.a$', + output_pattern='lib%s-staticdev', + description='libav %s development package - static library', + extra_depends='${PN}-dev', + prepend=True, + allow_links=True) + + if d.getVar('TARGET_ARCH', True) == 'i586': + # libav can't be build with -fPIC for 32-bit x86 + pkgs = d.getVar('PACKAGES', True).split() + for pkg in pkgs: + d.appendVar('INSANE_SKIP_%s' % pkg, ' textrel') +} diff --git a/meta-openvuplus/recipes-multimedia/libav/libav/0001-configure-enable-pic-for-AArch64.patch b/meta-openvuplus/recipes-multimedia/libav/libav/0001-configure-enable-pic-for-AArch64.patch new file mode 100644 index 0000000..d9b22b9 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/libav/libav/0001-configure-enable-pic-for-AArch64.patch @@ -0,0 +1,23 @@ +From 58db99e98f615d79ea90cac8f4bcf11c94e3e7c7 Mon Sep 17 00:00:00 2001 +From: Marcin Juszkiewicz +Date: Thu, 10 Jan 2013 12:42:19 +0100 +Subject: [PATCH] configure: enable pic for AArch64 + +Signed-off-by: Marcin Juszkiewicz + +Upstream-Status: Backport +--- + configure | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- git.orig/configure ++++ git/configure +@@ -2393,7 +2393,7 @@ check_host_cflags -std=c99 + check_host_cflags -Wall + + case "$arch" in +- alpha|ia64|mips|parisc|ppc|sparc) ++ alpha|ia64|mips|parisc|ppc|sparc|aarch64) + spic=$shared + ;; + x86) diff --git a/meta-openvuplus/recipes-multimedia/libav/libav_0.7.4.bbappend b/meta-openvuplus/recipes-multimedia/libav/libav_0.7.4.bbappend deleted file mode 100644 index e371dff..0000000 --- a/meta-openvuplus/recipes-multimedia/libav/libav_0.7.4.bbappend +++ /dev/null @@ -1,4 +0,0 @@ -LICENSE = "LGPLv2.1+" -PR .= "-vuplus1" - -EXTRA_OECONF += "--disable-gpl --disable-nonfree --disable-version3 --disable-x11grab" diff --git a/meta-openvuplus/recipes-multimedia/libav/libav_0.8.%.bbappend b/meta-openvuplus/recipes-multimedia/libav/libav_0.8.%.bbappend new file mode 100644 index 0000000..08f560d --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/libav/libav_0.8.%.bbappend @@ -0,0 +1,8 @@ +LICENSE = "LGPLv2.1+" +PR .= "-vuplus0" + +EXTRA_OECONF += "--disable-gpl --disable-nonfree --disable-version3" + +PACKAGECONFIG = "bzip2" + +RSUGGESTS_${PN} = "" diff --git a/meta-openvuplus/recipes-multimedia/libav/libav_0.8.15.bb b/meta-openvuplus/recipes-multimedia/libav/libav_0.8.15.bb new file mode 100644 index 0000000..127a088 --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/libav/libav_0.8.15.bb @@ -0,0 +1,20 @@ +require libav.inc + +SRC_URI = "http://libav.org/releases/${BP}.tar.xz \ + file://0001-configure-enable-pic-for-AArch64.patch" + +SRC_URI[md5sum] = "e483ea8f482b5ecd65ee1d09251b0a5b" +SRC_URI[sha256sum] = "495789ec547e93632937f0f36b06f4dd3180bc61518181f124af6746c6218710" + +LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://COPYING.GPLv3;md5=d32239bcb673463ab874e80d47fae504 \ + file://COPYING.LGPLv2.1;md5=e344c8fa836c3a41c4cbd79d7bd3a379 \ + file://COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02" + +PROVIDES += "libpostproc" + +EXTRA_OECONF += " \ + --enable-postproc \ +" + +PACKAGES_DYNAMIC += "^lib(av(codec|device|filter|format|util)|postproc|swscale).*" diff --git a/meta-openvuplus/recipes-multimedia/libcec/libcec_2.1.1.bb b/meta-openvuplus/recipes-multimedia/libcec/libcec_2.1.1.bb index 4dfdeb1..82185d1 100644 --- a/meta-openvuplus/recipes-multimedia/libcec/libcec_2.1.1.bb +++ b/meta-openvuplus/recipes-multimedia/libcec/libcec_2.1.1.bb @@ -6,7 +6,7 @@ DEPENDS = "udev" SRCREV = "605d913ae656ef9707a7f9cbca41f78d180d79dc" PR = "r2" -SRC_URI = "git://github.com/Pulse-Eight/libcec.git" +SRC_URI = "git://github.com/Pulse-Eight/libcec.git;branch=release" S = "${WORKDIR}/git" diff --git a/meta-openvuplus/recipes-multimedia/libdvdnav/libdvdnav_svn.bb b/meta-openvuplus/recipes-multimedia/libdvdnav/libdvdnav_svn.bb index b00f742..d11cb45 100644 --- a/meta-openvuplus/recipes-multimedia/libdvdnav/libdvdnav_svn.bb +++ b/meta-openvuplus/recipes-multimedia/libdvdnav/libdvdnav_svn.bb @@ -18,7 +18,7 @@ inherit autotools lib_package binconfig pkgconfig FILES_${PN} = "${libdir}/${PN}${SOLIB}" python populate_packages_prepend() { - description = bb.data.expand('${DESCRIPTION}', d) - libdir = bb.data.expand('${libdir}', d) - do_split_packages(d, libdir, '^lib(.*)\.so\..*', 'lib%s', description + ' (%s)', extra_depends='', allow_links=True) + description = bb.data.expand('${DESCRIPTION}', d) + libdir = bb.data.expand('${libdir}', d) + do_split_packages(d, libdir, '^lib(.*)\.so\..*', 'lib%s', description + ' (%s)', extra_depends='', allow_links=True) } diff --git a/meta-openvuplus/recipes-multimedia/libmusicbrainz/libmusicbrainz_git.bbappend b/meta-openvuplus/recipes-multimedia/libmusicbrainz/libmusicbrainz_git.bbappend new file mode 100644 index 0000000..8963c1d --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/libmusicbrainz/libmusicbrainz_git.bbappend @@ -0,0 +1,3 @@ +PR .= "-vuplus0" + +B = "${S}" diff --git a/meta-openvuplus/recipes-multimedia/libvorbis/libvorbis_1.3.3.bbappend b/meta-openvuplus/recipes-multimedia/libvorbis/libvorbis_1.3.3.bbappend deleted file mode 100644 index 02895ba..0000000 --- a/meta-openvuplus/recipes-multimedia/libvorbis/libvorbis_1.3.3.bbappend +++ /dev/null @@ -1,4 +0,0 @@ -PR .= "-vuplus0" - -PACKAGES =+ "${PN}enc" -FILES_${PN}enc = "${libdir}/libvorbisenc.so.*" diff --git a/meta-openvuplus/recipes-multimedia/libvorbis/libvorbis_1.3.4.bbappend b/meta-openvuplus/recipes-multimedia/libvorbis/libvorbis_1.3.4.bbappend new file mode 100644 index 0000000..02895ba --- /dev/null +++ b/meta-openvuplus/recipes-multimedia/libvorbis/libvorbis_1.3.4.bbappend @@ -0,0 +1,4 @@ +PR .= "-vuplus0" + +PACKAGES =+ "${PN}enc" +FILES_${PN}enc = "${libdir}/libvorbisenc.so.*" diff --git a/meta-openvuplus/recipes-multimedia/rtmp/librtmp.bb b/meta-openvuplus/recipes-multimedia/rtmp/librtmp.bb index 2b25149..fe22cbe 100644 --- a/meta-openvuplus/recipes-multimedia/rtmp/librtmp.bb +++ b/meta-openvuplus/recipes-multimedia/rtmp/librtmp.bb @@ -1,19 +1,19 @@ DESCRIPTION = "librtmp Real-Time Messaging Protocol API" -LICENSE = "GPLv2" +LICENSE = "LGPLv2" + LIC_FILES_CHKSUM = "file://COPYING;md5=e344c8fa836c3a41c4cbd79d7bd3a379" -DEPENDS = "openssl" +DEPENDS = "openssl zlib" inherit gitpkgv +SRCREV = "a1900c3e152085406ecb87c1962c55ec9c6e4016" + PKGV = "2.4+git${GITPKGV}" PV = "2.4+git${SRCPV}" -PR = "r2" - -BRANCH="" -SRCREV="7340f6dbc6b3c8e552baab2e5a891c2de75cddcc" +PR = "r3" -SRC_URI = "git://git.ffmpeg.org/rtmpdump;protocol=git;branch=${BRANCH};tag=${SRCREV}" +SRC_URI = "git://git.ffmpeg.org/rtmpdump;protocol=git" S = "${WORKDIR}/git/librtmp" @@ -22,6 +22,6 @@ do_compile() { } do_install() { - install -d ${D}/usr/lib + install -d ${D}${libdir} oe_runmake DESTDIR=${D} install } diff --git a/meta-openvuplus/recipes-multimedia/streamripper/streamripper_1.64.6.bb b/meta-openvuplus/recipes-multimedia/streamripper/streamripper_1.64.6.bb index 4be9d0d..1349414 100644 --- a/meta-openvuplus/recipes-multimedia/streamripper/streamripper_1.64.6.bb +++ b/meta-openvuplus/recipes-multimedia/streamripper/streamripper_1.64.6.bb @@ -15,3 +15,8 @@ EXTRA_OECONF = "--disable-oggtest \ --with-vorbis=${STAGING_LIBDIR}" inherit autotools + +# Fixup for missing "foreign" and "subdir-objects" in automake +do_configure_prepend() { + sed -i 's/AM_INIT_AUTOMAKE.*$/AM_INIT_AUTOMAKE([foreign subdir-objects])/' ${S}/configure.ac ${S}/*/configure.ac +} diff --git a/meta-openvuplus/recipes-multimedia/xbmc/enigma2-plugin-extensions-xbmc.bb b/meta-openvuplus/recipes-multimedia/xbmc/enigma2-plugin-extensions-xbmc.bb index 2385471..814c212 100644 --- a/meta-openvuplus/recipes-multimedia/xbmc/enigma2-plugin-extensions-xbmc.bb +++ b/meta-openvuplus/recipes-multimedia/xbmc/enigma2-plugin-extensions-xbmc.bb @@ -7,7 +7,7 @@ PV="1.0" PR="${PKG_DATE}_r0" DEPENDS += "enigma2 xbmc" -RDEPENDS += "xbmc" +RDEPENDS_${PN} += "xbmc" SRC_URI = "http://archive.vuplus.com/download/build_support/e2xbmc-plugin_${PKG_DATE}.tar.gz" diff --git a/meta-openvuplus/recipes-multimedia/xbmc/xbmc_git.bb b/meta-openvuplus/recipes-multimedia/xbmc/xbmc_git.bb index ce6bec3..0c2e1f1 100644 --- a/meta-openvuplus/recipes-multimedia/xbmc/xbmc_git.bb +++ b/meta-openvuplus/recipes-multimedia/xbmc/xbmc_git.bb @@ -1,4 +1,4 @@ -DESCRIPTION = "XBMC Media Center" +SUMMARY = "XBMC Media Center" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=6eb631b6da7fdb01508a80213ffc35ff" @@ -18,7 +18,7 @@ SRC_URI = "git://github.com/xbmc/xbmc.git;branch=eden;protocol=git \ file://configure.in-Avoid-running-code.patch \ " -inherit autotools gettext python-dir +inherit autotools-brokensep gettext python-dir S = "${WORKDIR}/git" @@ -48,7 +48,7 @@ export STAGING_INCDIR export PYTHON_DIR do_configure() { - sh bootstrap + ./bootstrap oe_runconf } diff --git a/meta-openvuplus/recipes-multimedia/xbmc/xbmc_git.bbappend b/meta-openvuplus/recipes-multimedia/xbmc/xbmc_git.bbappend index 59039ed..7d92df8 100644 --- a/meta-openvuplus/recipes-multimedia/xbmc/xbmc_git.bbappend +++ b/meta-openvuplus/recipes-multimedia/xbmc/xbmc_git.bbappend @@ -6,8 +6,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=6eb631b6da7fdb01508a80213ffc35ff" DEPENDS = "libgles libxslt libusb1 libcec libplist expat yajl gperf-native fribidi mpeg2dec samba fontconfig curl python libass libmodplug libmicrohttpd wavpack libmms cmake-native libsdl-image libsdl-mixer mysql5 sqlite3 libmms faad2 libcdio libpcre boost lzo enca avahi libsamplerate0 bzip2 virtual/libsdl jasper zip-native zlib libtinyxml taglib libbluray libshairport librtmp zlib libnfs libxslt" -RDEPENDS = "python" -RDEPENDS += "\ +RDEPENDS_${PN} = "python" +RDEPENDS_${PN} += "\ python-distutils \ python-subprocess \ python-robotparser \ @@ -35,7 +35,7 @@ RDEPENDS += "\ python-numbers \ nfs-utils-client \ libshairport \ - eglibc-gconv-utf-32 \ + glibc-gconv-utf-32 \ lzma \ tiff \ yajl \ diff --git a/meta-openvuplus/recipes-protocol/zeroconf/zeroconf_0.9.bbappend b/meta-openvuplus/recipes-protocol/zeroconf/zeroconf_0.9.bbappend new file mode 100644 index 0000000..5ee8d24 --- /dev/null +++ b/meta-openvuplus/recipes-protocol/zeroconf/zeroconf_0.9.bbappend @@ -0,0 +1,5 @@ +PR .= "-vuplus0" + +do_install_append() { + sed -e 's,^#FALLBACK=yes,FALLBACK=yes,' -i ${D}${sysconfdir}/default/zeroconf +} diff --git a/meta-openvuplus/recipes-support/libbluray/libaacs/libaacs_define_xopen_source_500.patch b/meta-openvuplus/recipes-support/libbluray/libaacs/libaacs_define_xopen_source_500.patch new file mode 100644 index 0000000..572c956 --- /dev/null +++ b/meta-openvuplus/recipes-support/libbluray/libaacs/libaacs_define_xopen_source_500.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index 466f7f9..0dec17f 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -27,7 +27,7 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip]) + AC_CONFIG_HEADERS(config.h) + AM_MAINTAINER_MODE + +-SET_FEATURES="-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L" ++SET_FEATURES="-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500" + + case "${host_os}" in + "") diff --git a/meta-openvuplus/recipes-support/libbluray/libaacs/libaacs_remove_werror_implicit_function_declaration.patch b/meta-openvuplus/recipes-support/libbluray/libaacs/libaacs_remove_werror_implicit_function_declaration.patch new file mode 100644 index 0000000..e67050d --- /dev/null +++ b/meta-openvuplus/recipes-support/libbluray/libaacs/libaacs_remove_werror_implicit_function_declaration.patch @@ -0,0 +1,15 @@ +diff --git a/configure.ac b/configure.ac +index 466f7f9..48490df 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -145,10 +145,6 @@ CC_CHECK_CFLAGS_APPEND([-Wall -Wdisabled-optimization -Wpointer-arith ]dnl + [-Wredundant-decls -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef ]dnl + [-Wmissing-prototypes -Wshadow]) + +-CC_CHECK_CFLAGS_APPEND([-Werror=implicit-function-declaration ]dnl +- [-Werror-implicit-function-declaration], +- [break;]) +- + CC_CHECK_WERROR + AS_IF([test "x$enable_werror" = "xyes"], [ + CFLAGS="${CFLAGS} $cc_cv_werror" diff --git a/meta-openvuplus/recipes-support/libbluray/libaacs_git.bb b/meta-openvuplus/recipes-support/libbluray/libaacs_git.bb index 720e93b..54c091b 100644 --- a/meta-openvuplus/recipes-support/libbluray/libaacs_git.bb +++ b/meta-openvuplus/recipes-support/libbluray/libaacs_git.bb @@ -3,10 +3,13 @@ SECTION = "libs/multimedia" LICENSE = "LGPLv2.1+" LIC_FILES_CHKSUM = "file://COPYING;md5=4b54a1fd55a448865a0b32d41598759d" DEPENDS = "libgcrypt" -SRCREV = "668bd765cd3bdaf8216ad0fa26e01286029c0499" -PV = "0.4.0" +SRCREV = "863e0a50ed9ee7b9bf4695a74bc4d607d12a67ff" +PV = "0.6.0" -SRC_URI = "git://git.videolan.org/${PN}.git;protocol=git" +SRC_URI = " \ + git://git.videolan.org/${PN}.git;protocol=git \ + file://libaacs_define_xopen_source_500.patch \ + " S = "${WORKDIR}/git" diff --git a/meta-openvuplus/recipes-support/libbluray/libbluray.inc b/meta-openvuplus/recipes-support/libbluray/libbluray.inc index beb8186..e42fcf8 100644 --- a/meta-openvuplus/recipes-support/libbluray/libbluray.inc +++ b/meta-openvuplus/recipes-support/libbluray/libbluray.inc @@ -7,6 +7,6 @@ INC_PR = "r5" S="${WORKDIR}/git" SRC_URI = "git://git.videolan.org/libbluray.git;branch=master;protocol=git \ " -inherit autotools +inherit autotools-brokensep FILES_${PN} = "/" diff --git a/meta-openvuplus/recipes-support/libbluray/libbluray_1.0.0.bb b/meta-openvuplus/recipes-support/libbluray/libbluray_1.0.0.bb index 34f2d39..d3a1eb7 100644 --- a/meta-openvuplus/recipes-support/libbluray/libbluray_1.0.0.bb +++ b/meta-openvuplus/recipes-support/libbluray/libbluray_1.0.0.bb @@ -1,7 +1,7 @@ require libbluray.inc DEPENDS += "libaacs libdca libdvdcss" -RDEPENDS += "libaacs libdca libdvdcss" +RDEPENDS_${PN} += "libaacs libdca libdvdcss" SRCREV="491c7e8501d7e7ea853700a2f35a18f11ad40a5b" LIC_FILES_CHKSUM="file://COPYING;md5=435ed639f84d4585d93824e7da3d85da" diff --git a/meta-openvuplus/recipes-support/libbluray/libdca_0.0.5-5.bb b/meta-openvuplus/recipes-support/libbluray/libdca_0.0.5-5.bb index 8dd898f..6950b40 100644 --- a/meta-openvuplus/recipes-support/libbluray/libdca_0.0.5-5.bb +++ b/meta-openvuplus/recipes-support/libbluray/libdca_0.0.5-5.bb @@ -3,12 +3,14 @@ SECTION = "libs/multimedia" LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" SRCREV = "4f6b5d6e6fb35994c342de95bf05e20117da549b" +PR = "r1" +DEPENDS += "quilt-native" SRC_URI = "git://anonscm.debian.org/collab-maint/${PN}.git;protocol=git" S = "${WORKDIR}/git" -inherit autotools lib_package pkgconfig +inherit autotools-brokensep lib_package pkgconfig do_unpackpost() { QUILT_PATCHES=debian/patches quilt push -a @@ -16,4 +18,4 @@ do_unpackpost() { sed -i -e 's/double/sample_t/g' ${S}/libdca/*.c ${S}/libdca/*.h } -addtask unpackpost after do_unpack before do_patch +addtask unpackpost after do_patch before do_configure diff --git a/meta-openvuplus/recipes-support/libbluray/libdvdcss_1.2.10.bb b/meta-openvuplus/recipes-support/libbluray/libdvdcss_1.2.10.bb new file mode 100644 index 0000000..1a0b7b8 --- /dev/null +++ b/meta-openvuplus/recipes-support/libbluray/libdvdcss_1.2.10.bb @@ -0,0 +1,13 @@ +DESCRIPTION = "libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption." +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +PR = "r1" + +SRC_URI = "http://download.videolan.org/pub/libdvdcss/${PV}/libdvdcss-${PV}.tar.bz2" + +inherit autotools + +EXTRA_OECONF = " --disable-doc " + +SRC_URI[md5sum] = "ebd5370b79ac5a83e5c61b24a214cf74" +SRC_URI[sha256sum] = "2394a75013ab66b592d8c91d53529ede392bc9faee37fe279bd29b455eff2220" diff --git a/meta-openvuplus/recipes-support/libgcrypt/files/add-pkgconfig-support.patch b/meta-openvuplus/recipes-support/libgcrypt/files/add-pkgconfig-support.patch new file mode 100644 index 0000000..82c93bd --- /dev/null +++ b/meta-openvuplus/recipes-support/libgcrypt/files/add-pkgconfig-support.patch @@ -0,0 +1,151 @@ +Add and use pkg-config for libgcrypt instead of -config scripts. + +Upstream-Status: Rejected [upstream have indicated they don't want a pkg-config dependency] + +RP 2014/5/22 + +Index: libgcrypt-1.2.4/configure.ac +=================================================================== +--- libgcrypt-1.2.4.orig/configure.ac 2008-03-19 22:14:50.000000000 +0000 ++++ libgcrypt-1.2.4/configure.ac 2008-03-19 22:14:58.000000000 +0000 +@@ -807,6 +807,7 @@ + doc/Makefile + src/Makefile + src/gcrypt.h ++src/libgcrypt.pc + src/libgcrypt-config + tests/Makefile + w32-dll/Makefile +Index: libgcrypt-1.2.4/src/libgcrypt.pc.in +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ libgcrypt-1.2.4/src/libgcrypt.pc.in 2008-03-19 22:14:58.000000000 +0000 +@@ -0,0 +1,33 @@ ++# Process this file with autoconf to produce a pkg-config metadata file. ++# Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation ++# Author: Simon Josefsson ++# ++# This file is free software; as a special exception the author gives ++# unlimited permission to copy and/or distribute it, with or without ++# modifications, as long as this notice is preserved. ++# ++# This file is distributed in the hope that it will be useful, but ++# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the ++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ++ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++# API info ++api_version=@LIBGCRYPT_CONFIG_API_VERSION@ ++host=@LIBGCRYPT_CONFIG_HOST@ ++ ++# Misc information. ++symmetric_ciphers=@LIBGCRYPT_CIPHERS@ ++asymmetric_ciphers=@LIBGCRYPT_PUBKEY_CIPHERS@ ++digests=@LIBGCRYPT_DIGESTS@ ++ ++Name: libgcrypt ++Description: GNU crypto library ++URL: http://www.gnupg.org ++Version: @VERSION@ ++Libs: -L${libdir} -lgcrypt ++Libs.private: -L${libdir} -lgpg-error ++Cflags: -I${includedir} +Index: libgcrypt-1.6.1/src/libgcrypt.m4 +=================================================================== +--- libgcrypt-1.6.1.orig/src/libgcrypt.m4 2013-12-16 17:44:32.000000000 +0000 ++++ libgcrypt-1.6.1/src/libgcrypt.m4 2014-05-13 21:25:37.478389833 +0000 +@@ -22,17 +22,7 @@ + dnl + AC_DEFUN([AM_PATH_LIBGCRYPT], + [ AC_REQUIRE([AC_CANONICAL_HOST]) +- AC_ARG_WITH(libgcrypt-prefix, +- AC_HELP_STRING([--with-libgcrypt-prefix=PFX], +- [prefix where LIBGCRYPT is installed (optional)]), +- libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="") +- if test x$libgcrypt_config_prefix != x ; then +- if test x${LIBGCRYPT_CONFIG+set} != xset ; then +- LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config +- fi +- fi + +- AC_PATH_TOOL(LIBGCRYPT_CONFIG, libgcrypt-config, no) + tmp=ifelse([$1], ,1:1.2.0,$1) + if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then + req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` +@@ -42,48 +32,13 @@ + min_libgcrypt_version="$tmp" + fi + +- AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version) +- ok=no +- if test "$LIBGCRYPT_CONFIG" != "no" ; then +- req_major=`echo $min_libgcrypt_version | \ +- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` +- req_minor=`echo $min_libgcrypt_version | \ +- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` +- req_micro=`echo $min_libgcrypt_version | \ +- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` +- libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` +- major=`echo $libgcrypt_config_version | \ +- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` +- minor=`echo $libgcrypt_config_version | \ +- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'` +- micro=`echo $libgcrypt_config_version | \ +- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'` +- if test "$major" -gt "$req_major"; then +- ok=yes +- else +- if test "$major" -eq "$req_major"; then +- if test "$minor" -gt "$req_minor"; then +- ok=yes +- else +- if test "$minor" -eq "$req_minor"; then +- if test "$micro" -ge "$req_micro"; then +- ok=yes +- fi +- fi +- fi +- fi +- fi +- fi +- if test $ok = yes; then +- AC_MSG_RESULT([yes ($libgcrypt_config_version)]) +- else +- AC_MSG_RESULT(no) +- fi ++ PKG_CHECK_MODULES(LIBGCRYPT, [libgcrypt >= $min_libgcrypt_version], [ok=yes], [ok=no]) ++ + if test $ok = yes; then + # If we have a recent libgcrypt, we should also check that the + # API is compatible + if test "$req_libgcrypt_api" -gt 0 ; then +- tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` ++ tmp=`$PKG_CONFIG --variable=api_version libgcrypt` + if test "$tmp" -gt 0 ; then + AC_MSG_CHECKING([LIBGCRYPT API version]) + if test "$req_libgcrypt_api" -eq "$tmp" ; then +@@ -96,10 +51,8 @@ + fi + fi + if test $ok = yes; then +- LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` +- LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` + ifelse([$2], , :, [$2]) +- libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` ++ libgcrypt_config_host=`$PKG_CONFIG --variable=host libgcrypt` + if test x"$libgcrypt_config_host" != xnone ; then + if test x"$libgcrypt_config_host" != x"$host" ; then + AC_MSG_WARN([[ +@@ -113,8 +66,6 @@ + fi + fi + else +- LIBGCRYPT_CFLAGS="" +- LIBGCRYPT_LIBS="" + ifelse([$3], , :, [$3]) + fi + AC_SUBST(LIBGCRYPT_CFLAGS) diff --git a/meta-openvuplus/recipes-support/libgcrypt/files/fix-ICE-failure-on-mips-with-option-O-and-g.patch b/meta-openvuplus/recipes-support/libgcrypt/files/fix-ICE-failure-on-mips-with-option-O-and-g.patch new file mode 100644 index 0000000..56c591f --- /dev/null +++ b/meta-openvuplus/recipes-support/libgcrypt/files/fix-ICE-failure-on-mips-with-option-O-and-g.patch @@ -0,0 +1,71 @@ +tests/bench-slope.c: workaround ICE failure on mips with '-O -g' + +Hit a ICE and could reduce it to the following minimal example: + +1. Only the size of array assigned with 2 caused the issue: +$ cat > mipgcc-test.c << END + +int main (int argc, char **argv) +{ + char *pStrArry[ARRAY_SIZE_MAX] = {"hello"}; + int i = 0; + + while(pStrArry[i] && i for instructions + +3. The quick workround is trying to enlarge the size of array with larger +than 2. + +4. File a bug to GNU, but it could not be reproduced on there environment. +http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60643 + +Upstream-Status: [oe specific] + +Signed-off-by: Hongxu Jia +--- + tests/bench-slope.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/bench-slope.c b/tests/bench-slope.c +index bd05064..28c2438 100644 +--- a/tests/bench-slope.c ++++ b/tests/bench-slope.c +@@ -1197,7 +1197,7 @@ static struct bench_ops hash_ops = { + }; + + +-static struct bench_hash_mode hash_modes[] = { ++static struct bench_hash_mode hash_modes[3] = { + {"", &hash_ops}, + {0}, + }; +@@ -1349,7 +1349,7 @@ static struct bench_ops mac_ops = { + }; + + +-static struct bench_mac_mode mac_modes[] = { ++static struct bench_mac_mode mac_modes[3] = { + {"", &mac_ops}, + {0}, + }; +-- +1.8.1.2 + diff --git a/meta-openvuplus/recipes-support/libgcrypt/files/libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch b/meta-openvuplus/recipes-support/libgcrypt/files/libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch new file mode 100644 index 0000000..a3e5403 --- /dev/null +++ b/meta-openvuplus/recipes-support/libgcrypt/files/libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch @@ -0,0 +1,32 @@ +Upstream-Status: Pending + +libgcrypt: fix building error with '-O2' in sysroot path + +Characters like '-O2' or '-Ofast' will be replaced by '-O1' when compiling cipher. +If we are cross compiling libgcrypt and sysroot contains such characters, we would +get compile errors because the sysroot path has been modified. + +Fix this by adding blank spaces before and after the original matching pattern in the +sed command. + +Signed-off-by: Chen Qi +--- + cipher/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cipher/Makefile.am b/cipher/Makefile.am +index 76cdc96..9a89792 100644 +--- a/cipher/Makefile.am ++++ b/cipher/Makefile.am +@@ -69,7 +69,7 @@ rfc2268.c \ + camellia.c camellia.h camellia-glue.c + + if ENABLE_O_FLAG_MUNGING +-o_flag_munging = sed -e 's/-O\([2-9s][2-9s]*\)/-O1/' -e 's/-Ofast/-O1/g' ++o_flag_munging = sed -e 's/ -O\([2-9s][2-9s]*\) / -O1 /' -e 's/ -Ofast / -O1 /g' + else + o_flag_munging = cat + endif +-- +1.7.9.5 + diff --git a/meta-openvuplus/recipes-support/libgcrypt/libgcrypt.inc b/meta-openvuplus/recipes-support/libgcrypt/libgcrypt.inc new file mode 100644 index 0000000..128ebe6 --- /dev/null +++ b/meta-openvuplus/recipes-support/libgcrypt/libgcrypt.inc @@ -0,0 +1,42 @@ +SUMMARY = "General purpose cryptographic library based on the code from GnuPG" +HOMEPAGE = "http://directory.fsf.org/project/libgcrypt/" +BUGTRACKER = "https://bugs.g10code.com/gnupg/index" +SECTION = "libs" + +# helper program gcryptrnd and getrandom are under GPL, rest LGPL +LICENSE = "GPLv2+ & LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ + file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff" + +DEPENDS = "libgpg-error libcap" + +SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz \ + file://add-pkgconfig-support.patch \ + file://libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch \ + file://fix-ICE-failure-on-mips-with-option-O-and-g.patch \ +" + +BINCONFIG = "${bindir}/libgcrypt-config" + +PR = "r1" + +inherit autotools texinfo binconfig pkgconfig + +EXTRA_OECONF = "--disable-asm --with-capabilities" + +do_configure_prepend () { + # Else this could be used in preference to the one in aclocal-copy + rm -f ${S}/m4/gpg-error.m4 +} + +# libgcrypt.pc is added locally and thus installed here +do_install_append() { + install -d ${D}/${libdir}/pkgconfig + install -m 0644 ${B}/src/libgcrypt.pc ${D}/${libdir}/pkgconfig/ +} + +FILES_${PN}-dev += "${bindir}/dumpsexp ${bindir}/hmac256" + +ARM_INSTRUCTION_SET = "arm" + +BBCLASSEXTEND = "native" diff --git a/meta-openvuplus/recipes-support/libgcrypt/libgcrypt_1.6.2.bb b/meta-openvuplus/recipes-support/libgcrypt/libgcrypt_1.6.2.bb new file mode 100644 index 0000000..c49c0e7 --- /dev/null +++ b/meta-openvuplus/recipes-support/libgcrypt/libgcrypt_1.6.2.bb @@ -0,0 +1,4 @@ +require libgcrypt.inc + +SRC_URI[md5sum] = "d19adc062edff0ebc7e887212733ef1f" +SRC_URI[sha256sum] = "936921644b9c81e2395e18a554a9a5f9252aae3976f8afc3e4229ee9d785e627" diff --git a/meta-openvuplus/recipes-support/libtinyxml/libtinyxml/enforce-use-stl.patch b/meta-openvuplus/recipes-support/libtinyxml/libtinyxml/enforce-use-stl.patch deleted file mode 100644 index 88c962b..0000000 --- a/meta-openvuplus/recipes-support/libtinyxml/libtinyxml/enforce-use-stl.patch +++ /dev/null @@ -1,20 +0,0 @@ -Description: TinyXml is built with TIXML_USE_STL, so we have to - enforce it when the library is used. -Author: Felix Geyer - -Upstream-Status: Pending - -diff -Nur tinyxml-2.5.3/tinyxml.h tinyxml-2.5.3.patch/tinyxml.h ---- tinyxml-2.5.3/tinyxml.h 2007-05-07 00:41:23.000000000 +0200 -+++ tinyxml-2.5.3.patch/tinyxml.h 2009-07-08 22:32:03.000000000 +0200 -@@ -26,6 +26,10 @@ - #ifndef TINYXML_INCLUDED - #define TINYXML_INCLUDED - -+#ifndef TIXML_USE_STL -+ #define TIXML_USE_STL -+#endif -+ - #ifdef _MSC_VER - #pragma warning( push ) - #pragma warning( disable : 4530 ) diff --git a/meta-openvuplus/recipes-support/libtinyxml/libtinyxml/entity-encoding.patch b/meta-openvuplus/recipes-support/libtinyxml/libtinyxml/entity-encoding.patch deleted file mode 100644 index b801506..0000000 --- a/meta-openvuplus/recipes-support/libtinyxml/libtinyxml/entity-encoding.patch +++ /dev/null @@ -1,62 +0,0 @@ -Description: TinyXML incorrectly encodes text element containing - an ampersand followed by either x or #. - -Origin: http://sourceforge.net/tracker/index.php?func=detail&aid=3031828&group_id=13559&atid=313559 - -Upstream-Status: Pending - -diff -u -r1.105 tinyxml.cpp ---- a/tinyxml.cpp -+++ b/tinyxml.cpp -@@ -57,30 +57,7 @@ - { - unsigned char c = (unsigned char) str[i]; - -- if ( c == '&' -- && i < ( (int)str.length() - 2 ) -- && str[i+1] == '#' -- && str[i+2] == 'x' ) -- { -- // Hexadecimal character reference. -- // Pass through unchanged. -- // © -- copyright symbol, for example. -- // -- // The -1 is a bug fix from Rob Laveaux. It keeps -- // an overflow from happening if there is no ';'. -- // There are actually 2 ways to exit this loop - -- // while fails (error case) and break (semicolon found). -- // However, there is no mechanism (currently) for -- // this function to return an error. -- while ( i<(int)str.length()-1 ) -- { -- outString->append( str.c_str() + i, 1 ); -- ++i; -- if ( str[i] == ';' ) -- break; -- } -- } -- else if ( c == '&' ) -+ if ( c == '&' ) - { - outString->append( entity[0].str, entity[0].strLength ); - ++i; -diff -u -r1.89 xmltest.cpp ---- a/xmltest.cpp -+++ b/xmltest.cpp -@@ -1340,6 +1340,16 @@ - }*/ - } - -+ #ifdef TIXML_USE_STL -+ { -+ TiXmlDocument xml; -+ xml.Parse("foo&#xa+bar"); -+ std::string str; -+ str << xml; -+ XmlTest( "Entity escaping", "foo&#xa+bar", str.c_str() ); -+ } -+ #endif -+ - /* 1417717 experiment - { - TiXmlDocument xml; diff --git a/meta-openvuplus/recipes-support/libtinyxml/libtinyxml_2.6.2.bb b/meta-openvuplus/recipes-support/libtinyxml/libtinyxml_2.6.2.bb deleted file mode 100644 index fdadebd..0000000 --- a/meta-openvuplus/recipes-support/libtinyxml/libtinyxml_2.6.2.bb +++ /dev/null @@ -1,43 +0,0 @@ -# (c) Copyright 2012 Hewlett-Packard Development Company, L.P. - -DESCRIPTION = "a simple, small, minimal, C++ XML parser" -HOMEPAGE = "http://www.sourceforge.net/projects/tinyxml" -LICENSE = "Zlib" -LIC_FILES_CHKSUM = "file://readme.txt;md5=f8f366f3370dda889f60faa7db162cf4" -SECTION = "libs" - -PR = "r5" - -SRC_URI = "${SOURCEFORGE_MIRROR}/tinyxml/tinyxml_${@'${PV}'.replace('.', '_')}.tar.gz \ - file://enforce-use-stl.patch \ - file://entity-encoding.patch" -SRC_URI[md5sum] = "c1b864c96804a10526540c664ade67f0" -SRC_URI[sha256sum] = "15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593" - -S = "${WORKDIR}/tinyxml" - -CXXFLAGS += "-fPIC" - -do_compile() { - ${CXX} ${CXXFLAGS} -I${S} -c -o ${S}/tinyxml.o ${S}/tinyxml.cpp - ${CXX} ${CXXFLAGS} -I${S} -c -o ${S}/tinyxmlerror.o ${S}/tinyxmlerror.cpp - ${CXX} ${CXXFLAGS} -I${S} -c -o ${S}/tinyxmlparser.o ${S}/tinyxmlparser.cpp - ${CXX} ${CXXFLAGS} \ - -shared \ - -Wl,-soname,libtinyxml.so.${PV} \ - -o ${S}/libtinyxml.so.${PV} \ - ${LDFLAGS} \ - ${S}/tinyxml.o \ - ${S}/tinyxmlparser.o \ - ${S}/tinyxmlerror.o -} - -do_install() { - install -d ${D}${libdir} - install -m 0755 ${S}/libtinyxml.so.${PV} ${D}${libdir} - ln -sf libtinyxml.so.${PV} ${D}${libdir}/libtinyxml.so - - install -d ${D}${includedir} - install -m 0644 ${S}/tinyxml.h ${D}${includedir} -} - diff --git a/meta-openvuplus/recipes-support/libunwind/libunwind-1.0.1/0001-mips-compile-_UPTi_find_unwind_table.patch b/meta-openvuplus/recipes-support/libunwind/libunwind-1.0.1/0001-mips-compile-_UPTi_find_unwind_table.patch deleted file mode 100644 index 93416ec..0000000 --- a/meta-openvuplus/recipes-support/libunwind/libunwind-1.0.1/0001-mips-compile-_UPTi_find_unwind_table.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 2724f0b9f0c61fd5be8c09f1680863f65898b508 Mon Sep 17 00:00:00 2001 -From: Andreas Oberritter -Date: Tue, 10 Apr 2012 01:03:41 +0200 -Subject: [PATCH] mips: compile _UPTi_find_unwind_table() - -c.f. http://lists.gnu.org/archive/html/libunwind-devel/2010-11/msg00012.html ---- - src/ptrace/_UPT_find_proc_info.c | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/src/ptrace/_UPT_find_proc_info.c b/src/ptrace/_UPT_find_proc_info.c -index ee0b698..2123447 100644 ---- a/src/ptrace/_UPT_find_proc_info.c -+++ b/src/ptrace/_UPT_find_proc_info.c -@@ -147,7 +147,7 @@ _UPTi_find_unwind_table (struct UPT_info *ui, unw_addr_space_t as, - } - - #elif UNW_TARGET_X86 || UNW_TARGET_X86_64 || UNW_TARGET_HPPA \ --|| UNW_TARGET_PPC32 || UNW_TARGET_PPC64 || UNW_TARGET_ARM -+|| UNW_TARGET_PPC32 || UNW_TARGET_PPC64 || UNW_TARGET_ARM || UNW_TARGET_MIPS - - #include "dwarf-eh.h" - #include "dwarf_i.h" --- -1.7.5.4 - diff --git a/meta-openvuplus/recipes-support/libunwind/libunwind.inc b/meta-openvuplus/recipes-support/libunwind/libunwind.inc deleted file mode 100644 index def5b98..0000000 --- a/meta-openvuplus/recipes-support/libunwind/libunwind.inc +++ /dev/null @@ -1,15 +0,0 @@ -SUMMARY = "A library to determine the call-chain of a program" -HOMEPAGE = "http://www.nongnu.org/libunwind" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://COPYING;md5=2d80c8ed4062b8339b715f90fa68cc9f" -INC_PR = "r3" - -SRC_URI += "http://download.savannah.nongnu.org/releases/${BPN}/${BPN}-${PV}.tar.gz;name=archive" - -S = "${WORKDIR}/${PN}-${PV}" - -inherit autotools - -EXTRA_OECONF_arm = "--enable-debug-frame" - -BBCLASSEXTEND = "native" diff --git a/meta-openvuplus/recipes-support/libunwind/libunwind_1.0.1.bb b/meta-openvuplus/recipes-support/libunwind/libunwind_1.0.1.bb deleted file mode 100644 index 7d901b0..0000000 --- a/meta-openvuplus/recipes-support/libunwind/libunwind_1.0.1.bb +++ /dev/null @@ -1,7 +0,0 @@ -PR = "${INC_PR}.0" - -SRC_URI += "file://0001-mips-compile-_UPTi_find_unwind_table.patch" -SRC_URI[archive.md5sum] = "993e47cca7315e22239c3e0d987e94e0" -SRC_URI[archive.sha256sum] = "aa95fd184c0b90d95891c2f3bac2c7df708ff016d2a6ee8b2eabb769f864101f" - -require libunwind.inc diff --git a/meta-openvuplus/recipes-support/libxmlccwrap/files/use-pkgconfig.patch b/meta-openvuplus/recipes-support/libxmlccwrap/files/use-pkgconfig.patch new file mode 100644 index 0000000..cb01fad --- /dev/null +++ b/meta-openvuplus/recipes-support/libxmlccwrap/files/use-pkgconfig.patch @@ -0,0 +1,25 @@ +Index: libxmlccwrap-0.0.12/configure.ac +=================================================================== +--- libxmlccwrap-0.0.12.orig/configure.ac ++++ libxmlccwrap-0.0.12/configure.ac +@@ -14,7 +14,7 @@ AC_DISABLE_STATIC + AC_PROG_LIBTOOL + AM_PROG_LIBTOOL + +-AC_CHECK_LIB(xml2,main) ++PKG_CHECK_MODULES(XML2, [libxml-2.0]) + #AC_CHECK_LIB(xslt,main) + + AC_OUTPUT([Makefile \ +Index: libxmlccwrap-0.0.12/xmlccwrap/Makefile.am +=================================================================== +--- libxmlccwrap-0.0.12.orig/xmlccwrap/Makefile.am ++++ libxmlccwrap-0.0.12/xmlccwrap/Makefile.am +@@ -1,6 +1,6 @@ + lib_LTLIBRARIES = libxmlccwrap.la + +-INCLUDES = -I$(top_srcdir) `xml2-config --cflags` `xslt-config --cflags` ++AM_CPPFLAGS = -I$(top_srcdir) $(XML2_CFLAGS) + + libxmlccwrap_la_LDFLAGS = -release $(VERSION) + libxmlccwrap_la_SOURCES=xmlccwrap.cc libxmlexport.cc diff --git a/meta-openvuplus/recipes-support/libxmlccwrap/libxmlccwrap_0.0.12.bb b/meta-openvuplus/recipes-support/libxmlccwrap/libxmlccwrap_0.0.12.bb index 51b934a..57f2fce 100644 --- a/meta-openvuplus/recipes-support/libxmlccwrap/libxmlccwrap_0.0.12.bb +++ b/meta-openvuplus/recipes-support/libxmlccwrap/libxmlccwrap_0.0.12.bb @@ -10,12 +10,14 @@ PR = "r1" SRC_URI = "http://www.ant.uni-bremen.de/whomes/rinas/libxmlccwrap/download/${P}.tar.gz \ file://dont_build_unneeded.patch \ file://disable_libxslt.patch \ - file://fix_assignment_operator.patch" + file://fix_assignment_operator.patch \ + file://use-pkgconfig.patch \ +" SRC_URI[md5sum] = "9f8bbad3452d704603246273b2dda758" SRC_URI[sha256sum] = "38fb5f75f8b7dad1c8d535cc7b18ea9f1603e14a8b9256a2f60cf721513dc299" -inherit autotools +inherit autotools pkgconfig FILES_${PN} = "${libdir}/${P}${SOLIBSDEV}" FILES_${PN}-dev = "${includedir} ${libdir}/${PN}${SOLIBSDEV} ${libdir}/*.la" diff --git a/meta-openvuplus/recipes-support/lzma/lzma-4.65/001-large_files.patch b/meta-openvuplus/recipes-support/lzma/lzma-4.65/001-large_files.patch new file mode 100644 index 0000000..b95fe9e --- /dev/null +++ b/meta-openvuplus/recipes-support/lzma/lzma-4.65/001-large_files.patch @@ -0,0 +1,13 @@ +Index: lzma-4.65/CPP/7zip/Compress/LZMA_Alone/makefile.gcc +=================================================================== +--- lzma-4.65.orig/CPP/7zip/Compress/LZMA_Alone/makefile.gcc 2009-05-15 23:33:51.000000000 +0200 ++++ lzma-4.65/CPP/7zip/Compress/LZMA_Alone/makefile.gcc 2009-06-01 22:00:54.000000000 +0200 +@@ -3,7 +3,7 @@ + CXX_C = gcc -O2 -Wall + LIB = -lm + RM = rm -f +-CFLAGS = -c ++CFLAGS = -c -D_FILE_OFFSET_BITS=64 + + ifdef SystemDrive + IS_MINGW = 1 diff --git a/meta-openvuplus/recipes-support/lzma/lzma-4.65/002-lzmp.patch b/meta-openvuplus/recipes-support/lzma/lzma-4.65/002-lzmp.patch new file mode 100644 index 0000000..72d881c --- /dev/null +++ b/meta-openvuplus/recipes-support/lzma/lzma-4.65/002-lzmp.patch @@ -0,0 +1,1059 @@ +Index: lzma-4.65/CPP/7zip/Compress/LZMA_Alone/lzmp.cpp +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ lzma-4.65/CPP/7zip/Compress/LZMA_Alone/lzmp.cpp 2009-06-01 22:01:10.000000000 +0200 +@@ -0,0 +1,895 @@ ++/* ++ * LZMA command line tool similar to gzip to encode and decode LZMA files. ++ * ++ * Copyright (C) 2005 Ville Koskinen ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License ++ * as published by the Free Software Foundation; either version 2 ++ * of the License, or (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, ++ * USA. ++ */ ++ ++#include "../../../Common/MyInitGuid.h" ++ ++#include ++using std::cout; ++using std::cerr; ++using std::endl; ++ ++#include ++#include ++#include ++ ++#include ++using std::string; ++#include ++using std::vector; ++typedef vector stringVector; ++ ++#include ++#include ++#include ++ ++#include ++#include ++#include ++#include // futimes() ++ ++// For Solaris ++#ifndef HAVE_FUTIMES ++//#define futimes(fd, tv) futimesat(fd, NULL, tv) ++#endif ++ ++#if defined(_WIN32) || defined(OS2) || defined(MSDOS) ++#include ++#include ++#define MY_SET_BINARY_MODE(file) setmode(fileno(file),O_BINARY) ++#else ++#define MY_SET_BINARY_MODE(file) ++#endif ++ ++#include "../../../7zip/Common/FileStreams.h" ++ ++#include "../../../Common/Types.h" ++ ++#include "../../../7zip/Compress/LzmaDecoder.h" ++#include "../../../7zip/Compress/LzmaEncoder.h" ++ ++#include "Exception.h" ++ ++#include "lzma_version.h" ++ ++namespace lzma { ++ ++const char *PROGRAM_VERSION = PACKAGE_VERSION; ++const char *PROGRAM_COPYRIGHT = "Copyright (C) 2006 Ville Koskinen"; ++ ++/* LZMA_Alone switches: ++ -a{N}: set compression mode - [0, 2], default: 2 (max) ++ -d{N}: set dictionary - [0,28], default: 23 (8MB) ++ -fb{N}: set number of fast bytes - [5, 255], default: 128 ++ -lc{N}: set number of literal context bits - [0, 8], default: 3 ++ -lp{N}: set number of literal pos bits - [0, 4], default: 0 ++ -pb{N}: set number of pos bits - [0, 4], default: 2 ++ -mf{MF_ID}: set Match Finder: [bt2, bt3, bt4, bt4b, pat2r, pat2, ++ pat2h, pat3h, pat4h, hc3, hc4], default: bt4 ++*/ ++ ++struct lzma_option { ++ short compression_mode; // -a ++ short dictionary; // -d ++ short fast_bytes; // -fb ++ wchar_t *match_finder; // -mf ++ short literal_context_bits; // -lc ++ short literal_pos_bits; // -lp ++ short pos_bits; // -pb ++}; ++ ++/* The following is a mapping from gzip/bzip2 style -1 .. -9 compression modes ++ * to the corresponding LZMA compression modes. Thanks, Larhzu, for coining ++ * these. */ ++const lzma_option option_mapping[] = { ++ { 0, 0, 0, NULL, 0, 0, 0}, // -0 (needed for indexing) ++ { 0, 16, 64, L"hc4", 3, 0, 2}, // -1 ++ { 0, 20, 64, L"hc4", 3, 0, 2}, // -2 ++ { 1, 19, 64, L"bt4", 3, 0, 2}, // -3 ++ { 2, 20, 64, L"bt4", 3, 0, 2}, // -4 ++ { 2, 21, 128, L"bt4", 3, 0, 2}, // -5 ++ { 2, 22, 128, L"bt4", 3, 0, 2}, // -6 ++ { 2, 23, 128, L"bt4", 3, 0, 2}, // -7 ++ { 2, 24, 255, L"bt4", 3, 0, 2}, // -8 ++ { 2, 25, 255, L"bt4", 3, 0, 2}, // -9 ++}; ++ ++struct extension_pair { ++ char *from; ++ char *to; ++}; ++ ++const extension_pair known_extensions[] = { ++ { ".lzma", "" }, ++ { ".tlz", ".tar" }, ++ { NULL, NULL } ++}; ++ ++/* Sorry, I just happen to like enumerations. */ ++enum PROGRAM_MODE { ++ PM_COMPRESS = 0, ++ PM_DECOMPRESS, ++ PM_TEST, ++ PM_HELP, ++ PM_LICENSE, ++ PM_VERSION ++}; ++ ++enum { ++ STATUS_OK = 0, ++ STATUS_ERROR = 1, ++ STATUS_WARNING = 2 ++}; ++ ++/* getopt options. */ ++/* struct option { name, has_arg, flag, val } */ ++const struct option long_options[] = { ++ { "stdout", 0, 0, 'c' }, ++ { "decompress", 0, 0, 'd' }, ++ { "compress", 0, 0, 'z' }, ++ { "keep", 0, 0, 'k' }, ++ { "force", 0, 0, 'f' }, ++ { "test", 0, 0, 't' }, ++ { "suffix", 1, 0, 'S' }, ++ { "quiet", 0, 0, 'q' }, ++ { "verbose", 0, 0, 'v' }, ++ { "help", 0, 0, 'h' }, ++ { "license", 0, 0, 'L' }, ++ { "version", 0, 0, 'V' }, ++ { "fast", 0, 0, '1' }, ++ { "best", 0, 0, '9' }, ++ { 0, 0, 0, 0 } ++}; ++ ++/* getopt option string (for the above options). */ ++const char option_string[] = "cdzkftS:qvhLV123456789A:D:F:"; ++ ++/* Defaults. */ ++PROGRAM_MODE program_mode = PM_COMPRESS; ++int verbosity = 0; ++bool stdinput = false; ++bool stdoutput = false; ++bool keep = false; ++bool force = false; ++int compression_mode = 7; ++//char *suffix = strdup(".lzma"); ++char *suffix = strdup(known_extensions[0].from); ++lzma_option advanced_options = { -1, -1, -1, NULL, -1, -1, -1 }; ++ ++void print_help(const char *const argv0) ++{ ++ // Help goes to stdout while other messages go to stderr. ++ cout << "\nlzma " << PROGRAM_VERSION ++ << " " << PROGRAM_COPYRIGHT << "\n" ++ "Based on LZMA SDK " << LZMA_SDK_VERSION_STRING << " " ++ << LZMA_SDK_COPYRIGHT_STRING ++ << "\n\nUsage: " << argv0 ++ << " [flags and input files in any order]\n" ++" -c --stdout output to standard output\n" ++" -d --decompress force decompression\n" ++" -z --compress force compression\n" ++" -k --keep keep (don't delete) input files\n" ++" -f --force force overwrite of output file and compress links\n" ++" -t --test test compressed file integrity\n" ++" -S .suf --suffix .suf use suffix .suf on compressed files\n" ++" -q --quiet suppress error messages\n" ++" -v --verbose be verbose\n" ++" -h --help print this message\n" ++" -L --license display the license information\n" ++" -V --version display version numbers of LZMA SDK and lzma\n" ++" -1 .. -2 fast compression\n" ++" -3 .. -9 good to excellent compression. -7 is the default.\n" ++" --fast alias for -1\n" ++" --best alias for -9 (usually *not* what you want)\n\n" ++" Memory usage depends a lot on the chosen compression mode -1 .. -9.\n" ++" See the man page lzma(1) for details.\n\n"; ++} ++ ++void print_license(void) ++{ ++ cout << "\n LZMA command line tool " << PROGRAM_VERSION << " - " ++ << PROGRAM_COPYRIGHT ++ << "\n LZMA SDK " << LZMA_SDK_VERSION_STRING << " - " ++ << LZMA_SDK_COPYRIGHT_STRING ++ << "\n This program is a part of the LZMA utils package.\n" ++ " http://tukaani.org/lzma/\n\n" ++" This program is free software; you can redistribute it and/or\n" ++" modify it under the terms of the GNU General Public License\n" ++" as published by the Free Software Foundation; either version 2\n" ++" of the License, or (at your option) any later version.\n" ++"\n" ++" This program is distributed in the hope that it will be useful,\n" ++" but WITHOUT ANY WARRANTY; without even the implied warranty of\n" ++" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" ++" GNU General Public License for more details.\n" ++"\n"; ++} ++ ++void print_version(void) ++{ ++ cout << "LZMA command line tool " << PROGRAM_VERSION << "\n" ++ << "LZMA SDK " << LZMA_SDK_VERSION_STRING << "\n"; ++} ++ ++short str2int (const char *str, const int &min, const int &max) ++{ ++ int value = -1; ++ char *endptr = NULL; ++ if (str == NULL || str[0] == '\0') ++ throw ArgumentException("Invalid integer option"); ++ value = strtol (str, &endptr, 10); ++ if (*endptr != '\0' || value < min || value > max) ++ throw ArgumentException("Invalid integer option"); ++ return value; ++} ++ ++void parse_options(int argc, char **argv, stringVector &filenames) ++{ ++ /* Snatched from getopt(3). */ ++ int c; ++ ++ /* Check how we were called */ ++ { ++ char *p = strrchr (argv[0], '/'); // Remove path prefix, if any ++ if (p++ == NULL) ++ p = argv[0]; ++ if (strstr (p, "un") != NULL) { ++ program_mode = PM_DECOMPRESS; ++ } else if (strstr (p, "cat") != NULL) { ++ program_mode = PM_DECOMPRESS; ++ stdoutput = true; ++ } ++ } ++ ++ while (-1 != (c = getopt_long(argc, argv, option_string, ++ long_options, NULL))) { ++ switch (c) { ++ // stdout ++ case 'c': ++ stdoutput = true; ++ break; ++ ++ // decompress ++ case 'd': ++ program_mode = PM_DECOMPRESS; ++ break; ++ ++ // compress ++ case 'z': ++ program_mode = PM_COMPRESS; ++ break; ++ ++ // keep ++ case 'k': ++ keep = true; ++ break; ++ ++ // force ++ case 'f': ++ force = true; ++ break; ++ ++ // test ++ case 't': ++ program_mode = PM_TEST; ++ break; ++ ++ // suffix ++ case 'S': ++ if (optarg) { ++ free(suffix); ++ suffix = strdup(optarg); ++ } ++ break; ++ ++ // quiet ++ case 'q': ++ verbosity = 0; ++ break; ++ ++ // verbose ++ case 'v': ++ verbosity++; ++ break; ++ ++ // help ++ case 'h': ++ program_mode = PM_HELP; ++ break; ++ ++ // license ++ case 'L': ++ program_mode = PM_LICENSE; ++ break; ++ ++ // version ++ case 'V': ++ program_mode = PM_VERSION; ++ break; ++ ++ case '1': case '2': case '3': case '4': case '5': ++ case '6': case '7': case '8': case '9': ++ compression_mode = c - '0'; ++ break; ++ ++ // Advanced options // ++ // Compression mode ++ case 'A': ++ advanced_options.compression_mode = ++ str2int (optarg, 0, 2); ++ break; ++ ++ // Dictionary size ++ case 'D': ++ advanced_options.dictionary = ++ str2int (optarg, 0, 28); ++ break; ++ ++ // Fast bytes ++ case 'F': ++ advanced_options.fast_bytes = ++ str2int (optarg, 0, 273); ++ break; ++ ++ default: ++ throw ArgumentException(""); ++ break; ++ } // switch(c) ++ } // while(1) ++ ++ for (int i = optind; i < argc; i++) { ++ if (strcmp("-", argv[i]) == 0) ++ continue; ++ filenames.push_back(argv[i]); ++ } ++} // parse_options ++ ++void set_encoder_properties(NCompress::NLzma::CEncoder *encoder, ++ lzma_option &opt) ++{ ++ /* Almost verbatim from LzmaAlone.cpp. */ ++ PROPID propIDs[] = ++ { ++ NCoderPropID::kDictionarySize, ++ NCoderPropID::kPosStateBits, ++ NCoderPropID::kLitContextBits, ++ NCoderPropID::kLitPosBits, ++ NCoderPropID::kAlgorithm, ++ NCoderPropID::kNumFastBytes, ++ NCoderPropID::kMatchFinder, ++ NCoderPropID::kEndMarker ++ }; ++ const int kNumProps = sizeof(propIDs) / sizeof(propIDs[0]); ++#define VALUE(x) (advanced_options.x >= 0 ? advanced_options.x : opt.x) ++ PROPVARIANT properties[kNumProps]; ++ for (int p = 0; p < 6; p++) ++ properties[p].vt = VT_UI4; ++ properties[0].ulVal = UInt32(1 << VALUE (dictionary)); ++ properties[1].ulVal = UInt32(VALUE (pos_bits)); ++ properties[2].ulVal = UInt32(VALUE (literal_context_bits)); ++ properties[3].ulVal = UInt32(VALUE (literal_pos_bits)); ++ properties[4].ulVal = UInt32(VALUE (compression_mode)); ++ properties[5].ulVal = UInt32(VALUE (fast_bytes)); ++#undef VALUE ++ ++ properties[6].vt = VT_BSTR; ++ properties[6].bstrVal = (BSTR)opt.match_finder; ++ ++ properties[7].vt = VT_BOOL; ++ properties[7].boolVal = stdinput ? VARIANT_TRUE : VARIANT_FALSE; ++ ++ if (encoder->SetCoderProperties(propIDs, properties, kNumProps) != S_OK) ++ throw Exception("SetCoderProperties() error"); ++} ++ ++void encode(NCompress::NLzma::CEncoder *encoderSpec, ++ CMyComPtr inStream, ++ CMyComPtr outStream, ++ lzma_option encoder_options, ++ UInt64 fileSize) ++{ ++ set_encoder_properties(encoderSpec, encoder_options); ++ ++ encoderSpec->WriteCoderProperties(outStream); ++ ++ for (int i = 0; i < 8; i++) ++ { ++ Byte b = Byte(fileSize >> (8 * i)); ++ if (outStream->Write(&b, sizeof(b), 0) != S_OK) ++ throw Exception("Write error while encoding"); ++ } ++ ++ HRESULT result = encoderSpec->Code(inStream, outStream, 0, 0, 0); ++ ++ if (result == E_OUTOFMEMORY) ++ throw Exception("Cannot allocate memory"); ++ else if (result != S_OK) { ++ char buffer[33]; ++ snprintf(buffer, 33, "%d", (unsigned int)result); ++ throw Exception(string("Encoder error: ") + buffer); ++ } ++} ++ ++void decode(NCompress::NLzma::CDecoder *decoderSpec, ++ CMyComPtr inStream, ++ CMyComPtr outStream) ++{ ++ const UInt32 kPropertiesSize = 5; ++ Byte properties[kPropertiesSize]; ++ UInt32 processedSize; ++ UInt64 fileSize = 0; ++ ++ if (inStream->Read(properties, kPropertiesSize, &processedSize) != S_OK) ++ throw Exception("Read error"); ++ if (processedSize != kPropertiesSize) ++ throw Exception("Read error"); ++ if (decoderSpec->SetDecoderProperties2(properties, kPropertiesSize) != S_OK) ++ throw Exception("SetDecoderProperties() error"); ++ ++ for (int i = 0; i < 8; i++) ++ { ++ Byte b; ++ ++ if (inStream->Read(&b, sizeof(b), &processedSize) != S_OK) ++ throw Exception("Read error"); ++ if (processedSize != 1) ++ throw Exception("Read error"); ++ ++ fileSize |= ((UInt64)b) << (8 * i); ++ } ++ ++ if (decoderSpec->Code(inStream, outStream, 0, &fileSize, 0) != S_OK) ++ throw Exception("Decoder error"); ++} ++ ++int open_instream(const string infile, ++ CMyComPtr &inStream, ++ UInt64 &fileSize) ++{ ++ CInFileStream *inStreamSpec = new CInFileStream; ++ inStream = inStreamSpec; ++ if (!inStreamSpec->Open(infile.c_str())) ++ throw Exception("Cannot open input file " + infile); ++ ++ inStreamSpec->File.GetLength(fileSize); ++ ++ return inStreamSpec->File.GetHandle(); ++} ++ ++int open_outstream(const string outfile, ++ CMyComPtr &outStream) ++{ ++ COutFileStream *outStreamSpec = new COutFileStream; ++ outStream = outStreamSpec; ++ ++ bool open_by_force = (program_mode == PM_TEST) | force; ++ ++ if (!outStreamSpec->Create(outfile.c_str(), open_by_force)) ++ throw Exception("Cannot open output file " + outfile); ++ ++ return outStreamSpec->File.GetHandle(); ++} ++ ++double get_ratio(int inhandle, int outhandle) ++{ ++ struct stat in_stats, out_stats; ++ fstat(inhandle, &in_stats); ++ fstat(outhandle, &out_stats); ++ ++ return (double)out_stats.st_size / (double)in_stats.st_size; ++} ++ ++mode_t get_file_mode(string filename) ++{ ++ struct stat in_stat; ++ lstat(filename.c_str(), &in_stat); ++ ++ return in_stat.st_mode; ++} ++ ++bool string_ends_with(string str, string ending) ++{ ++ return equal(ending.rbegin(), ending.rend(), str.rbegin()); ++} ++ ++bool extension_is_known(string filename) ++{ ++ bool known_format = false; ++ extension_pair extension; int i = 1; ++ ++ extension = known_extensions[0]; ++ while (extension.from != NULL) { ++ if (string_ends_with(filename, extension.from)) { ++ known_format = true; ++ break; ++ } ++ extension = known_extensions[i]; ++ i++; ++ } ++ ++ if (!known_format) { ++ if (!string_ends_with(filename, suffix)) { ++ return false; ++ } ++ } ++ ++ return true; ++} ++ ++string replace_extension(string filename) ++{ ++ int suffix_starts_at = filename.length() - strlen (suffix); ++ string from_suffix = filename.substr(suffix_starts_at, strlen (suffix)); ++ string ret = filename.substr(0, suffix_starts_at); ++ extension_pair extension; int i = 1; ++ ++ bool found_replacement = false; ++ extension = known_extensions[0]; ++ while (extension.from != NULL) { ++ if (from_suffix.compare(extension.from) == 0) { ++ ret += extension.to; ++ found_replacement = true; ++ break; ++ } ++ ++ extension = known_extensions[i]; ++ i++; ++ } ++ ++ return ret; ++} ++ ++string pretty_print_status(string filename, string output_filename, ++ string ratio) ++{ ++ string ret = ""; ++ ++ ret += filename; ++ ret += ":\t "; ++ ++ if (program_mode == PM_TEST) { ++ ret += "decoded succesfully"; ++ ++ return ret; ++ } ++ ++ if (!stdinput && !stdoutput) { ++ ret += ratio; ++ ret += " -- "; ++ } ++ ++ if (program_mode == PM_COMPRESS) { ++ if (keep) { ++ ret += "encoded succesfully"; ++ ++ return ret; ++ } ++ ++ ret += "replaced with "; ++ ret += output_filename; ++ ++ return ret; ++ } ++ ++ if (program_mode == PM_DECOMPRESS) { ++ if (keep) { ++ ret += "decoded succesfully"; ++ ++ return ret; ++ } ++ ++ ret += "replaced with "; ++ ret += output_filename; ++ ++ return ret; ++ } ++ ++ return ret; ++} ++ ++static string archive_name; // I know, it is crude, but I haven't found any other ++ // way then making a global variable to transfer filename to handler ++ ++void signal_handler (int signum) ++{ ++ unlink (archive_name.c_str()); // deleting ++ signal (signum, SIG_DFL); // we return the default function to used signal ++ kill (getpid(), signum); // and then send this signal to the process again ++} ++ ++} // namespace lzma ++ ++ ++int main(int argc, char **argv) ++{ ++ using namespace lzma; ++ using std::cerr; ++ ++ stringVector filenames; ++ ++ signal (SIGTERM,signal_handler); ++ signal (SIGHUP,signal_handler); ++ signal (SIGINT,signal_handler); ++ ++ try { ++ parse_options(argc, argv, filenames); ++ } ++ catch (...) { ++ return STATUS_ERROR; ++ } ++ ++ if (program_mode == PM_HELP) { ++ print_help(argv[0]); ++ return STATUS_OK; ++ } ++ else if (program_mode == PM_LICENSE) { ++ print_license(); ++ return STATUS_OK; ++ } ++ else if (program_mode == PM_VERSION) { ++ print_version(); ++ return STATUS_OK; ++ } ++ ++ if (filenames.empty()) { ++ stdinput = true; ++ stdoutput = true; ++ ++ /* FIXME: get rid of this */ ++ filenames.push_back("-"); ++ } ++ ++ /* Protection: always create new files with 0600 in order to prevent ++ * outsiders from reading incomplete data. */ ++ umask(0077); ++ ++ bool warning = false; ++ ++ for (int i = 0; i < filenames.size(); i++) { ++ CMyComPtr inStream; ++ CMyComPtr outStream; ++ UInt64 fileSize = 0; ++ int inhandle = 0, outhandle = 0; ++ string output_filename; ++ ++ if (stdinput) { ++ inStream = new CStdInFileStream; ++ MY_SET_BINARY_MODE(stdin); ++ fileSize = (UInt64)(Int64)-1; ++ ++ inhandle = STDIN_FILENO; ++ ++ outStream = new CStdOutFileStream; ++ MY_SET_BINARY_MODE(stdout); ++ ++ outhandle = STDOUT_FILENO; ++ } ++ else { ++ mode_t infile_mode = get_file_mode(filenames[i]); ++ if (!S_ISREG(infile_mode)) { ++ if (S_ISDIR(infile_mode)) { ++ warning = true; ++ cerr << argv[0] << ": " << filenames[i] << ": " ++ << "cowardly refusing to work on directory" ++ << endl; ++ ++ continue; ++ } ++ else if (S_ISLNK(infile_mode)) { ++ if (!stdoutput && !force) { ++ warning = true; ++ ++ cerr << argv[0] << ": " << filenames[i] << ": " ++ << "cowardly refusing to work on symbolic link " ++ << "(use --force to force encoding or decoding)" ++ << endl; ++ ++ continue; ++ } ++ } ++ else { ++ warning = true; ++ ++ cerr << argv[0] << ": " << filenames[i] << ": " ++ << "doesn't exist or is not a regular file" ++ << endl; ++ ++ continue; ++ } ++ } ++ ++ // Test if the file already ends with *suffix. ++ if (program_mode == PM_COMPRESS && !force ++ && string_ends_with(filenames[i], ++ suffix)) { ++ warning = true; ++ ++ cerr << filenames[i] << " already has " ++ << suffix << " suffix -- unchanged\n"; ++ ++ continue; ++ } ++ ++ // Test if the file extension is known. ++ if (program_mode == PM_DECOMPRESS ++ && !extension_is_known(filenames[i])) { ++ warning = true; ++ ++ cerr << filenames[i] << ": " ++ << " unknown suffix -- unchanged" ++ << endl; ++ ++ continue; ++ } ++ ++ try { ++ inhandle = open_instream(filenames[i], inStream, fileSize); ++ } ++ catch (Exception e) { ++ cerr << argv[0] << ": " << e.what() << endl; ++ return STATUS_ERROR; ++ } ++ ++ if (stdoutput) { ++ outStream = new CStdOutFileStream; ++ MY_SET_BINARY_MODE(stdout); ++ ++ outhandle = STDOUT_FILENO; ++ } ++ else { ++ /* Testing mode is nothing else but decoding ++ * and throwing away the result. */ ++ if (program_mode == PM_TEST) ++ output_filename = "/dev/null"; ++ else if (program_mode == PM_DECOMPRESS) ++ output_filename = replace_extension(filenames[i]); ++ else ++ output_filename = filenames[i] ++ + suffix; ++ archive_name = output_filename; ++ ++ try { ++ outhandle = open_outstream(output_filename, outStream); ++ } ++ catch (Exception e) { ++ cerr << argv[0] << ": " << e.what() << endl; ++ return STATUS_ERROR; ++ } ++ } ++ ++ } ++ ++ // Unless --force is specified, do not read/write compressed ++ // data from/to a terminal. ++ if (!force) { ++ if (program_mode == PM_COMPRESS && isatty(outhandle)) { ++ cerr << argv[0] << ": compressed data not " ++ "written to a terminal. Use " ++ "-f to force compression.\n" ++ << argv[0] << ": For help, type: " ++ << argv[0] << " -h\n"; ++ return STATUS_ERROR; ++ } else if (program_mode == PM_DECOMPRESS ++ && isatty(inhandle)) { ++ cerr << argv[0] << ": compressed data not " ++ "read from a terminal. Use " ++ "-f to force decompression.\n" ++ << argv[0] << ": For help, type: " ++ << argv[0] << " -h\n"; ++ return STATUS_ERROR; ++ } ++ } ++ ++ if (program_mode == PM_COMPRESS) { ++ NCompress::NLzma::CEncoder *encoderSpec = ++ new NCompress::NLzma::CEncoder; ++ ++ lzma_option options = option_mapping[compression_mode]; ++ ++ try { ++ encode(encoderSpec, inStream, outStream, options, fileSize); ++ } ++ catch (Exception e) { ++ cerr << argv[0] << ": " << e.what() << endl; ++ unlink(output_filename.c_str()); ++ delete(encoderSpec); ++ ++ return STATUS_ERROR; ++ } ++ ++ delete(encoderSpec); ++ } ++ else { // PM_DECOMPRESS | PM_TEST ++ NCompress::NLzma::CDecoder *decoderSpec = ++ new NCompress::NLzma::CDecoder; ++ ++ try { ++ decode(decoderSpec, inStream, outStream); ++ } ++ catch (Exception e) { ++ cerr << argv[0] << ": " << e.what() << endl; ++ unlink(output_filename.c_str()); ++ delete(decoderSpec); ++ ++ return STATUS_ERROR; ++ } ++ ++ delete(decoderSpec); ++ } ++ ++ /* Set permissions and owners. */ ++ if ( (program_mode == PM_COMPRESS || program_mode == PM_DECOMPRESS ) ++ && (!stdinput && !stdoutput) ) { ++ ++ int ret = 0; ++ struct stat file_stats; ++ ret = fstat(inhandle, &file_stats); ++ ++ ret = fchmod(outhandle, file_stats.st_mode); ++ ret = fchown(outhandle, file_stats.st_uid, file_stats.st_gid); ++ // We need to call fchmod() again, since otherwise the SUID bits ++ // are lost. ++ ret = fchmod(outhandle, file_stats.st_mode); ++ ++ struct timeval file_times[2]; ++ // Access time ++ file_times[0].tv_sec = file_stats.st_atime; ++ file_times[0].tv_usec = 0; ++ // Modification time ++ file_times[1].tv_sec = file_stats.st_mtime; ++ file_times[1].tv_usec = 0; ++ ++ ret = futimes(outhandle, file_times); ++ ++ if (!keep) ++ unlink(filenames[i].c_str()); ++ } ++ ++ if (verbosity > 0) { ++ if (stdoutput) { ++ cerr << filenames[i] << ":\t "; ++ cerr << "decoded succesfully" ++ << endl; ++ } ++ ++ else { ++ char buf[10] = { 0 }; ++ ++ if (program_mode == PM_DECOMPRESS) ++ snprintf(buf, 10, "%.2f%%", ++ (1 - get_ratio(outhandle, inhandle)) * 100); ++ if (program_mode == PM_COMPRESS) ++ snprintf(buf, 10, "%.2f%%", ++ (1 - get_ratio(inhandle, outhandle)) * 100); ++ ++ string ratio = buf; ++ cerr << pretty_print_status(filenames[i], output_filename, ++ ratio) ++ << endl; ++ } ++ } ++ } ++ ++ if (warning) ++ return STATUS_WARNING; ++ ++ return STATUS_OK; ++} ++ +Index: lzma-4.65/CPP/7zip/Compress/LZMA_Alone/Exception.h +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ lzma-4.65/CPP/7zip/Compress/LZMA_Alone/Exception.h 2009-06-01 22:01:10.000000000 +0200 +@@ -0,0 +1,45 @@ ++/* A couple of exceptions for lzmp. ++ * ++ * Copyright (C) 2005 Ville Koskinen ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License ++ * as published by the Free Software Foundation; either version 2 ++ * of the License, or (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ */ ++ ++#ifndef _EXCEPTION_H_ ++#define _EXCEPTION_H_ ++ ++#include ++using std::string; ++ ++class Exception ++{ ++private: ++ string message; ++public: ++ Exception(char *what): message(what) { } ++ Exception(string what): message(what) { } ++ ++ ~Exception() { } ++ ++ string what(void) { return message; } ++}; ++ ++class ArgumentException: public Exception ++{ ++public: ++ ArgumentException(char *what): Exception(what) { } ++ ArgumentException(string what): Exception(what) { } ++ ++ ~ArgumentException() { } ++}; ++ ++#endif ++ +Index: lzma-4.65/CPP/7zip/Compress/LZMA_Alone/makefile.gcc +=================================================================== +--- lzma-4.65.orig/CPP/7zip/Compress/LZMA_Alone/makefile.gcc 2009-06-01 22:00:54.000000000 +0200 ++++ lzma-4.65/CPP/7zip/Compress/LZMA_Alone/makefile.gcc 2009-06-01 22:06:13.000000000 +0200 +@@ -1,9 +1,10 @@ +-PROG = lzma ++PROG = lzma_alone ++PROG2 = lzma + CXX = g++ -O2 -Wall + CXX_C = gcc -O2 -Wall + LIB = -lm + RM = rm -f +-CFLAGS = -c -D_FILE_OFFSET_BITS=64 ++CFLAGS = -c -I ../../../ -D_FILE_OFFSET_BITS=64 -DPACKAGE_VERSION="\"4.32.0beta3\"" + + ifdef SystemDrive + IS_MINGW = 1 +@@ -45,12 +46,35 @@ + Lzma86Dec.o \ + Lzma86Enc.o \ + ++OBJS2 = \ ++ C_FileIO.o \ ++ CRC.o \ ++ Alloc.o \ ++ FileStreams.o \ ++ StreamUtils.o \ ++ InBuffer.o \ ++ OutBuffer.o \ ++ LzmaDecoder.o \ ++ StringConvert.o \ ++ StringToInt.o \ ++ LzmaEncoder.o \ ++ LzmaDec.o \ ++ LzmaEnc.o \ ++ LzFind.o \ ++ 7zCrc.o \ ++ lzmp.o + +-all: $(PROG) ++all: $(PROG) $(PROG2) + + $(PROG): $(OBJS) + $(CXX) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIB) $(LIB2) + ++$(PROG2): $(OBJS2) ++ $(CXX) -o $(PROG2) $(LDFLAGS) $(OBJS2) $(LIB) ++ ++lzmp.o: lzmp.cpp ++ $(CXX) $(CFLAGS) lzmp.cpp ++ + LzmaAlone.o: LzmaAlone.cpp + $(CXX) $(CFLAGS) LzmaAlone.cpp + +@@ -131,5 +153,5 @@ + $(CXX_C) $(CFLAGS) ../../../../C/LzmaUtil/Lzma86Enc.c + + clean: +- -$(RM) $(PROG) $(OBJS) ++ -$(RM) $(PROG) $(PROG2) $(OBJS) + +Index: lzma-4.65/CPP/7zip/Compress/LZMA_Alone/lzma_version.h +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ lzma-4.65/CPP/7zip/Compress/LZMA_Alone/lzma_version.h 2009-06-01 22:01:10.000000000 +0200 +@@ -0,0 +1,31 @@ ++#ifndef LZMA_VERSION_H ++#define LZMA_VERSION_H ++ ++/* ++ Version and copyright information used by LZMA utils. ++*/ ++ ++static const char *LZMA_SDK_VERSION_STRING = "4.43"; ++ ++static const char *LZMA_SDK_COPYRIGHT_STRING = ++ "Copyright (C) 1999-2006 Igor Pavlov"; ++ ++static const char *LZMA_SDK_COPYRIGHT_INFO = ++ " See http://7-zip.org/sdk.html or the documentation of LZMA SDK for\n" ++ " the license. For reference, the version 4.43 is free software\n" ++ " licensed under the GNU LGPL."; ++ ++ ++static const char *LZMA_UTILS_VERSION_STRING = PACKAGE_VERSION; ++ ++static const char *LZMA_UTILS_COPYRIGHT_STRING = ++ "Copyright (C) 2006 Lasse Collin"; ++ ++static const char *LZMA_UTILS_COPYRIGHT_INFO = ++ "This program comes with ABSOLUTELY NO WARRANTY.\n" ++ "You may redistribute copies of this program\n" ++ "under the terms of the GNU General Public License.\n" ++ "For more information about these matters, see the file " ++ "named COPYING.\n"; ++ ++#endif /* ifndef LZMA_VERSION_H */ +Index: lzma-4.65/CPP/Common/C_FileIO.h +=================================================================== +--- lzma-4.65.orig/CPP/Common/C_FileIO.h 2009-05-15 23:33:51.000000000 +0200 ++++ lzma-4.65/CPP/Common/C_FileIO.h 2009-06-01 22:06:56.000000000 +0200 +@@ -24,6 +24,7 @@ + bool Close(); + bool GetLength(UInt64 &length) const; + off_t Seek(off_t distanceToMove, int moveMethod) const; ++ int GetHandle() const { return _handle; } + }; + + class CInFile: public CFileBase diff --git a/meta-openvuplus/recipes-support/lzma/lzma-4.65/003-compile_fixes.patch b/meta-openvuplus/recipes-support/lzma/lzma-4.65/003-compile_fixes.patch new file mode 100644 index 0000000..49ae66b --- /dev/null +++ b/meta-openvuplus/recipes-support/lzma/lzma-4.65/003-compile_fixes.patch @@ -0,0 +1,26 @@ +diff -urN lzma-4.65/CPP/7zip/Common/FileStreams.h lzma-4.65.new/CPP/7zip/Common/FileStreams.h +--- lzma-4.65/CPP/7zip/Common/FileStreams.h 2009-05-15 23:33:51.000000000 +0200 ++++ lzma-4.65.new/CPP/7zip/Common/FileStreams.h 2009-06-01 22:30:01.000000000 +0200 +@@ -72,6 +72,7 @@ + public IOutStream, + public CMyUnknownImp + { ++public: + #ifdef USE_WIN_FILE + NWindows::NFile::NIO::COutFile File; + #else +diff -urN lzma-4.65/CPP/Common/MyWindows.h lzma-4.65.new/CPP/Common/MyWindows.h +--- lzma-4.65/CPP/Common/MyWindows.h 2009-05-15 23:33:51.000000000 +0200 ++++ lzma-4.65.new/CPP/Common/MyWindows.h 2009-06-01 22:29:26.000000000 +0200 +@@ -101,8 +101,11 @@ + + #ifdef __cplusplus + ++#ifndef INITGUID ++#define INITGUID + DEFINE_GUID(IID_IUnknown, + 0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); ++#endif + struct IUnknown + { + STDMETHOD(QueryInterface) (REFIID iid, void **outObject) PURE; diff --git a/meta-openvuplus/recipes-support/lzma/lzma-4.65/100-static_library.patch b/meta-openvuplus/recipes-support/lzma/lzma-4.65/100-static_library.patch new file mode 100644 index 0000000..15ab4e0 --- /dev/null +++ b/meta-openvuplus/recipes-support/lzma/lzma-4.65/100-static_library.patch @@ -0,0 +1,70 @@ +--- a/C/LzmaUtil/makefile.gcc ++++ b/C/LzmaUtil/makefile.gcc +@@ -1,44 +1,53 @@ + PROG = lzma +-CXX = g++ +-LIB = ++CC = gcc ++LIB = liblzma.a + RM = rm -f + CFLAGS = -c -O2 -Wall ++AR = ar ++RANLIB = ranlib + + OBJS = \ +- LzmaUtil.o \ + Alloc.o \ + LzFind.o \ + LzmaDec.o \ + LzmaEnc.o \ ++ LzmaLib.o \ + 7zFile.o \ + 7zStream.o \ + +- + all: $(PROG) + +-$(PROG): $(OBJS) +- $(CXX) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIB) $(LIB2) ++$(PROG): LzmaUtil.o $(LIB) ++ $(CC) -o $(PROG) $(LDFLAGS) $< $(LIB) + + LzmaUtil.o: LzmaUtil.c +- $(CXX) $(CFLAGS) LzmaUtil.c ++ $(CC) $(CFLAGS) LzmaUtil.c ++ ++$(LIB): $(OBJS) ++ rm -f $@ ++ $(AR) rcu $@ $(OBJS) ++ $(RANLIB) $@ + + Alloc.o: ../Alloc.c +- $(CXX) $(CFLAGS) ../Alloc.c ++ $(CC) $(CFLAGS) ../Alloc.c + + LzFind.o: ../LzFind.c +- $(CXX) $(CFLAGS) ../LzFind.c ++ $(CC) $(CFLAGS) ../LzFind.c + + LzmaDec.o: ../LzmaDec.c +- $(CXX) $(CFLAGS) ../LzmaDec.c ++ $(CC) $(CFLAGS) ../LzmaDec.c + + LzmaEnc.o: ../LzmaEnc.c +- $(CXX) $(CFLAGS) ../LzmaEnc.c ++ $(CC) $(CFLAGS) ../LzmaEnc.c ++ ++LzmaLib.o: ../LzmaLib.c ++ $(CC) $(CFLAGS) ../LzmaLib.c + + 7zFile.o: ../7zFile.c +- $(CXX) $(CFLAGS) ../7zFile.c ++ $(CC) $(CFLAGS) ../7zFile.c + + 7zStream.o: ../7zStream.c +- $(CXX) $(CFLAGS) ../7zStream.c ++ $(CC) $(CFLAGS) ../7zStream.c + + clean: +- -$(RM) $(PROG) $(OBJS) ++ -$(RM) $(PROG) *.o *.a diff --git a/meta-openvuplus/recipes-support/lzma/lzma-4.65/makefile-cleanup.patch b/meta-openvuplus/recipes-support/lzma/lzma-4.65/makefile-cleanup.patch new file mode 100644 index 0000000..ccca4d9 --- /dev/null +++ b/meta-openvuplus/recipes-support/lzma/lzma-4.65/makefile-cleanup.patch @@ -0,0 +1,18 @@ +Index: lzma-4.65/C/LzmaUtil/makefile.gcc +=================================================================== +--- lzma-4.65.orig/C/LzmaUtil/makefile.gcc ++++ lzma-4.65/C/LzmaUtil/makefile.gcc +@@ -1,10 +1,10 @@ + PROG = lzma +-CC = gcc ++CC ?= gcc + LIB = liblzma.a + RM = rm -f + CFLAGS = -c -O2 -Wall +-AR = ar +-RANLIB = ranlib ++AR ?= ar ++RANLIB ?= ranlib + + OBJS = \ + Alloc.o \ diff --git a/meta-openvuplus/recipes-support/lzma/lzma.inc b/meta-openvuplus/recipes-support/lzma/lzma.inc new file mode 100644 index 0000000..762c11b --- /dev/null +++ b/meta-openvuplus/recipes-support/lzma/lzma.inc @@ -0,0 +1,35 @@ +DESCRIPTION = "LZMA is a general compression method. LZMA provides high compression ratio and very fast decompression." +HOMEPAGE = "http://www.7-zip.org/" +LICENSE = "LGPL" +LIC_FILES_CHKSUM = "file://lzma.txt;md5=20251cdc2e3793cceab11878d0aa11b1" +INC_PR = "r6" + +SRC_URI = "http://downloads.sourceforge.net/sevenzip/lzma${@bb.data.getVar('PV',d,1).replace('.','')}.tar.bz2;subdir=${BPN}-${PV} \ + file://001-large_files.patch \ + file://002-lzmp.patch \ + file://003-compile_fixes.patch \ + file://100-static_library.patch \ + file://makefile-cleanup.patch" + +EXTRA_OEMAKE = "-f makefile.gcc" + +do_unpack_append() { + bb.process.run("find . -type f -print0 | xargs -0 sed 's/\r$//' -i", cwd=d.getVar("S", True)) +} + +do_compile() { + oe_runmake CFLAGS='${CFLAGS} -c' -C C/LzmaUtil + oe_runmake CXX_C='${CC} ${CFLAGS}' CXX='${CXX} ${CXXFLAGS}' -C CPP/7zip/Compress/LZMA_Alone +} + +do_install() { + install -d ${D}${bindir} ${D}${libdir} + install -m 0755 CPP/7zip/Compress/LZMA_Alone/lzma ${D}${bindir} + oe_libinstall -a -C C/LzmaUtil liblzma ${D}${libdir} +} + +do_populate_sysroot() { +} + +NATIVE_INSTALL_WORKS = "1" +BBCLASSEXTEND = "native" diff --git a/meta-openvuplus/recipes-support/lzma/lzma_4.65.bb b/meta-openvuplus/recipes-support/lzma/lzma_4.65.bb new file mode 100644 index 0000000..5295cd9 --- /dev/null +++ b/meta-openvuplus/recipes-support/lzma/lzma_4.65.bb @@ -0,0 +1,5 @@ +require lzma.inc +PR = "${INC_PR}.1" + +SRC_URI[md5sum] = "29d5ffd03a5a3e51aef6a74e9eafb759" +SRC_URI[sha256sum] = "c935fd04dd8e0e8c688a3078f3675d699679a90be81c12686837e0880aa0fa1e" diff --git a/meta-openvuplus/recipes-support/sqlite/sqlite3_3.7.10.bbappend b/meta-openvuplus/recipes-support/sqlite/sqlite3_3.7.10.bbappend deleted file mode 100644 index f9c383b..0000000 --- a/meta-openvuplus/recipes-support/sqlite/sqlite3_3.7.10.bbappend +++ /dev/null @@ -1,3 +0,0 @@ -PR .= "-vuplus0" - -CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA" diff --git a/meta-openvuplus/recipes-vuplus/aio-grab/aio-grab.bb b/meta-openvuplus/recipes-vuplus/aio-grab/aio-grab.bb index cb0e4bc..b85183d 100755 --- a/meta-openvuplus/recipes-vuplus/aio-grab/aio-grab.bb +++ b/meta-openvuplus/recipes-vuplus/aio-grab/aio-grab.bb @@ -11,6 +11,6 @@ SRC_URI = " \ S = "${WORKDIR}/git" -inherit autotools git-project +inherit autotools git-project pkgconfig diff --git a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps.bb b/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps.bb deleted file mode 100644 index 4ab2603..0000000 --- a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps.bb +++ /dev/null @@ -1,18 +0,0 @@ -DESCRIPTION = "Dreambox Keyboard Keymap files" -LICENSE = "GPL" -LIC_FILES_CHKSUM = "file://${THISDIR}/${PN}/GPL-1.0;md5=e9e36a9de734199567a4d769498f743d" -MAINTAINER = "Felix Domke " - -SRC_URI = "file://dream-de.info file://dream-de.kmap file://eng.info file://eng.kmap" - -PR = "r1" - -FILES_${PN} = "/" -PACKAGE_ARCH = "all" - -do_install() { - install -d ${D}/usr/share/keymaps - for x in dream-de.info dream-de.kmap eng.info eng.kmap; do - install -m 0644 ${WORKDIR}/$x ${D}/usr/share/keymaps/$x - done -} diff --git a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/GPL-1.0 b/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/GPL-1.0 deleted file mode 100644 index 9d4ef93..0000000 --- a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/GPL-1.0 +++ /dev/null @@ -1,252 +0,0 @@ - -GNU General Public License, version 1 - - GNU GENERAL PUBLIC LICENSE - Version 1, February 1989 - - Copyright (C) 1989 Free Software Foundation, Inc. - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The license agreements of most software companies try to keep users -at the mercy of those companies. By contrast, our General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. The -General Public License applies to the Free Software Foundation`s -software and to any other program whose authors commit to using it. -You can use it for your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Specifically, the General Public License is designed to make -sure that you have the freedom to give away or sell copies of free -software, that you receive source code or can get it if you want it, -that you can change the software or use pieces of it in new free -programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of a such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must tell them their rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author`s protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors` reputations. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any program or other work which -contains a notice placed by the copyright holder saying it may be -distributed under the terms of this General Public License. The -"Program", below, refers to any such program or work, and a "work based -on the Program" means either the Program or any work containing the -Program or a portion of it, either verbatim or with modifications. Each -licensee is addressed as "you". - - 1. You may copy and distribute verbatim copies of the Program`s source -code as you receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice and -disclaimer of warranty; keep intact all the notices that refer to this -General Public License and to the absence of any warranty; and give any -other recipients of the Program a copy of this General Public License -along with the Program. You may charge a fee for the physical act of -transferring a copy. - - 2. You may modify your copy or copies of the Program or any portion of -it, and copy and distribute such modifications under the terms of Paragraph -1 above, provided that you also do the following: - - a) cause the modified files to carry prominent notices stating that - you changed the files and the date of any change; and - - b) cause the whole of any work that you distribute or publish, that - in whole or in part contains the Program or any part thereof, either - with or without modifications, to be licensed at no charge to all - third parties under the terms of this General Public License (except - that you may choose to grant warranty protection to some or all - third parties, at your option). - - c) If the modified program normally reads commands interactively when - run, you must cause it, when started running for such interactive use - in the simplest and most usual way, to print or display an - announcement including an appropriate copyright notice and a notice - that there is no warranty (or else, saying that you provide a - warranty) and that users may redistribute the program under these - conditions, and telling the user how to view a copy of this General - Public License. - - d) You may charge a fee for the physical act of transferring a - copy, and you may at your option offer warranty protection in - exchange for a fee. - -Mere aggregation of another independent work with the Program (or its -derivative) on a volume of a storage or distribution medium does not bring -the other work under the scope of these terms. - - 3. You may copy and distribute the Program (or a portion or derivative of -it, under Paragraph 2) in object code or executable form under the terms of -Paragraphs 1 and 2 above provided that you also do one of the following: - - a) accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of - Paragraphs 1 and 2 above; or, - - b) accompany it with a written offer, valid for at least three - years, to give any third party free (except for a nominal charge - for the cost of distribution) a complete machine-readable copy of the - corresponding source code, to be distributed under the terms of - Paragraphs 1 and 2 above; or, - - c) accompany it with the information you received as to where the - corresponding source code may be obtained. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form alone.) - -Source code for a work means the preferred form of the work for making -modifications to it. For an executable file, complete source code means -all the source code for all modules it contains; but, as a special -exception, it need not include source code for modules which are standard -libraries that accompany the operating system on which the executable -file runs, or for standard header files or definitions files that -accompany that operating system. - - 4. You may not copy, modify, sublicense, distribute or transfer the -Program except as expressly provided under this General Public License. -Any attempt otherwise to copy, modify, sublicense, distribute or transfer -the Program is void, and will automatically terminate your rights to use -the Program under this License. However, parties who have received -copies, or rights to use copies, from you under this General Public -License will not have their licenses terminated so long as such parties -remain in full compliance. - - 5. By copying, distributing or modifying the Program (or any work based -on the Program) you indicate your acceptance of this license to do so, -and all its terms and conditions. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the original -licensor to copy, distribute or modify the Program subject to these -terms and conditions. You may not impose any further restrictions on the -recipients` exercise of the rights granted herein. - - 7. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of the license which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -the license, you may choose any version ever published by the Free Software -Foundation. - - 8. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - Appendix: How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to humanity, the best way to achieve this is to make it -free software which everyone can redistribute and change under these -terms. - - To do so, attach the following notices to the program. It is safest to -attach them to the start of each source file to most effectively convey -the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) 19yy - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 1, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) 19xx name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w`. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c` for details. - -The hypothetical commands `show w` and `show c` should show the -appropriate parts of the General Public License. Of course, the -commands you use may be called something other than `show w` and `show -c`; they could even be mouse-clicks or menu items--whatever suits your -program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - program `Gnomovision` (a program to direct compilers to make passes - at assemblers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -That`s all there is to it! - diff --git a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/dream-de.info b/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/dream-de.info deleted file mode 100644 index d7f5b07..0000000 --- a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/dream-de.info +++ /dev/null @@ -1,2 +0,0 @@ -kmap=dream-de.kmap -name=Dreambox Keyboard Deutsch diff --git a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/dream-de.kmap b/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/dream-de.kmap deleted file mode 100644 index 693317a..0000000 Binary files a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/dream-de.kmap and /dev/null differ diff --git a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/eng.info b/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/eng.info deleted file mode 100644 index d73372c..0000000 --- a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/eng.info +++ /dev/null @@ -1,2 +0,0 @@ -kmap=eng.kmap -name=Keyboard English diff --git a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/eng.kmap b/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/eng.kmap deleted file mode 100644 index 15a722f..0000000 Binary files a/meta-openvuplus/recipes-vuplus/dreambox-keymaps/dreambox-keymaps/eng.kmap and /dev/null differ diff --git a/meta-openvuplus/recipes-vuplus/dvbsnoop/dvbsnoop.bb b/meta-openvuplus/recipes-vuplus/dvbsnoop/dvbsnoop.bb index e2d3bca..efbb3e6 100644 --- a/meta-openvuplus/recipes-vuplus/dvbsnoop/dvbsnoop.bb +++ b/meta-openvuplus/recipes-vuplus/dvbsnoop/dvbsnoop.bb @@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" PR = "r1" +SRC_REV = "master" + SRC_URI = "git://git.code.sf.net/p/tuxbox-cvs/apps;protocol=git;tag=${SRC_REV} \ file://acinclude.m4" diff --git a/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-addstreamurl.bb b/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-addstreamurl.bb index cf2ff08..15e6886 100644 --- a/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-addstreamurl.bb +++ b/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-addstreamurl.bb @@ -3,18 +3,13 @@ DESCRIPTION = "Add a stream url to your channellist" PR="r0" -require openplugins.inc +inherit gitpkgv +PV = "2.0+git${SRCPV}" +PKGV = "2.0+git${GITPKGV}" +PR = "r0" -require assume-gplv2.inc - -SRC_URI += "file://addstreamurl_uifix.patch;patch=1;pnum=1" +require openplugins-distutils.inc -PLUGINPATH = "/usr/lib/enigma2/python/Plugins/Extensions/${MODULE}" - -do_install() { - install -d ${D}${PLUGINPATH} - cp -rp ${S}/plugin/* ${D}${PLUGINPATH} -} +require assume-gplv2.inc -FILES_${PN} = "${PLUGINPATH}" -PACKAGES = "${PN}" +SRC_URI += "file://addstreamurl_uifix.patch" diff --git a/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-openwebif.bb b/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-openwebif.bb index fdc9601..889c5cb 100644 --- a/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-openwebif.bb +++ b/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-openwebif.bb @@ -4,15 +4,16 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://README;firstline=10;lastline=12;md5=9c14f792d0aeb54e15490a28c89087f7" DEPENDS = "python-cheetah-native" -RDEPENDS_${PN} = "python-cheetah python-json python-unixadmin python-misc python-pyopenssl aio-grab" +RDEPENDS_${PN} = "python-cheetah python-json python-unixadmin python-misc python-pyopenssl \ + python-shell aio-grab python-compression python-numbers python-zopeinterface \ +" SRCREV_pn-${PN}="c30a9aefcf87387e90f0ddbac61ef1aada8cbd6c" inherit gitpkgv -PV = "0.1+git${SRCPV}" -PKGV = "0.1+git${GITPKGV}" -PR = "r0.82" +PV = "1+git${SRCPV}" +PKGV = "1+git${GITPKGV}" -require openplugins.inc +require openplugins-distutils.inc # Just a quick hack to "compile" it do_compile() { @@ -21,40 +22,9 @@ do_compile() { } PLUGINPATH = "/usr/lib/enigma2/python/Plugins/Extensions/${MODULE}" -do_install() { +do_install_append() { install -d ${D}${PLUGINPATH} cp -rp ${S}/plugin/* ${D}${PLUGINPATH} } -python do_package_prepend () { - boxtypes = [ - ('bm750', 'duo.jpg', 'vu_normal.png'), - ('vuduo2', 'duo2.jpg', 'vu_normal.png'), - ('vusolo', 'solo.jpg', 'vu_normal.png'), - ('vusolo2', 'solo2.jpg', 'vu_normal.png'), - ('vusolose', 'solose.jpg', 'vu_normal.png'), - ('vuzero', 'zero.jpg', 'vu_normal.png'), - ('vuultimo', 'ultimo.jpg', 'vu_ultimo.png'), - ('vuuno', 'uno.jpg', 'vu_normal.png'), - ] - import os - top = '${D}${PLUGINPATH}/public/images/' - target_box = 'unknown.jpg' - target_remote = 'ow_remote.png' - for x in boxtypes: - if x[0] == '${MACHINE}': - target_box = x[1] - target_remote = x[2] - break - for root, dirs, files in os.walk(top + 'boxes', topdown=False): - for name in files: - if target_box != name and name != 'unknown.jpg': - os.remove(os.path.join(root, name)) - for root, dirs, files in os.walk(top + 'remotes', topdown=False): - for name in files: - if target_remote != name and name != 'ow_remote.png': - os.remove(os.path.join(root, name)) -} - FILES_${PN} = "${PLUGINPATH}" -PACKAGES = "${PN}" diff --git a/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-remotestreamconvert.bb b/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-remotestreamconvert.bb index c29cbf3..15f298b 100755 --- a/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-remotestreamconvert.bb +++ b/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-extensions-remotestreamconvert.bb @@ -5,16 +5,11 @@ RDEPENDS_${PN} = "python-shell" PR="r0" -require openplugins.inc +inherit gitpkgv +PV = "2.0+git${SRCPV}" +PKGV = "2.0+git${GITPKGV}" +PR = "r0" -require assume-gplv2.inc - -PLUGINPATH = "/usr/lib/enigma2/python/Plugins/Extensions/${MODULE}" +require openplugins-distutils.inc -do_install() { - install -d ${D}${PLUGINPATH} - cp -rp ${S}/plugin/* ${D}${PLUGINPATH} -} - -FILES_${PN} = "${PLUGINPATH}" -PACKAGES = "${PN}" +require assume-gplv2.inc diff --git a/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-systemplugins-autoshutdown.bb b/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-systemplugins-autoshutdown.bb index 223ef3c..f8d871b 100644 --- a/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-systemplugins-autoshutdown.bb +++ b/meta-openvuplus/recipes-vuplus/e2openplugins/enigma2-plugin-systemplugins-autoshutdown.bb @@ -4,19 +4,17 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" inherit gitpkgv SRCREV = "" -PV = "0.3+git${SRCPV}" -PKGV = "0.3+git${GITPKGV}" -PR = "r3" +PV = "0.6+git${SRCPV}" +PKGV = "0.6+git${GITPKGV}" +PR = "r0" require openplugins.inc -SRC_REV = "406e54cb250fecb5040dba844098140982186668" -SRC_URI = "git://github.com/E2OpenPlugins/e2openplugin-${MODULE}.git;protocol=git;tag=${SRC_REV} \ - file://autoshutdown-default-time_20121207.patch \ - file://autoshutdown-fix-standby_20140407.patch \ - " +SRC_URI += " \ + file://autoshutdown-fix-standby_20141218.patch \ +" -inherit autotools +inherit autotools-brokensep pkgconfig FILES_${PN} = "/" diff --git a/meta-openvuplus/recipes-vuplus/e2openplugins/files/autoshutdown-default-time_20121207.patch b/meta-openvuplus/recipes-vuplus/e2openplugins/files/autoshutdown-default-time_20121207.patch deleted file mode 100644 index 4cfaf21..0000000 --- a/meta-openvuplus/recipes-vuplus/e2openplugins/files/autoshutdown-default-time_20121207.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/src/plugin.py b/src/plugin.py -index 4bb7533..4f90dae 100644 ---- a/src/plugin.py -+++ b/src/plugin.py -@@ -27,7 +27,7 @@ from __init__ import _ - - config.autoshutdown = ConfigSubsection() - config.autoshutdown.time = ConfigInteger(default = 120, limits = (1, 1440)) --config.autoshutdown.inactivetime = ConfigInteger(default = 60, limits = (1, 1440)) -+config.autoshutdown.inactivetime = ConfigInteger(default = 300, limits = (1, 1440)) - config.autoshutdown.autostart = ConfigEnableDisable(default=True) - config.autoshutdown.enableinactivity = ConfigEnableDisable(default=True) - config.autoshutdown.inactivityaction = ConfigSelection(default = "standby", choices = [("standby", _("Standby")), ("deepstandby", _("Deepstandby"))]) -@@ -263,7 +263,7 @@ class AutoShutDownConfiguration(Screen, ConfigListScreen): - config.autoshutdown.time.setValue(120) - config.autoshutdown.autostart.setValue(1) - config.autoshutdown.enableinactivity.setValue(1) -- config.autoshutdown.inactivetime.setValue(60) -+ config.autoshutdown.inactivetime.setValue(300) - config.autoshutdown.inactivityaction.setValue("standby") - config.autoshutdown.epgrefresh.setValue(1) - config.autoshutdown.plugin.setValue(1) diff --git a/meta-openvuplus/recipes-vuplus/e2openplugins/files/autoshutdown-fix-standby_20140407.patch b/meta-openvuplus/recipes-vuplus/e2openplugins/files/autoshutdown-fix-standby_20140407.patch deleted file mode 100644 index d0ef227..0000000 --- a/meta-openvuplus/recipes-vuplus/e2openplugins/files/autoshutdown-fix-standby_20140407.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/src/plugin.py b/src/plugin.py -index 4bb7533..61ba253 100644 ---- a/src/plugin.py -+++ b/src/plugin.py -@@ -30,7 +30,7 @@ config.autoshutdown.time = ConfigInteger(default = 120, limits = (1, 1440)) - config.autoshutdown.inactivetime = ConfigInteger(default = 60, limits = (1, 1440)) - config.autoshutdown.autostart = ConfigEnableDisable(default=True) - config.autoshutdown.enableinactivity = ConfigEnableDisable(default=True) --config.autoshutdown.inactivityaction = ConfigSelection(default = "standby", choices = [("standby", _("Standby")), ("deepstandby", _("Deepstandby"))]) -+config.autoshutdown.inactivityaction = ConfigSelection(default = "standby", choices = [("standby", _("Idle Server Mode")), ("deepstandby", _("Standby"))]) - config.autoshutdown.inactivitymessage = ConfigYesNo(default=True) - config.autoshutdown.messagetimeout = ConfigInteger(default = 5, limits = (1, 60)) - config.autoshutdown.epgrefresh = ConfigYesNo(default=True) -@@ -99,7 +99,7 @@ class AutoShutDownActions: - if config.autoshutdown.inactivitymessage.value == True: - self.asdkeyaction = None - if config.autoshutdown.inactivityaction.value == "standby": -- self.asdkeyaction = _("Go to standby") -+ self.asdkeyaction = _("Go to idle server mode") - elif config.autoshutdown.inactivityaction.value == "deepstandby": - self.asdkeyaction = _("Power off STB") - session.openWithCallback(shutdownactions.actionEndKeyTimer, MessageBox, _("AutoShutDown: %s ?") % self.asdkeyaction, MessageBox.TYPE_YESNO, timeout=config.autoshutdown.messagetimeout.value) -@@ -207,7 +207,7 @@ class AutoShutDownConfiguration(Screen, ConfigListScreen): - self.list = [] - self.list.append(getConfigListEntry(_("Enable AutoShutDown:"), config.autoshutdown.autostart)) - if config.autoshutdown.autostart.value == True: -- self.list.append(getConfigListEntry(_("Time in standby for power off (min):"), config.autoshutdown.time)) -+ self.list.append(getConfigListEntry(_("Time in idle server mode for power off (min):"), config.autoshutdown.time)) - self.list.append(getConfigListEntry(_("Enable action after inactivity:"), config.autoshutdown.enableinactivity)) - if config.autoshutdown.enableinactivity.value == True: - self.list.append(getConfigListEntry(_("Time for inactivity (min):"), config.autoshutdown.inactivetime)) diff --git a/meta-openvuplus/recipes-vuplus/e2openplugins/files/autoshutdown-fix-standby_20141218.patch b/meta-openvuplus/recipes-vuplus/e2openplugins/files/autoshutdown-fix-standby_20141218.patch new file mode 100644 index 0000000..5adfa4c --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/e2openplugins/files/autoshutdown-fix-standby_20141218.patch @@ -0,0 +1,53 @@ +diff --git a/src/plugin.py b/src/plugin.py +index f76f534..7493e67 100644 +--- a/src/plugin.py ++++ b/src/plugin.py +@@ -39,7 +39,7 @@ config.autoshutdown.time = ConfigInteger(default = 120, limits = (1, 1440)) + config.autoshutdown.inactivetime = ConfigInteger(default = 300, limits = (1, 1440)) + config.autoshutdown.autostart = ConfigEnableDisable(default = False) + config.autoshutdown.enableinactivity = ConfigEnableDisable(default = False) +-config.autoshutdown.inactivityaction = ConfigSelection(default = "standby", choices = [("standby", _("Standby")), ("deepstandby", _("Deepstandby"))]) ++config.autoshutdown.inactivityaction = ConfigSelection(default = "standby", choices = [("standby", _("Idle Server Mode")), ("deepstandby", _("Standby"))]) + config.autoshutdown.inactivitymessage = ConfigYesNo(default = True) + config.autoshutdown.messagetimeout = ConfigInteger(default = 20, limits = (1, 99)) + config.autoshutdown.epgrefresh = ConfigYesNo(default = True) +@@ -191,7 +191,7 @@ class AutoShutDownActions: + if config.autoshutdown.inactivitymessage.value == True: + self.asdkeyaction = None + if config.autoshutdown.inactivityaction.value == "standby": +- self.asdkeyaction = _("Go to standby") ++ self.asdkeyaction = _("Go to idle server mode") + elif config.autoshutdown.inactivityaction.value == "deepstandby": + self.asdkeyaction = _("Power off STB") + if config.autoshutdown.play_media.value and os_path.exists(config.autoshutdown.media_file.value): +@@ -268,12 +268,12 @@ def startSetup(menuid): + def Plugins(**kwargs): + if config.autoshutdown.plugin.value: + return [PluginDescriptor(where = [PluginDescriptor.WHERE_SESSIONSTART, PluginDescriptor.WHERE_AUTOSTART], fnc = autostart), +- PluginDescriptor(name=_("AutoShutDown Setup"), description=_("configure automated power off / standby"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup), +- PluginDescriptor(name=_("AutoShutDown Setup"), description=_("configure automated power off / standby"), where = PluginDescriptor.WHERE_PLUGINMENU, icon="autoshutdown.png", fnc=main), +- PluginDescriptor(name=_("AutoShutDown Setup"), description=_("configure automated power off / standby"), where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=main)] ++ PluginDescriptor(name=_("AutoShutDown Setup"), description=_("configure automated power off / idle mode"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup), ++ PluginDescriptor(name=_("AutoShutDown Setup"), description=_("configure automated power off / idle mode"), where = PluginDescriptor.WHERE_PLUGINMENU, icon="autoshutdown.png", fnc=main), ++ PluginDescriptor(name=_("AutoShutDown Setup"), description=_("configure automated power off / idle mode"), where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=main)] + else: + return [PluginDescriptor(where = [PluginDescriptor.WHERE_SESSIONSTART, PluginDescriptor.WHERE_AUTOSTART], fnc = autostart), +- PluginDescriptor(name=_("AutoShutDown Setup"), description=_("configure automated power off / standby"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup)] ++ PluginDescriptor(name=_("AutoShutDown Setup"), description=_("configure automated power off / idle mode"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup)] + + class AutoShutDownConfiguration(Screen, ConfigListScreen): + skin = """ +@@ -312,10 +312,10 @@ class AutoShutDownConfiguration(Screen, ConfigListScreen): + def createConfigList(self): + self.get_media = getConfigListEntry(_("Choose media file") + " (" + config.autoshutdown.media_file.value + ")", config.autoshutdown.fake_entry) + self.list = [] +- self.list.append(getConfigListEntry("---------- " + _("Configuration for automatic power off in standby"), config.autoshutdown.fake_entry)) +- self.list.append(getConfigListEntry(_("Enable automatic power off in standby:"), config.autoshutdown.autostart)) ++ self.list.append(getConfigListEntry("---------- " + _("Configuration for automatic power off in idle server mode"), config.autoshutdown.fake_entry)) ++ self.list.append(getConfigListEntry(_("Enable automatic power off in idle server mode:"), config.autoshutdown.autostart)) + if config.autoshutdown.autostart.value == True: +- self.list.append(getConfigListEntry(_("Time in standby for power off (min):"), config.autoshutdown.time)) ++ self.list.append(getConfigListEntry(_("Time in idle server mode for power off (min):"), config.autoshutdown.time)) + self.list.append(getConfigListEntry(_("Disable power off for given interval:"), config.autoshutdown.exclude_time_off)) + if config.autoshutdown.exclude_time_off.value: + self.list.append(getConfigListEntry(_("Begin of excluded interval (hh:mm):"), config.autoshutdown.exclude_time_off_begin)) diff --git a/meta-openvuplus/recipes-vuplus/e2openplugins/openplugins-distutils.inc b/meta-openvuplus/recipes-vuplus/e2openplugins/openplugins-distutils.inc index 34d57ab..bbffc92 100755 --- a/meta-openvuplus/recipes-vuplus/e2openplugins/openplugins-distutils.inc +++ b/meta-openvuplus/recipes-vuplus/e2openplugins/openplugins-distutils.inc @@ -1,5 +1,3 @@ require openplugins.inc -inherit distutils - -DISTUTILS_INSTALL_ARGS = "--root=${D} --install-lib=/usr/lib/enigma2/python/Plugins" +inherit distutils-openplugins diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2-plugins.bb b/meta-openvuplus/recipes-vuplus/enigma2/enigma2-plugins.bb index d532eac..7893df7 100755 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2-plugins.bb +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2-plugins.bb @@ -11,7 +11,7 @@ SRCREV="c8fc96e8e51e1ef71e1709f9dd6f733007f9463e" SRCDATE="20110215" BRANCH="master" PV = "experimental-git${SRCDATE}" -PR = "r10" +PR = "r11" FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" @@ -22,27 +22,30 @@ EXTRA_OECONF = " \ HOST_SYS=${HOST_SYS} \ STAGING_INCDIR=${STAGING_INCDIR} \ STAGING_LIBDIR=${STAGING_LIBDIR} \ + --with-gstversion=1.0 \ " SRC_URI_append_vuplus = " \ - file://enigma2_plugins_mytube_tpm.patch;patch=1;pnum=1 \ - file://enigma2_plugins_20121113.patch;patch=1;pnum=1 \ - file://enigma2_plugins_webinterface_tpm.patch;patch=1;pnum=1 \ - file://enigma2_plugins_ac3lipsync_dolby.patch;patch=1;pnum=1 \ - file://enigma2_plugins_autoresolution_fix.patch;patch=1;pnum=1 \ - file://enigma2_plugins_fancontrol2.patch;patch=1;pnum=1 \ - file://enigma2_plugins_gst_plugins_pkgname.patch;patch=1;pnum=1 \ - file://dreamboxweb.png \ - file://dreamboxwebtv.png \ - file://favicon.ico \ - file://Makefile.am " + file://enigma2_plugins_mytube_tpm.patch \ + file://enigma2_plugins_20121113.patch \ + file://enigma2_plugins_webinterface_tpm.patch \ + file://enigma2_plugins_ac3lipsync_dolby.patch \ + file://enigma2_plugins_autoresolution_fix.patch \ + file://enigma2_plugins_fancontrol2.patch \ + file://enigma2_plugins_gst_plugins_pkgname.patch \ + file://enigma2_plugins_gst10_support.patch \ + file://dreamboxweb.png \ + file://dreamboxwebtv.png \ + file://favicon.ico \ + file://Makefile.am \ +" FILES_${PN} += " /usr/share/enigma2 /usr/share/fonts " FILES_${PN}-meta = "${datadir}/meta" PACKAGES += "${PN}-meta" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit autotools +inherit autotools-brokensep pythonnative pkgconfig S = "${WORKDIR}/git" @@ -50,39 +53,39 @@ DEPENDS = "python-pyopenssl python-gdata streamripper python-mutagen python-daap DEPENDS += "enigma2" def modify_po(): - import os - try: - os.system("find ./ -name \"*.po\" > ./po_list") - os.system("find ./ -name \"*.pot\" >> ./po_list") - po_list = [] - po_list = open('po_list','r+').readlines() - for x in po_list: - changeword1(x) - changeword1('enigma2-plugins/networkwizard/src/networkwizard.xml ') - changeword2('enigma2-plugins/webinterface/src/web-data/tpl/default/index.html ') - os.system('rm po_list') - except: - print 'word patch error ' - return + import os + try: + os.system("find ./ -name \"*.po\" > ./po_list") + os.system("find ./ -name \"*.pot\" >> ./po_list") + po_list = [] + po_list = open('po_list','r+').readlines() + for x in po_list: + changeword1(x) + changeword1('enigma2-plugins/networkwizard/src/networkwizard.xml ') + changeword2('enigma2-plugins/webinterface/src/web-data/tpl/default/index.html ') + os.system('rm po_list') + except: + print 'word patch error ' + return def changeword1(file): - fn = file[:-1] - fnn = file[:-1]+'_n' - cmd = "sed s/Dreambox/STB/g "+fn+" > "+fnn - os.system(cmd) - cmd1 = "mv "+fnn+" "+fn - os.system(cmd1) + fn = file[:-1] + fnn = file[:-1]+'_n' + cmd = "sed s/Dreambox/STB/g "+fn+" > "+fnn + os.system(cmd) + cmd1 = "mv "+fnn+" "+fn + os.system(cmd1) def changeword2(file): - fn = file[:-1] - fnn = file[:-1]+'_n' - cmd = "sed s/Dreambox/Vu+/g "+fn+" > "+fnn - os.system(cmd) - cmd1 = "mv "+fnn+" "+fn - os.system(cmd1) + fn = file[:-1] + fnn = file[:-1]+'_n' + cmd = "sed s/Dreambox/Vu+/g "+fn+" > "+fnn + os.system(cmd) + cmd1 = "mv "+fnn+" "+fn + os.system(cmd1) do_unpack_append(){ - modify_po() + modify_po() } do_configure_prepend_vuplus() { @@ -96,30 +99,37 @@ do_install_append_vuplus() { } python populate_packages_prepend() { - enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d) - do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)', 'enigma2-plugin-%s', '%s', recursive=True, match_path=True, prepend=True) - do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/.*\.la$', 'enigma2-plugin-%s-dev', '%s (development)', recursive=True, match_path=True, prepend=True) - do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/.*\.a$', 'enigma2-plugin-%s-staticdev', '%s (static development)', recursive=True, match_path=True, prepend=True) - do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/\.debug/', 'enigma2-plugin-%s-dbg', '%s (debug)', recursive=True, match_path=True, prepend=True) - def parseControlFile(dir, d, package): - import os - #ac3lipsync is renamed since 20091121 to audiosync.. but rename in cvs is not possible without lost of revision history.. - #so the foldername is still ac3lipsync - if package == 'audiosync': - package = 'ac3lipsync' - src = open(dir + "/" + package.split('-')[-1] + "/CONTROL/control").read() - for line in src.splitlines(): - name, value = line.strip().split(': ', 1) - if name == 'Description': - d.setVar('DESCRIPTION_' + package, value) - elif name == 'Depends': - d.setVar('RDEPENDS_' + package, ' '.join(value.split(', '))) - elif name == 'Replaces': - d.setVar('RREPLACES_' + package, ' '.join(value.split(', '))) - elif name == 'Conflicts': - d.setVar('RCONFLICTS_' + package, ' '.join(value.split(', '))) - srcdir = d.getVar('S', True) - for package in d.getVar('PACKAGES', True).split(): - if package.startswith('enigma2-plugin-') and not package.endswith('-dev') and not package.endswith('-dbg') and not package.endswith('-staticdev'): - parseControlFile(srcdir, d, package) + enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d) + do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)', 'enigma2-plugin-%s', '%s', recursive=True, match_path=True, prepend=True) + do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/.*\.la$', 'enigma2-plugin-%s-dev', '%s (development)', recursive=True, match_path=True, prepend=True) + do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/.*\.a$', 'enigma2-plugin-%s-staticdev', '%s (static development)', recursive=True, match_path=True, prepend=True) + do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/\.debug/', 'enigma2-plugin-%s-dbg', '%s (debug)', recursive=True, match_path=True, prepend=True) + def parseControlFile(dir, d, package): + import os + #ac3lipsync is renamed since 20091121 to audiosync.. but rename in cvs is not possible without lost of revision history.. + #so the foldername is still ac3lipsync + if package == 'audiosync': + package = 'ac3lipsync' + src = open(dir + "/" + package.split('-')[-1] + "/CONTROL/control").read() + for line in src.splitlines(): + name, value = line.strip().split(': ', 1) + if name == 'Description': + d.setVar('DESCRIPTION_' + package, value) + elif name == 'Depends': + rdepends = [] + for depend in value.split(','): + depend = depend.strip() + if depend.startswith('enigma2') and not depend.startswith('enigma2-'): + rdepends.append('enigma2') + else: + rdepends.append(depend) + d.setVar('RDEPENDS_' + package, ' '.join(rdepends)) + elif name == 'Replaces': + d.setVar('RREPLACES_' + package, ' '.join(value.split(', '))) + elif name == 'Conflicts': + d.setVar('RCONFLICTS_' + package, ' '.join(value.split(', '))) + srcdir = d.getVar('S', True) + for package in d.getVar('PACKAGES', True).split(): + if package.startswith('enigma2-plugin-') and not package.endswith('-dev') and not package.endswith('-dbg') and not package.endswith('-staticdev'): + parseControlFile(srcdir, d, package) } diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2-plugins/enigma2_plugins_gst10_support.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2-plugins/enigma2_plugins_gst10_support.patch new file mode 100644 index 0000000..ddba4f1 --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2-plugins/enigma2_plugins_gst10_support.patch @@ -0,0 +1,67 @@ +commit c5618b4c1fb10d9bb8a6128857aa2e8a7cf396b2 +Author: hschang +Date: Thu Jan 22 15:52:21 2015 +0900 + + gst10 patch + +diff --git a/configure.ac b/configure.ac +index 106756e..f03a743 100755 +--- a/configure.ac ++++ b/configure.ac +@@ -22,8 +22,13 @@ AX_PTHREAD + + TUXBOX_APPS_DVB + ++dnl versions of gstreamer and plugins-base ++AC_ARG_WITH(gstversion, ++ AS_HELP_STRING([--with-gstversion],[use gstreamer version (major.minor)]), ++ [GST_MAJORMINOR=$withval],[GST_MAJORMINOR=0.10]) ++ + PKG_CHECK_MODULES(ENIGMA2, enigma2) +-PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10 gstreamer-pbutils-0.10) ++PKG_CHECK_MODULES(GSTREAMER, gstreamer-$GST_MAJORMINOR gstreamer-pbutils-$GST_MAJORMINOR) + PKG_CHECK_MODULES(LIBCRYPTO, libcrypto) + + AC_ARG_WITH(debug, +diff --git a/merlinmusicplayer/src/merlinmp3player/merlinmp3player.cpp b/merlinmusicplayer/src/merlinmp3player/merlinmp3player.cpp +index 0f25e41..56b3760 100644 +--- a/merlinmusicplayer/src/merlinmp3player/merlinmp3player.cpp ++++ b/merlinmusicplayer/src/merlinmp3player/merlinmp3player.cpp +@@ -123,7 +123,11 @@ eServiceMerlinMP3Player::eServiceMerlinMP3Player(eServiceReference ref): m_ref( + g_object_set (G_OBJECT (source), "location", m_filename.c_str(), NULL); + gst_bin_add_many (GST_BIN (m_gst_pipeline), source, decoder, sink, NULL); + gst_element_link_many (source, decoder, sink, NULL); ++#if GST_VERSION_MAJOR < 1 + gst_bus_set_sync_handler(gst_pipeline_get_bus (GST_PIPELINE (m_gst_pipeline)), gstBusSyncHandler, this); ++#else ++ gst_bus_set_sync_handler(gst_pipeline_get_bus (GST_PIPELINE (m_gst_pipeline)), gstBusSyncHandler, this, NULL); ++#endif + gst_element_set_state (m_gst_pipeline, GST_STATE_PLAYING); + } + else +@@ -240,8 +244,11 @@ RESULT eServiceMerlinMP3Player::getLength(pts_t &pts) + + GstFormat fmt = GST_FORMAT_TIME; + gint64 len; +- ++#if GST_VERSION_MAJOR < 1 + if (!gst_element_query_duration(m_gst_pipeline, &fmt, &len)) ++#else ++ if (!gst_element_query_duration(m_gst_pipeline, fmt, &len)) ++#endif + return -1; + + /* len is in nanoseconds. we have 90 000 pts per second. */ +@@ -295,8 +302,11 @@ RESULT eServiceMerlinMP3Player::getPlayPosition(pts_t &pts) + + GstFormat fmt = GST_FORMAT_TIME; + gint64 len; +- ++#if GST_VERSION_MAJOR < 1 + if (!gst_element_query_position(m_gst_pipeline, &fmt, &len)) ++#else ++ if (!gst_element_query_position(m_gst_pipeline, fmt, &len)) ++#endif + return -1; + + /* len is in nanoseconds. we have 90 000 pts per second. */ diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2-plugins/enigma2_plugins_gst_plugins_pkgname.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2-plugins/enigma2_plugins_gst_plugins_pkgname.patch index cee82c6..d12bc61 100644 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2-plugins/enigma2_plugins_gst_plugins_pkgname.patch +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2-plugins/enigma2_plugins_gst_plugins_pkgname.patch @@ -7,7 +7,7 @@ index 6255b30..d955011 100644 Description: a client to use last.fm, the social music revolution Maintainer: 3c5x9 <3c5x9@gmx.net> -Depends: enigma2 (>> 1.0git20070908), python-twisted-web, gst-plugin-neonhttpsrc, python-crypt -+Depends: enigma2 (>> 1.0git20070908), python-twisted-web, gst-plugins-bad-neonhttpsrc, python-crypt ++Depends: enigma2 (>> 1.0git20070908), python-twisted-web, gstreamer1.0-plugins-bad-neonhttpsrc, python-crypt diff --git a/mytube/CONTROL/control b/mytube/CONTROL/control index 43f3093..6f343c9 100644 --- a/mytube/CONTROL/control @@ -17,7 +17,7 @@ index 43f3093..6f343c9 100644 Maintainer: Mladen Horvat Homepage: http://www.dream-multimedia-tv.de/ -Depends: enigma2 (>= 2.6git20090520), python-twisted-web, python-gdata, gst-plugin-flv -+Depends: enigma2 (>= 2.6git20090520), python-twisted-web, python-gdata, gst-plugins-good-flv ++Depends: enigma2 (>= 2.6git20090520), python-twisted-web, python-gdata, gstreamer1.0-plugins-good-flv diff --git a/netcaster/CONTROL/control b/netcaster/CONTROL/control index 0e69a47..83ac563 100644 --- a/netcaster/CONTROL/control @@ -27,7 +27,7 @@ index 0e69a47..83ac563 100644 Maintainer: 3c5x9 <3c5x9@gmx.net> Homepage: http://enigma2-plugins.schwerkraft.elitedvb.net/ -Depends: enigma2 (>= 1.0git20071803), gst-plugin-neonhttpsrc (>= 0.10.4), gst-plugin-icydemux (>= 0.10.14) -+Depends: enigma2 (>= 1.0git20071803), gst-plugins-bad-neonhttpsrc (>= 0.10.4), gst-plugins-good-icydemux (>= 0.10.14) ++Depends: enigma2 (>= 1.0git20071803), gstreamer1.0-plugins-bad-neonhttpsrc (>= 0.10.4), gstreamer1.0-plugins-good-icydemux (>= 0.10.14) diff --git a/podcast/CONTROL/control b/podcast/CONTROL/control index 4bce2da..24209f5 100644 --- a/podcast/CONTROL/control @@ -37,7 +37,7 @@ index 4bce2da..24209f5 100644 Maintainer: Nabil Hanna Homepage: http://www.lt-forums.org/ali -Depends: enigma2 (>= 2.6git20090520), gst-plugin-neonhttpsrc, python-twisted-web -+Depends: enigma2 (>= 2.6git20090520), gst-plugins-good-neonhttpsrc, pythons-twisted-web ++Depends: enigma2 (>= 2.6git20090520), gstreamer1.0-plugins-good-neonhttpsrc, pythons-twisted-web diff --git a/zdfmediathek/src/plugin.py b/zdfmediathek/src/plugin.py index b46d12f..3b27d56 100644 --- a/zdfmediathek/src/plugin.py @@ -47,7 +47,7 @@ index b46d12f..3b27d56 100644 try: #FIXMEE add better check ! ? ! - for line in popen("opkg info gst-plugin-rtsp").readlines(): -+ for line in popen("opkg info gst-plugins-good-rtsp").readlines(): ++ for line in popen("opkg info gstreamer1.0-plugins-good-rtsp").readlines(): if line.find("Version: ") != -1: if line[9:] >= "0.10.23-r7.1": PLAY_MP4 = True diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2-skins.bb b/meta-openvuplus/recipes-vuplus/enigma2/enigma2-skins.bb index f224870..8cae406 100755 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2-skins.bb +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2-skins.bb @@ -19,22 +19,22 @@ FILES_${PN}-meta = "${datadir}/meta" PACKAGES += "${PN}-meta" PACKAGE_ARCH = "all" -inherit autotools +inherit autotools-brokensep S = "${WORKDIR}/git" python populate_packages_prepend () { - enigma2_skindir = bb.data.expand('${datadir}/enigma2', d) + enigma2_skindir = bb.data.expand('${datadir}/enigma2', d) - do_split_packages(d, enigma2_skindir, '(.*?)/.*', 'enigma2-skin-%s', 'Enigma2 Skin: %s', recursive=True, match_path=True, prepend=True) + do_split_packages(d, enigma2_skindir, '(.*?)/.*', 'enigma2-skin-%s', 'Enigma2 Skin: %s', recursive=True, match_path=True, prepend=True) } python populate_packages_append () { - enigma2_skindir = bb.data.expand('${datadir}/enigma2', d) + enigma2_skindir = bb.data.expand('${datadir}/enigma2', d) - #clear rdepends by default - for package in bb.data.getVar('PACKAGES', d, 1).split(): - bb.data.setVar('RDEPENDS_' + package, '', d) + #clear rdepends by default + for package in bb.data.getVar('PACKAGES', d, 1).split(): + bb.data.setVar('RDEPENDS_' + package, '', d) - #todo add support for control files in skindir.. like plugins + #todo add support for control files in skindir.. like plugins } diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2-transtreamproxy.bb b/meta-openvuplus/recipes-vuplus/enigma2/enigma2-transtreamproxy.bb index 08ad116..393b936 100644 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2-transtreamproxy.bb +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2-transtreamproxy.bb @@ -14,7 +14,7 @@ SRCREV_pn-${PN} ?= "${AUTOREV}" DEPENDS += "boost" SRC_URI = "git://code.vuplus.com/git/filestreamproxy.git;protocol=git;branch=transtreamproxy" -inherit autotools +inherit autotools-brokensep S = "${WORKDIR}/git" diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb b/meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb index 635c224..7464f06 100644 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb @@ -1,37 +1,140 @@ DESCRIPTION = "Enigma2 is an experimental, but useful framebuffer-based frontend for DVB functions" -MAINTAINER = "Felix Domke " +MAINTAINER = "vuplus team" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://LICENSE;md5=c9e255efa454e0155c1fd758df7dcaf3" -DEPENDS = "jpeg libungif libmad libpng libsigc++-1.2 gettext-native \ - dreambox-dvbincludes freetype libdvbsi++ python swig-native \ - libfribidi libxmlccwrap libdreamdvd gstreamer gst-plugin-dvbmediasink \ - gst-plugins-bad gst-plugins-good gst-plugins-ugly python-wifi \ - hostap-daemon bridge-utils ntfs-3g dosfstools util-linux \ -" -RDEPENDS_GST= "gst-plugins-base-decodebin gst-plugins-base-decodebin2 gst-plugins-base-app gst-plugins-bad-fragmented \ - gst-plugins-good-id3demux gst-plugins-ugly-mad gst-plugins-base-ogg gst-plugins-base-playbin \ - gst-plugins-base-typefindfunctions gst-plugins-base-audioconvert gst-plugins-base-audioresample \ - gst-plugins-good-wavparse gst-plugins-ugly-mpegstream \ - gst-plugins-good-flac gst-plugin-dvbmediasink gst-plugins-bad-mpegdemux gst-plugins-ugly-dvdsub \ - gst-plugins-good-souphttpsrc gst-plugins-ugly-mpegaudioparse gst-plugins-base-subparse \ - gst-plugins-good-apetag gst-plugins-good-icydemux gst-plugins-good-autodetect gst-plugins-good-flv \ - gst-plugins-bad-mms gst-plugins-ugly-asf gst-plugins-bad-faad \ -" +DEPENDS = " \ + jpeg \ + giflib \ + libmad \ + libpng \ + libsigc++-1.2 \ + gettext-native \ + dreambox-dvbincludes \ + freetype \ + libdvbsi++ \ + python \ + swig-native \ + libfribidi \ + libxml2 \ + libxmlccwrap \ + libdreamdvd \ + ${@base_contains("GST_VERSION", "1.0", "gstreamer1.0-plugins-base gstreamer1.0", "gst-plugins-base gstreamer", d)} \ + python-wifi \ + hostapd \ + bridge-utils \ + ntfs-3g \ + dosfstools \ + util-linux \ + " -RDEPENDS_${PN} = "python-codecs python-core python-lang python-re python-threading \ - python-xml python-fcntl python-stringold python-pickle python-netclient \ - glibc-gconv-iso8859-15 ethtool parted \ - ${RDEPENDS_GST} \ -" +RDEPENDS_${PN} = " \ + alsa-conf \ + ethtool \ + glibc-gconv-iso8859-15 \ + parted \ + ${PYTHON_RDEPS} \ + ${GST_RDEPENDS} \ + " -GST_RTSP_RDEPENDS = "gst-plugins-good-udp gst-plugins-good-rtsp gst-plugins-good-rtp gst-plugins-good-rtpmanager" -GST_ALSA_RDEPENDS = "gst-plugins-base-alsa alsa-conf" -GST_MISC_RDEPENDS = "gst-plugins-good-matroska gst-plugins-good-isomp4 gst-plugins-base-vorbis gst-plugins-good-audioparsers" -GST_DVD_RDEPENDS = "gst-plugins-bad-cdxaparse gst-plugins-ugly-cdio gst-plugins-bad-vcdsrc" -GST_BASE_RDEPENDS = "${GST_ALSA_RDEPENDS} ${GST_MISC_RDEPENDS} ${GST_RTSP_RDEPENDS}" +PYTHON_RDEPS = " \ + python-codecs \ + python-core \ + python-lang \ + python-re \ + python-threading \ + python-xml \ + python-fcntl \ + python-stringold \ + python-pickle \ + python-netclient \ + " -RDEPENDS_append_vuplus = " ${GST_BASE_RDEPENDS} ${GST_DVD_RDEPENDS} gst-plugins-good-avi" +GST_RDEPENDS = "${@base_contains('GST_VERSION', '1.0', ' \ + gstreamer1.0-plugin-dvbmediasink \ + gstreamer1.0-plugin-subsink \ + gstreamer1.0-plugins-base-alsa \ + gstreamer1.0-plugins-base-app \ + gstreamer1.0-plugins-base-audioconvert \ + gstreamer1.0-plugins-base-audioresample \ + gstreamer1.0-plugins-base-ogg \ + gstreamer1.0-plugins-base-playback \ + gstreamer1.0-plugins-base-subparse \ + gstreamer1.0-plugins-base-typefindfunctions \ + gstreamer1.0-plugins-base-vorbis \ + gstreamer1.0-plugins-good-apetag \ + gstreamer1.0-plugins-good-audioparsers \ + gstreamer1.0-plugins-good-autodetect \ + gstreamer1.0-plugins-good-avi \ + gstreamer1.0-plugins-good-flac \ + gstreamer1.0-plugins-good-flv \ + gstreamer1.0-plugins-good-icydemux \ + gstreamer1.0-plugins-good-id3demux \ + gstreamer1.0-plugins-good-isomp4 \ + gstreamer1.0-plugins-good-matroska \ + gstreamer1.0-plugins-good-rtp \ + gstreamer1.0-plugins-good-rtpmanager \ + gstreamer1.0-plugins-good-rtsp \ + gstreamer1.0-plugins-good-souphttpsrc \ + gstreamer1.0-plugins-good-udp \ + gstreamer1.0-plugins-good-wavparse \ + gstreamer1.0-plugins-bad-faad \ + gstreamer1.0-plugins-bad-fragmented \ + gstreamer1.0-plugins-bad-videoparsersbad \ + gstreamer1.0-plugins-bad-mms \ + gstreamer1.0-plugins-bad-mpegpsdemux \ + gstreamer1.0-plugins-bad-mpegtsdemux \ + gstreamer1.0-plugins-ugly-asf \ + gstreamer1.0-plugins-ugly-cdio \ + gstreamer1.0-plugins-ugly-dvdsub \ + gstreamer1.0-plugins-ugly-mad \ + gstreamer1.0-plugins-ugly-amrnb \ + gstreamer1.0-plugins-ugly-amrwbdec \ + ', ' \ + gst-plugin-dvbmediasink \ + gst-plugin-subsink \ + gst-plugins-base-alsa \ + gst-plugins-base-app \ + gst-plugins-base-audioconvert \ + gst-plugins-base-audioresample \ + gst-plugins-base-decodebin \ + gst-plugins-base-decodebin2 \ + gst-plugins-base-ogg \ + gst-plugins-base-playbin \ + gst-plugins-base-subparse \ + gst-plugins-base-typefindfunctions \ + gst-plugins-base-vorbis \ + gst-plugins-good-apetag \ + gst-plugins-good-audioparsers \ + gst-plugins-good-autodetect \ + gst-plugins-good-avi \ + gst-plugins-good-flac \ + gst-plugins-good-flv \ + gst-plugins-good-icydemux \ + gst-plugins-good-id3demux \ + gst-plugins-good-isomp4 \ + gst-plugins-good-matroska \ + gst-plugins-good-rtp \ + gst-plugins-good-rtpmanager \ + gst-plugins-good-rtsp \ + gst-plugins-good-souphttpsrc \ + gst-plugins-good-udp \ + gst-plugins-good-wavparse \ + gst-plugins-bad-cdxaparse \ + gst-plugins-bad-faad \ + gst-plugins-bad-mms \ + gst-plugins-bad-mpegdemux \ + gst-plugins-bad-vcdsrc \ + gst-plugins-bad-fragmented \ + gst-plugins-ugly-asf \ + gst-plugins-ugly-cdio \ + gst-plugins-ugly-dvdsub \ + gst-plugins-ugly-mad \ + gst-plugins-ugly-mpegstream \ + gst-plugins-ugly-mpegaudioparse \ + gst-plugins-ugly-amrnb \ + gst-plugins-ugly-amrwbdec \ + ', d)}" # 'forward depends' - no two providers can have the same PACKAGES_DYNAMIC, however both # enigma2 and enigma2-plugins produce enigma2-plugin-*. @@ -66,9 +169,12 @@ SUMMARY_enigma2-plugin-systemplugins-networkwizard = "provides easy step by step RDEPENDS_enigma2-plugin-extensions-webbrowser = "python-gdata libqtwebkite4 vuplus-webbrowser-utils qt4-embedded-fonts qt4-embedded-plugin-imageformat-gif qt4-embedded-plugin-imageformat-ico qt4-embedded-plugin-imageformat-jpeg qt4-embedded-plugin-imageformat-mng qt4-embedded-plugin-imageformat-svg qt4-embedded-plugin-imageformat-tiff qt4-embedded-plugin-iconengine-svgicon " SUMMARY_enigma2-plugin-systemplugins-crashreport = "automatically send crashlogs to Vu+" RDEPENDS_enigma2-plugin-systemplugins-crashreport = "python-twisted-mail python-twisted-names python-compression python-mime python-email" -RDEPENDS_enigma2-plugin-systemplugins-wirelessaccesspoint = "hostap-daemon bridge-utils" +RDEPENDS_enigma2-plugin-systemplugins-wirelessaccesspoint = "hostapd bridge-utils" -RDEPENDS_enigma2-plugin-extensions-streamtv = "librtmp0 gst-plugins-bad-rtmp " +RDEPENDS_enigma2-plugin-extensions-streamtv = " \ + librtmp1 \ + ${@base_contains("GST_VERSION", "1.0", "gstreamer1.0-plugins-bad-rtmp", "gst-plugins-bad-rtmp", d)} \ +" DEPENDS += "djmount minidlna" RDEPENDS_enigma2-plugin-extensions-dlnaserver = "minidlna " @@ -89,70 +195,75 @@ RDEPENDS_enigma2-plugin-systemplugins-backupsuitehdd = "mtd-utils-mkfs.ubifs mtd RDEPENDS_enigma2-plugin-systemplugins-backupsuiteusb = "enigma2-plugin-extensions-backupsuitehdd" DEPENDS += "${@base_contains("VUPLUS_FEATURES", "uianimation", "libgles libvugles2" , "", d)}" -RDEPENDS_append_vuplus += "${@base_contains("VUPLUS_FEATURES", "uianimation", "libgles libvugles2" , "", d)}" +RDEPENDS_${PN}_append_vuplus += "${@base_contains("VUPLUS_FEATURES", "uianimation", "libgles libvugles2" , "", d)}" PN = "enigma2" -PR = "r97" +PR = "r101" -SRCDATE = "20121128" -#SRCDATE is NOT used by git to checkout a specific revision -#but we need it to build a ipk package version -#when you like to checkout a specific revision of e2 you need -#have to specify a commit id or a tag name in SRCREV +inherit gitpkgv pythonnative #################################################### -BRANCH = "vuplus_experimental" +SRCDATE = "20121128" PV = "experimental-git${SRCDATE}" +BRANCH = "vuplus_experimental_gst10" SRCREV = "" #################################################### # enigma2_vuplus_mediaplayer.patch is for trick-play in media player -SRC_URI = "git://code.vuplus.com/git/dvbapp.git;protocol=http;branch=${BRANCH};tag=${SRCREV} \ - file://enigma2_vuplus_skin.patch;patch=1;pnum=1 \ - file://enigma2_vuplus_mediaplayer.patch;patch=1;pnum=1 \ - file://enigma2_vuplus_mediaplayer_subtitle.patch;patch=1;pnum=1 \ - file://enigma2_vuplus_remove_dreambox_enigma.patch;patch=1;pnum=1 \ - file://enigma2_vuplus_vfd_mode.patch;patch=1;pnum=1 \ - file://enigma2_vuplus_addlibpythondeps.patch;patch=1;pnum=1 \ - file://enigma2_vuplus_pluginbrowser.patch;striplevel=1 \ - file://enigma2_vuplus_proc_oom_score_adj.patch;striplevel=1 \ - file://enigma2_vuplus_fix_standby_name.patch \ - file://enigma2_vuplus_fix_standby_name_skin.patch \ - file://MyriadPro-Regular.otf \ - file://MyriadPro-Semibold.otf \ - file://MyriadPro-SemiboldIt.otf \ - file://750S \ - file://Vu_HD \ - file://number_key \ - " - -SRC_URI_append = " ${@base_contains("VUPLUS_FEATURES", "vuwlan", "file://enigma2_vuplus_networksetup.patch;patch=1;pnum=1", "", d)}" +SRC_URI = "git://code.vuplus.com/git/dvbapp.git;protocol=http;branch=${BRANCH};rev=${SRCREV} \ + file://enigma2_vuplus_skin.patch \ + file://enigma2_vuplus_mediaplayer.patch \ + file://enigma2_vuplus_remove_dreambox_enigma.patch \ + file://enigma2_vuplus_vfd_mode.patch \ + file://enigma2_vuplus_pluginbrowser.patch \ + file://enigma2_vuplus_proc_oom_score_adj.patch \ + file://enigma2_vuplus_fix_standby_name.patch \ + file://enigma2_vuplus_fix_standby_name_skin.patch \ + file://enigma2_vuplus_epng.patch \ + file://enigma2_vuplus_eptrlist_insert.patch \ + file://enigma2_vuplus_conversion_error.patch \ + file://enigma2_vuplus_default_arg_error.patch \ + file://enigma2_vuplus_wrong_boolean_type.patch \ + file://enigma2_vuplus_disable_subtitle_sync_mode_bug.patch \ + file://MyriadPro-Regular.otf \ + file://MyriadPro-Semibold.otf \ + file://MyriadPro-SemiboldIt.otf \ + file://750S \ + file://Vu_HD \ + file://number_key \ +" + +SRC_URI_append = " ${@base_contains('GST_VERSION', '1.0', '', 'file://enbalesubtitleshack.patch', d)}" + +SRC_URI_append = " ${@base_contains("VUPLUS_FEATURES", "vuwlan", "file://enigma2_vuplus_networksetup.patch", "", d)}" + +LDFLAGS_prepend = "${@base_contains('GST_VERSION', '1.0', ' -lxml2 ', '', d)}" def change_po(): - import os - try: - os.system("find ./ -name \"*.po\" > ./po_list") - os.system("find ./ -name \"*.pot\" >> ./po_list") - po_list = [] - po_list = open('po_list','r+').readlines() - for x in po_list: - changeword(x) - os.system('rm po_list') - except: - print 'word patch error ' - return + import os + try: + os.system("find ./ -name \"*.po\" > ./po_list") + os.system("find ./ -name \"*.pot\" >> ./po_list") + po_list = [] + po_list = open('po_list','r+').readlines() + for x in po_list: + changeword(x) + os.system('rm po_list') + except: + print 'word patch error ' + return def changeword(file): - fn = file[:-1] - fnn = file[:-1]+'_n' - cmd = "sed s/Dreambox/STB/g "+fn+" > "+fnn - os.system(cmd) - cmd1 = "mv "+fnn+" "+fn - os.system(cmd1) + fn = file[:-1] + fnn = file[:-1]+'_n' + cmd = "sed s/Dreambox/STB/g "+fn+" > "+fnn + os.system(cmd) + cmd1 = "mv "+fnn+" "+fn + os.system(cmd1) do_unpack_append(){ - change_po() + change_po() } S = "${WORKDIR}/git" @@ -162,50 +273,49 @@ FILES_${PN}-meta = "${datadir}/meta" PACKAGES += "${PN}-meta" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit autotools pkgconfig +inherit autotools-brokensep pkgconfig pythonnative do_configure_prepend() { git checkout ${BRANCH} } do_compile_prepend_vuplus() { - install -m 0755 ${WORKDIR}/MyriadPro-Regular.otf ${S}/data/fonts/ - install -m 0755 ${WORKDIR}/MyriadPro-Semibold.otf ${S}/data/fonts/ - install -m 0755 ${WORKDIR}/MyriadPro-SemiboldIt.otf ${S}/data/fonts/ - install -m 0755 ${WORKDIR}/750S/*.png ${S}/data/750S/ - install -m 0755 ${WORKDIR}/750S/buttons/*.png ${S}/data/750S/buttons/ - install -m 0755 ${WORKDIR}/750S/countries/*.png ${S}/data/750S/countries/ - install -m 0755 ${WORKDIR}/750S/icons/*.png ${S}/data/750S/icons/ - install -m 0755 ${WORKDIR}/750S/menu/*.png ${S}/data/750S/menu/ - install -m 0755 ${WORKDIR}/750S/spinner/*.png ${S}/data/skin_default/spinner/ - install -m 0755 ${WORKDIR}/Vu_HD/*.png ${S}/data/Vu_HD/ - install -m 0755 ${WORKDIR}/Vu_HD/buttons/*.png ${S}/data/Vu_HD/buttons/ - install -m 0755 ${WORKDIR}/Vu_HD/countries/*.png ${S}/data/Vu_HD/countries/ - install -m 0755 ${WORKDIR}/Vu_HD/icons/*.png ${S}/data/Vu_HD/icons/ - install -m 0755 ${WORKDIR}/Vu_HD/menu/*.png ${S}/data/Vu_HD/menu/ - install -m 0755 ${WORKDIR}/number_key/*.png ${S}/data/skin_default/buttons/ + install -m 0755 ${WORKDIR}/MyriadPro-Regular.otf ${S}/data/fonts/ + install -m 0755 ${WORKDIR}/MyriadPro-Semibold.otf ${S}/data/fonts/ + install -m 0755 ${WORKDIR}/MyriadPro-SemiboldIt.otf ${S}/data/fonts/ + install -m 0755 ${WORKDIR}/750S/*.png ${S}/data/750S/ + install -m 0755 ${WORKDIR}/750S/buttons/*.png ${S}/data/750S/buttons/ + install -m 0755 ${WORKDIR}/750S/countries/*.png ${S}/data/750S/countries/ + install -m 0755 ${WORKDIR}/750S/icons/*.png ${S}/data/750S/icons/ + install -m 0755 ${WORKDIR}/750S/menu/*.png ${S}/data/750S/menu/ + install -m 0755 ${WORKDIR}/750S/spinner/*.png ${S}/data/skin_default/spinner/ + install -m 0755 ${WORKDIR}/Vu_HD/*.png ${S}/data/Vu_HD/ + install -m 0755 ${WORKDIR}/Vu_HD/buttons/*.png ${S}/data/Vu_HD/buttons/ + install -m 0755 ${WORKDIR}/Vu_HD/countries/*.png ${S}/data/Vu_HD/countries/ + install -m 0755 ${WORKDIR}/Vu_HD/icons/*.png ${S}/data/Vu_HD/icons/ + install -m 0755 ${WORKDIR}/Vu_HD/menu/*.png ${S}/data/Vu_HD/menu/ + install -m 0755 ${WORKDIR}/number_key/*.png ${S}/data/skin_default/buttons/ } EXTRA_OECONF = " \ + --enable-dependency-tracking \ + ${@base_contains("GST_VERSION", "1.0", "--with-gstversion=1.0", "", d)} \ ${@base_contains("VUPLUS_FEATURES", "display-text-vfd", "--with-display-text-vfd" , "", d)} \ ${@base_contains("VUPLUS_FEATURES", "display-graphic-vfd", "--with-display-graphic-vfd" , "", d)} \ ${@base_contains("VUPLUS_FEATURES", "right-half-vfd-skin", "--with-set-right-half-vfd-skin" , "", d)} \ ${@base_contains("VUPLUS_FEATURES", "enable-rc-kbd", "--with-remote-keyboard" , "", d)} \ ${@base_contains("VUPLUS_FEATURES", "uianimation", "--with-libvugles2" , "", d)} \ - BUILD_SYS=${BUILD_SYS} \ - HOST_SYS=${HOST_SYS} \ - STAGING_INCDIR=${STAGING_INCDIR} \ - STAGING_LIBDIR=${STAGING_LIBDIR} \ + BUILD_SYS=${BUILD_SYS} \ + HOST_SYS=${HOST_SYS} \ + STAGING_INCDIR=${STAGING_INCDIR} \ + STAGING_LIBDIR=${STAGING_LIBDIR} \ " python populate_packages_prepend() { - enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d) - do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/[a-zA-Z0-9_]+.*$', 'enigma2-plugin-%s', '%s', recursive=True, match_path=True, prepend=True) - do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/.*\.la$', 'enigma2-plugin-%s-dev', '%s (development)', recursive=True, match_path=True, prepend=True) - do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/.*\.a$', 'enigma2-plugin-%s-staticdev', '%s (static development)', recursive=True, match_path=True, prepend=True) - do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/(.*/)?\.debug/.*$', 'enigma2-plugin-%s-dbg', '%s (debug)', recursive=True, match_path=True, prepend=True) + enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d) + do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/[a-zA-Z0-9_]+.*$', 'enigma2-plugin-%s', '%s', recursive=True, match_path=True, prepend=True) + do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/.*\.la$', 'enigma2-plugin-%s-dev', '%s (development)', recursive=True, match_path=True, prepend=True) + do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/.*\.a$', 'enigma2-plugin-%s-staticdev', '%s (static development)', recursive=True, match_path=True, prepend=True) + do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/(.*/)?\.debug/.*$', 'enigma2-plugin-%s-dbg', '%s (debug)', recursive=True, match_path=True, prepend=True) } -RCONFLICTS_${PN} = "dreambox-keymaps" -RREPLACES_${PN} = "dreambox-keymaps tuxbox-tuxtxt-32bpp (<= 0.0+cvs20090130-r1)" - diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enbalesubtitleshack.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enbalesubtitleshack.patch new file mode 100644 index 0000000..4c5d046 --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enbalesubtitleshack.patch @@ -0,0 +1,13 @@ +diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp +index 14c224f..55156b4 100755 +--- a/lib/service/servicemp3.cpp ++++ b/lib/service/servicemp3.cpp +@@ -23,6 +23,8 @@ + + #define HTTP_TIMEOUT 10 + ++#define GSTREAMER_SUBTITLE_SYNC_MODE_BUG ++ + typedef enum + { + GST_PLAY_FLAG_VIDEO = 0x00000001, diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_addlibpythondeps.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_addlibpythondeps.patch deleted file mode 100644 index 71a7c86..0000000 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_addlibpythondeps.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff --git a/lib/python/.deps/connections.Po b/lib/python/.deps/connections.Po -new file mode 100644 -index 0000000..9ce06a8 ---- /dev/null -+++ b/lib/python/.deps/connections.Po -@@ -0,0 +1 @@ -+# dummy -diff --git a/lib/python/.deps/enigma_python.Pcpp b/lib/python/.deps/enigma_python.Pcpp -new file mode 100644 -index 0000000..9ce06a8 ---- /dev/null -+++ b/lib/python/.deps/enigma_python.Pcpp -@@ -0,0 +1 @@ -+# dummy -diff --git a/lib/python/.deps/enigma_python.Po b/lib/python/.deps/enigma_python.Po -new file mode 100644 -index 0000000..9ce06a8 ---- /dev/null -+++ b/lib/python/.deps/enigma_python.Po -@@ -0,0 +1 @@ -+# dummy -diff --git a/lib/python/.deps/python.Po b/lib/python/.deps/python.Po -new file mode 100644 -index 0000000..9ce06a8 ---- /dev/null -+++ b/lib/python/.deps/python.Po -@@ -0,0 +1 @@ -+# dummy diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_conversion_error.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_conversion_error.patch new file mode 100644 index 0000000..1a867c0 --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_conversion_error.patch @@ -0,0 +1,40 @@ +diff --git a/lib/dvb/pmt.cpp b/lib/dvb/pmt.cpp +index febfd78..6a90274 100644 +--- a/lib/dvb/pmt.cpp ++++ b/lib/dvb/pmt.cpp +@@ -268,7 +268,7 @@ void eDVBServicePMTHandler::AITready(int error) + std::string boundaryExtension = ""; + + int controlCode = (*i)->getApplicationControlCode(); +- ApplicationIdentifier * applicationIdentifier = (*i)->getApplicationIdentifier(); ++ const ApplicationIdentifier * applicationIdentifier = (*i)->getApplicationIdentifier(); + profilecode = 0; + orgid = applicationIdentifier->getOrganisationId(); + appid = applicationIdentifier->getApplicationId(); +@@ -285,7 +285,7 @@ void eDVBServicePMTHandler::AITready(int error) + case APPLICATION_DESCRIPTOR: + { + ApplicationDescriptor* applicationDescriptor = (ApplicationDescriptor*)(*desc); +- ApplicationProfileList* applicationProfiles = applicationDescriptor->getApplicationProfiles(); ++ const ApplicationProfileList* applicationProfiles = applicationDescriptor->getApplicationProfiles(); + ApplicationProfileConstIterator interactionit = applicationProfiles->begin(); + for(; interactionit != applicationProfiles->end(); ++interactionit) + { +@@ -353,7 +353,7 @@ void eDVBServicePMTHandler::AITready(int error) + } + if(!hbbtvUrl.empty()) + { +- char* uu = hbbtvUrl.c_str(); ++ const char* uu = hbbtvUrl.c_str(); + if(!strncmp(uu, "http://", 7) || !strncmp(uu, "dvb://", 6) || !strncmp(uu, "https://", 8)) + { + if(controlCode == 1) m_HBBTVUrl = hbbtvUrl; +@@ -420,7 +420,7 @@ void eDVBServicePMTHandler::OCready(int error) + { + for (std::vector::const_iterator it = ptr->getSections().begin(); it != ptr->getSections().end(); ++it) + { +- unsigned char* sectionData = (*it)->getData(); ++ unsigned char* sectionData = (unsigned char*)(*it)->getData(); + } + } + /* for now, do not keep listening for table updates */ diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_default_arg_error.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_default_arg_error.patch new file mode 100644 index 0000000..529dbb3 --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_default_arg_error.patch @@ -0,0 +1,13 @@ +diff --git a/lib/service/servicedvbrecord.cpp b/lib/service/servicedvbrecord.cpp +index 0287acf..dc1b22e 100644 +--- a/lib/service/servicedvbrecord.cpp ++++ b/lib/service/servicedvbrecord.cpp +@@ -15,7 +15,7 @@ + + DEFINE_REF(eDVBServiceRecord); + +-eDVBServiceRecord::eDVBServiceRecord(const eServiceReferenceDVB &ref, bool isstreamclient = false): ++eDVBServiceRecord::eDVBServiceRecord(const eServiceReferenceDVB &ref, bool isstreamclient): + m_ref(ref),m_is_stream_client(isstreamclient) + { + CONNECT(m_service_handler.serviceEvent, eDVBServiceRecord::serviceEvent); diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_disable_subtitle_sync_mode_bug.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_disable_subtitle_sync_mode_bug.patch new file mode 100644 index 0000000..b1d4861 --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_disable_subtitle_sync_mode_bug.patch @@ -0,0 +1,13 @@ +diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp +index d27ce4f..4da7762 100755 +--- a/lib/service/servicemp3.cpp ++++ b/lib/service/servicemp3.cpp +@@ -19,8 +19,6 @@ + #include + #include + +-#define GSTREAMER_SUBTITLE_SYNC_MODE_BUG +- + #define SUBTITLE_DEBUG + + #define HTTP_TIMEOUT 10 diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_epng.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_epng.patch new file mode 100644 index 0000000..037a814 --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_epng.patch @@ -0,0 +1,50 @@ +diff --git a/lib/gdi/epng.cpp b/lib/gdi/epng.cpp +index d8c1982..2ba5a12 100644 +--- a/lib/gdi/epng.cpp ++++ b/lib/gdi/epng.cpp +@@ -1,4 +1,5 @@ + #define PNG_SKIP_SETJMP_CHECK ++#include + #include + #include + #include +@@ -52,7 +53,7 @@ int loadPNG(ePtr &result, const char *filename) + fclose(fp); + return 0; + } +- if (setjmp(png_ptr->jmpbuf)) ++ if ( setjmp(png_jmpbuf(png_ptr)) ) + { + eDebug("das war wohl nix"); + png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); +@@ -145,7 +146,7 @@ int loadPNG(ePtr &result, const char *filename) + for (pass = 0; pass < number_passes; pass++) + for (int y = 0; y < height; y++) + { +- png_read_rows(png_ptr, &rowptr[y], png_bytepp_NULL, 1); ++ png_read_rows(png_ptr, &rowptr[y], NULL, 1); + } + + /* +@@ -323,7 +324,7 @@ int savePNG(const char *filename, gPixmap *pixmap) + PNG_COLOR_TYPE_RGB_ALPHA, + PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT); + +- if (setjmp(png_ptr->jmpbuf)) ++ if ( setjmp(png_jmpbuf(png_ptr)) ) + { + eDebug("error :/"); + png_destroy_write_struct(&png_ptr, &info_ptr); +diff --git a/lib/gdi/picload.cpp b/lib/gdi/picload.cpp +index 2afebd5..ab7a0b5 100644 +--- a/lib/gdi/picload.cpp ++++ b/lib/gdi/picload.cpp +@@ -280,7 +280,7 @@ static unsigned char *png_load(const char *file, int *ox, int *oy, int *_bypp) + return NULL; + } + +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); + fclose(fh); diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_eptrlist_insert.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_eptrlist_insert.patch new file mode 100644 index 0000000..9f58493 --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_eptrlist_insert.patch @@ -0,0 +1,22 @@ +diff --git a/lib/base/eptrlist.h b/lib/base/eptrlist.h +index 0da46da..361323c 100644 +--- a/lib/base/eptrlist.h ++++ b/lib/base/eptrlist.h +@@ -174,7 +174,7 @@ public: + { + // added a new item to the list... in order + // returns a iterator to the new item +- return insert( std::lower_bound( std::list::begin(), std::list::end(), e, less()), e ); ++ return this->insert( std::lower_bound( std::list::begin(), std::list::end(), e, less()), e ); + } + + }; +@@ -804,7 +804,7 @@ public: + { + // added a new item to the list... in order + // returns a iterator to the new item +- return insert( std::lower_bound( std::list >::begin(), e, std::list >::end()), e ); ++ return this->insert( std::lower_bound( std::list >::begin(), e, std::list >::end()), e ); + } + + }; diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_mediaplayer.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_mediaplayer.patch index 813687c..240c7d0 100644 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_mediaplayer.patch +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_mediaplayer.patch @@ -129,86 +129,4 @@ index 80cc196..7abb2ee 100755 self.doSeekRelative(-1) elif self.isStateForward(seekstate): speed = seekstate[1] -diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp -index e79be09..ae4611c 100755 ---- a/lib/service/servicemp3.cpp -+++ b/lib/service/servicemp3.cpp -@@ -245,6 +245,7 @@ eServiceMP3::eServiceMP3(eServiceReference ref) - CONNECT(m_pump.recv_msg, eServiceMP3::gstPoll); - m_aspect = m_width = m_height = m_framerate = m_progressive = -1; - -+ m_cur_rate=1.0; - m_state = stIdle; - eDebug("eServiceMP3::construct!"); - -@@ -540,6 +541,9 @@ RESULT eServiceMP3::unpause() - if (!m_gst_playbin || m_state != stRunning) - return -1; - -+ if(m_cur_rate!=1.0) -+ trickSeek(1); -+ - gst_element_set_state(m_gst_playbin, GST_STATE_PLAYING); - - return 0; -@@ -575,7 +579,7 @@ RESULT eServiceMP3::seekToImpl(pts_t to) - { - /* convert pts to nanoseconds */ - gint64 time_nanoseconds = to * 11111LL; -- if (!gst_element_seek (m_gst_playbin, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, -+ if (!gst_element_seek (m_gst_playbin, m_cur_rate, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, - GST_SEEK_TYPE_SET, time_nanoseconds, - GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE)) - { -@@ -612,19 +616,23 @@ RESULT eServiceMP3::trickSeek(gdouble ratio) - if (!ratio) - return seekRelative(0, 0); - -+ eSingleLocker l(m_subs_to_pull_lock); -+ - GstEvent *s_event; - int flags; - flags = GST_SEEK_FLAG_NONE; - flags |= GST_SEEK_FLAG_FLUSH; - // flags |= GstSeekFlags (GST_SEEK_FLAG_ACCURATE); -- flags |= GST_SEEK_FLAG_KEY_UNIT; -+// flags |= GST_SEEK_FLAG_KEY_UNIT; - // flags |= GstSeekFlags (GST_SEEK_FLAG_SEGMENT); - // flags |= GstSeekFlags (GST_SEEK_FLAG_SKIP); - - GstFormat fmt = GST_FORMAT_TIME; -- gint64 pos, len; -+ pts_t pos; -+ gint64 len; - gst_element_query_duration(m_gst_playbin, &fmt, &len); -- gst_element_query_position(m_gst_playbin, &fmt, &pos); -+ getPlayPosition(pos); -+ pos=pos*11111; - - if ( ratio >= 0 ) - { -@@ -642,7 +650,11 @@ RESULT eServiceMP3::trickSeek(gdouble ratio) - eDebug("eServiceMP3::trickSeek failed"); - return -1; - } -- -+ m_subtitle_pages.clear(); -+ m_prev_decoder_time = -1; -+ m_decoder_time_valid_state = 0; -+ m_subs_to_pull = 0; -+ m_cur_rate=ratio; - return 0; - } - -diff --git a/lib/service/servicemp3.h b/lib/service/servicemp3.h -index 41aec13..cb5b048 100644 ---- a/lib/service/servicemp3.h -+++ b/lib/service/servicemp3.h -@@ -269,6 +269,7 @@ private: - gint m_aspect, m_width, m_height, m_framerate, m_progressive; - std::string m_useragent; - RESULT trickSeek(gdouble ratio); -+ double m_cur_rate; - }; - - #endif + diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_pluginbrowser.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_pluginbrowser.patch index 25ebe95..ecddf24 100644 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_pluginbrowser.patch +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_pluginbrowser.patch @@ -1,19 +1,73 @@ diff --git a/lib/python/Screens/PluginBrowser.py b/lib/python/Screens/PluginBrowser.py -index d423f46..359552e 100755 +index d423f46..0a029ed 100755 --- a/lib/python/Screens/PluginBrowser.py +++ b/lib/python/Screens/PluginBrowser.py -@@ -220,8 +220,8 @@ class PluginDownloadBrowser(Screen): +@@ -14,6 +14,9 @@ from Tools.LoadPixmap import LoadPixmap + + from time import time + ++import os ++import glob ++ + def languageChanged(): + plugins.clearPluginList() + plugins.readPluginList(resolveFilename(SCOPE_PLUGINS)) +@@ -179,7 +182,8 @@ class PluginDownloadBrowser(Screen): + self.container.execute("opkg update") + PluginDownloadBrowser.lastDownloadDate = time() + else: +- self.startIpkgListAvailable() ++ self.run = 1 ++ self.startIpkgListInstalled() + elif self.type == self.REMOVE: + self.run = 1 + self.startIpkgListInstalled() +@@ -198,7 +202,16 @@ class PluginDownloadBrowser(Screen): + self.startIpkgListInstalled() + elif self.run == 1 and self.type == self.DOWNLOAD: + self.run = 2 +- self.startIpkgListAvailable() ++ for x in self.getPluginListAvailable(): ++ if x[0] not in self.installedplugins: ++ self.pluginlist.append(x) ++ ++ if self.pluginlist: ++ self.pluginlist.sort() ++ self.updateList() ++ self["list"].instance.show() ++ else: ++ self["text"].setText(_("No new plugins found")) + else: + if len(self.pluginlist) > 0: + self.updateList() +@@ -220,17 +233,18 @@ class PluginDownloadBrowser(Screen): self.remainingdata = "" for x in lines: - plugin = x.split(" - ") -- if len(plugin) >= 2: + plugin = x.split(" - ", 2) -+ if len(plugin) == 3: - if self.run == 1 and self.type == self.DOWNLOAD: + if len(plugin) >= 2: +- if self.run == 1 and self.type == self.DOWNLOAD: ++ if plugin[0].startswith('enigma2-plugin-') and not plugin[0].endswith('-dev') and not plugin[0].endswith('-staticdev') and not plugin[0].endswith('-dbg') and not plugin[0].endswith('-doc') and not plugin[0].endswith('-src'): if plugin[0] not in self.installedplugins: - self.installedplugins.append(plugin[0]) -@@ -239,13 +239,6 @@ class PluginDownloadBrowser(Screen): +- self.installedplugins.append(plugin[0]) +- else: +- if plugin[0] not in self.installedplugins: +- plugin.append(plugin[0][15:]) ++ if self.run == 1 and self.type == self.DOWNLOAD: ++ self.installedplugins.append(plugin[0]) ++ else: ++ if len(plugin) == 2: ++ plugin.append('') ++ plugin.append(plugin[0][15:]) ++ self.pluginlist.append(plugin) + +- self.pluginlist.append(plugin) +- + def updateList(self): + list = [] + expandableIcon = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/expandable-plugins.png")) +@@ -239,13 +253,6 @@ class PluginDownloadBrowser(Screen): self.plugins = {} for x in self.pluginlist: @@ -27,3 +81,60 @@ index d423f46..359552e 100755 split = x[3].split('-', 1) if len(split) < 2: continue +@@ -263,4 +270,56 @@ class PluginDownloadBrowser(Screen): + self.list = list + self["list"].l.setList(list) + ++ def getPluginListAvailable(self): ++ plugin_list = [] ++ # get feed names ++ feeds = [] ++ for fn in glob.glob("/etc/opkg/*-feed.conf"): ++ feeds.append(open(fn, 'r').read().split()[1]) ++ ++ #get list_dir ++ list_dir = "/var/lib/opkg" ++ for line in open("/etc/opkg/opkg.conf", 'r'): ++ if line.startswith('lists_dir'): ++ list_dir = line.split()[-1] ++ ++ for feed in feeds: ++ Package = None ++ for line in open(os.path.join(list_dir, feed), 'r'): ++ if line.startswith("Package:"): ++ pkg = line.split(":", 1)[1].strip() ++ if pkg.startswith('enigma2-plugin-') and not pkg.endswith('-dev') and not pkg.endswith('-staticdev') and not pkg.endswith('-dbg') and not pkg.endswith('-doc') and not pkg.endswith('-src'): ++ Package = pkg ++ Version = '' ++ Description = '' ++ continue ++ ++ if Package is None: ++ continue ++ ++ if line.startswith("Version:"): ++ Version = line.split(":", 1)[1].strip() ++ ++ elif line.startswith("Description:"): ++ Description = line.split(":", 1)[1].strip() ++ ++ elif Description and line.startswith(' '): ++ Description += line[:-1] ++ ++ elif len(line) <= 1: ++ sp = Description.split(' ', 3) ++ if sp[1] == "version": ++ Description = sp[3].strip() ++ ++ pn = Package.split('enigma2-plugin-')[1] ++ ++ sp = Description.split(' ', 1) ++ if sp[0] == pn and len(sp[1]) > 0: ++ Description = sp[1].strip() ++ ++ plugin_list.append((Package, Version, Description, pn)) ++ Package = None ++ ++ return plugin_list ++ + language.addCallback(languageChanged) diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_remove_dreambox_enigma.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_remove_dreambox_enigma.patch index dd18695..44f7ca7 100644 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_remove_dreambox_enigma.patch +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_remove_dreambox_enigma.patch @@ -8,7 +8,7 @@ index 9e17547..840b1eb 100644 + if(string && string[0]){ + char *ptr; -+ ptr = string; ++ ptr = (char *)string; + while(1) + { + char *enigma = strcasestr(ptr, "enigma"); @@ -21,7 +21,7 @@ index 9e17547..840b1eb 100644 + break; + } + -+ ptr = string; ++ ptr = (char *)string; + while(1) + { + char *dreambox = strcasestr(ptr, "dreambox"); diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_wrong_boolean_type.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_wrong_boolean_type.patch new file mode 100644 index 0000000..a89926a --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_wrong_boolean_type.patch @@ -0,0 +1,29 @@ +diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py +index 31e59a6..a7da93d 100755 +--- a/lib/python/Components/NimManager.py ++++ b/lib/python/Components/NimManager.py +@@ -59,10 +59,10 @@ class SecConfigure: + sec.setLNBLOFL(9750000) + sec.setLNBLOFH(10600000) + sec.setLNBThreshold(11700000) +- sec.setLNBIncreasedVoltage(lnbParam.OFF) ++ sec.setLNBIncreasedVoltage(False) + sec.setRepeats(0) + sec.setFastDiSEqC(fastDiSEqC) +- sec.setSeqRepeat(0) ++ sec.setSeqRepeat(False) + sec.setCommandOrder(0) + + #user values +@@ -347,9 +347,9 @@ class SecConfigure: + # pass # nyi in drivers + + if currLnb.increased_voltage.value: +- sec.setLNBIncreasedVoltage(lnbParam.ON) ++ sec.setLNBIncreasedVoltage(True) + else: +- sec.setLNBIncreasedVoltage(lnbParam.OFF) ++ sec.setLNBIncreasedVoltage(False) + + dm = currLnb.diseqcMode.value + if dm == "none": diff --git a/meta-openvuplus/recipes-vuplus/fakelocale/fakelocale.bb b/meta-openvuplus/recipes-vuplus/fakelocale/fakelocale.bb index c16741a..8b8a884 100644 --- a/meta-openvuplus/recipes-vuplus/fakelocale/fakelocale.bb +++ b/meta-openvuplus/recipes-vuplus/fakelocale/fakelocale.bb @@ -22,7 +22,7 @@ LANGUAGES = "ar_AE cs_CZ da_DK de_DE el_GR es_ES et_EE fi_FI fr_FR fy_FY hr_HR \ hu_HU is_IS it_IT lt_LT nl_NL no_NO pl_PL pt_PT ro_RO ru_RU sk_SK sl_SI \ sr_YU sv_SE tr_TR ur_IN" -RPROVIDES = "virtual-locale-ar virtual-locale-cs virtual-locale-da \ +RPROVIDES_${PN} = "virtual-locale-ar virtual-locale-cs virtual-locale-da \ virtual-locale-de virtual-locale-el virtual-locale-es virtual-locale-et \ virtual-locale-fi virtual-locale-fr virtual-locale-fy virtual-locale-hr \ virtual-locale-hu virtual-locale-is virtual-locale-it virtual-locale-lt \ diff --git a/meta-openvuplus/recipes-vuplus/images/vuplus-image.bb b/meta-openvuplus/recipes-vuplus/images/vuplus-image.bb index 2710401..2984b1f 100644 --- a/meta-openvuplus/recipes-vuplus/images/vuplus-image.bb +++ b/meta-openvuplus/recipes-vuplus/images/vuplus-image.bb @@ -17,4 +17,4 @@ do_rootfs_append() { echo "MD5: $MD5" >> ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.nfo echo "SHA256: $SHA256" >> ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.nfo fi -} + } diff --git a/meta-openvuplus/recipes-vuplus/images/vuplus-image.inc b/meta-openvuplus/recipes-vuplus/images/vuplus-image.inc index f774f48..b88db55 100644 --- a/meta-openvuplus/recipes-vuplus/images/vuplus-image.inc +++ b/meta-openvuplus/recipes-vuplus/images/vuplus-image.inc @@ -25,18 +25,16 @@ DEPENDS += " \ #BAD_RECOMMENDATIONS += "libnss-mdns wpa-supplicant-passphrase" BAD_RECOMMENDATIONS += "libnss-mdns" -TASK_CORE_BOOT ?= "task-core-boot" -TASK_VUPLUS_BASE ?= "task-vuplus-base" -TASK_VUPLUS_ENIGMA ?= "task-vuplus-enigma2" -TASK_ESSENCIAL ?= "task-vuplus-essential" -TASK_VUPLUS_DVBAPI ?= "task-vuplus-dvbapi" +PACKAGEGROUP_CORE_BOOT ?= "packagegroup-core-boot" +PACKAGEGROUP_VUPLUS_BASE ?= "packagegroup-vuplus-base" +PACKAGEGROUP_VUPLUS_ENIGMA ?= "packagegroup-vuplus-enigma2" +PACKAGEGROUP_ESSENCIAL ?= "packagegroup-vuplus-essential" IMAGE_INSTALL = " \ - ${TASK_CORE_BOOT} ${ROOTFS_PKGMANAGE} \ - ${TASK_VUPLUS_BASE} \ - ${TASK_VUPLUS_DVBAPI} \ - ${TASK_VUPLUS_ENIGMA} \ - ${TASK_ESSENCIAL} \ + ${PACKAGEGROUP_CORE_BOOT} ${ROOTFS_PKGMANAGE} \ + ${PACKAGEGROUP_VUPLUS_BASE} \ + ${PACKAGEGROUP_VUPLUS_ENIGMA} \ + ${PACKAGEGROUP_ESSENCIAL} \ " # enable online package management diff --git a/meta-openvuplus/recipes-vuplus/lcd4linux/lcd4linux_0.11.0-SVN.bb b/meta-openvuplus/recipes-vuplus/lcd4linux/lcd4linux_0.11.0-SVN.bb index 5b95fa8..675802a 100644 --- a/meta-openvuplus/recipes-vuplus/lcd4linux/lcd4linux_0.11.0-SVN.bb +++ b/meta-openvuplus/recipes-vuplus/lcd4linux/lcd4linux_0.11.0-SVN.bb @@ -12,7 +12,7 @@ EXTRA_OECONF = " --with-glib-prefix=${STAGING_LIBDIR}/.. \ --with-glib-exec-prefix=${STAGING_LIBDIR}/.. \ --with-ncurses=${STAGING_LIBDIR}/.." -SRC_URI = "svn://ssl.bulix.org/svn/lcd4linux/;module=trunk;proto=https;rev=1200 \ +SRC_URI = "svn://ssl.bulix.org/svn/lcd4linux/;module=trunk;protocol=https;rev=1200 \ file://lcd4linux.init \ " @@ -25,7 +25,7 @@ do_setlibtool (){ } INITSCRIPT_PARAMS_vuplus = "stop 10 0 6 ." -inherit autotools update-rc.d +inherit autotools update-rc.d gettext pkgconfig INITSCRIPT_NAME = "lcd4linux" CONFFILES_${PN} += "${sysconfdir}/lcd4linux.conf" diff --git a/meta-openvuplus/recipes-vuplus/libungif/libungif-native_4.1.3.bb b/meta-openvuplus/recipes-vuplus/libungif/libungif-native_4.1.3.bb deleted file mode 100644 index c8cc832..0000000 --- a/meta-openvuplus/recipes-vuplus/libungif/libungif-native_4.1.3.bb +++ /dev/null @@ -1,7 +0,0 @@ -require libungif_${PV}.bb - -S = "${WORKDIR}/libungif-${PV}" - -PACKAGES = "" - -inherit autotools native diff --git a/meta-openvuplus/recipes-vuplus/libungif/libungif_4.1.3.bb b/meta-openvuplus/recipes-vuplus/libungif/libungif_4.1.3.bb deleted file mode 100644 index d14c643..0000000 --- a/meta-openvuplus/recipes-vuplus/libungif/libungif_4.1.3.bb +++ /dev/null @@ -1,15 +0,0 @@ -DESCRIPTION = "shared library for GIF images" -SECTION = "libs" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://COPYING;md5=ae11c61b04b2917be39b11f78d71519a" -PR = "r3" - -SRC_URI = "${SOURCEFORGE_MIRROR}/giflib/libungif-${PV}.tar.bz2" -SRC_URI[md5sum] = "8c198831cc0495596c78134b8849e9ad" -SRC_URI[sha256sum] = "59e835a57e6df03e4d2253b2357253f3d13da9473ff465563a3b9833a744fc36" - -inherit autotools lib_package - -PACKAGES =+ "${PN}-utils" - -FILES_${PN}-utils = "${bindir}/*" diff --git a/meta-openvuplus/recipes-vuplus/opera-hbbtv/opera-hbbtv_0.1.bb b/meta-openvuplus/recipes-vuplus/opera-hbbtv/opera-hbbtv_0.1.bb index 8af7fee..203bd2e 100644 --- a/meta-openvuplus/recipes-vuplus/opera-hbbtv/opera-hbbtv_0.1.bb +++ b/meta-openvuplus/recipes-vuplus/opera-hbbtv/opera-hbbtv_0.1.bb @@ -3,7 +3,7 @@ PRIORITY = "required" LICENSE = "CLOSED" DEPENDS = "tslib mpfr gmp" -RDEPENS = "tslib-conf libts-1.0-0 libsysfs2 libgmp3 libmpfr1" +RDEPENS_${PN} = "tslib-conf libts-1.0-0 libsysfs2 libgmp3 libmpfr1" SRC_DATE = "20140711_0" diff --git a/meta-openvuplus/recipes-vuplus/opera-hbbtv/opera-hbbtv_0.2.bb b/meta-openvuplus/recipes-vuplus/opera-hbbtv/opera-hbbtv_0.2.bb index 9e85a7c..93fc0ff 100644 --- a/meta-openvuplus/recipes-vuplus/opera-hbbtv/opera-hbbtv_0.2.bb +++ b/meta-openvuplus/recipes-vuplus/opera-hbbtv/opera-hbbtv_0.2.bb @@ -3,9 +3,9 @@ PRIORITY = "required" LICENSE = "CLOSED" DEPENDS = "mpfr gmp" -RDEPENDS = "sysfsutils" +RDEPENDS_${PN} = "sysfsutils" -SRC_DATE = "20150106_0" +SRC_DATE = "20150224_0" PR = "r2_${SRC_DATE}" SRC_URI = "" @@ -32,7 +32,7 @@ libdirectfb_vuplus.so" S = "${WORKDIR}/opera-hbbtv" -SRC_FILE = "opera-hbbtv_${SRC_DATE}.tar.gz" +SRC_FILE = "opera-hbbtv_${SRC_DATE}_OE30.tar.gz" do_fetch() { if [ ! -e ${DL_DIR}/${SRC_FILE} -a -e /etc/vuplus_browser.pwd ]; then sshpass -f /etc/vuplus_browser.pwd sftp -o StrictHostKeyChecking=no guestuser@code.vuplus.com << + @@ -58,10 +58,10 @@ do_install() { } package_do_shlibs_append() { - deps = "${PKGDEST}/${PN}.shlibdeps" - tmp = "/tmp/.${PN}.shlibdeps" - os.system("sed -e '/vbrowser/d' %s > %s" % (deps, tmp)) - os.system("cp %s %s" % (tmp, deps)) + deps = "${PKGDEST}/${PN}.shlibdeps" + tmp = "/tmp/.${PN}.shlibdeps" + os.system("sed -e '/vbrowser/d' %s > %s" % (deps, tmp)) + os.system("cp %s %s" % (tmp, deps)) } do_package_qa() { @@ -74,6 +74,6 @@ PACKAGES = "${PN}" FILES_${PN} = "/" -SRC_URI[md5sum] = "531bb6c69f682b04b563a17160773014" -SRC_URI[sha256sum] = "3f8f885b3679db592acd09120dc8f29911bf34ac811df41e6abb87440e394b94" +SRC_URI[md5sum] = "e85fd1a4ccdd93a06a9110ec17c07689" +SRC_URI[sha256sum] = "e19f43c78b178faed1ce92fa45ca88b868f3c667b97028cb2e59d6a9852b2f1b" diff --git a/meta-openvuplus/recipes-vuplus/packagegroups/packagegroup-vuplus-base.bb b/meta-openvuplus/recipes-vuplus/packagegroups/packagegroup-vuplus-base.bb new file mode 100644 index 0000000..a505911 --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/packagegroups/packagegroup-vuplus-base.bb @@ -0,0 +1,87 @@ +SUMMARY = "Vuplus: Base set of packages for Vuplus." +SECTION = "vuplus/base" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" +PR = "r2" + +inherit packagegroup + +VUPLUS_BASE_ESSENTIAL = "\ + autofs \ + vuplus-compat \ + e2fsprogs-e2fsck \ + e2fsprogs-mke2fs \ + fakelocale \ + opkg \ + tzdata \ + tuxbox-common \ + util-linux-sfdisk \ + vsftpd \ + mtd-utils-mkfs.ubifs \ + mtd-utils-mkfs.jffs2 \ + mtd-utils-nandwrite \ + mtd-utils-nanddump \ + mtd-utils-flash-eraseall \ + mtd-utils-flash-erase \ + mtd-utils-ubinize \ + mtd-utils-ubiformat \ + mtd-utils-ubiattach \ + mtd-utils-ubidetach \ + mtd-utils-ubimkvol \ + hdparm \ + usbtunerhelper \ + killall \ + openresolv \ + module-init-tools \ + ${@base_contains("VUPLUS_FEATURES", "dvbproxy", "libgles vuplus-platform-util", "", d)} \ +" + +VUPLUS_FIRMWARE_DVB = " \ + firmware-dvb-af9005 \ + firmware-dvb-fe-af9013 \ + firmware-dvb-usb-af9015 \ + firmware-dvb-usb-af9035 \ + firmware-dvb-usb-avertv-a800 \ + firmware-dvb-usb-dib0700 \ + firmware-dvb-usb-dibusb \ + firmware-dvb-usb-digitv \ + firmware-dvb-usb-nova-t-usb2 \ + firmware-dvb-usb-sms1xxx-nova-dvbt \ + firmware-dvb-usb-sms1xxx-hcw-dvbt \ + firmware-dvb-usb-ttusb-budget \ + firmware-dvb-usb-umt-010 \ + firmware-dvb-usb-xc5000 \ + firmware-dvb-usb-wt220u-zl0353 \ + firmware-drxd-a2 \ +" + +VUPLUS_BASE_RECOMMENDS = "\ + dropbear \ + vuplus-vucamd \ + sambaserver \ + openvpn \ + zeroconf \ + ${@base_contains("VUPLUS_FEATURES", "vuplus-fpga-update", "vuplus-fpga-update", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "wol", "vuplus-coldboot", "", d)} \ +" + +VUPLUS_BASE_OPTIONAL_RECOMMENDS = "\ + hddtemp \ + joe \ + mc \ + ncdu \ + ppp \ + smartmontools \ + avahi-daemon \ + curlftpfs \ +" + +RDEPENDS_${PN} += "\ + ${VUPLUS_BASE_ESSENTIAL} \ + ${VUPLUS_FIRMWARE_DVB} \ +" + +RRECOMMENDS_${PN} += "\ + ${VUPLUS_BASE_RECOMMENDS} \ + ${VUPLUS_BASE_OPTIONAL_RECOMMENDS} \ +" diff --git a/meta-openvuplus/recipes-vuplus/packagegroups/packagegroup-vuplus-enigma2.bb b/meta-openvuplus/recipes-vuplus/packagegroups/packagegroup-vuplus-enigma2.bb new file mode 100644 index 0000000..3a6edf0 --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/packagegroups/packagegroup-vuplus-enigma2.bb @@ -0,0 +1,75 @@ +SUMMARY = "Enigma2 set of packages for Vuplus" +SECTION = "vuplus/base" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" +PR = "r3" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit packagegroup + +RDEPENDS_${PN} += " \ + enigma2 \ + enigma2-defaultservices \ + enigma2-streamproxy \ + tuxbox-tuxtxt-32bpp \ + showiframe \ + enigma2-meta \ + enigma2-plugins-meta \ + enigma2-skins-meta \ + enigma2-plugin-extensions-mediascanner \ + enigma2-plugin-systemplugins-crashreport \ + enigma2-plugin-extensions-remotestreamconvert \ + enigma2-plugin-systemplugins-zappingmodeselection \ + enigma2-plugin-extensions-addstreamurl \ + enigma2-plugin-systemplugins-devicemanager \ + enigma2-plugin-systemplugins-videomode \ + enigma2-plugin-systemplugins-netdrive \ +" + +RRECOMMENDS_${PN} += " \ + glib-networking \ + dvbsnoop \ +" + +RDEPENDS_${PN} += " \ + aio-grab \ + python-misc python-shell python-ctypes \ + python-crypt \ + python-netserver \ + python-twisted-core \ + python-twisted-protocols \ + python-twisted-web \ + ${@base_contains("MACHINE_FEATURES", "wifi", "packagegroup-vuplus-wlan", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "webmanual", "vuplus-manual", "", d)} \ + enigma2-plugin-extensions-mediaplayer \ + enigma2-plugin-extensions-pictureplayer \ + enigma2-plugin-systemplugins-skinselector \ + enigma2-plugin-systemplugins-ui3dsetup \ + enigma2-plugin-systemplugins-uipositionsetup \ + enigma2-plugin-systemplugins-hdmicec \ + enigma2-plugin-extensions-openwebif \ + ${@base_contains("MACHINE_FEATURES", "wifi", "enigma2-plugin-systemplugins-wirelessaccesspoint", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "fan_simple", "enigma2-plugin-systemplugins-fancontrol","", d)} \ + ${@base_contains("VUPLUS_FEATURES", "fan_manual", "enigma2-plugin-systemplugins-manualfancontrol", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "rc_code", "enigma2-plugin-systemplugins-remotecontrolcode", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "led", "enigma2-plugin-systemplugins-ledbrightnesssetup", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "blindscan", "enigma2-plugin-systemplugins-blindscan vuplus-blindscan-utils", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "fpgaupgrade", "enigma2-plugin-systemplugins-fpgaupgrade", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "firmwareupgrade", "enigma2-plugin-systemplugins-firmwareupgrade", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "hbbtv", "enigma2-plugin-extensions-hbbtv", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "streamtv", "enigma2-plugin-extensions-streamtv", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "dlna", "enigma2-plugin-extensions-dlnaserver enigma2-plugin-extensions-dlnabrowser", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "3gmodem", "enigma2-plugin-systemplugins-3gmodemmanager", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "autoshutdown", "enigma2-plugin-systemplugins-autoshutdown", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "transcoding", "enigma2-plugin-systemplugins-transcodingsetup enigma2-transtreamproxy", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "wol", "enigma2-plugin-systemplugins-wolsetup", "", d)} \ + ${@base_conditional("MACHINE", "vuduo2", "duo2lcd4linux lcd4linuxsupport", "", d)} \ + ${@base_conditional("MACHINE", "vuduo2", "vuplus-checkvfd", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "audioeffect", "enigma2-plugin-systemplugins-audioeffect", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "uianimation", "enigma2-plugin-systemplugins-animationsetup", "", d)} \ + ${@base_contains("VUPLUS_FEATURES", "xbmc", "enigma2-plugin-extensions-xbmc", "", d)} \ +" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + diff --git a/meta-openvuplus/recipes-vuplus/packagegroups/packagegroup-vuplus-essential.bb b/meta-openvuplus/recipes-vuplus/packagegroups/packagegroup-vuplus-essential.bb new file mode 100644 index 0000000..4daa4d7 --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/packagegroups/packagegroup-vuplus-essential.bb @@ -0,0 +1,240 @@ +SUMMARY = "Vuplus: Essential packages" +SECTION = "vuplus/base" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" +DEPENDS = "virtual/kernel" + +RDEPENDS_${PN} = '${ESSENTIAL_RDEPENDS}' +RRECOMMENDS_${PN} = '${ESSENTIAL_RRECOMMENDS}' +RRECOMMENDS_${PN} += '${KERNEL_DVB_MODULES}' + +PR = "r8" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit packagegroup + +ESSENTIAL_RDEPENDS = " \ + vuplus-tuner-turbo \ +" + +KERNEL_FS_MODULES = " \ + kernel-module-ext2 \ + kernel-module-ext4 \ + kernel-module-autofs4 \ + kernel-module-cifs \ + kernel-module-msdos \ + kernel-module-udf \ + kernel-module-isofs \ + kernel-module-nls-cp850 \ +" + +ESSENTIAL_RRECOMMENDS = " \ + kernel-module-cdrom \ + kernel-module-sr-mod \ + ${KERNEL_FS_MODULES} \ +" + +DVB_USB_V1 = " \ + kernel-module-dvb-usb \ + kernel-module-dvb-usb-a800 \ + kernel-module-dvb-usb-dibusb-common \ + kernel-module-dvb-usb-dibusb-mb \ + kernel-module-dvb-usb-dibusb-mc \ + kernel-module-dvb-usb-dib0700 \ + kernel-module-dvb-usb-umt-010 \ + kernel-module-dvb-usb-cxusb \ + kernel-module-dvb-usb-m920x \ + kernel-module-dvb-usb-digitv \ + kernel-module-dvb-usb-vp7045 \ + kernel-module-dvb-usb-vp702x \ + kernel-module-dvb-usb-gp8psk \ + kernel-module-dvb-usb-nova-t-usb2 \ + kernel-module-dvb-usb-ttusb2 \ + kernel-module-dvb-usb-dtt200u \ + kernel-module-dvb-usb-opera \ + kernel-module-dvb-usb-af9005 \ + kernel-module-dvb-usb-af9005-remote \ + kernel-module-dvb-usb-pctv452e \ + kernel-module-dvb-usb-dw2102 \ + kernel-module-dvb-usb-cinergyt2 \ + kernel-module-dvb-usb-dtv5100 \ + kernel-module-dvb-usb-friio \ + kernel-module-dvb-usb-az6027 \ + kernel-module-dvb-usb-technisat-usb2 \ +" + +DVB_USB_V2 = " \ + kernel-module-dvb-usb-v2 \ + kernel-module-dvb-usb-af9015 \ + kernel-module-dvb-usb-af9035 \ + kernel-module-dvb-usb-anysee \ + kernel-module-dvb-usb-au6610 \ + kernel-module-dvb-usb-az6007 \ + kernel-module-dvb-usb-ce6230 \ + kernel-module-dvb-usb-ec168 \ + kernel-module-dvb-usb-gl861 \ + kernel-module-dvb-usb-it913x \ + kernel-module-dvb-usb-lmedm04 \ + kernel-module-dvb-usb-mxl111sf \ + kernel-module-mxl111sf-demod \ + kernel-module-mxl111sf-tuner \ + kernel-module-dvb-usb-rtl28xxu \ +" + +KERNEL_MEDIA_ANALOG_USB_ADAPTERS = " \ + kernel-module-pvrusb2 \ + kernel-module-hdpvr \ + kernel-module-usbvision \ + kernel-module-stk1160 \ + kernel-module-poseidon \ +" + +KERNEL_MEDIA_ANALOG_DIGITAL_USB_ADAPTERS = " \ + kernel-module-au0828 \ + kernel-module-cx231xx \ + kernel-module-tm6000 \ + kernel-module-em28xx \ +" + +KERNEL_MEDIA_USB_ADAPTERS = " \ + kernel-module-au0828 \ + ${DVB_USB_V1} \ + ${DVB_USB_V2} \ + kernel-module-dvb-ttusb-budget \ + kernel-module-smsusb \ + kernel-module-smsdvb \ + kernel-module-smsmdtv \ + kernel-module-b2c2-flexcop \ + kernel-module-b2c2-flexcop-usb \ + kernel-module-tveeprom \ + kernel-module-cypress-firmware \ + kernel-module-dvb-usb-cypress-firmware \ + ${KERNEL_MEDIA_ANALOG_USB_ADAPTERS} \ + ${KERNEL_MEDIA_ANALOG_DIGITAL_USB_ADAPTERS} \ +" + +KERNEL_MEDIA_CUSTOMIZE_TV_TUNER = " \ + kernel-module-tuner-simple \ + kernel-module-tuner-types \ + kernel-module-tda8290 \ + kernel-module-tda827x \ + kernel-module-tda18271 \ + kernel-module-tda9887 \ + kernel-module-tea5761 \ + kernel-module-tea5767 \ + kernel-module-mt20xx \ + kernel-module-mt2060 \ + kernel-module-mt2063 \ + kernel-module-mt2266 \ + kernel-module-mt2131 \ + kernel-module-qt1010 \ + kernel-module-tuner-xc2028 \ + kernel-module-xc5000 \ + kernel-module-xc4000 \ + kernel-module-mxl5005s \ + kernel-module-mxl5007t \ + kernel-module-mc44s803 \ + kernel-module-max2165 \ + kernel-module-tda18218 \ + kernel-module-fc0011 \ + kernel-module-fc0012 \ + kernel-module-fc0013 \ + kernel-module-tda18212 \ + kernel-module-e4000 \ + kernel-module-fc2580 \ + kernel-module-tua9001 \ + kernel-module-tuner-it913x \ + kernel-module-r820t \ +" + +KERNEL_MEDIA_CUSTOMIZE_DVB_FRONTENDS = " \ + kernel-module-stb0899 \ + kernel-module-stb6100 \ + kernel-module-stv090x \ + kernel-module-stv6110x \ + kernel-module-drxk \ + kernel-module-tda18271c2dd \ + kernel-module-cx24110 \ + kernel-module-cx24123 \ + kernel-module-mt312 \ + kernel-module-zl10036 \ + kernel-module-zl10039 \ + kernel-module-s5h1420 \ + kernel-module-stv0288 \ + kernel-module-stb6000 \ + kernel-module-stv0299 \ + kernel-module-stv6110 \ + kernel-module-stv6110x \ + kernel-module-stv0900 \ + kernel-module-tda8083 \ + kernel-module-tda10086 \ + kernel-module-tda8261 \ + kernel-module-ves1x93 \ + kernel-module-itd1000 \ + kernel-module-cx24113 \ + kernel-module-tda826x \ + kernel-module-tua6100 \ + kernel-module-cx24116 \ + kernel-module-cx24117 \ + kernel-module-si21xx \ + kernel-module-ts2020 \ + kernel-module-ds3000 \ + kernel-module-mb86a16 \ + kernel-module-tda10071 \ + kernel-module-sp8870 \ + kernel-module-sp887x \ + kernel-module-cx22700 \ + kernel-module-cx22702 \ + kernel-module-s5h1432 \ + kernel-module-drxd \ + kernel-module-l64781 \ + kernel-module-tda1004x \ + kernel-module-nxt6000 \ + kernel-module-mt352 \ + kernel-module-zl10353 \ + kernel-module-dib3000mb \ + kernel-module-dib3000mc \ + kernel-module-dib7000m \ + kernel-module-dib7000p \ + kernel-module-dib9000 \ + kernel-module-tda10048 \ + kernel-module-af9013 \ + kernel-module-ec100 \ + kernel-module-hd29l2 \ + kernel-module-stv0367 \ + kernel-module-cxd2820r \ + kernel-module-rtl2830 \ + kernel-module-rtl2832 \ + kernel-module-ves1820 \ + kernel-module-tda10021 \ + kernel-module-tda10023 \ + kernel-module-stv0297 \ + kernel-module-s921 \ + kernel-module-dib8000 \ + kernel-module-mb86a20s \ + kernel-module-dvb-pll \ + kernel-module-dib0070 \ + kernel-module-dib0090 \ + kernel-module-lnbp21 \ + kernel-module-lnbp22 \ + kernel-module-isl6405 \ + kernel-module-isl6421 \ + kernel-module-isl6423 \ + kernel-module-a8293 \ + kernel-module-lgs8gl5 \ + kernel-module-lgs8gxx \ + kernel-module-atbm8830 \ + kernel-module-tda665x \ + kernel-module-ix2505v \ + kernel-module-it913x-fe \ + kernel-module-m88rs2000 \ + kernel-module-af9033 \ +" + +KERNEL_DVB_MODULES = " \ + ${KERNEL_MEDIA_USB_ADAPTERS} \ + ${KERNEL_MEDIA_CUSTOMIZE_TV_TUNER} \ + ${KERNEL_MEDIA_CUSTOMIZE_DVB_FRONTENDS} \ +" + diff --git a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-base.bb b/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-base.bb deleted file mode 100644 index f60f7a0..0000000 --- a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-base.bb +++ /dev/null @@ -1,6 +0,0 @@ -PR = "${INC_PR}.1" - -RDEPENDS_${PN} = " \ -" - -require task-vuplus-base.inc diff --git a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-base.inc b/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-base.inc deleted file mode 100644 index 9f0dde7..0000000 --- a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-base.inc +++ /dev/null @@ -1,89 +0,0 @@ -SUMMARY = "Vuplus: Base Task for Vuplus." -SECTION = "vuplus/base" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" -INC_PR = "r12" - -inherit task - -VUPLUS_BASE_ESSENTIAL = "\ - autofs \ - base-files-doc \ - vuplus-compat \ - dreambox-keymaps \ - e2fsprogs-e2fsck \ - e2fsprogs-mke2fs \ - fakelocale \ - opkg \ - tzdata \ - tuxbox-common \ - util-linux-sfdisk \ - vsftpd \ - mtd-utils-mkfs.ubifs \ - mtd-utils-mkfs.jffs2 \ - mtd-utils-nandwrite \ - mtd-utils-nanddump \ - mtd-utils-flash-eraseall \ - mtd-utils-flash-erase \ - mtd-utils-ubinize \ - mtd-utils-ubiformat \ - mtd-utils-ubiattach \ - mtd-utils-ubidetach \ - mtd-utils-ubimkvol \ - hdparm \ - usbtunerhelper \ - ${VUPLUS_FIRMWARE_DVB} \ - killall \ - openresolv \ - ${@base_contains("VUPLUS_FEATURES", "dvbproxy", "libgles vuplus-platform-util", "", d)} \ -" - -VUPLUS_FIRMWARE_DVB = " \ - firmware-dvb-af9005 \ - firmware-dvb-fe-af9013 \ - firmware-dvb-usb-af9015 \ - firmware-dvb-usb-af9035 \ - firmware-dvb-usb-avertv-a800 \ - firmware-dvb-usb-dib0700 \ - firmware-dvb-usb-dibusb \ - firmware-dvb-usb-digitv \ - firmware-dvb-usb-nova-t-usb2 \ - firmware-dvb-usb-sms1xxx-nova-dvbt \ - firmware-dvb-usb-sms1xxx-hcw-dvbt \ - firmware-dvb-usb-ttusb-budget \ - firmware-dvb-usb-umt-010 \ - firmware-dvb-usb-xc5000 \ - firmware-dvb-usb-wt220u-zl0353 \ - firmware-drxd-a2 \ -" - -VUPLUS_BASE_RECOMMENDS = "\ - dropbear \ - vuplus-vucamd \ - sambaserver \ - openvpn \ - zeroconf \ - ${@base_contains("VUPLUS_FEATURES", "vuplus-fpga-update", "vuplus-fpga-update", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "wol", "vuplus-coldboot", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "xbmc", "enigma2-plugin-extensions-xbmc", "", d)} \ -" - -VUPLUS_BASE_OPTIONAL_RECOMMENDS = "\ - hddtemp \ - joe \ - mc \ - ncdu \ - ppp \ - smartmontools \ - avahi-daemon \ - curlftpfs \ -" - -RDEPENDS_${PN} += "\ - ${VUPLUS_BASE_ESSENTIAL} \ -" - -RRECOMMENDS_${PN} += "\ - ${VUPLUS_BASE_RECOMMENDS} \ - ${VUPLUS_BASE_OPTIONAL_RECOMMENDS} \ -" diff --git a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-dvbapi3.bb b/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-dvbapi3.bb deleted file mode 100644 index 9a5c538..0000000 --- a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-dvbapi3.bb +++ /dev/null @@ -1,22 +0,0 @@ -DESCRIPTION = "Vuplus: DVB API v3 Task for the Vuplus Distribution" -SECTION = "vuplus/base" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" -PR = "r1" - -inherit task - -PROVIDES = "\ - task-vuplus-dvbapi \ - ${PACKAGES}\ -" - -# -# task-vuplus-dvbapi3 -# -RPROVIDES_${PN} = "task-vuplus-dvbapi" -DESCRIPTION_${PN} = "Vuplus: DVB API v3 Dependencies" -RDEPENDS_${PN} = "\ - dvbsnoop \ - " -# vuplus-dvb-tools is included to task-vuplus-enigma2.inc with showiframe. diff --git a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-enigma2.bb b/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-enigma2.bb deleted file mode 100644 index fb53c47..0000000 --- a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-enigma2.bb +++ /dev/null @@ -1,6 +0,0 @@ -PR = "${INC_PR}.8" - -RDEPENDS_${PN} = " \ -" - -require task-vuplus-enigma2.inc diff --git a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-enigma2.inc b/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-enigma2.inc deleted file mode 100644 index b8f7fb5..0000000 --- a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-enigma2.inc +++ /dev/null @@ -1,73 +0,0 @@ -SUMMARY = "Enigma2 Task for Vuplus" -SECTION = "vuplus/base" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" -INC_PR = "r21" - -inherit task - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -RDEPENDS_${PN} += " \ - enigma2 \ - enigma2-defaultservices \ - enigma2-streamproxy \ - tuxbox-tuxtxt-32bpp \ - showiframe \ - enigma2-meta \ - enigma2-plugins-meta \ - enigma2-skins-meta \ - enigma2-plugin-extensions-mediascanner \ - enigma2-plugin-systemplugins-crashreport \ - enigma2-plugin-extensions-remotestreamconvert \ - enigma2-plugin-systemplugins-zappingmodeselection \ - enigma2-plugin-extensions-addstreamurl \ - enigma2-plugin-systemplugins-devicemanager \ - enigma2-plugin-systemplugins-videomode \ - enigma2-plugin-systemplugins-netdrive \ -" - -RRECOMMENDS_${PN} += " \ - glib-networking \ -" - -RDEPENDS_${PN} += " \ - aio-grab \ - python-misc python-shell python-ctypes \ - python-crypt \ - python-netserver \ - python-twisted-core \ - python-twisted-protocols \ - python-twisted-web \ - ${@base_contains("MACHINE_FEATURES", "wifi", "task-vuplus-wlan", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "webmanual", "vuplus-manual", "", d)} \ - enigma2-plugin-extensions-mediaplayer \ - enigma2-plugin-extensions-pictureplayer \ - enigma2-plugin-systemplugins-skinselector \ - enigma2-plugin-systemplugins-ui3dsetup \ - enigma2-plugin-systemplugins-uipositionsetup \ - enigma2-plugin-systemplugins-hdmicec \ - enigma2-plugin-extensions-openwebif \ - ${@base_contains("MACHINE_FEATURES", "wifi", "enigma2-plugin-systemplugins-wirelessaccesspoint", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "fan_simple", "enigma2-plugin-systemplugins-fancontrol","", d)} \ - ${@base_contains("VUPLUS_FEATURES", "fan_manual", "enigma2-plugin-systemplugins-manualfancontrol", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "rc_code", "enigma2-plugin-systemplugins-remotecontrolcode", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "led", "enigma2-plugin-systemplugins-ledbrightnesssetup", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "blindscan", "enigma2-plugin-systemplugins-blindscan vuplus-blindscan-utils", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "fpgaupgrade", "enigma2-plugin-systemplugins-fpgaupgrade", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "firmwareupgrade", "enigma2-plugin-systemplugins-firmwareupgrade", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "hbbtv", "enigma2-plugin-extensions-hbbtv", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "streamtv", "enigma2-plugin-extensions-streamtv", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "dlna", "enigma2-plugin-extensions-dlnaserver enigma2-plugin-extensions-dlnabrowser", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "3gmodem", "enigma2-plugin-systemplugins-3gmodemmanager", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "autoshutdown", "enigma2-plugin-systemplugins-autoshutdown", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "transcoding", "enigma2-plugin-systemplugins-transcodingsetup enigma2-transtreamproxy", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "wol", "enigma2-plugin-systemplugins-wolsetup", "", d)} \ - ${@base_conditional("MACHINE", "vuduo2", "duo2lcd4linux lcd4linuxsupport", "", d)} \ - ${@base_conditional("MACHINE", "vuduo2", "vuplus-checkvfd", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "audioeffect", "enigma2-plugin-systemplugins-audioeffect", "", d)} \ - ${@base_contains("VUPLUS_FEATURES", "uianimation", "enigma2-plugin-systemplugins-animationsetup", "", d)} \ -" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - diff --git a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-essential.bb b/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-essential.bb deleted file mode 100644 index 1f60864..0000000 --- a/meta-openvuplus/recipes-vuplus/tasks/task-vuplus-essential.bb +++ /dev/null @@ -1,240 +0,0 @@ -SUMMARY = "Vuplus: Essential packages" -SECTION = "vuplus/base" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" -DEPENDS = "virtual/kernel" - -RDEPENDS_${PN} = '${ESSENTIAL_RDEPENDS}' -RRECOMMENDS_${PN} = '${ESSENTIAL_RRECOMMENDS}' -RRECOMMENDS_${PN} += '${KERNEL_DVB_MODULES}' - -PR = "r8" - -inherit task - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -ESSENTIAL_RDEPENDS = " \ - vuplus-tuner-turbo \ -" - -KERNEL_FS_MODULES = " \ - kernel-module-ext2 \ - kernel-module-ext4 \ - kernel-module-autofs4 \ - kernel-module-cifs \ - kernel-module-msdos \ - kernel-module-udf \ - kernel-module-isofs \ - kernel-module-nls-cp850 \ -" - -ESSENTIAL_RRECOMMENDS = " \ - kernel-module-cdrom \ - kernel-module-sr-mod \ - ${KERNEL_FS_MODULES} \ -" - -DVB_USB_V1 = " \ - kernel-module-dvb-usb \ - kernel-module-dvb-usb-a800 \ - kernel-module-dvb-usb-dibusb-common \ - kernel-module-dvb-usb-dibusb-mb \ - kernel-module-dvb-usb-dibusb-mc \ - kernel-module-dvb-usb-dib0700 \ - kernel-module-dvb-usb-umt-010 \ - kernel-module-dvb-usb-cxusb \ - kernel-module-dvb-usb-m920x \ - kernel-module-dvb-usb-digitv \ - kernel-module-dvb-usb-vp7045 \ - kernel-module-dvb-usb-vp702x \ - kernel-module-dvb-usb-gp8psk \ - kernel-module-dvb-usb-nova-t-usb2 \ - kernel-module-dvb-usb-ttusb2 \ - kernel-module-dvb-usb-dtt200u \ - kernel-module-dvb-usb-opera \ - kernel-module-dvb-usb-af9005 \ - kernel-module-dvb-usb-af9005-remote \ - kernel-module-dvb-usb-pctv452e \ - kernel-module-dvb-usb-dw2102 \ - kernel-module-dvb-usb-cinergyt2 \ - kernel-module-dvb-usb-dtv5100 \ - kernel-module-dvb-usb-friio \ - kernel-module-dvb-usb-az6027 \ - kernel-module-dvb-usb-technisat-usb2 \ -" - -DVB_USB_V2 = " \ - kernel-module-dvb-usb-v2 \ - kernel-module-dvb-usb-af9015 \ - kernel-module-dvb-usb-af9035 \ - kernel-module-dvb-usb-anysee \ - kernel-module-dvb-usb-au6610 \ - kernel-module-dvb-usb-az6007 \ - kernel-module-dvb-usb-ce6230 \ - kernel-module-dvb-usb-ec168 \ - kernel-module-dvb-usb-gl861 \ - kernel-module-dvb-usb-it913x \ - kernel-module-dvb-usb-lmedm04 \ - kernel-module-dvb-usb-mxl111sf \ - kernel-module-mxl111sf-demod \ - kernel-module-mxl111sf-tuner \ - kernel-module-dvb-usb-rtl28xxu \ -" - -KERNEL_MEDIA_ANALOG_USB_ADAPTERS = " \ - kernel-module-pvrusb2 \ - kernel-module-hdpvr \ - kernel-module-usbvision \ - kernel-module-stk1160 \ - kernel-module-poseidon \ -" - -KERNEL_MEDIA_ANALOG_DIGITAL_USB_ADAPTERS = " \ - kernel-module-au0828 \ - kernel-module-cx231xx \ - kernel-module-tm6000 \ - kernel-module-em28xx \ -" - -KERNEL_MEDIA_USB_ADAPTERS = " \ - kernel-module-au0828 \ - ${DVB_USB_V1} \ - ${DVB_USB_V2} \ - kernel-module-dvb-ttusb-budget \ - kernel-module-smsusb \ - kernel-module-smsdvb \ - kernel-module-smsmdtv \ - kernel-module-b2c2-flexcop \ - kernel-module-b2c2-flexcop-usb \ - kernel-module-tveeprom \ - kernel-module-cypress-firmware \ - kernel-module-dvb-usb-cypress-firmware \ - ${KERNEL_MEDIA_ANALOG_USB_ADAPTERS} \ - ${KERNEL_MEDIA_ANALOG_DIGITAL_USB_ADAPTERS} \ -" - -KERNEL_MEDIA_CUSTOMIZE_TV_TUNER = " \ - kernel-module-tuner-simple \ - kernel-module-tuner-types \ - kernel-module-tda8290 \ - kernel-module-tda827x \ - kernel-module-tda18271 \ - kernel-module-tda9887 \ - kernel-module-tea5761 \ - kernel-module-tea5767 \ - kernel-module-mt20xx \ - kernel-module-mt2060 \ - kernel-module-mt2063 \ - kernel-module-mt2266 \ - kernel-module-mt2131 \ - kernel-module-qt1010 \ - kernel-module-tuner-xc2028 \ - kernel-module-xc5000 \ - kernel-module-xc4000 \ - kernel-module-mxl5005s \ - kernel-module-mxl5007t \ - kernel-module-mc44s803 \ - kernel-module-max2165 \ - kernel-module-tda18218 \ - kernel-module-fc0011 \ - kernel-module-fc0012 \ - kernel-module-fc0013 \ - kernel-module-tda18212 \ - kernel-module-e4000 \ - kernel-module-fc2580 \ - kernel-module-tua9001 \ - kernel-module-tuner-it913x \ - kernel-module-r820t \ -" - -KERNEL_MEDIA_CUSTOMIZE_DVB_FRONTENDS = " \ - kernel-module-stb0899 \ - kernel-module-stb6100 \ - kernel-module-stv090x \ - kernel-module-stv6110x \ - kernel-module-drxk \ - kernel-module-tda18271c2dd \ - kernel-module-cx24110 \ - kernel-module-cx24123 \ - kernel-module-mt312 \ - kernel-module-zl10036 \ - kernel-module-zl10039 \ - kernel-module-s5h1420 \ - kernel-module-stv0288 \ - kernel-module-stb6000 \ - kernel-module-stv0299 \ - kernel-module-stv6110 \ - kernel-module-stv6110x \ - kernel-module-stv0900 \ - kernel-module-tda8083 \ - kernel-module-tda10086 \ - kernel-module-tda8261 \ - kernel-module-ves1x93 \ - kernel-module-itd1000 \ - kernel-module-cx24113 \ - kernel-module-tda826x \ - kernel-module-tua6100 \ - kernel-module-cx24116 \ - kernel-module-cx24117 \ - kernel-module-si21xx \ - kernel-module-ts2020 \ - kernel-module-ds3000 \ - kernel-module-mb86a16 \ - kernel-module-tda10071 \ - kernel-module-sp8870 \ - kernel-module-sp887x \ - kernel-module-cx22700 \ - kernel-module-cx22702 \ - kernel-module-s5h1432 \ - kernel-module-drxd \ - kernel-module-l64781 \ - kernel-module-tda1004x \ - kernel-module-nxt6000 \ - kernel-module-mt352 \ - kernel-module-zl10353 \ - kernel-module-dib3000mb \ - kernel-module-dib3000mc \ - kernel-module-dib7000m \ - kernel-module-dib7000p \ - kernel-module-dib9000 \ - kernel-module-tda10048 \ - kernel-module-af9013 \ - kernel-module-ec100 \ - kernel-module-hd29l2 \ - kernel-module-stv0367 \ - kernel-module-cxd2820r \ - kernel-module-rtl2830 \ - kernel-module-rtl2832 \ - kernel-module-ves1820 \ - kernel-module-tda10021 \ - kernel-module-tda10023 \ - kernel-module-stv0297 \ - kernel-module-s921 \ - kernel-module-dib8000 \ - kernel-module-mb86a20s \ - kernel-module-dvb-pll \ - kernel-module-dib0070 \ - kernel-module-dib0090 \ - kernel-module-lnbp21 \ - kernel-module-lnbp22 \ - kernel-module-isl6405 \ - kernel-module-isl6421 \ - kernel-module-isl6423 \ - kernel-module-a8293 \ - kernel-module-lgs8gl5 \ - kernel-module-lgs8gxx \ - kernel-module-atbm8830 \ - kernel-module-tda665x \ - kernel-module-ix2505v \ - kernel-module-it913x-fe \ - kernel-module-m88rs2000 \ - kernel-module-af9033 \ -" - -KERNEL_DVB_MODULES = " \ - ${KERNEL_MEDIA_USB_ADAPTERS} \ - ${KERNEL_MEDIA_CUSTOMIZE_TV_TUNER} \ - ${KERNEL_MEDIA_CUSTOMIZE_DVB_FRONTENDS} \ -" - diff --git a/meta-openvuplus/recipes-vuplus/tuxbox/tuxbox-common.bb b/meta-openvuplus/recipes-vuplus/tuxbox/tuxbox-common.bb index f5477de..e6a4f37 100644 --- a/meta-openvuplus/recipes-vuplus/tuxbox/tuxbox-common.bb +++ b/meta-openvuplus/recipes-vuplus/tuxbox/tuxbox-common.bb @@ -6,7 +6,7 @@ MAINTAINER = "Felix Domke " PN = "tuxbox-common" PR = "r6" -SRC_REV = "HEAD" +SRC_REV = "12436bfb31dafdc4c73bc4bb5d4cb39a0855c95e" SRC_URI = "git://code.vuplus.com/git/dvbapp-meta.git;protocol=git;tag=${SRC_REV} " diff --git a/meta-openvuplus/recipes-vuplus/tuxtxt/tuxbox-libtuxtxt.bb b/meta-openvuplus/recipes-vuplus/tuxtxt/tuxbox-libtuxtxt.bb index 63ade82..9f9e70f 100644 --- a/meta-openvuplus/recipes-vuplus/tuxtxt/tuxbox-libtuxtxt.bb +++ b/meta-openvuplus/recipes-vuplus/tuxtxt/tuxbox-libtuxtxt.bb @@ -4,7 +4,9 @@ LIC_FILES_CHKSUM = "file://libtuxtxt/libtuxtxt.c;endline=19;md5=75fd12b0664044ec DEPENDS = "dreambox-dvbincludes libpng freetype" PR = "r3" -SRC_URI = "git://code.vuplus.com/git/tuxbox-libs.git;protocol=git;tag=HEAD \ +SRCREV = "master" + +SRC_URI = "git://code.vuplus.com/git/tuxbox-libs.git;protocol=git \ file://acinclude.m4 \ file://ignorelibs.patch \ file://32bpp.diff \ @@ -12,6 +14,7 @@ SRC_URI = "git://code.vuplus.com/git/tuxbox-libs.git;protocol=git;tag=HEAD \ file://allow_different_demux.diff \ file://videodev2.patch \ file://libz.patch \ + file://libtuxtxt_buildfix.patch \ " S = "${WORKDIR}/git" @@ -24,4 +27,3 @@ do_configure_prepend() { } CPPFLAGS += "-DHAVE_DREAMBOX_HARDWARE -DDREAMBOX" - diff --git a/meta-openvuplus/recipes-vuplus/tuxtxt/tuxbox-libtuxtxt/libtuxtxt_buildfix.patch b/meta-openvuplus/recipes-vuplus/tuxtxt/tuxbox-libtuxtxt/libtuxtxt_buildfix.patch new file mode 100644 index 0000000..ff08183 --- /dev/null +++ b/meta-openvuplus/recipes-vuplus/tuxtxt/tuxbox-libtuxtxt/libtuxtxt_buildfix.patch @@ -0,0 +1,22 @@ +diff --git a/libtuxtxt/tuxtxt_common.h b/libtuxtxt/tuxtxt_common.h +index 207fdaa..1590217 100644 +--- a/libtuxtxt/tuxtxt_common.h ++++ b/libtuxtxt/tuxtxt_common.h +@@ -5313,7 +5313,7 @@ int tuxtxt_InitRendering(tstRenderInfo* renderinfo,int setTVFormat) + if ((error = FTC_Manager_LookupFace(renderinfo->manager, renderinfo->typettf.face_id, &renderinfo->face))) + { + renderinfo->typettf.face_id = (renderinfo->usettf ? (FTC_FaceID) TUXTXTTTF : TUXTXTOTB); +- if ((error = FTC_Manager_Lookup_Face(renderinfo->manager, renderinfo->typettf.face_id, &renderinfo->face))) ++ if ((error = FTC_Manager_LookupFace(renderinfo->manager, renderinfo->typettf.face_id, &renderinfo->face))) + { + #else + renderinfo->typettf.image_type = ftc_image_mono; +@@ -5323,7 +5323,7 @@ int tuxtxt_InitRendering(tstRenderInfo* renderinfo,int setTVFormat) + if ((error = FTC_Manager_Lookup_Face(renderinfo->manager, renderinfo->typettf.font.face_id, &renderinfo->face))) + { + #endif +- printf("TuxTxt \n", error); ++ printf("TuxTxt \n", error); + FTC_Manager_Done(renderinfo->manager); + FT_Done_FreeType(renderinfo->library); + return 0; diff --git a/meta-openvuplus/recipes-vuplus/tuxtxt/tuxbox-tuxtxt-32bpp.bb b/meta-openvuplus/recipes-vuplus/tuxtxt/tuxbox-tuxtxt-32bpp.bb index 513f8d1..4d9b5ea 100644 --- a/meta-openvuplus/recipes-vuplus/tuxtxt/tuxbox-tuxtxt-32bpp.bb +++ b/meta-openvuplus/recipes-vuplus/tuxtxt/tuxbox-tuxtxt-32bpp.bb @@ -5,7 +5,9 @@ DEPENDS = "freetype tuxbox-libtuxtxt" RDEPENDS_${PN} = "enigma2" PR = "r7" -SRC_URI = "git://code.vuplus.com/git/tuxbox-tuxtxt.git;protocol=git;tag=HEAD \ +SRCREV = "master" + +SRC_URI = "git://code.vuplus.com/git/tuxbox-tuxtxt.git;protocol=git \ file://makefiles.diff \ file://nonblocking.diff \ file://32bpp.diff \ @@ -13,16 +15,17 @@ SRC_URI = "git://code.vuplus.com/git/tuxbox-tuxtxt.git;protocol=git;tag=HEAD \ file://add_advanced_rc.diff \ file://allow_different_demux.diff \ file://plugin.py \ - file://tuxtxt_vuplus.patch;patch=1;pnum=1 \ + file://tuxtxt_vuplus.patch \ " S = "${WORKDIR}/git" -inherit autotools +inherit autotools pkgconfig do_configure_prepend() { touch ${S}/python/__init__.py install -m 0644 ${WORKDIR}/plugin.py ${S}/python + sed -i 's/AM_INIT_AUTOMAKE.*$/AM_INIT_AUTOMAKE([foreign subdir-objects])/' ${S}/configure.ac } FILES_${PN} += "${datadir}/fonts/tuxtxt.otb ${libdir}/enigma2 /etc/tuxtxt" diff --git a/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper.bb b/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper.bb index 7e126b5..397423e 100644 --- a/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper.bb +++ b/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper.bb @@ -1,7 +1,7 @@ DESCIPTION = "helper tool to use usb dvb frontends" MAINTAINER = "PLi team" LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://${THISDIR}/${PN}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" PV = "1.0+git${SRCPV}" PR = "r4" @@ -14,6 +14,10 @@ SRC_URI = " \ file://${PN}.sh \ " +do_configure_prepend() { + sed -i 's/AM_INIT_AUTOMAKE.*$/AM_INIT_AUTOMAKE([foreign subdir-objects])/' ${S}/configure.ac +} + S = "${WORKDIR}/git" inherit autotools update-rc.d diff --git a/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper/GPL-2.0 b/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper/GPL-2.0 deleted file mode 100644 index 7f5abbc..0000000 --- a/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper/GPL-2.0 +++ /dev/null @@ -1,132 +0,0 @@ - -GNU GENERAL PUBLIC LICENSE - -Version 2, June 1991 - -Copyright (C) 1989, 1991 Free Software Foundation, Inc. -51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - -Everyone is permitted to copy and distribute verbatim copies -of this license document, but changing it is not allowed. -Preamble - -The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation`s software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. - -When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. - -To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. - -For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. - -We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. - -Also, for each author`s protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors` reputations. - -Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone`s free use or not licensed at all. - -The precise terms and conditions for copying, distribution and modification follow. - -TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - -0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. - -1. You may copy and distribute verbatim copies of the Program`s source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. - -You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. - -2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: - -a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. -b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. -c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) -These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. - -3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: - -a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, -b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, -c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) -The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. - -If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. - -4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. - -5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. - -6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients` exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. - -7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. - -This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. - -8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. - -9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. - -10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. - -NO WARRANTY - -11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - -12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -END OF TERMS AND CONDITIONS - -How to Apply These Terms to Your New Programs - -If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - -To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - -one line to give the program`s name and an idea of what it does. -Copyright (C) yyyy name of author - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this when it starts in an interactive mode: - -Gnomovision version 69, Copyright (C) year name of author -Gnomovision comes with ABSOLUTELY NO WARRANTY; for details -type `show w`. This is free software, and you are welcome -to redistribute it under certain conditions; type `show c` -for details. -The hypothetical commands `show w` and `show c` should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w` and `show c`; they could even be mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: - -Yoyodyne, Inc., hereby disclaims all copyright -interest in the program `Gnomovision` -(which makes passes at compilers) written -by James Hacker. - -signature of Ty Coon, 1 April 1989 -Ty Coon, President of Vice -This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. - diff --git a/meta-openvuplus/recipes-vuplus/vuplus-coldboot/vuplus-coldboot.bb b/meta-openvuplus/recipes-vuplus/vuplus-coldboot/vuplus-coldboot.bb index ff40cde..8140269 100644 --- a/meta-openvuplus/recipes-vuplus/vuplus-coldboot/vuplus-coldboot.bb +++ b/meta-openvuplus/recipes-vuplus/vuplus-coldboot/vuplus-coldboot.bb @@ -23,3 +23,5 @@ do_install() { ln -sf ../init.d/coldboot.sh ${D}${sysconfdir}/rc0.d/S50coldboot.sh ln -sf ../init.d/ethwol.sh ${D}${sysconfdir}/rc0.d/K32ethwol.sh } + +INHIBIT_PACKAGE_STRIP = "1" diff --git a/meta-openvuplus/recipes-vuplus/vuplus-fpga-update/vuplus-fpga-update.bb b/meta-openvuplus/recipes-vuplus/vuplus-fpga-update/vuplus-fpga-update.bb index 19096c8..6ca458f 100644 --- a/meta-openvuplus/recipes-vuplus/vuplus-fpga-update/vuplus-fpga-update.bb +++ b/meta-openvuplus/recipes-vuplus/vuplus-fpga-update/vuplus-fpga-update.bb @@ -1,7 +1,7 @@ DESCRIPTION = "vuplus fpga updater" SECTION = "base" PRIORITY = "required" -LICENSE = "proprietary" +LICENSE = "Proprietary" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28" PV = "1.0" diff --git a/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/files/vfi2 b/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/files/vfi2 new file mode 100755 index 0000000..a5a50d4 Binary files /dev/null and b/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/files/vfi2 differ diff --git a/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/files/vfi3 b/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/files/vfi3 new file mode 100755 index 0000000..6e1bc62 Binary files /dev/null and b/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/files/vfi3 differ diff --git a/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/vuplus-makenfi-native.bb b/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/vuplus-makenfi-native.bb index 00515d7..add5a74 100644 --- a/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/vuplus-makenfi-native.bb +++ b/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/vuplus-makenfi-native.bb @@ -4,15 +4,18 @@ LICENSE = "CLOSED" PV = "1.0" PR = "r1" -SRC_URI = "file://vfi2 \ - file://vfi3" - -do_compile() { - cp ${WORKDIR}/vfi2 . - cp ${WORKDIR}/vfi3 . -} +SRC_URI = " \ + file://vfi2;name=vfi2 \ + file://vfi3;name=vfi3 \ +" do_populate_sysroot() { - install -m 0755 ${S}/vfi2 ${STAGING_BINDIR_NATIVE}/ - install -m 0755 ${S}/vfi3 ${STAGING_BINDIR_NATIVE}/ + install -m 0755 ${WORKDIR}/vfi2 ${STAGING_BINDIR_NATIVE}/ + install -m 0755 ${WORKDIR}/vfi3 ${STAGING_BINDIR_NATIVE}/ } + +SRC_URI[vfi2.md5sum] ="04d49c0a75e67afe83188887b1cdcc5c" +SRC_URI[vfi2.sha256sum] ="b854ef5eeb01b3c29b66706c7b87a32aeb2c3cadeee8b86736c26dd1964aaa09" +SRC_URI[vfi3.md5sum] ="d36c808021b9324b79f79bf1d70dfcbd" +SRC_URI[vfi3.sha256sum] ="4fc895852d80d6cbad00e9b7d00fe1b29fa927c4a02bb569dd2fb550fa1b8b1b" + diff --git a/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/vuplus-makenfi-native/vfi2 b/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/vuplus-makenfi-native/vfi2 deleted file mode 100755 index a5a50d4..0000000 Binary files a/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/vuplus-makenfi-native/vfi2 and /dev/null differ diff --git a/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/vuplus-makenfi-native/vfi3 b/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/vuplus-makenfi-native/vfi3 deleted file mode 100755 index 6e1bc62..0000000 Binary files a/meta-openvuplus/recipes-vuplus/vuplus-makenfi-native/vuplus-makenfi-native/vfi3 and /dev/null differ diff --git a/meta-openvuplus/recipes-vuplus/vuplus-vucamd/vuplus-vucamd.bb b/meta-openvuplus/recipes-vuplus/vuplus-vucamd/vuplus-vucamd.bb index 8fdaa42..c71f92c 100644 --- a/meta-openvuplus/recipes-vuplus/vuplus-vucamd/vuplus-vucamd.bb +++ b/meta-openvuplus/recipes-vuplus/vuplus-vucamd/vuplus-vucamd.bb @@ -1,8 +1,8 @@ DESCRIPTION = "Xcrypt/Cnx daemon" SECTION = "base" PRIORITY = "required" -LICENSE = "proprietary" -LIC_FILES_CHKSUM = "file://${THISDIR}/${PN}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28" PV = "1.1" PR = "r1" diff --git a/meta-openvuplus/recipes-vuplus/vuplus-vucamd/vuplus-vucamd/Proprietary b/meta-openvuplus/recipes-vuplus/vuplus-vucamd/vuplus-vucamd/Proprietary deleted file mode 100644 index 6618758..0000000 --- a/meta-openvuplus/recipes-vuplus/vuplus-vucamd/vuplus-vucamd/Proprietary +++ /dev/null @@ -1 +0,0 @@ -Proprietary license. diff --git a/openembedded-core b/openembedded-core index 6935beb..234b4fe 160000 --- a/openembedded-core +++ b/openembedded-core @@ -1 +1 @@ -Subproject commit 6935beba7b917097cd139fa48adc6c4449246d11 +Subproject commit 234b4feef24ffe0cea9b6d88d9c51a05ee63db9e