summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Config.in3
-rw-r--r--TODO4
-rw-r--r--mk/build.mk6
-rw-r--r--mk/image.mk60
-rw-r--r--mk/kernel-build.mk5
-rw-r--r--mk/kernel-ver.mk2
-rw-r--r--mk/pkg-bottom.mk2
-rw-r--r--mk/qemu.mk34
-rw-r--r--mk/rootfs.mk3
-rw-r--r--mk/vars.mk3
-rw-r--r--package/DirectFB/Makefile2
-rw-r--r--package/DirectFB/patches/patch-lib_direct_os_linux_glibc_system_c19
-rw-r--r--package/alsa-lib/patches/patch-libtool177
-rw-r--r--package/alsa-lib/patches/patch-utils_alsa_pc_in12
-rw-r--r--package/asterisk/Makefile1
-rw-r--r--package/base-files/Makefile5
-rw-r--r--package/binutils/Makefile6
-rw-r--r--package/bluez-firmware/Makefile2
-rw-r--r--package/bluez/Makefile41
-rw-r--r--package/bluez/patches/patch-Makefile_am10
-rw-r--r--package/bluez/patches/patch-Makefile_in11
-rw-r--r--package/bluez/patches/patch-plugins_wiimote_c10
-rw-r--r--package/bluez/patches/patch-profiles_network_bnep_c10
-rw-r--r--package/bluez/patches/patch-tools_bccmd_c8
-rw-r--r--package/bluez/patches/patch-tools_csr_usb_c10
-rw-r--r--package/bluez/patches/patch-tools_hciattach_c8
-rw-r--r--package/bluez/patches/patch-tools_hciconfig_c10
-rw-r--r--package/bluez/patches/patch-unit_test-sdp_c15
-rw-r--r--package/bridge-utils/Makefile2
-rw-r--r--package/bridge-utils/patches/patch-brctl_brctl_c13
-rw-r--r--package/bridge-utils/patches/patch-brctl_brctl_cmd_c10
-rw-r--r--package/bridge-utils/patches/patch-brctl_brctl_disp_c10
-rw-r--r--package/bridge-utils/patches/patch-libbridge_libbridge_h5
-rw-r--r--package/cfgfs/Makefile2
-rw-r--r--package/comgt/Makefile2
-rw-r--r--package/comgt/patches/patch-comgt_c47
-rw-r--r--package/conntrack-tools/Makefile1
-rw-r--r--package/corosync/Makefile1
-rw-r--r--package/cryptsetup/Makefile6
-rwxr-xr-xpackage/ctorrent/Makefile2
-rw-r--r--package/ctorrent/patches/patch-compat_c13
-rwxr-xr-xpackage/cutter/Makefile2
-rw-r--r--package/cutter/patches/patch-cutter_c16
-rw-r--r--package/daq/Makefile3
-rw-r--r--package/davfs2/Makefile10
-rw-r--r--package/davfs2/patches/patch-src_cache_c14
-rw-r--r--package/davfs2/patches/patch-src_coda_h15
-rw-r--r--package/davfs2/patches/patch-src_dav_fuse_c19
-rw-r--r--package/davfs2/patches/patch-src_kernel_interface_c10
-rw-r--r--package/davfs2/patches/patch-src_mount_davfs_c30
-rw-r--r--package/davfs2/patches/patch-src_webdav_c18
-rw-r--r--package/dbus-python/Makefile2
-rw-r--r--package/dbus-python/patches/patch-configure11
-rw-r--r--package/deco/Makefile3
-rw-r--r--package/dhcp-forwarder/Makefile4
-rw-r--r--package/dhcp-forwarder/patches/patch-src_parser_c10
-rw-r--r--package/digitemp/Makefile1
-rw-r--r--package/dillo/Makefile4
-rw-r--r--package/drbd/Makefile10
-rw-r--r--package/drbd/patches/patch-drbd_drbd_buildtag_c11
-rw-r--r--package/dropbear/Makefile2
-rw-r--r--package/dropbear/files/dropbear.init8
-rw-r--r--package/dsniff/Makefile1
-rw-r--r--package/esound/Makefile2
-rw-r--r--package/esound/patches/patch-esddsp_c38
-rw-r--r--package/ether-wake/Makefile2
-rw-r--r--package/fbset/Makefile2
-rw-r--r--package/firefox/Makefile6
-rw-r--r--package/firefox/patches/patch-ipc_chromium_src_base_file_util_h21
-rw-r--r--package/firefox/patches/patch-ipc_chromium_src_base_file_util_posix_cc37
-rw-r--r--package/firefox/patches/patch-js_src_Makefile_in6
-rw-r--r--package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_addrs_c30
-rw-r--r--package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_stun_h12
-rw-r--r--package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc12
-rw-r--r--package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_spreadsortlib_spreadsort_hpp8
-rw-r--r--package/firefox/patches/patch-python_mozbuild_mozbuild_backend_recursivemake_py11
-rw-r--r--package/firefox/patches/patch-tools_profiler_platform-linux_cc10
-rw-r--r--package/firefox/patches/patch-tools_profiler_shared-libraries-linux_cc8
-rw-r--r--package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp6
-rw-r--r--package/firefox/patches/patch-xpcom_threads_nsThread_cpp6
-rw-r--r--package/fuse/Makefile2
-rw-r--r--package/fuse/patches/patch-lib_fuse_c10
-rw-r--r--package/fuse/patches/patch-lib_fuse_lowlevel_c10
-rw-r--r--package/fuse/patches/patch-lib_mount_util_c10
-rw-r--r--package/fuse/patches/patch-util_mount_util_c10
-rw-r--r--package/gcc/Makefile9
-rw-r--r--package/gcc/patches/4.7.3/cflags.patch (renamed from package/gcc/patches/cflags.patch)0
-rw-r--r--package/gcc/patches/4.7.3/cross-gcc-fix.patch (renamed from package/gcc/patches/cross-gcc-fix.patch)0
-rw-r--r--package/gcc/patches/4.7.3/gcc-cppflags.patch (renamed from package/gcc/patches/gcc-cppflags.patch)0
-rw-r--r--package/gcc/patches/4.7.3/ltmain.patch (renamed from package/gcc/patches/ltmain.patch)0
-rw-r--r--package/gcc/patches/4.7.3/mirbsd-compat.patch (renamed from package/gcc/patches/mirbsd-compat.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-cris.patch (renamed from package/gcc/patches/musl-cris.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-cross.patch (renamed from package/gcc/patches/musl-cross.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-m68k.patch (renamed from package/gcc/patches/musl-m68k.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-mips64.patch (renamed from package/gcc/patches/musl-mips64.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-ppc.patch (renamed from package/gcc/patches/musl-ppc.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-sh.patch (renamed from package/gcc/patches/musl-sh.patch)0
-rw-r--r--package/gcc/patches/4.7.3/musl-sparc.patch (renamed from package/gcc/patches/musl-sparc.patch)0
-rw-r--r--package/gcc/patches/4.7.3/sdt.patch (renamed from package/gcc/patches/sdt.patch)0
-rw-r--r--package/gcc/patches/4.8.2/patch-libatomic_Makefile_in12
-rw-r--r--package/gdb/patches/patch-gdb_gdbserver_configure20
-rw-r--r--package/gdbserver/Makefile1
-rw-r--r--package/glibc/files/libc.so.microblaze5
-rw-r--r--package/gperf/Makefile6
-rw-r--r--package/gpm/Makefile10
-rw-r--r--package/gpm/patches/patch-Makefile_in11
-rw-r--r--package/gpm/patches/patch-src_Makefile_in8
-rw-r--r--package/gpm/patches/patch-src_daemon_open_console_c19
-rw-r--r--package/gpm/patches/patch-src_prog_display-buttons_c10
-rw-r--r--package/gpm/patches/patch-src_prog_display-coords_c10
-rw-r--r--package/gpm/patches/patch-src_prog_gpm-root_y25
-rw-r--r--package/hdparm/Makefile6
-rw-r--r--package/hdparm/patches/patch-Makefile36
-rw-r--r--package/hdparm/patches/patch-fallocate_c11
-rw-r--r--package/hdparm/patches/patch-hdparm_h10
-rw-r--r--package/hdparm/patches/patch-sysfs_c14
-rw-r--r--package/heyu/Makefile2
-rw-r--r--package/hostapd/Makefile4
-rw-r--r--package/hostapd/patches/patch-src_drivers_linux_wext_h19
-rw-r--r--package/htop/Makefile3
-rw-r--r--package/iftop/Makefile2
-rw-r--r--package/iptraf/Makefile2
-rw-r--r--package/irssi/Makefile3
-rw-r--r--package/jamvm/Makefile2
-rw-r--r--package/jamvm/patches/patch-src_os_linux_os_c17
-rw-r--r--package/kismet/Makefile13
-rw-r--r--package/kismet/patches/patch-configure_in12
-rw-r--r--package/kismet/patches/patch-dumpfile_tuntap_h18
-rw-r--r--package/kmod/patches/patch-libkmod_libkmod-util_c24
-rw-r--r--package/l2tpns/Makefile2
-rw-r--r--package/l2tpns/patches/patch-cli_c10
-rw-r--r--package/l2tpns/patches/patch-cluster_c10
-rw-r--r--package/lame/Makefile1
-rw-r--r--package/libXft/patches/patch-src_xftglyphs_c11
-rw-r--r--package/libXt/Makefile3
-rw-r--r--package/libXt/patches/patch-util_Makefile_in2
-rw-r--r--package/libaudiofile/Makefile2
-rw-r--r--package/libaudiofile/patches/patch-Makefile_in11
-rw-r--r--package/libbluray/Makefile1
-rw-r--r--package/libcec/Makefile34
-rwxr-xr-xpackage/libcli/Makefile8
-rw-r--r--package/libcli/patches/patch-Makefile30
-rw-r--r--package/libgcrypt/Makefile12
-rw-r--r--package/libjansson/Makefile28
-rw-r--r--package/liblzo/Makefile11
-rw-r--r--package/libmms/Makefile2
-rw-r--r--package/libnet/Makefile6
-rw-r--r--package/libnet/patches/patch-src_libnet_link_linux_c30
-rw-r--r--package/libnfs/Makefile28
-rw-r--r--package/libnids/Makefile3
-rw-r--r--package/libpng/Makefile6
-rw-r--r--package/libpng/patches/libpng-1.6.8-apng.patch (renamed from package/libpng/patches/libpng-1.5.15-apng.patch)612
-rw-r--r--package/librpcsecgss/Makefile2
-rw-r--r--package/libshout/Makefile10
-rw-r--r--package/libshout/patches/patch-ltmain_sh11
-rw-r--r--package/libssh/Makefile37
-rw-r--r--package/libssh/patches/patch-cmake_Modules_DefineCompilerFlags_cmake14
-rw-r--r--package/libstdcxx/Makefile24
-rw-r--r--package/libtirpc/Makefile2
-rwxr-xr-xpackage/libunistring/Makefile2
-rw-r--r--package/libusb-compat/Makefile8
-rw-r--r--package/libusb-compat/patches/patch-libusb_usb_h10
-rw-r--r--package/libvirt/Makefile1
-rw-r--r--package/libxml2/Makefile4
-rw-r--r--package/lsof/Makefile2
-rw-r--r--package/lsscsi/Makefile4
-rw-r--r--package/m4/Makefile4
-rw-r--r--package/m4/patches/patch-lib_stdio_in_h13
-rw-r--r--package/madplay/Makefile3
-rw-r--r--package/mdadm/Makefile4
-rw-r--r--package/mdadm/patches/patch-Makefile22
-rw-r--r--package/miax/Makefile6
-rw-r--r--package/miax/patches/01-cross.patch6
-rw-r--r--package/miredo/Makefile2
-rw-r--r--package/miredo/patches/patch-libtun6_tun6_c15
-rw-r--r--package/monit/Makefile6
-rw-r--r--package/monit/patches/patch-configure88
-rw-r--r--package/monit/patches/patch-src_process_sysdep_LINUX_c11
-rw-r--r--package/mpd/Makefile3
-rw-r--r--package/mpg123/Makefile1
-rw-r--r--package/mtr/Makefile2
-rw-r--r--package/nano/Makefile20
-rw-r--r--package/ncurses/Makefile5
-rw-r--r--package/net-snmp/Makefile2
-rw-r--r--package/net-snmp/patches/patch-agent_mibgroup_mibII_tcpTable_c12
-rw-r--r--package/net-snmp/patches/patch-agent_mibgroup_util_funcs_get_pid_from_inode_c10
-rw-r--r--package/net-snmp/patches/patch-net-snmp-config_in6
-rw-r--r--package/net-tools/Makefile2
-rw-r--r--package/net-tools/patches/patch-lib_inet_c11
-rw-r--r--package/nfs-utils/Makefile2
-rw-r--r--package/nspr/Makefile8
-rw-r--r--package/nspr/patches/patch-mozilla_nsprpub_config_Makefile_in11
-rw-r--r--package/nspr/patches/patch-mozilla_nsprpub_configure11
-rw-r--r--package/nspr/patches/patch-mozilla_nsprpub_pr_src_misc_prnetdb_c16
-rw-r--r--package/ntpclient/patches/patch-ntpclient_c11
-rw-r--r--package/obexftp/Makefile8
-rw-r--r--package/obexftp/patches/patch-obexftp_client_c11
-rw-r--r--package/open-iscsi/patches/patch-usr_idbm_c10
-rw-r--r--package/open-iscsi/patches/patch-usr_mgmt_ipc_c4
-rw-r--r--package/openafs/Makefile2
-rw-r--r--package/openobex/Makefile3
-rw-r--r--package/oprofile/Makefile2
-rw-r--r--package/orbit2/Makefile9
-rw-r--r--package/orbit2/patches/patch-src_idl-compiler_Makefile_in9
-rw-r--r--package/osiris/patches/patch-src_libosiris_Makefile_in4
-rw-r--r--package/osiris/patches/patch-src_libosiris_osi_common_h10
-rw-r--r--package/pacemaker-mgmt/Makefile3
-rw-r--r--package/pam/Makefile15
-rw-r--r--package/pam/patches/patch-Makefile_in24
-rw-r--r--package/pam/patches/patch-conf_Makefile_in11
-rw-r--r--package/pam/patches/patch-configure15
-rw-r--r--package/pam/patches/patch-modules_Makefile_in11
-rw-r--r--package/pam/patches/patch-modules_pam_group_pam_group_c19
-rw-r--r--package/pam/patches/patch-modules_pam_lastlog_pam_lastlog_c21
-rw-r--r--package/pam/patches/patch-modules_pam_succeed_if_pam_succeed_if_c47
-rw-r--r--package/pam/patches/patch-modules_pam_time_pam_time_c15
-rw-r--r--package/pam/patches/patch-modules_pam_timestamp_hmacfile107
-rw-r--r--package/pam/patches/patch-modules_pam_unix_pam_unix_acct_c10
-rw-r--r--package/parted/Makefile2
-rw-r--r--package/parted/patches/patch-lib_config_h_in8
-rw-r--r--package/parted/patches/patch-libparted_fs_xfs_platform_defs_h11
-rw-r--r--package/picocom/Makefile8
-rw-r--r--package/picocom/patches/patch-Makefile16
-rw-r--r--package/picocom/patches/patch-term_c106
-rw-r--r--package/portsentry/Makefile2
-rw-r--r--package/ppp/Makefile2
-rw-r--r--package/pptp/Makefile6
-rw-r--r--package/pptp/patches/patch-Makefile22
-rw-r--r--package/pptp/patches/patch-pptp_c11
-rw-r--r--package/pptp/patches/patch-pqueue_c10
-rw-r--r--package/procps/Makefile3
-rw-r--r--package/procps/patches/patch-Makefile6
-rw-r--r--package/procps/patches/patch-proc_readproc_c10
-rw-r--r--package/proftpd/Makefile8
-rw-r--r--package/ptunnel/Makefile2
-rw-r--r--package/ptunnel/patches/patch-ptunnel_c11
-rw-r--r--package/ptunnel/patches/patch-ptunnel_h11
-rw-r--r--package/quagga/Makefile4
-rw-r--r--package/quagga/patches/patch-configure20
-rw-r--r--package/quagga/patches/patch-lib_queue_h11
-rw-r--r--package/quagga/patches/patch-lib_sockopt_c23
-rw-r--r--package/quagga/patches/patch-lib_zebra_h10
-rw-r--r--package/quagga/patches/patch-ltmain_sh11
-rw-r--r--package/quagga/patches/patch-redhat_quagga_spec11
-rw-r--r--package/quagga/patches/patch-vtysh_extract_pl8
-rw-r--r--package/radvd/Makefile7
-rw-r--r--package/radvd/patches/patch-configure_ac10
-rw-r--r--package/rdate/Makefile1
-rw-r--r--package/rdate/patches/patch-ntp_c50
-rw-r--r--package/rdate/patches/patch-rdate_h11
-rw-r--r--package/rdate/patches/patch-rfc868time_c11
-rw-r--r--package/rdesktop/Makefile12
-rw-r--r--package/rp-pppoe/Makefile1
-rw-r--r--package/rpcbind/Makefile2
-rw-r--r--package/rtmpdump/Makefile40
-rw-r--r--package/rtmpdump/patches/patch-Makefile28
-rw-r--r--package/rtmpdump/patches/patch-librtmp_Makefile36
-rw-r--r--package/samba/Makefile4
-rw-r--r--package/scanlogd/Makefile1
-rw-r--r--package/screen/Makefile1
-rw-r--r--package/scsi-spin/src/scsi-spin.c5
-rw-r--r--package/sdl-image/Makefile6
-rw-r--r--package/sdl/Makefile7
-rw-r--r--package/section.lst1
-rw-r--r--package/snort/Makefile2
-rw-r--r--package/socat/Makefile6
-rw-r--r--package/socat/patches/501-honor_ldflags.patch6
-rw-r--r--package/socat/patches/patch-sysincludes_h14
-rw-r--r--package/socat/patches/patch-xio-ip4_c12
-rw-r--r--package/socat/patches/patch-xio-proxy_c12
-rw-r--r--package/socat/patches/patch-xio-tun_c15
-rw-r--r--package/squid/Makefile6
-rw-r--r--package/ssltunnel/Makefile2
-rw-r--r--package/strongswan/Makefile6
-rw-r--r--package/swig/Makefile26
-rw-r--r--package/systemd/Makefile15
-rw-r--r--package/systemd/patches/patch-Makefile_am20
-rw-r--r--package/systemd/patches/patch-configure_ac12
-rw-r--r--package/systemd/patches/patch-src_libudev_libudev_pc_in15
-rw-r--r--package/taglib/Makefile4
-rw-r--r--package/tcp_wrappers/Makefile2
-rw-r--r--package/tcp_wrappers/patches/patch-Makefile4
-rw-r--r--package/tcp_wrappers/patches/patch-cflags4
-rw-r--r--package/tcp_wrappers/patches/patch-tcpd_h19
-rw-r--r--package/tcsh/Makefile2
-rw-r--r--package/tcsh/patches/patch-sh_h8
-rw-r--r--package/tcsh/patches/patch-sh_proc_c11
-rw-r--r--package/tinc/Makefile7
-rw-r--r--package/tinc/patches/patch-src_Makefile_in11
-rw-r--r--package/tinc/patches/patch-src_have_h25
-rw-r--r--package/tinc/patches/patch-src_linux_device_c20
-rw-r--r--package/tptest/Makefile2
-rw-r--r--package/tptest/patches/patch-apps_unix_server_server_c10
-rw-r--r--package/traceroute/Makefile6
-rw-r--r--package/traceroute/patches/patch-Make_rules14
-rw-r--r--package/traceroute/patches/patch-traceroute_csum_c17
-rw-r--r--package/traceroute/patches/patch-traceroute_extension_c61
-rw-r--r--package/traceroute/patches/patch-traceroute_mod-dccp_c55
-rw-r--r--package/traceroute/patches/patch-traceroute_mod-icmp_c22
-rw-r--r--package/traceroute/patches/patch-traceroute_mod-tcp_c126
-rw-r--r--package/traceroute/patches/patch-traceroute_mod-udp_c20
-rw-r--r--package/traceroute/patches/patch-traceroute_traceroute_c34
-rw-r--r--package/traceroute/patches/patch-traceroute_traceroute_h11
-rw-r--r--package/ussp-push/Makefile3
-rw-r--r--package/util-linux/Makefile4
-rw-r--r--package/util-linux/patches/patch-libuuid_uuid_pc_in13
-rw-r--r--package/util-macros/Makefile4
-rw-r--r--package/v4l-utils/Makefile8
-rw-r--r--package/vim/Makefile1
-rw-r--r--package/vnc-reflector/Makefile2
-rw-r--r--package/vnc-reflector/patches/patch-actions_c10
-rw-r--r--package/vnc-reflector/patches/patch-active_c10
-rw-r--r--package/vnc-reflector/patches/patch-region_c10
-rw-r--r--package/vpnc/Makefile3
-rw-r--r--package/vpnc/patches/patch-sysdep_c17
-rw-r--r--package/vpnc/patches/patch-sysdep_h11
-rw-r--r--package/wifidog/Makefile2
-rw-r--r--package/wifidog/patches/patch-libhttpd_api_c6
-rw-r--r--package/wifidog/patches/patch-libhttpd_ip_acl_c14
-rw-r--r--package/wifidog/patches/patch-libhttpd_protocol_c20
-rw-r--r--package/wifidog/patches/patch-src_client_list_c11
-rw-r--r--package/wifidog/patches/patch-src_firewall_c11
-rw-r--r--package/wifidog/patches/patch-src_util_c11
-rw-r--r--package/xbmc/Makefile20
-rw-r--r--package/xbmc/patches/patch-lib_libdvd_libdvdread_Makefile13
-rw-r--r--package/xf86-input-evdev/Makefile2
-rw-r--r--package/xf86-video-intel/Makefile2
-rw-r--r--package/xf86-video-intel/patches/patch-configure32
-rw-r--r--package/xf86-video-intel/patches/patch-ltmain_sh11
-rw-r--r--package/xfsprogs/Makefile2
-rw-r--r--package/xorg-server/Makefile2
-rw-r--r--package/xorg-server/patches/patch-hw_kdrive_linux_linux_c13
-rw-r--r--package/xterm/Makefile3
-rw-r--r--package/xz/Makefile4
-rw-r--r--rules.mk1
-rw-r--r--scripts/scan-pkgs.sh27
-rw-r--r--target/Makefile10
-rw-r--r--target/arm/kernel.config57
-rw-r--r--target/arm/sys-available/keyasic-ka200016
-rw-r--r--target/arm/sys-available/raspberry-pi1
-rw-r--r--target/config/Config.in51
-rw-r--r--target/linux/Config.in1
-rw-r--r--target/linux/config/Config.in.block4
-rw-r--r--target/linux/config/Config.in.flash36
-rw-r--r--target/linux/config/Config.in.fs23
-rw-r--r--target/linux/config/Config.in.graphics2
-rw-r--r--target/linux/config/Config.in.microblaze4
-rw-r--r--target/linux/kernel.config41
-rw-r--r--target/linux/patches/3.11.10/defaults.patch24
-rw-r--r--target/linux/patches/3.11.10/microblaze-dts.patch475
-rw-r--r--target/linux/patches/3.11.10/microblaze-ethernet.patch11
-rw-r--r--target/microblaze/Makefile38
-rw-r--r--target/microblaze/kernel.config1337
-rw-r--r--target/microblaze/kernel/qemu-microblaze-ml60537
-rw-r--r--target/microblaze/kernel/qemu-microblaze-s3adsp180034
-rw-r--r--target/microblaze/ml605.dtbbin0 -> 12839 bytes
-rw-r--r--target/microblaze/ml605.dts399
-rw-r--r--target/microblaze/sys-available/qemu-microblaze6
-rw-r--r--target/microblaze/sys-available/qemu-microblazeel5
-rw-r--r--target/tools/mtd-utils/Makefile24
-rw-r--r--target/tools/mtd-utils/patches/lzo.patch80
-rw-r--r--target/tools/squashfs/Makefile10
-rw-r--r--target/tools/squashfs/patches/cppflags.patch12
-rw-r--r--target/tools/squashfs/patches/honour-cflags.patch11
-rw-r--r--target/tools/squashfs/patches/squashfs-bsd.patch245
-rw-r--r--target/tools/squashfs/patches/uClibc-compat.patch24
-rw-r--r--target/tools/xz/Makefile28
-rw-r--r--target/x86/Makefile4
-rw-r--r--target/x86/sys-available/ibm-x402
-rw-r--r--toolchain/eglibc/Makefile3
-rw-r--r--toolchain/musl/Makefile13
-rw-r--r--toolchain/musl/Makefile.inc4
-rw-r--r--toolchain/musl/patches/i386-syscall.patch27
-rw-r--r--tools/Makefile6
-rw-r--r--tools/cdrtools/Makefile25
-rw-r--r--tools/gperf/Makefile25
-rw-r--r--tools/syslinux/Makefile38
377 files changed, 4274 insertions, 3550 deletions
diff --git a/Config.in b/Config.in
index e7a496e9c..268ea3558 100644
--- a/Config.in
+++ b/Config.in
@@ -91,6 +91,9 @@ source "package/Config.in.auto.global"
source "package/Config.in.auto"
endmenu
+config ADK_USE_KERNEL_MINICONFIG
+ boolean
+
choice
prompt "Kernel Version"
depends on ADK_TOOLCHAIN_ONLY
diff --git a/TODO b/TODO
index 57ab4fb30..0770a0771 100644
--- a/TODO
+++ b/TODO
@@ -1,3 +1,4 @@
+- microblaze: add cfgfs partition to dts, add partition to spartan dts
- use host-tools infrastructure for openjdk7
- remove openjdk6
- evaluate libguestfs for image creation
@@ -5,6 +6,3 @@
- check for gcc and SSP again
- port full blown perl
- port w3m
-- port libcec for xbmc
-- check xbmc samba/nfs support
-- add support for librtmp in xbmc
diff --git a/mk/build.mk b/mk/build.mk
index 0b3d2cc73..f20b4e59e 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -36,6 +36,7 @@ DEFCONFIG= ADK_DEBUG=n \
ADK_PACKAGE_URLGRABBER=n \
ADK_PACKAGE_PERL=n \
ADK_PACKAGE_LIBSSP=n \
+ ADK_PACKAGE_OPENAFS=n \
ADK_PKG_XORG=n \
ADK_PKG_MPDBOX=n \
ADK_PKG_DEVELOPMENT=n \
@@ -99,7 +100,7 @@ POSTCONFIG= -@\
touch .rebuild.busybox;\
rebuild=1;\
fi; \
- for i in ADK_RUNTIME_PASSWORD ADK_RUNTIME_TMPFS_SIZE ADK_RUNTIME_HOSTNAME ADK_TARGET_ROOTFS ADK_RUNTIME_CONSOLE;do \
+ for i in ADK_RUNTIME_PASSWORD ADK_RUNTIME_TMPFS_SIZE ADK_RUNTIME_HOSTNAME ADK_TARGET_ROOTFS ADK_RUNTIME_CONSOLE ADK_TARGET_QEMU_MICROBLAZE_MODEL;do \
if [ "$$(grep ^$$i .config|md5sum)" != "$$(grep ^$$i .config.old|md5sum)" ];then \
touch .rebuild.base-files;\
rebuild=1;\
@@ -572,8 +573,9 @@ release:
$(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit; exit 1;fi; \
rm .config; \
) 2>&1 | tee $(TOPDIR)/bin/$(SYSTEM)_$(ARCH)_$$libc/build.log; \
- if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; break;fi \
+ if [ -f .exit ];then echo "Bulk build failed!"; break;fi \
done
+ if [ -f .exit ];then rm .exit;exit 1;fi
# build all target architecture, target systems and libc combinations
bulk:
diff --git a/mk/image.mk b/mk/image.mk
index 2273b4af7..79d6102c6 100644
--- a/mk/image.mk
+++ b/mk/image.mk
@@ -119,14 +119,18 @@ ifeq ($(ADK_HARDWARE_QEMU),y)
TARGET_KERNEL= ${ADK_TARGET_SYSTEM}-$(CPU_ARCH)-${ADK_TARGET_FS}-kernel
INITRAMFS= ${ADK_TARGET_SYSTEM}-$(CPU_ARCH)-${ADK_TARGET_LIBC}-${ADK_TARGET_FS}
ROOTFSSQUASHFS= ${ADK_TARGET_SYSTEM}-$(CPU_ARCH)-${ADK_TARGET_LIBC}-${ADK_TARGET_FS}.img
+ROOTFSJFFS2= ${ADK_TARGET_SYSTEM}-$(CPU_ARCH)-${ADK_TARGET_LIBC}-jffs2.img
ROOTFSTARBALL= ${ADK_TARGET_SYSTEM}-$(CPU_ARCH)-${ADK_TARGET_LIBC}-${ADK_TARGET_FS}+kernel.tar.gz
ROOTFSUSERTARBALL= ${ADK_TARGET_SYSTEM}-$(CPU_ARCH)-${ADK_TARGET_LIBC}-${ADK_TARGET_FS}.tar.gz
+ROOTFSISO= ${ADK_TARGET_SYSTEM}-$(CPU_ARCH)-${ADK_TARGET_LIBC}-${ADK_TARGET_FS}.iso
else
TARGET_KERNEL= ${ADK_TARGET_SYSTEM}-${ADK_TARGET_FS}-kernel
INITRAMFS= ${ADK_TARGET_SYSTEM}-${ADK_TARGET_LIBC}-${ADK_TARGET_FS}
ROOTFSSQUASHFS= ${ADK_TARGET_SYSTEM}-${ADK_TARGET_LIBC}-${ADK_TARGET_FS}.img
+ROOTFSJFFS2= ${ADK_TARGET_SYSTEM}-${ADK_TARGET_LIBC}-jffs2.img
ROOTFSTARBALL= ${ADK_TARGET_SYSTEM}-${ADK_TARGET_LIBC}-${ADK_TARGET_FS}+kernel.tar.gz
ROOTFSUSERTARBALL= ${ADK_TARGET_SYSTEM}-${ADK_TARGET_LIBC}-${ADK_TARGET_FS}.tar.gz
+ROOTFSISO= ${ADK_TARGET_SYSTEM}-${ADK_TARGET_LIBC}-${ADK_TARGET_FS}.iso
endif
${BIN_DIR}/${ROOTFSTARBALL}: ${TARGET_DIR} kernel-package
@@ -159,43 +163,89 @@ ${BIN_DIR}/${INITRAMFS}: ${BIN_DIR}/${INITRAMFS}_list
${BUILD_DIR}/root.squashfs: ${TARGET_DIR}
${STAGING_HOST_DIR}/bin/mksquashfs ${TARGET_DIR} \
- ${BUILD_DIR}/root.squashfs \
+ ${BUILD_DIR}/root.squashfs -comp xz \
-nopad -noappend -root-owned $(MAKE_TRACE)
+${BIN_DIR}/${ROOTFSJFFS2}: ${TARGET_DIR}
+ ${STAGING_HOST_DIR}/bin/mkfs.jffs2 $(ADK_JFFS2_OPTS) -q -r ${TARGET_DIR} \
+ --pad=$(ADK_TARGET_MTD_SIZE) -o ${BIN_DIR}/${ROOTFSJFFS2} $(MAKE_TRACE)
+
createinitramfs: ${BIN_DIR}/${INITRAMFS}_list
${SED} 's/.*CONFIG_(BLK_DEV_INITRD|INITRAMFS_SOURCE|INITRAMFS_COMPRESSION).*//' \
${LINUX_DIR}/.config
( \
echo "CONFIG_BLK_DEV_INITRD=y"; \
echo 'CONFIG_INITRAMFS_SOURCE="${BIN_DIR}/${INITRAMFS}_list"'; \
- echo 'CONFIG_INITRAMFS_COMPRESSION_NONE is not set' >> ${LINUX_DIR}/.config; \
+ echo '# CONFIG_INITRAMFS_COMPRESSION_NONE is not set' >> ${LINUX_DIR}/.config; \
+ echo 'CONFIG_INITRAMFS_ROOT_UID=0' >> ${LINUX_DIR}/.config; \
+ echo 'CONFIG_INITRAMFS_ROOT_GID=0' >> ${LINUX_DIR}/.config; \
) >> ${LINUX_DIR}/.config
ifeq ($(ADK_KERNEL_COMP_XZ),y)
+ echo "CONFIG_RD_BZIP2=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_GZIP=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZMA=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZ4=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZO=n" >> ${LINUX_DIR}/.config
echo "CONFIG_RD_XZ=y" >> ${LINUX_DIR}/.config
echo "CONFIG_INITRAMFS_COMPRESSION_XZ=y" >> ${LINUX_DIR}/.config
+ echo "CONFIG_XZ_DEC_X86=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_XZ_DEC_POWERPC=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_XZ_DEC_IA64=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_XZ_DEC_ARM=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_XZ_DEC_ARMTHUMB=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_XZ_DEC_SPARC=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_XZ_DEC_TEST=n" >> ${LINUX_DIR}/.config
endif
ifeq ($(ADK_KERNEL_COMP_LZMA),y)
+ echo "CONFIG_RD_XZ=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_BZIP2=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_GZIP=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZO=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZ4=n" >> ${LINUX_DIR}/.config
echo "CONFIG_RD_LZMA=y" >> ${LINUX_DIR}/.config
echo "CONFIG_INITRAMFS_COMPRESSION_LZMA=y" >> ${LINUX_DIR}/.config
endif
ifeq ($(ADK_KERNEL_COMP_LZO),y)
+ echo "CONFIG_RD_XZ=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_BZIP2=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_GZIP=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZMA=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZ4=n" >> ${LINUX_DIR}/.config
echo "CONFIG_RD_LZO=y" >> ${LINUX_DIR}/.config
echo "CONFIG_INITRAMFS_COMPRESSION_LZO=y" >> ${LINUX_DIR}/.config
endif
ifeq ($(ADK_KERNEL_COMP_GZIP),y)
+ echo "CONFIG_RD_XZ=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_BZIP2=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZO=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZMA=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZ4=n" >> ${LINUX_DIR}/.config
echo "CONFIG_RD_GZIP=y" >> ${LINUX_DIR}/.config
echo "CONFIG_INITRAMFS_COMPRESSION_GZIP=y" >> ${LINUX_DIR}/.config
endif
ifeq ($(ADK_KERNEL_COMP_BZIP2),y)
+ echo "CONFIG_RD_XZ=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_GZIP=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZMA=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZO=n" >> ${LINUX_DIR}/.config
+ echo "CONFIG_RD_LZ4=n" >> ${LINUX_DIR}/.config
echo "CONFIG_RD_BZIP2=y" >> ${LINUX_DIR}/.config
echo "CONFIG_INITRAMFS_COMPRESSION_BZIP2=y" >> ${LINUX_DIR}/.config
endif
@-rm $(LINUX_DIR)/usr/initramfs_data.cpio* 2>/dev/null
- echo N | \
- $(MAKE) -C $(LINUX_DIR) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
- ARCH=$(ARCH) CC="$(TARGET_CC)" -j${ADK_MAKE_JOBS} oldconfig $(MAKE_TRACE)
$(MAKE) -C $(LINUX_DIR) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
ARCH=$(ARCH) CC="$(TARGET_CC)" -j${ADK_MAKE_JOBS} $(ADK_TARGET_KERNEL) $(MAKE_TRACE)
+${BIN_DIR}/${ROOTFSISO}: ${TARGET_DIR} kernel-package
+ mkdir -p ${TARGET_DIR}/boot/syslinux
+ cp ${STAGING_HOST_DIR}/usr/share/syslinux/{isolinux.bin,ldlinux.c32} \
+ ${TARGET_DIR}/boot/syslinux
+ echo 'DEFAULT /boot/kernel root=/dev/sr0 init=/init' > \
+ ${TARGET_DIR}/boot/syslinux/isolinux.cfg
+ ${TOOLS_DIR}/mkisofs -R -uid 0 -gid 0 -o $@ \
+ -b boot/syslinux/isolinux.bin \
+ -c boot/syslinux/boot.cat -no-emul-boot \
+ -boot-load-size 4 -boot-info-table ${TARGET_DIR}
+
imageclean:
rm -f $(BIN_DIR)/$(ADK_TARGET_SYSTEM)-* ${BUILD_DIR}/$(ADK_TARGET_SYSTEM)-*
diff --git a/mk/kernel-build.mk b/mk/kernel-build.mk
index 59a68eb88..8fe0799a0 100644
--- a/mk/kernel-build.mk
+++ b/mk/kernel-build.mk
@@ -35,8 +35,13 @@ $(LINUX_DIR)/.prepared: $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PK
$(LINUX_DIR)/.config: $(LINUX_DIR)/.prepared $(BUILD_DIR)/.kernelconfig $(TOPDIR)/mk/modules.mk
$(TRACE) target/$(ADK_TARGET_ARCH)-kernel-configure
-for f in $(TARGETS);do if [ -f $$f ];then rm $$f;fi;done
+ifeq ($(ADK_USE_KERNEL_MINICONFIG),y)
+ $(CP) $(BUILD_DIR)/.kernelconfig $(LINUX_DIR)/mini.config
+ ${KERNEL_MAKE_ENV} $(MAKE) ${KERNEL_MAKE_OPTS} KCONFIG_ALLCONFIG=mini.config allnoconfig $(MAKE_TRACE)
+else
$(CP) $(BUILD_DIR)/.kernelconfig $(LINUX_DIR)/.config
echo N | ${KERNEL_MAKE_ENV} $(MAKE) ${KERNEL_MAKE_OPTS} oldconfig $(MAKE_TRACE)
+endif
${KERNEL_MAKE_ENV} $(MAKE) ${KERNEL_MAKE_OPTS} prepare scripts $(MAKE_TRACE)
touch -c $(LINUX_DIR)/.config
diff --git a/mk/kernel-ver.mk b/mk/kernel-ver.mk
index 0cfc73006..e4c368af5 100644
--- a/mk/kernel-ver.mk
+++ b/mk/kernel-ver.mk
@@ -2,7 +2,7 @@ ifeq ($(ADK_KERNEL_VERSION_TOOLCHAIN),y)
KERNEL_VERSION:= 3.11.10
KERNEL_MOD_VERSION:= $(KERNEL_VERSION)
KERNEL_RELEASE:= 1
-KERNEL_MD5SUM:= edbf88eb7f7d34dbd5d3887726790755
+KERNEL_MD5SUM:= 59f352d3f4e2cdf6755f79e09fa09176
endif
ifeq ($(ADK_KERNEL_VERSION_3_11_10),y)
KERNEL_VERSION:= 3.11.10
diff --git a/mk/pkg-bottom.mk b/mk/pkg-bottom.mk
index 0358c0382..dd8e81c41 100644
--- a/mk/pkg-bottom.mk
+++ b/mk/pkg-bottom.mk
@@ -180,7 +180,7 @@ ifneq (,$(filter dev,${PKG_OPTS}))
done
endif
@-cd ${WRKINST}; \
- if [ "${PKG_NAME}" != "uClibc" -a "${PKG_NAME}" != "eglibc" -a "${PKG_NAME}" != "glibc" -a "${PKG_NAME}" != "libpthread" -a "${PKG_NAME}" != "libstdcxx" -a "${PKG_NAME}" != "libgcc" -a "${PKG_NAME}" != "libthread-db" -a "${PKG_NAME}" != "musl" ];then \
+ if [ "${PKG_NAME}" != "uClibc" -a "${PKG_NAME}" != "eglibc" -a "${PKG_NAME}" != "glibc" -a "${PKG_NAME}" != "libpthread" -a "${PKG_NAME}" != "libstdcxx" -a "${PKG_NAME}" != "libgcc" -a "${PKG_NAME}" != "libthread-db" -a "${PKG_NAME}" != "musl" -a "${PKG_NAME}" != "pam" ];then \
find lib \( -name lib\*.so\* -o -name lib\*.a \) \
-exec echo 'WARNING: ${PKG_NAME} installs files in /lib -' \
' fix this!' >&2 \; -quit 2>/dev/null; fi;\
diff --git a/mk/qemu.mk b/mk/qemu.mk
new file mode 100644
index 000000000..f6151eeda
--- /dev/null
+++ b/mk/qemu.mk
@@ -0,0 +1,34 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+ifeq ($(CPU_ARCH),arm)
+QEMU:= qemu-arm
+endif
+ifeq ($(CPU_ARCH),mipsel)
+QEMU:= qemu-mipsel
+endif
+ifeq ($(CPU_ARCH),mips64el)
+QEMU:= qemu-mipsel
+endif
+ifeq ($(CPU_ARCH),mips)
+QEMU:= qemu-mips
+endif
+ifeq ($(CPU_ARCH),mips64)
+QEMU:= qemu-mips
+endif
+ifeq ($(CPU_ARCH),ppc)
+QEMU:= qemu-ppc
+endif
+ifeq ($(CPU_ARCH),i486)
+QEMU:= qemu-i386
+endif
+ifeq ($(CPU_ARCH),i586)
+QEMU:= qemu-i386
+endif
+ifeq ($(CPU_ARCH),i686)
+QEMU:= qemu-i386
+endif
+ifeq ($(CPU_ARCH),x86_64)
+QEMU:= qemu-x86_64
+endif
+
diff --git a/mk/rootfs.mk b/mk/rootfs.mk
index 283c87aa7..3bbe31f25 100644
--- a/mk/rootfs.mk
+++ b/mk/rootfs.mk
@@ -9,6 +9,7 @@ endif
endef
ifeq ($(ADK_HARDWARE_QEMU),y)
+MTDDEV:= root=/dev/mtdblock0
ifeq ($(ADK_TARGET_ROOTFS_ARCHIVE),y)
ROOTFS:= root=/dev/sda1
endif
@@ -50,7 +51,9 @@ $(eval $(call rootfs_template,initramfs,INITRAMFS))
$(eval $(call rootfs_template,initramfs-piggyback,INITRAMFS_PIGGYBACK))
$(eval $(call rootfs_template,squashfs,SQUASHFS,$(ROOTFS)))
$(eval $(call rootfs_template,yaffs,YAFFS,$(MTDDEV) panic=3))
+$(eval $(call rootfs_template,jffs2,JFFS2,$(MTDDEV) rootfstype=jffs2))
$(eval $(call rootfs_template,nfsroot,NFSROOT,root=/dev/nfs ip=dhcp init=/init))
$(eval $(call rootfs_template,encrypted,ENCRYPTED))
+$(eval $(call rootfs_template,iso,ISO))
export ADK_TARGET_FS
diff --git a/mk/vars.mk b/mk/vars.mk
index 9f4f8f0b9..0525f5129 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -160,8 +160,7 @@ HOST_CONFIGURE_OPTS= CC_FOR_BUILD='${CC_FOR_BUILD}' \
CPPFLAGS_FOR_BUILD='${CPPFLAGS_FOR_BUILD}' \
CXX_FOR_BUILD='${CXX_FOR_BUILD}' \
CFLAGS_FOR_BUILD='${CFLAGS_FOR_BUILD}' \
- LDFLAGS_FOR_BUILD='${LDFLAGS_FOR_BUILD}' \
- QEMU='$(QEMU)'
+ LDFLAGS_FOR_BUILD='${LDFLAGS_FOR_BUILD}'
PKG_SUFFIX:= $(strip $(subst ",, $(ADK_PACKAGE_SUFFIX)))
diff --git a/package/DirectFB/Makefile b/package/DirectFB/Makefile
index 3c58d34a0..41da96f05 100644
--- a/package/DirectFB/Makefile
+++ b/package/DirectFB/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= DirectFB
PKG_VERSION:= 1.6.3
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_EXTRAVER:= 1.6-0
PKG_MD5SUM:= 641e8e999c017770da647f9b5b890906
PKG_DESCR:= Thin graphic library for the Linux framebuffer devices
diff --git a/package/DirectFB/patches/patch-lib_direct_os_linux_glibc_system_c b/package/DirectFB/patches/patch-lib_direct_os_linux_glibc_system_c
new file mode 100644
index 000000000..cd781b4c6
--- /dev/null
+++ b/package/DirectFB/patches/patch-lib_direct_os_linux_glibc_system_c
@@ -0,0 +1,19 @@
+--- DirectFB-1.6.3.orig/lib/direct/os/linux/glibc/system.c 2013-01-18 15:57:11.000000000 +0100
++++ DirectFB-1.6.3/lib/direct/os/linux/glibc/system.c 2013-12-21 12:48:06.000000000 +0100
+@@ -33,6 +33,7 @@
+ #include <errno.h>
+ #include <signal.h>
+ #include <unistd.h>
++#include <sys/syscall.h>
+
+ #include <linux/unistd.h>
+
+@@ -107,7 +108,7 @@ direct_tgkill( int tgid, int tid, int si
+ void
+ direct_trap( const char *domain, int sig )
+ {
+- sigval_t val;
++ union sigval val;
+
+ D_LOG( Direct_Trap, VERBOSE, "Raising signal %d from %s...\n", sig, domain );
+
diff --git a/package/alsa-lib/patches/patch-libtool b/package/alsa-lib/patches/patch-libtool
new file mode 100644
index 000000000..7879d575a
--- /dev/null
+++ b/package/alsa-lib/patches/patch-libtool
@@ -0,0 +1,177 @@
+--- alsa-lib-1.0.27.2.orig/libtool 2013-07-08 14:32:53.000000000 +0200
++++ alsa-lib-1.0.27.2/libtool 2013-12-30 17:42:30.000000000 +0100
+@@ -1,8 +1,8 @@
+-#! /bin/sh
++#! /bin/bash
+
+ # libtool - Provide generalized library-building support services.
+ # Generated automatically by config.status (alsa-lib) 1.0.27.2
+-# Libtool was configured on host alsa.alsa-project.org:
++# Libtool was configured on host helium:
+ # NOTE: Changes made to this file will be lost: look at ltmain.sh.
+ #
+ # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+@@ -40,7 +40,7 @@ available_tags=""
+ # ### BEGIN LIBTOOL CONFIG
+
+ # Whether or not to build static libraries.
+-build_old_libs=no
++build_old_libs=yes
+
+ # Which release of libtool.m4 was used?
+ macro_version=2.4.2
+@@ -56,7 +56,7 @@ pic_mode=default
+ fast_install=yes
+
+ # Shell to use when invoking shell scripts.
+-SHELL="/bin/sh"
++SHELL="/bin/bash"
+
+ # An echo program that protects backslashes.
+ ECHO="printf %s\\n"
+@@ -65,38 +65,38 @@ ECHO="printf %s\\n"
+ PATH_SEPARATOR=":"
+
+ # The host system.
+-host_alias=
+-host=x86_64-unknown-linux-gnu
++host_alias=i686-openadk-linux
++host=i686-openadk-linux-gnu
+ host_os=linux-gnu
+
+ # The build system.
+-build_alias=
+-build=x86_64-unknown-linux-gnu
++build_alias=x86_64-linux-gnu
++build=x86_64-pc-linux-gnu
+ build_os=linux-gnu
+
+ # A sed program that does not truncate output.
+-SED="/usr/bin/sed"
++SED="/home/wbx/ibmx40/scripts/sed"
+
+ # Sed that helps us avoid accidentally triggering echo(1) options like -n.
+ Xsed="$SED -e 1s/^X//"
+
+ # A grep program that handles long lines.
+-GREP="/usr/bin/grep"
++GREP="/bin/grep"
+
+ # An ERE matcher.
+-EGREP="/usr/bin/grep -E"
++EGREP="/bin/grep -E"
+
+ # A literal string matcher.
+-FGREP="/usr/bin/grep -F"
++FGREP="/bin/grep -F"
+
+ # A BSD- or MS-compatible name lister.
+-NM="/usr/bin/nm -B"
++NM="/home/wbx/ibmx40/host_i686_musl_musl/bin/i686-openadk-linux-musl-nm"
+
+ # Whether we need soft or hard links.
+ LN_S="ln -s"
+
+ # What is the maximum length of a command?
+-max_cmd_len=1572864
++max_cmd_len=3458764513820540925
+
+ # Object file suffix (normally "o").
+ objext=o
+@@ -120,7 +120,7 @@ to_host_file_cmd=func_convert_file_noop
+ to_tool_file_cmd=func_convert_file_noop
+
+ # An object symbol dumper.
+-OBJDUMP="objdump"
++OBJDUMP="i686-openadk-linux-objdump"
+
+ # Method to check whether dependent libraries are shared objects.
+ deplibs_check_method="pass_all"
+@@ -141,7 +141,7 @@ DLLTOOL="false"
+ sharedlib_from_linklib_cmd="printf %s\\n"
+
+ # The archiver.
+-AR="ar"
++AR="/home/wbx/ibmx40/host_i686_musl_musl/bin/i686-openadk-linux-musl-ar"
+
+ # Flags to create an archive.
+ AR_FLAGS="cru"
+@@ -150,10 +150,10 @@ AR_FLAGS="cru"
+ archiver_list_spec="@"
+
+ # A symbol stripping program.
+-STRIP="strip"
++STRIP="/home/wbx/ibmx40/host_i686_musl_musl/bin/i686-openadk-linux-musl-strip"
+
+ # Commands used to install an old-style archive.
+-RANLIB="ranlib"
++RANLIB="/home/wbx/ibmx40/host_i686_musl_musl/bin/i686-openadk-linux-musl-ranlib"
+ old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$tool_oldlib"
+ old_postuninstall_cmds=""
+
+@@ -161,10 +161,10 @@ old_postuninstall_cmds=""
+ lock_old_archive_extraction=no
+
+ # A C compiler.
+-LTCC="gcc"
++LTCC="/home/wbx/ibmx40/host_i686_musl_musl/bin/i686-openadk-linux-musl-gcc"
+
+ # LTCC compiler flags.
+-LTCFLAGS="-O2 -fomit-frame-pointer -Wall -pipe -D_GNU_SOURCE"
++LTCFLAGS="-march=pentium-m -fwrapv -fno-ident -fhonour-copts -fomit-frame-pointer -Os -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables -g3 -D_GNU_SOURCE"
+
+ # Take the output of nm and produce a listing of raw symbols and C names.
+ global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p' | sed '/ __gnu_lto/d'"
+@@ -272,27 +272,27 @@ finish_eval=""
+ hardcode_into_libs=yes
+
+ # Compile-time system search path for libraries.
+-sys_lib_search_path_spec="/usr/lib/gcc/x86_64-redhat-linux/4.7.2 /usr/lib64 /lib64 "
++sys_lib_search_path_spec="/home/wbx/ibmx40/host_i686_musl_musl/lib/gcc/i686-openadk-linux-musl/4.7.3 /home/wbx/ibmx40/host_i686_musl_musl/i686-openadk-linux-musl/lib /home/wbx/ibmx40/target_i686_musl_musl/lib /home/wbx/ibmx40/target_i686_musl_musl/usr/lib "
+
+ # Run-time system search path for libraries.
+-sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib /usr/lib64/mysql /usr/lib64/qt-3.3/lib "
++sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib /lib/i486-linux-gnu /usr/lib/i486-linux-gnu /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu "
+
+ # Whether dlopen is supported.
+ dlopen_support=yes
+
+ # Whether dlopen of programs is supported.
+-dlopen_self=yes
++dlopen_self=unknown
+
+ # Whether dlopen of statically linked programs is supported.
+-dlopen_self_static=yes
++dlopen_self_static=unknown
+
+ # Commands to strip libraries.
+-old_striplib="strip --strip-debug"
+-striplib="strip --strip-unneeded"
++old_striplib="/home/wbx/ibmx40/host_i686_musl_musl/bin/i686-openadk-linux-musl-strip --strip-debug"
++striplib="/home/wbx/ibmx40/host_i686_musl_musl/bin/i686-openadk-linux-musl-strip --strip-unneeded"
+
+
+ # The linker used to build libraries.
+-LD="/usr/bin/ld -m elf_x86_64"
++LD="/home/wbx/ibmx40/host_i686_musl_musl/bin/i686-openadk-linux-musl-ld"
+
+ # How to create reloadable object files.
+ reload_flag=" -r"
+@@ -302,7 +302,7 @@ reload_cmds="\$LD\$reload_flag -o \$outp
+ old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$tool_oldlib"
+
+ # A language specific compiler.
+-CC="gcc"
++CC="/home/wbx/ibmx40/host_i686_musl_musl/bin/i686-openadk-linux-musl-gcc"
+
+ # Is the compiler the GNU compiler?
+ with_gcc=yes
+@@ -317,7 +317,7 @@ pic_flag=" -fPIC -DPIC"
+ wl="-Wl,"
+
+ # Compiler flag to prevent dynamic linking.
+-link_static_flag=""
++link_static_flag="-static"
+
+ # Does compiler simultaneously support -c and -o options?
+ compiler_c_o="yes"
diff --git a/package/alsa-lib/patches/patch-utils_alsa_pc_in b/package/alsa-lib/patches/patch-utils_alsa_pc_in
new file mode 100644
index 000000000..d04f80248
--- /dev/null
+++ b/package/alsa-lib/patches/patch-utils_alsa_pc_in
@@ -0,0 +1,12 @@
+--- alsa-lib-1.0.27.2.orig/utils/alsa.pc.in 2013-07-08 14:31:36.000000000 +0200
++++ alsa-lib-1.0.27.2/utils/alsa.pc.in 2014-01-01 17:07:29.000000000 +0100
+@@ -1,7 +1,7 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+-libdir=@libdir@
+-includedir=@includedir@
++libdir=${prefix}/lib
++includedir=${prefix}/include
+
+ Name: alsa
+ Description: Advanced Linux Sound Architecture (ALSA) - Library
diff --git a/package/asterisk/Makefile b/package/asterisk/Makefile
index d9caa7c4f..0e53be8e4 100644
--- a/package/asterisk/Makefile
+++ b/package/asterisk/Makefile
@@ -18,6 +18,7 @@ PKG_NOPARALLEL:= 1
PKG_NEED_CXX:= 1
PKG_ARCH_DEPENDS:= !cris
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
PKG_SUBPKGS:= ASTERISK ASTERISK_PGSQL ASTERISK_VOICEMAIL ASTERISK_SOUNDS
PKG_SUBPKGS+= ASTERISK_CHAN_SKINNY ASTERISK_CHAN_IAX2 ASTERISK_CODEC_SPEEX ASTERISK_CODEC_GSM
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index d9b7878b3..7f68bad96 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -72,10 +72,7 @@ endif
ifeq ($(ADK_TARGET_SYSTEM_QEMU_PPC64),y)
$(SED) 's#ttyS#hvc#g' $(IDIR_BASE_FILES)/etc/inittab
endif
-ifeq ($(ADK_TARGET_SYSTEM_QEMU_MICROBLAZE),y)
- $(SED) 's#ttyS#ttyUL#g' $(IDIR_BASE_FILES)/etc/inittab
-endif
-ifeq ($(ADK_TARGET_SYSTEM_QEMU_MICROBLAZEEL),y)
+ifeq ($(ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800),y)
$(SED) 's#ttyS#ttyUL#g' $(IDIR_BASE_FILES)/etc/inittab
endif
$(SED) 's#@SPEED@#$(ADK_RUNTIME_CONSOLE_SERIAL_SPEED)#' $(IDIR_BASE_FILES)/etc/inittab
diff --git a/package/binutils/Makefile b/package/binutils/Makefile
index e429001bf..3abf670cd 100644
--- a/package/binutils/Makefile
+++ b/package/binutils/Makefile
@@ -41,9 +41,11 @@ CONFIGURE_ARGS+= --disable-werror \
else
CONFIGURE_ARGS+= --disable-werror
endif
+# disable honour cflags stuff
+XAKE_FLAGS+= GCC_HONOUR_COPTS=s
-pre-build:
- @-rm $(STAGING_TARGET_DIR)/lib/libiberty.a $(STAGING_TARGET_DIR)/usr/lib/libiberty.a
+post-build:
+ $(CP) ${WRKBUILD}/libiberty/libiberty.a $(STAGING_TARGET_DIR)/usr/lib
libbfd-install:
${INSTALL_DIR} ${IDIR_LIBBFD}/usr/lib
diff --git a/package/bluez-firmware/Makefile b/package/bluez-firmware/Makefile
index a04cec163..45e1eff73 100644
--- a/package/bluez-firmware/Makefile
+++ b/package/bluez-firmware/Makefile
@@ -8,7 +8,7 @@ PKG_VERSION:= 1.2
PKG_RELEASE:= 1
PKG_MD5SUM:= 1cc3cefad872e937e05de5a0a2b390dd
PKG_DESCR:= Bluez firmware for BCM2033
-PKG_SECTION:= bluetooth
+PKG_SECTION:= misc
PKG_DEPENDS:= kmod-bt bluez
PKG_URL:= http://www.bluez.org/
PKG_SITES:= http://bluez.sourceforge.net/download/
diff --git a/package/bluez/Makefile b/package/bluez/Makefile
index d8a0b540f..e86eac36a 100644
--- a/package/bluez/Makefile
+++ b/package/bluez/Makefile
@@ -4,47 +4,34 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= bluez
-PKG_VERSION:= 4.101
-PKG_RELEASE:= 2
-PKG_MD5SUM:= fb42cb7038c380eb0e2fa208987c96ad
+PKG_VERSION:= 5.12
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 981b34c2ae7e2ed2e25a167d8a902a25
PKG_DESCR:= bluetooth applications
-PKG_SECTION:= bluetooth
-PKG_DEPENDS:= kmod-bt libbluetooth
+PKG_SECTION:= misc
+PKG_DEPENDS:= kmod-bt glib dbus libreadline
+PKG_BUILDDEP:= autotool glib dbus readline
PKG_URL:= http://www.bluez.org/
PKG_SITES:= http://mirror.anl.gov/pub/linux/bluetooth/
-PKG_LIBNAME:= libbluetooth
PKG_OPTS:= dev
-PKG_SUBPKGS:= BLUEZ LIBBLUETOOTH
-PKGSC_LIBBLUETOOTH:= libs
-PKGSD_LIBBLUETOOTH:= bluetooth libraries
-PKGSS_LIBBLUETOOTH:= glib libusb dbus libusb-compat
-PKGSB_LIBBLUETOOTH:= glib libusb dbus libusb-compat
-
PKG_ARCH_DEPENDS:= !avr32
-ifeq ($(ADK_STATIC),y)
-PKG_OPTS+= libmix
-endif
-
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,BLUEZ,bluez,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,LIBBLUETOOTH,libbluetooth,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBBLUETOOTH},${PKGSD_LIBBLUETOOTH},${PKGSC_LIBBLUETOOTH},${PKG_OPTS}))
+AUTOTOOL_STYLE:= autoreconf
ifeq ($(ADK_STATIC),y)
XAKE_FLAGS+= CCLD="$(TARGET_CC) -all-static -pthread"
endif
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
+TARGET_LDFLAGS+= -lncurses
CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
CONFIGURE_ARGS+= --enable-tools \
- --enable-alsa \
- --enable-usb \
- --enable-bccmd \
- --enable-hidd \
- --enable-pand \
- --enable-dund \
- --enable-netlink \
+ --disable-udev \
+ --disable-systemd \
+ --disable-obex \
--disable-pie \
--disable-cups
@@ -52,16 +39,10 @@ bluez-install:
${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin
- ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/sbin
- ${CP} ${WRKINST}/usr/sbin/* ${IDIR_BLUEZ}/usr/sbin
${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
$(INSTALL_DATA) ./files/main.conf \
${IDIR_BLUEZ}/etc/bluetooth
$(INSTALL_DATA) ./files/bluetooth.conf \
$(IDIR_BLUEZ)/etc/dbus-1/system.d
-libbluetooth-install:
- ${INSTALL_DIR} ${IDIR_LIBBLUETOOTH}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libbluetooth.so* ${IDIR_LIBBLUETOOTH}/usr/lib
-
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/bluez/patches/patch-Makefile_am b/package/bluez/patches/patch-Makefile_am
new file mode 100644
index 000000000..ab4c015af
--- /dev/null
+++ b/package/bluez/patches/patch-Makefile_am
@@ -0,0 +1,10 @@
+--- bluez-5.12.orig/Makefile.am 2013-12-10 07:59:06.000000000 +0100
++++ bluez-5.12/Makefile.am 2013-12-21 20:18:52.000000000 +0100
+@@ -245,6 +245,7 @@ unit_tests += unit/test-sdp
+
+ unit_test_sdp_SOURCES = unit/test-sdp.c \
+ src/shared/util.h src/shared/util.c \
++ src/log.h src/log.c \
+ src/sdpd.h src/sdpd-database.c \
+ src/sdpd-service.c src/sdpd-request.c
+ unit_test_sdp_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
diff --git a/package/bluez/patches/patch-Makefile_in b/package/bluez/patches/patch-Makefile_in
new file mode 100644
index 000000000..d1abdecec
--- /dev/null
+++ b/package/bluez/patches/patch-Makefile_in
@@ -0,0 +1,11 @@
+--- bluez-5.12.orig/Makefile.in 2013-12-10 07:59:32.000000000 +0100
++++ bluez-5.12/Makefile.in 2013-12-21 20:02:59.000000000 +0100
+@@ -157,7 +157,7 @@ DIST_COMMON = README $(am__configure_dep
+ @ANDROID_TRUE@ android/bluetoothd android/haltest
+ @ANDROID_TRUE@am__append_30 = android/libhal-internal.la
+ @HID2HCI_TRUE@am__append_31 = $(rules_DATA)
+-TESTS = $(am__EXEEXT_8)
++TESTS =
+ subdir = .
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
diff --git a/package/bluez/patches/patch-plugins_wiimote_c b/package/bluez/patches/patch-plugins_wiimote_c
new file mode 100644
index 000000000..30ba5e647
--- /dev/null
+++ b/package/bluez/patches/patch-plugins_wiimote_c
@@ -0,0 +1,10 @@
+--- bluez-5.12.orig/plugins/wiimote.c 2013-12-10 07:59:06.000000000 +0100
++++ bluez-5.12/plugins/wiimote.c 2013-12-21 19:29:22.000000000 +0100
+@@ -28,6 +28,7 @@
+ #include <stdbool.h>
+
+ #include <bluetooth/bluetooth.h>
++#include <fcntl.h>
+ #include <glib.h>
+
+ #include "plugin.h"
diff --git a/package/bluez/patches/patch-profiles_network_bnep_c b/package/bluez/patches/patch-profiles_network_bnep_c
new file mode 100644
index 000000000..5423f4e45
--- /dev/null
+++ b/package/bluez/patches/patch-profiles_network_bnep_c
@@ -0,0 +1,10 @@
+--- bluez-5.12.orig/profiles/network/bnep.c 2013-12-10 07:59:06.000000000 +0100
++++ bluez-5.12/profiles/network/bnep.c 2013-12-21 19:31:52.000000000 +0100
+@@ -32,6 +32,7 @@
+ #include <sys/param.h>
+ #include <sys/ioctl.h>
+ #include <sys/socket.h>
++#include <sys/types.h>
+ #include <sys/wait.h>
+ #include <net/if.h>
+ #include <linux/sockios.h>
diff --git a/package/bluez/patches/patch-tools_bccmd_c b/package/bluez/patches/patch-tools_bccmd_c
index 8278a834c..d9ac8ac35 100644
--- a/package/bluez/patches/patch-tools_bccmd_c
+++ b/package/bluez/patches/patch-tools_bccmd_c
@@ -1,6 +1,6 @@
---- bluez-4.92.orig/tools/bccmd.c 2010-11-30 15:50:48.000000000 +0100
-+++ bluez-4.92/tools/bccmd.c 2011-05-17 18:19:30.856601139 +0200
-@@ -1183,6 +1183,7 @@ int main(int argc, char *argv[])
+--- bluez-5.12.orig/tools/bccmd.c 2013-09-16 10:36:07.000000000 +0200
++++ bluez-5.12/tools/bccmd.c 2013-12-21 19:19:21.000000000 +0100
+@@ -1159,6 +1159,7 @@ int main(int argc, char *argv[])
case 115200: bcsp_rate = B115200; break;
case 230400: bcsp_rate = B230400; break;
case 460800: bcsp_rate = B460800; break;
@@ -8,7 +8,7 @@
case 500000: bcsp_rate = B500000; break;
case 576000: bcsp_rate = B576000; break;
case 921600: bcsp_rate = B921600; break;
-@@ -1202,6 +1203,7 @@ int main(int argc, char *argv[])
+@@ -1178,6 +1179,7 @@ int main(int argc, char *argv[])
#ifdef B4000000
case 4000000: bcsp_rate = B4000000; break;
#endif
diff --git a/package/bluez/patches/patch-tools_csr_usb_c b/package/bluez/patches/patch-tools_csr_usb_c
new file mode 100644
index 000000000..509061b56
--- /dev/null
+++ b/package/bluez/patches/patch-tools_csr_usb_c
@@ -0,0 +1,10 @@
+--- bluez-5.12.orig/tools/csr_usb.c 2013-09-16 10:36:07.000000000 +0200
++++ bluez-5.12/tools/csr_usb.c 2013-12-21 19:22:48.000000000 +0100
+@@ -29,6 +29,7 @@
+ #include <errno.h>
+ #include <ctype.h>
+ #include <fcntl.h>
++#include <limits.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <string.h>
diff --git a/package/bluez/patches/patch-tools_hciattach_c b/package/bluez/patches/patch-tools_hciattach_c
index 45c8e2e7f..1021bb9f1 100644
--- a/package/bluez/patches/patch-tools_hciattach_c
+++ b/package/bluez/patches/patch-tools_hciattach_c
@@ -1,6 +1,6 @@
---- bluez-4.92.orig/tools/hciattach.c 2010-11-30 15:50:48.000000000 +0100
-+++ bluez-4.92/tools/hciattach.c 2011-05-17 18:18:20.776610031 +0200
-@@ -107,6 +107,7 @@ static int uart_speed(int s)
+--- bluez-5.12.orig/tools/hciattach.c 2012-12-24 18:46:55.000000000 +0100
++++ bluez-5.12/tools/hciattach.c 2013-12-21 19:19:21.000000000 +0100
+@@ -101,6 +101,7 @@ static int uart_speed(int s)
return B230400;
case 460800:
return B460800;
@@ -8,7 +8,7 @@
case 500000:
return B500000;
case 576000:
-@@ -137,6 +138,7 @@ static int uart_speed(int s)
+@@ -135,6 +136,7 @@ static int uart_speed(int s)
case 4000000:
return B4000000;
#endif
diff --git a/package/bluez/patches/patch-tools_hciconfig_c b/package/bluez/patches/patch-tools_hciconfig_c
new file mode 100644
index 000000000..6e137449c
--- /dev/null
+++ b/package/bluez/patches/patch-tools_hciconfig_c
@@ -0,0 +1,10 @@
+--- bluez-5.12.orig/tools/hciconfig.c 2013-10-15 15:41:07.000000000 +0200
++++ bluez-5.12/tools/hciconfig.c 2013-12-21 19:26:45.000000000 +0100
+@@ -30,6 +30,7 @@
+ #include <stdio.h>
+ #include <errno.h>
+ #include <ctype.h>
++#include <fcntl.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <string.h>
diff --git a/package/bluez/patches/patch-unit_test-sdp_c b/package/bluez/patches/patch-unit_test-sdp_c
new file mode 100644
index 000000000..355300b79
--- /dev/null
+++ b/package/bluez/patches/patch-unit_test-sdp_c
@@ -0,0 +1,15 @@
+--- bluez-5.12.orig/unit/test-sdp.c 2013-10-15 15:41:07.000000000 +0200
++++ bluez-5.12/unit/test-sdp.c 2013-12-21 20:23:50.000000000 +0100
+@@ -128,12 +128,6 @@ static void sdp_debug(const char *str, v
+ g_print("%s%s\n", prefix, str);
+ }
+
+-void btd_debug(const char *format, ...);
+-
+-void btd_debug(const char *format, ...)
+-{
+-}
+-
+ static void context_quit(struct context *context)
+ {
+ g_main_loop_quit(context->main_loop);
diff --git a/package/bridge-utils/Makefile b/package/bridge-utils/Makefile
index 84517448c..670c97e7c 100644
--- a/package/bridge-utils/Makefile
+++ b/package/bridge-utils/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= bridge-utils
PKG_VERSION:= 1.5
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= ec7b381160b340648dede58c31bb2238
PKG_DESCR:= Ethernet bridging tools
PKG_SECTION:= bridge
diff --git a/package/bridge-utils/patches/patch-brctl_brctl_c b/package/bridge-utils/patches/patch-brctl_brctl_c
new file mode 100644
index 000000000..5305e47cc
--- /dev/null
+++ b/package/bridge-utils/patches/patch-brctl_brctl_c
@@ -0,0 +1,13 @@
+--- bridge-utils-1.5.orig/brctl/brctl.c 2011-03-29 02:52:54.000000000 +0200
++++ bridge-utils-1.5/brctl/brctl.c 2013-12-27 20:58:33.000000000 +0100
+@@ -19,8 +19,9 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <sys/errno.h>
++#include <errno.h>
+ #include <getopt.h>
++#include <sys/types.h>
+
+ #include "libbridge.h"
+ #include "config.h"
diff --git a/package/bridge-utils/patches/patch-brctl_brctl_cmd_c b/package/bridge-utils/patches/patch-brctl_brctl_cmd_c
new file mode 100644
index 000000000..62ccfef49
--- /dev/null
+++ b/package/bridge-utils/patches/patch-brctl_brctl_cmd_c
@@ -0,0 +1,10 @@
+--- bridge-utils-1.5.orig/brctl/brctl_cmd.c 2011-03-29 02:52:54.000000000 +0200
++++ bridge-utils-1.5/brctl/brctl_cmd.c 2013-12-27 20:59:48.000000000 +0100
+@@ -20,6 +20,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <sys/time.h>
++#include <sys/types.h>
+ #include <errno.h>
+ #include <asm/param.h>
+ #include "libbridge.h"
diff --git a/package/bridge-utils/patches/patch-brctl_brctl_disp_c b/package/bridge-utils/patches/patch-brctl_brctl_disp_c
new file mode 100644
index 000000000..2adbb9e35
--- /dev/null
+++ b/package/bridge-utils/patches/patch-brctl_brctl_disp_c
@@ -0,0 +1,10 @@
+--- bridge-utils-1.5.orig/brctl/brctl_disp.c 2011-03-29 02:52:54.000000000 +0200
++++ bridge-utils-1.5/brctl/brctl_disp.c 2013-12-27 21:00:22.000000000 +0100
+@@ -20,6 +20,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <sys/time.h>
++#include <sys/types.h>
+
+ #include "libbridge.h"
+ #include "brctl.h"
diff --git a/package/bridge-utils/patches/patch-libbridge_libbridge_h b/package/bridge-utils/patches/patch-libbridge_libbridge_h
index 2d42c496c..bbfd4ccb3 100644
--- a/package/bridge-utils/patches/patch-libbridge_libbridge_h
+++ b/package/bridge-utils/patches/patch-libbridge_libbridge_h
@@ -1,9 +1,10 @@
--- bridge-utils-1.5.orig/libbridge/libbridge.h 2011-03-29 02:52:54.000000000 +0200
-+++ bridge-utils-1.5/libbridge/libbridge.h 2013-07-12 14:38:31.000000000 +0200
-@@ -20,6 +20,7 @@
++++ bridge-utils-1.5/libbridge/libbridge.h 2013-12-27 21:01:15.000000000 +0100
+@@ -20,6 +20,8 @@
#define _LIBBRIDGE_H
#include <sys/socket.h>
++#include <sys/types.h>
+#include <netinet/in.h>
#include <linux/if.h>
#include <linux/if_bridge.h>
diff --git a/package/cfgfs/Makefile b/package/cfgfs/Makefile
index bea53dc64..a79bd73ca 100644
--- a/package/cfgfs/Makefile
+++ b/package/cfgfs/Makefile
@@ -15,7 +15,7 @@ PKG_CFLINE_CFGFS:= select BUSYBOX_DIFF@
PKG_CFLINE_CFGFS+= select BUSYBOX_MD5SUM@
PKG_CFLINE_CFGFS+= select BUSYBOX_XARGS@
PKG_CFLINE_CFGFS+= select BUSYBOX_FEATURE_SORT_BIG@
-PKG_CFLINE_CFGFS+= depends on !ADK_TARGET_ROOTFS_NFSROOT && !ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK && !ADK_TARGET_ROOTFS_INITRAMFS
+PKG_CFLINE_CFGFS+= depends on !ADK_TARGET_ROOTFS_NFSROOT && !ADK_TARGET_ROOTFS_INITRAMFS_PIGGYBACK && !ADK_TARGET_ROOTFS_INITRAMFS && !ADK_TARGET_ROOTFS_JFFS2 && !ADK_TARGET_ROOTFS_SQUASHFS
PKG_DFLT_CFGFS:= y if !(ADK_TOOLCHAIN_ONLY || ADK_TOOLCHAIN_ARCHIVE)
WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
diff --git a/package/comgt/Makefile b/package/comgt/Makefile
index cc2041150..f8433814e 100644
--- a/package/comgt/Makefile
+++ b/package/comgt/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= comgt
PKG_VERSION:= 0.32
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= db2452680c3d953631299e331daf49ef
PKG_DESCR:= 3G/GPRS datacard control tool
PKG_SECTION:= utils
diff --git a/package/comgt/patches/patch-comgt_c b/package/comgt/patches/patch-comgt_c
new file mode 100644
index 000000000..666423ba5
--- /dev/null
+++ b/package/comgt/patches/patch-comgt_c
@@ -0,0 +1,47 @@
+--- comgt.0.32.orig/comgt.c 2006-10-20 16:49:46.000000000 +0200
++++ comgt.0.32/comgt.c 2013-12-28 19:40:28.000000000 +0100
+@@ -30,7 +30,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <signal.h>
+-#include <termio.h>
++#include <termios.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <string.h>
+@@ -81,7 +81,7 @@ char token[MAXTOKEN]; /* For gettoken(
+ char scriptfile[MAXPATH]; /* Script file name */
+ char scriptfilepath[MAXPATH]; /* temp storage for full path */
+ BOOL verbose=0; /* Log actions */
+-struct termio cons, stbuf, svbuf; /* termios: svbuf=before, stbuf=while */
++struct termios cons, stbuf, svbuf; /* termios: svbuf=before, stbuf=while */
+ int comfd=0; /* Communication file descriptor. Defaults to stdin. */
+ char msg[STRINGL]; /* Massage messages here */
+ int preturn,returns[MAXGOSUBS];
+@@ -926,7 +926,7 @@ void setcom(void) {
+ }
+
+ void doset(void) {
+- struct termio console;
++ struct termios console;
+ int a,b;
+ gettoken();
+ if(strcmp(token,"echo")==0) {
+@@ -1281,7 +1281,7 @@ void opengt(void) {
+ parity=stbuf.c_cflag & (PARENB | PARODD);
+ stbuf.c_iflag &= ~(IGNCR | ICRNL | IUCLC | INPCK | IXON | IXANY | IGNPAR );
+ stbuf.c_oflag &= ~(OPOST | OLCUC | OCRNL | ONLCR | ONLRET);
+- stbuf.c_lflag &= ~(ICANON | XCASE | ECHO | ECHOE | ECHONL);
++ stbuf.c_lflag &= ~(ICANON | ECHO | ECHOE | ECHONL);
+ stbuf.c_lflag &= ~(ECHO | ECHOE);
+ stbuf.c_cc[VMIN] = 1;
+ stbuf.c_cc[VTIME] = 0;
+@@ -1336,7 +1336,7 @@ void opendevice(void) {
+ parity=stbuf.c_cflag & (PARENB | PARODD);
+ stbuf.c_iflag &= ~(IGNCR | ICRNL | IUCLC | INPCK | IXON | IXANY | IGNPAR );
+ stbuf.c_oflag &= ~(OPOST | OLCUC | OCRNL | ONLCR | ONLRET);
+- stbuf.c_lflag &= ~(ICANON | XCASE | ECHO | ECHOE | ECHONL);
++ stbuf.c_lflag &= ~(ICANON | ECHO | ECHOE | ECHONL);
+ stbuf.c_lflag &= ~(ECHO | ECHOE);
+ stbuf.c_cc[VMIN] = 1;
+ stbuf.c_cc[VTIME] = 0;
diff --git a/package/conntrack-tools/Makefile b/package/conntrack-tools/Makefile
index 6cd5d4175..9032d3f06 100644
--- a/package/conntrack-tools/Makefile
+++ b/package/conntrack-tools/Makefile
@@ -14,6 +14,7 @@ PKG_BUILDDEP:= libtirpc libnetfilter_queue libnetfilter_conntrack libnetfilter_
PKG_URL:= http://conntrack-tools.netfilter.org/
PKG_SITES:= http://www.netfilter.org/projects/conntrack-tools/files/
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
PKG_ARCH_DEPENDS:= !avr32
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
diff --git a/package/corosync/Makefile b/package/corosync/Makefile
index 56fcc4e62..902b773a0 100644
--- a/package/corosync/Makefile
+++ b/package/corosync/Makefile
@@ -16,6 +16,7 @@ PKG_SITES:= http://corosync.org/download/
PKG_CFLINE_COROSYNC:= select ADK_KERNEL_IP_MULTICAST
PKG_LIBC_DEPENDS:= eglibc glibc musl
+PKG_ARCH_DEPENDS:= x86 x86_64
include $(TOPDIR)/mk/package.mk
diff --git a/package/cryptsetup/Makefile b/package/cryptsetup/Makefile
index c98e2e8ac..bf71f5a43 100644
--- a/package/cryptsetup/Makefile
+++ b/package/cryptsetup/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= cryptsetup
-PKG_VERSION:= 1.3.1
-PKG_RELEASE:= 2
-PKG_MD5SUM:= 1f5b5a9d538e8a3c191fb7dd85b9b013
+PKG_VERSION:= 1.6.3
+PKG_RELEASE:= 1
+PKG_MD5SUM:= a7aeb549a543eeac433eadfb6bc67837
PKG_DESCR:= LUKS cryptsetup tools
PKG_SECTION:= crypto
PKG_DEPENDS:= libgcrypt device-mapper libuuid libpopt
diff --git a/package/ctorrent/Makefile b/package/ctorrent/Makefile
index 470e159ca..ab59739bd 100755
--- a/package/ctorrent/Makefile
+++ b/package/ctorrent/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= ctorrent
PKG_VERSION:= dnh3.3.2
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 59b23dd05ff70791cd6449effa7fc3b6
PKG_DESCR:= console-based BitTorrent client
PKG_SECTION:= p2p
diff --git a/package/ctorrent/patches/patch-compat_c b/package/ctorrent/patches/patch-compat_c
new file mode 100644
index 000000000..44408b5db
--- /dev/null
+++ b/package/ctorrent/patches/patch-compat_c
@@ -0,0 +1,13 @@
+--- ctorrent-dnh3.3.2.orig/compat.c 2008-06-15 02:00:19.000000000 +0200
++++ ctorrent-dnh3.3.2/compat.c 2014-01-02 18:21:09.000000000 +0100
+@@ -67,8 +67,8 @@ int snprintf(char *str, size_t size, con
+ char *strnstr(const char *haystack, const char *needle, size_t haystacklen)
+ {
+ char *p;
+- ssize_t plen;
+- ssize_t len = strlen(needle);
++ size_t plen;
++ size_t len = strlen(needle);
+
+ if( *needle == '\0' )
+ return (char *)haystack;
diff --git a/package/cutter/Makefile b/package/cutter/Makefile
index c87667822..ca4b12b21 100755
--- a/package/cutter/Makefile
+++ b/package/cutter/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= cutter
PKG_VERSION:= 1.03
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 50093db9b64277643969ee75b83ebbd1
PKG_DESCR:= Abort TCP/IP connections routed over a firewall
PKG_SECTION:= firewall
diff --git a/package/cutter/patches/patch-cutter_c b/package/cutter/patches/patch-cutter_c
index 03129f87e..0842a6dd9 100644
--- a/package/cutter/patches/patch-cutter_c
+++ b/package/cutter/patches/patch-cutter_c
@@ -1,6 +1,6 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- cutter-1.03.orig/cutter.c 2005-04-30 09:01:03.000000000 +0200
-+++ cutter-1.03/cutter.c 2011-08-24 18:49:58.830478484 +0200
++++ cutter-1.03/cutter.c 2013-12-24 12:14:44.000000000 +0100
@@ -35,6 +35,10 @@
* improvment.
*/
@@ -12,7 +12,17 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
#include <string.h>
#include <stdio.h>
#include <unistd.h>
-@@ -297,7 +301,7 @@ int send_rst(
+@@ -50,7 +54,9 @@
+ #include <linux/if_ether.h>
+ #include <fcntl.h>
+ #include <netpacket/packet.h>
++#if defined(__GLIBC__)
+ #include <net/ethernet.h> /* the L2 protocols */
++#endif
+ #include <linux/sockios.h>
+ #include <sys/ioctl.h>
+ #include <netinet/in.h>
+@@ -297,7 +303,7 @@ int send_rst(
pheader.placeholder=0;
pheader.protocol=IPPROTO_TCP;
pheader.tcp_length=htons(TCPHDR);
@@ -21,7 +31,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
tpack.tcp.check=in_cksum((unsigned short *)&pheader,TCPHDR+12);
/*
-@@ -419,7 +423,7 @@ int send_rst(
+@@ -419,7 +425,7 @@ int send_rst(
pheader.placeholder=0;
pheader.protocol=IPPROTO_TCP;
pheader.tcp_length=htons(TCPHDR);
diff --git a/package/daq/Makefile b/package/daq/Makefile
index 7e5c05c00..d0276e49d 100644
--- a/package/daq/Makefile
+++ b/package/daq/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= daq
PKG_VERSION:= 2.0.0
-PKG_RELEASE:= 3
+PKG_RELEASE:= 4
PKG_MD5SUM:= a00855a153647df76d47f1ea454f74ae
PKG_DESCR:= daq
PKG_SECTION:= libs
@@ -21,6 +21,7 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,DAQ,daq,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
AUTOTOOL_STYLE:= autoreconf
+CONFIGURE_ARGS+= --disable-ipfw-module
daq-install:
$(INSTALL_DIR) $(IDIR_DAQ)/usr/lib/daq
diff --git a/package/davfs2/Makefile b/package/davfs2/Makefile
index 1b4c0a3ff..cde8727d3 100644
--- a/package/davfs2/Makefile
+++ b/package/davfs2/Makefile
@@ -4,15 +4,17 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= davfs2
-PKG_VERSION:= 1.4.6
-PKG_RELEASE:= 2
-PKG_MD5SUM:= c9e8aeb15daeba4b6283b40bb640e908
+PKG_VERSION:= 1.4.7
+PKG_RELEASE:= 1
+PKG_MD5SUM:= c75f9d7d260e7364362b89beba2b3186
PKG_DESCR:= WebDAV filesystem
PKG_SECTION:= net/fs
PKG_DEPENDS:= fuse-utils kmod-fuse-fs neon
PKG_BUILDDEP:= libiconv-tiny neon fuse
PKG_URL:= http://savannah.nongnu.org/projects/davfs2/
-PKG_SITES:= http://www.very-clever.com/download/nongnu/davfs2/
+PKG_SITES:= http://download.savannah.gnu.org/releases/davfs2/
+
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
include ${TOPDIR}/mk/package.mk
diff --git a/package/davfs2/patches/patch-src_cache_c b/package/davfs2/patches/patch-src_cache_c
index dd03ed67c..f6e5cdce5 100644
--- a/package/davfs2/patches/patch-src_cache_c
+++ b/package/davfs2/patches/patch-src_cache_c
@@ -1,6 +1,14 @@
---- davfs2-1.4.6.orig/src/cache.c 2009-11-15 11:15:17.000000000 +0100
-+++ davfs2-1.4.6/src/cache.c 2010-12-27 22:02:47.000000000 +0100
-@@ -55,7 +55,6 @@
+--- davfs2-1.4.7.orig/src/cache.c 2012-07-19 13:26:00.000000000 +0200
++++ davfs2-1.4.7/src/cache.c 2014-01-01 20:01:21.000000000 +0100
+@@ -24,7 +24,6 @@
+ #include <dirent.h>
+ #endif
+ #include <errno.h>
+-#include <error.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+@@ -55,7 +54,6 @@
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
diff --git a/package/davfs2/patches/patch-src_coda_h b/package/davfs2/patches/patch-src_coda_h
new file mode 100644
index 000000000..9960514d9
--- /dev/null
+++ b/package/davfs2/patches/patch-src_coda_h
@@ -0,0 +1,15 @@
+--- davfs2-1.4.7.orig/src/coda.h 2009-04-14 21:54:57.000000000 +0200
++++ davfs2-1.4.7/src/coda.h 2014-01-01 20:12:52.000000000 +0100
+@@ -57,6 +57,12 @@ typedef int int32_t;
+ typedef unsigned int u_int32_t;
+ #endif
+
++typedef unsigned long u_long;
++typedef unsigned int u_int;
++typedef unsigned short u_short;
++typedef unsigned long long u_quad_t;
++#include <sys/types.h>
++
+
+ /*
+ * Cfs constants
diff --git a/package/davfs2/patches/patch-src_dav_fuse_c b/package/davfs2/patches/patch-src_dav_fuse_c
index fca0e83f2..1a67e1563 100644
--- a/package/davfs2/patches/patch-src_dav_fuse_c
+++ b/package/davfs2/patches/patch-src_dav_fuse_c
@@ -1,10 +1,11 @@
---- davfs2-1.4.6.orig/src/dav_fuse.c 2010-02-16 20:29:49.000000000 +0100
-+++ davfs2-1.4.6/src/dav_fuse.c 2010-12-27 22:02:24.000000000 +0100
-@@ -33,6 +33,7 @@
- #ifdef HAVE_STDINT_H
- #include <stdint.h>
+--- davfs2-1.4.7.orig/src/dav_fuse.c 2012-07-19 13:18:51.000000000 +0200
++++ davfs2-1.4.7/src/dav_fuse.c 2014-01-01 20:02:55.000000000 +0100
+@@ -48,6 +48,8 @@
+ #include <sys/stat.h>
#endif
-+#include <stdlib.h>
- #include <string.h>
- #ifdef HAVE_SYSLOG_H
- #include <syslog.h>
+
++#include <sys/select.h>
++
+ #include "defaults.h"
+ #include "mount_davfs.h"
+ #include "cache.h"
diff --git a/package/davfs2/patches/patch-src_kernel_interface_c b/package/davfs2/patches/patch-src_kernel_interface_c
new file mode 100644
index 000000000..5a884cfa3
--- /dev/null
+++ b/package/davfs2/patches/patch-src_kernel_interface_c
@@ -0,0 +1,10 @@
+--- davfs2-1.4.7.orig/src/kernel_interface.c 2012-07-19 12:58:48.000000000 +0200
++++ davfs2-1.4.7/src/kernel_interface.c 2014-01-01 20:01:11.000000000 +0100
+@@ -20,7 +20,6 @@
+
+ #include "config.h"
+
+-#include <error.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
diff --git a/package/davfs2/patches/patch-src_mount_davfs_c b/package/davfs2/patches/patch-src_mount_davfs_c
index 516604ffc..a86657673 100644
--- a/package/davfs2/patches/patch-src_mount_davfs_c
+++ b/package/davfs2/patches/patch-src_mount_davfs_c
@@ -1,6 +1,16 @@
---- davfs2-1.4.6.orig/src/mount_davfs.c 2010-01-21 19:50:15.000000000 +0100
-+++ davfs2-1.4.6/src/mount_davfs.c 2010-05-29 21:10:23.041613426 +0200
-@@ -29,7 +29,6 @@
+--- davfs2-1.4.7.orig/src/mount_davfs.c 2012-07-19 13:35:11.000000000 +0200
++++ davfs2-1.4.7/src/mount_davfs.c 2014-01-01 20:14:21.000000000 +0100
+@@ -20,16 +20,15 @@
+
+ #include "config.h"
+
++#include <paths.h>
+ #ifdef HAVE_ARGZ_H
+ #include <argz.h>
+ #endif
+ #include <ctype.h>
+ #include <errno.h>
+-#include <error.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
@@ -8,15 +18,15 @@
#include <getopt.h>
#include <grp.h>
#ifdef HAVE_LIBINTL_H
-@@ -677,6 +676,7 @@ check_double_mounts(dav_args *args)
+@@ -674,6 +673,7 @@ check_double_mounts(dav_args *args)
static void
check_fstab(const dav_args *args)
{
+#if 0
dav_args *n_args = new_args();
n_args->mopts = DAV_USER_MOPTS;
-
-@@ -733,6 +733,7 @@ check_fstab(const dav_args *args)
+ setfsent();
+@@ -737,6 +737,7 @@ check_fstab(const dav_args *args)
endfsent();
delete_args(n_args);
@@ -24,7 +34,7 @@
}
-@@ -754,7 +755,7 @@ check_mountpoint(dav_args *args)
+@@ -758,7 +759,7 @@ check_mountpoint(dav_args *args)
struct passwd *pw;
if (*mpoint != '/') {
@@ -33,7 +43,7 @@
if (!mp)
error(EXIT_FAILURE, 0,
_("can't evaluate path of mount point %s"), mpoint);
-@@ -1824,6 +1825,7 @@ new_args(void)
+@@ -1793,6 +1794,7 @@ new_args(void)
static void
log_dbg_cmdline(char *argv[])
{
@@ -41,8 +51,8 @@
size_t len;
char *cmdline;
if (argz_create(argv, &cmdline, &len) == 0) {
-@@ -1831,6 +1833,7 @@ log_dbg_cmdline(char *argv[])
- syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), cmdline);
+@@ -1800,6 +1802,7 @@ log_dbg_cmdline(char *argv[])
+ syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "%s", cmdline);
free(cmdline);
}
+ */
diff --git a/package/davfs2/patches/patch-src_webdav_c b/package/davfs2/patches/patch-src_webdav_c
index 20b125f1a..a2a71fe05 100644
--- a/package/davfs2/patches/patch-src_webdav_c
+++ b/package/davfs2/patches/patch-src_webdav_c
@@ -1,6 +1,14 @@
---- davfs2-1.4.6.orig/src/webdav.c 2010-02-16 20:29:59.000000000 +0100
-+++ davfs2-1.4.6/src/webdav.c 2010-05-30 09:52:01.161613627 +0200
-@@ -52,6 +52,8 @@
+--- davfs2-1.4.7.orig/src/webdav.c 2012-07-19 13:27:51.000000000 +0200
++++ davfs2-1.4.7/src/webdav.c 2014-01-01 20:14:54.000000000 +0100
+@@ -21,7 +21,6 @@
+ #include "config.h"
+
+ #include <errno.h>
+-#include <error.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+@@ -52,6 +51,8 @@
#include <sys/stat.h>
#endif
@@ -9,7 +17,7 @@
#include <ne_alloc.h>
#include <ne_auth.h>
#include <ne_basic.h>
-@@ -1918,6 +1920,7 @@ quota_result(void *userdata, const ne_ur
+@@ -1921,6 +1922,7 @@ quota_result(void *userdata, const ne_ur
static int
ssl_verify(void *userdata, int failures, const ne_ssl_certificate *cert)
{
@@ -17,7 +25,7 @@
char *issuer = ne_ssl_readable_dname(ne_ssl_cert_issuer(cert));
char *subject = ne_ssl_readable_dname(ne_ssl_cert_subject(cert));
char *digest = ne_calloc(NE_SSL_DIGESTLEN);
-@@ -1964,8 +1967,13 @@ ssl_verify(void *userdata, int failures,
+@@ -1967,8 +1969,13 @@ ssl_verify(void *userdata, int failures,
len = getline(&s, &n, stdin);
if (len < 0)
abort();
diff --git a/package/dbus-python/Makefile b/package/dbus-python/Makefile
index e76d508a7..9645f7269 100644
--- a/package/dbus-python/Makefile
+++ b/package/dbus-python/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= dbus-python
PKG_VERSION:= 1.2.0
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= b09cd2d1a057cc432ce944de3fc06bf7
PKG_DESCR:= DBUS python bindings
PKG_SECTION:= libs
diff --git a/package/dbus-python/patches/patch-configure b/package/dbus-python/patches/patch-configure
new file mode 100644
index 000000000..f13116469
--- /dev/null
+++ b/package/dbus-python/patches/patch-configure
@@ -0,0 +1,11 @@
+--- dbus-python-1.2.0.orig/configure 2013-05-08 09:48:42.000000000 +0200
++++ dbus-python-1.2.0/configure 2013-12-13 12:52:44.522656370 +0100
+@@ -11762,7 +11762,7 @@ $as_echo "$as_me: PYTHON_INCLUDES overri
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python headers using $PYTHON-config --includes" >&5
+ $as_echo_n "checking for Python headers using $PYTHON-config --includes... " >&6; }
+- PYTHON_INCLUDES=`$PYTHON-config --includes`
++ PYTHON_INCLUDES=`python-config --includes`
+ if test $? = 0; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5
+ $as_echo "$PYTHON_INCLUDES" >&6; }
diff --git a/package/deco/Makefile b/package/deco/Makefile
index 5aa535a9d..aa8ba0402 100644
--- a/package/deco/Makefile
+++ b/package/deco/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= deco
PKG_VERSION:= 39
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= f77f60e8be0cae1f814cba1ef61bf4d0
PKG_DESCR:= Text-based, full featured file manager
PKG_SECTION:= misc
@@ -20,6 +20,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,DECO,deco,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_LDFLAGS+= -ltinfo
INSTALL_STYLE:= manual
do-install:
diff --git a/package/dhcp-forwarder/Makefile b/package/dhcp-forwarder/Makefile
index a681a07a7..a72937e15 100644
--- a/package/dhcp-forwarder/Makefile
+++ b/package/dhcp-forwarder/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= dhcp-forwarder
-PKG_VERSION:= 0.9
+PKG_VERSION:= 0.10
PKG_RELEASE:= 1
-PKG_MD5SUM:= 63630db269ac17523ad085b67277b1c3
+PKG_MD5SUM:= 97b5f3ddbdee5c1f6756321c15907138
PKG_DESCR:= DHCP relay agent
PKG_SECTION:= dhcp
PKG_URL:= http://www.nongnu.org/dhcp-fwd/
diff --git a/package/dhcp-forwarder/patches/patch-src_parser_c b/package/dhcp-forwarder/patches/patch-src_parser_c
new file mode 100644
index 000000000..b05ef56a0
--- /dev/null
+++ b/package/dhcp-forwarder/patches/patch-src_parser_c
@@ -0,0 +1,10 @@
+--- dhcp-forwarder-0.10.orig/src/parser.c 2012-04-30 12:57:35.000000000 +0200
++++ dhcp-forwarder-0.10/src/parser.c 2013-12-30 19:16:07.000000000 +0100
+@@ -27,6 +27,7 @@
+ #include <fcntl.h>
+ #include <netinet/in.h>
+ #include <sys/mman.h>
++#include <sys/stat.h>
+
+ #include "parser.h"
+ #include "cfg.h"
diff --git a/package/digitemp/Makefile b/package/digitemp/Makefile
index 8a7b04b55..a7309e882 100644
--- a/package/digitemp/Makefile
+++ b/package/digitemp/Makefile
@@ -14,6 +14,7 @@ PKG_BUILDDEP:= libusb libusb-compat
PKG_URL:= http://www.digitemp.com/software/linux/
PKG_SITES:= http://www.digitemp.com/software/linux/
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
PKG_ARCH_DEPENDS:= !avr32
include ${TOPDIR}/mk/package.mk
diff --git a/package/dillo/Makefile b/package/dillo/Makefile
index 6f427d357..17af0de93 100644
--- a/package/dillo/Makefile
+++ b/package/dillo/Makefile
@@ -25,8 +25,8 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,DILLO,dillo,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-CONFIGURE_ENV+= PNG_CONFIG=$(STAGING_DIR)/usr/bin/png-config
-TARGET_LDFLAGS+= -liconv -lpng15
+CONFIGURE_ENV+= PNG_CONFIG=$(STAGING_TARGET_DIR)/scripts/libpng-config
+TARGET_LDFLAGS+= -liconv
XAKE_FLAGS+= GCC_HONOUR_COPTS=s
CONFIGURE_ARGS+= --enable-ssl
diff --git a/package/drbd/Makefile b/package/drbd/Makefile
index 9adbaa298..49f8169be 100644
--- a/package/drbd/Makefile
+++ b/package/drbd/Makefile
@@ -4,14 +4,16 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= drbd
-PKG_VERSION:= 8.4.1
-PKG_RELEASE:= 1
-PKG_MD5SUM:= 3af0cc49ee0b5005ea108c5ba92aa755
+PKG_VERSION:= 8.4.4
+PKG_RELEASE:= 2
+PKG_MD5SUM:= b51815343c1a9151e2936b3b97520388
PKG_DESCR:= DRBD admin tools
PKG_SECTION:= fs
PKG_URL:= http://www.drbd.org/
PKG_SITES:= http://oss.linbit.com/drbd/8.4/
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,DRBD,drbd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
@@ -31,7 +33,7 @@ post-install:
$(INSTALL_DIR) $(IDIR_DRBD)/usr/sbin
$(CP) $(WRKINST)/usr/lib/drbd/* \
$(IDIR_DRBD)/usr/lib/drbd/
- $(INSTALL_BIN) $(WRKINST)/sbin/drbd* \
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/drbd* \
$(IDIR_DRBD)/usr/sbin
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/drbd/patches/patch-drbd_drbd_buildtag_c b/package/drbd/patches/patch-drbd_drbd_buildtag_c
deleted file mode 100644
index 86dd50121..000000000
--- a/package/drbd/patches/patch-drbd_drbd_buildtag_c
+++ /dev/null
@@ -1,11 +0,0 @@
---- drbd-8.4.1.orig/drbd/drbd_buildtag.c 2011-12-20 12:43:15.000000000 +0100
-+++ drbd-8.4.1/drbd/drbd_buildtag.c 2012-07-24 23:03:27.000000000 +0200
-@@ -3,5 +3,5 @@
- const char *drbd_buildtag(void)
- {
- return "GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80"
-- " build by phil@fat-tyre, 2011-12-20 12:43:15";
--}
-+ " build by wbx@neon, 2012-07-24 23:03:27";
-+}
-\ No newline at end of file
diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile
index 5a07ea5c5..503efa1e5 100644
--- a/package/dropbear/Makefile
+++ b/package/dropbear/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= dropbear
PKG_VERSION:= 2013.62
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= ca2c7932a1399cf361f795aaa3843998
PKG_DESCR:= SSH 2 server/client designed for embedded systems
PKG_SECTION:= net/security
diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init
index 11b91db49..955ae33c3 100644
--- a/package/dropbear/files/dropbear.init
+++ b/package/dropbear/files/dropbear.init
@@ -31,6 +31,14 @@ start)
echo "dropbear: key generation exited with code $?"
fi
fi
+ if test ! -f /etc/dropbear/dropbear_ecdsa_host_key; then
+ # take it easy here, since above already catched the worst cases
+ if test -x /usr/bin/dropbearkey; then
+ echo "dropbear: generating SSH private key (ECDSA)"
+ /usr/bin/dropbearkey -f /etc/dropbear/dropbear_ecdsa_host_key -t ecdsa
+ echo "dropbear: key generation exited with code $?"
+ fi
+ fi
/usr/sbin/dropbear $dropbear_flags
;;
stop)
diff --git a/package/dsniff/Makefile b/package/dsniff/Makefile
index b11d9af1c..813956bfc 100644
--- a/package/dsniff/Makefile
+++ b/package/dsniff/Makefile
@@ -15,6 +15,7 @@ PKG_URL:= http://www.monkey.org/~dugsong/dsniff/
PKG_SITES:= http://www.monkey.org/~dugsong/dsniff/beta/
PKG_ARCH_DEPENDS:= !arm
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
WRKDIST= ${WRKDIR}/${PKG_NAME}-2.4
diff --git a/package/esound/Makefile b/package/esound/Makefile
index aabe40bd4..45c3d1529 100644
--- a/package/esound/Makefile
+++ b/package/esound/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= esound
PKG_VERSION:= 0.2.41
-PKG_RELEASE:= 6
+PKG_RELEASE:= 8
PKG_MD5SUM:= 3d8973ed87053d7acc1f4d44af2c4688
PKG_DESCR:= Enlightened Sound Daemon
PKG_SECTION:= multimedia
diff --git a/package/esound/patches/patch-esddsp_c b/package/esound/patches/patch-esddsp_c
new file mode 100644
index 000000000..3b774f403
--- /dev/null
+++ b/package/esound/patches/patch-esddsp_c
@@ -0,0 +1,38 @@
+--- esound-0.2.41.orig/esddsp.c 2008-11-18 21:35:19.000000000 +0100
++++ esound-0.2.41/esddsp.c 2013-12-23 16:08:43.000000000 +0100
+@@ -264,7 +264,7 @@ open_wrapper (int (*func) (const char *,
+ }
+
+ int
+-open (const char *pathname, int flags, ...)
++esd_open (const char *pathname, int flags, ...)
+ {
+ static int (*func) (const char *, int, mode_t) = NULL;
+ va_list args;
+@@ -291,7 +291,7 @@ open (const char *pathname, int flags, .
+ }
+
+ int
+-open64 (const char *pathname, int flags, ...)
++esd_open64 (const char *pathname, int flags, ...)
+ {
+ static int (*func) (const char *, int, mode_t) = NULL;
+ va_list args;
+@@ -355,7 +355,7 @@ fopen_wrapper (FILE * (*func) (const cha
+ }
+
+ FILE *
+-fopen (const char *path, const char *mode)
++esd_fopen (const char *path, const char *mode)
+ {
+ static FILE * (*func) (const char *, const char *) = NULL;
+
+@@ -375,7 +375,7 @@ fopen (const char *path, const char *mod
+ }
+
+ FILE *
+-fopen64 (const char *path, const char *mode)
++esd_fopen64 (const char *path, const char *mode)
+ {
+ static FILE * (*func) (const char *, const char *) = NULL;
+
diff --git a/package/ether-wake/Makefile b/package/ether-wake/Makefile
index cb8d8d6d2..1a60edee5 100644
--- a/package/ether-wake/Makefile
+++ b/package/ether-wake/Makefile
@@ -9,6 +9,8 @@ PKG_RELEASE:= 1
PKG_DESCR:= A Wake-On-LAN (WOL) client
PKG_SECTION:= net
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
NO_DISTFILES:= 1
include ${TOPDIR}/mk/package.mk
diff --git a/package/fbset/Makefile b/package/fbset/Makefile
index f0b7cb9ed..6943d6d68 100644
--- a/package/fbset/Makefile
+++ b/package/fbset/Makefile
@@ -11,6 +11,8 @@ PKG_DESCR:= framebuffer utility
PKG_SECTION:= utils
PKG_SITES:= http://users.telenet.be/geertu/Linux/fbdev/
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,FBSET,fbset,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
diff --git a/package/firefox/Makefile b/package/firefox/Makefile
index 69df75db1..f1764e14f 100644
--- a/package/firefox/Makefile
+++ b/package/firefox/Makefile
@@ -4,9 +4,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= firefox
-PKG_VERSION:= 24.0
-PKG_RELEASE:= 2
-PKG_MD5SUM:= 06a4c0fe8d3a979aea2fce8d0fdbf328
+PKG_VERSION:= 26.0
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 91ce51cc6474f1269484e5327643a59c
PKG_DESCR:= graphical webbrowser
PKG_SECTION:= x11/apps
PKG_DEPENDS:= libpthread alsa-lib glib libgtk libpng libtiff libxcursor libffi
diff --git a/package/firefox/patches/patch-ipc_chromium_src_base_file_util_h b/package/firefox/patches/patch-ipc_chromium_src_base_file_util_h
index 137efacd8..5f7e30a10 100644
--- a/package/firefox/patches/patch-ipc_chromium_src_base_file_util_h
+++ b/package/firefox/patches/patch-ipc_chromium_src_base_file_util_h
@@ -1,23 +1,10 @@
---- mozilla-release.orig/ipc/chromium/src/base/file_util.h 2013-09-11 01:15:04.000000000 +0200
-+++ mozilla-release/ipc/chromium/src/base/file_util.h 2013-10-23 16:28:38.000000000 +0200
-@@ -16,7 +16,11 @@
+--- mozilla-release.orig/ipc/chromium/src/base/file_util.h 2013-12-05 17:07:35.000000000 +0100
++++ mozilla-release/ipc/chromium/src/base/file_util.h 2014-01-02 15:01:42.000000000 +0100
+@@ -16,7 +16,6 @@
#include <sys/stat.h>
#elif defined(OS_POSIX)
#include <sys/types.h>
-+#ifndef __GLIBC__
-+#define NO_FTS
-+#else
- #include <fts.h>
-+#endif
+-#include <fts.h>
#include <sys/stat.h>
#endif
-@@ -466,7 +470,7 @@ class FileEnumerator {
- #if defined(OS_WIN)
- WIN32_FIND_DATA find_data_;
- HANDLE find_handle_;
--#elif defined(ANDROID)
-+#elif defined(NO_FTS)
- void *fts_;
- #elif defined(OS_POSIX)
- FTS* fts_;
diff --git a/package/firefox/patches/patch-ipc_chromium_src_base_file_util_posix_cc b/package/firefox/patches/patch-ipc_chromium_src_base_file_util_posix_cc
index 6721e44f8..7680a29c4 100644
--- a/package/firefox/patches/patch-ipc_chromium_src_base_file_util_posix_cc
+++ b/package/firefox/patches/patch-ipc_chromium_src_base_file_util_posix_cc
@@ -1,5 +1,5 @@
---- mozilla-release.orig/ipc/chromium/src/base/file_util_posix.cc 2013-09-11 01:15:04.000000000 +0200
-+++ mozilla-release/ipc/chromium/src/base/file_util_posix.cc 2013-10-23 16:28:38.000000000 +0200
+--- mozilla-release.orig/ipc/chromium/src/base/file_util_posix.cc 2013-12-05 17:07:35.000000000 +0100
++++ mozilla-release/ipc/chromium/src/base/file_util_posix.cc 2014-01-02 14:53:44.000000000 +0100
@@ -8,13 +8,16 @@
#include <errno.h>
#include <fcntl.h>
@@ -19,7 +19,7 @@
#include <sys/mman.h>
#define _DARWIN_USE_64_BIT_INODE // Use 64-bit inode data structures
#include <sys/stat.h>
-@@ -121,7 +124,7 @@ bool Delete(const FilePath& path, bool r
+@@ -67,7 +70,7 @@ bool Delete(const FilePath& path, bool r
if (!recursive)
return (rmdir(path_str) == 0);
@@ -28,7 +28,7 @@
// XXX Need ftsless impl for bionic
return false;
#else
-@@ -194,7 +197,7 @@ bool CopyDirectory(const FilePath& from_
+@@ -140,7 +143,7 @@ bool CopyDirectory(const FilePath& from_
return false;
}
@@ -37,7 +37,7 @@
// XXX Need ftsless impl for bionic
return false;
#else
-@@ -415,7 +418,7 @@ bool CreateNewTempDirectory(const FilePa
+@@ -333,7 +336,7 @@ bool CreateNewTempDirectory(const FilePa
return false;
tmpdir = tmpdir.Append(kTempFileName);
std::string tmpdir_string = tmpdir.value();
@@ -46,30 +46,3 @@
char* dtemp = NULL;
#else
// this should be OK since mkdtemp just replaces characters in place
-@@ -613,7 +616,7 @@ FileEnumerator::FileEnumerator(const Fil
- }
-
- FileEnumerator::~FileEnumerator() {
--#ifndef ANDROID
-+#ifndef NO_FTS
- if (fts_)
- fts_close(fts_);
- #endif
-@@ -625,7 +628,7 @@ void FileEnumerator::GetFindInfo(FindInf
- if (!is_in_find_op_)
- return;
-
--#ifndef ANDROID
-+#ifndef NO_FTS
- memcpy(&(info->stat), fts_ent_->fts_statp, sizeof(info->stat));
- info->filename.assign(fts_ent_->fts_name);
- #endif
-@@ -636,7 +639,7 @@ void FileEnumerator::GetFindInfo(FindInf
- // large directories with many files this can be quite deep.
- // TODO(erikkay) - get rid of this recursive pattern
- FilePath FileEnumerator::Next() {
--#ifdef ANDROID
-+#ifdef NO_FTS
- return FilePath();
- #else
- if (!is_in_find_op_) {
diff --git a/package/firefox/patches/patch-js_src_Makefile_in b/package/firefox/patches/patch-js_src_Makefile_in
index cb1b863f9..d4acee98c 100644
--- a/package/firefox/patches/patch-js_src_Makefile_in
+++ b/package/firefox/patches/patch-js_src_Makefile_in
@@ -1,6 +1,6 @@
---- mozilla-release.orig/js/src/Makefile.in 2013-09-11 01:15:04.000000000 +0200
-+++ mozilla-release/js/src/Makefile.in 2013-10-14 12:36:25.000000000 +0200
-@@ -112,7 +112,7 @@ ifdef JS_HAS_CTYPES
+--- mozilla-release.orig/js/src/Makefile.in 2013-12-05 17:07:35.000000000 +0100
++++ mozilla-release/js/src/Makefile.in 2014-01-02 14:53:44.000000000 +0100
+@@ -103,7 +103,7 @@ ifdef JS_HAS_CTYPES
VPATH += $(srcdir)/ctypes
ifdef MOZ_NATIVE_FFI
diff --git a/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_addrs_c b/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_addrs_c
index be14ca662..bf6c335de 100644
--- a/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_addrs_c
+++ b/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_addrs_c
@@ -1,11 +1,33 @@
---- mozilla-release.orig/media/mtransport/third_party/nICEr/src/stun/addrs.c 2013-09-11 01:15:16.000000000 +0200
-+++ mozilla-release/media/mtransport/third_party/nICEr/src/stun/addrs.c 2013-12-10 13:18:17.000000000 +0100
-@@ -59,7 +59,7 @@ static char *RCSSTRING __UNUSED__="$Id:
+--- mozilla-release.orig/media/mtransport/third_party/nICEr/src/stun/addrs.c 2013-12-05 17:07:48.000000000 +0100
++++ mozilla-release/media/mtransport/third_party/nICEr/src/stun/addrs.c 2014-01-03 13:06:22.000000000 +0100
+@@ -53,7 +53,9 @@ static char *RCSSTRING __UNUSED__="$Id:
+ #undef __unused
+ #include <linux/sysctl.h>
+ #endif
++#if defined(__GLIBC__)
+ #include <net/if.h>
++#endif
+ #ifndef LINUX
+ #if !defined(__OpenBSD__) && !defined(__NetBSD__)
+ #include <net/if_var.h>
+@@ -61,14 +63,17 @@ static char *RCSSTRING __UNUSED__="$Id:
#include <net/if_dl.h>
#include <net/if_types.h>
#include <sys/sockio.h>
-#else
-+#elif __GLIBC__
++#elif defined(__GLIBC__)
+ #include <linux/sockios.h>
#include <linux/if.h>
+ #include <linux/kernel.h>
+ #include <linux/wireless.h>
+-#ifndef ANDROID
+ #include <linux/ethtool.h>
+-#endif
++#else
++#include <linux/sockios.h>
++#include <linux/kernel.h>
++#include <linux/wireless.h>
++#include <linux/ethtool.h>
#endif
#include <net/route.h>
+
diff --git a/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_stun_h b/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_stun_h
new file mode 100644
index 000000000..7877d65cc
--- /dev/null
+++ b/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_stun_h
@@ -0,0 +1,12 @@
+--- mozilla-release.orig/media/mtransport/third_party/nICEr/src/stun/stun.h 2013-12-05 17:07:48.000000000 +0100
++++ mozilla-release/media/mtransport/third_party/nICEr/src/stun/stun.h 2014-01-03 17:19:05.000000000 +0100
+@@ -39,7 +39,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ #else
+ #include <sys/param.h>
+ #include <sys/socket.h>
++#if defined(__GLIBC__)
+ #include <net/if.h>
++#endif
+ #ifndef LINUX
+ #if !defined(__OpenBSD__) && !defined(__NetBSD__)
+ #include <net/if_var.h>
diff --git a/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc b/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc
index 6083460c5..3ee2e0fdc 100644
--- a/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc
+++ b/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_cpu_info_cc
@@ -1,23 +1,23 @@
---- mozilla-release.orig/media/webrtc/trunk/webrtc/system_wrappers/source/cpu_info.cc 2013-09-11 01:15:18.000000000 +0200
-+++ mozilla-release/media/webrtc/trunk/webrtc/system_wrappers/source/cpu_info.cc 2013-10-15 12:21:59.000000000 +0200
-@@ -38,11 +38,6 @@ WebRtc_UWord32 CpuInfo::DetectNumberOfCo
+--- mozilla-release.orig/media/webrtc/trunk/webrtc/system_wrappers/source/cpu_info.cc 2013-12-05 17:07:50.000000000 +0100
++++ mozilla-release/media/webrtc/trunk/webrtc/system_wrappers/source/cpu_info.cc 2014-01-02 14:58:37.000000000 +0100
+@@ -36,11 +36,6 @@ uint32_t CpuInfo::DetectNumberOfCores()
WEBRTC_TRACE(kTraceStateInfo, kTraceUtility, -1,
"Available number of cores:%d", number_of_cores_);
-#elif defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) && !defined(WEBRTC_GONK)
-- number_of_cores_ = get_nprocs();
+- number_of_cores_ = static_cast<uint32_t>(sysconf(_SC_NPROCESSORS_ONLN));
- WEBRTC_TRACE(kTraceStateInfo, kTraceUtility, -1,
- "Available number of cores:%d", number_of_cores_);
-
#elif defined(WEBRTC_BSD) || defined(WEBRTC_MAC)
int name[] = {
CTL_HW,
-@@ -63,8 +58,6 @@ WebRtc_UWord32 CpuInfo::DetectNumberOfCo
+@@ -61,8 +56,6 @@ uint32_t CpuInfo::DetectNumberOfCores()
"Failed to get number of cores");
number_of_cores_ = 1;
}
-#elif defined(_SC_NPROCESSORS_ONLN)
-- _numberOfCores = sysconf(_SC_NPROCESSORS_ONLN);
+- number_of_cores_ = sysconf(_SC_NPROCESSORS_ONLN);
#else
WEBRTC_TRACE(kTraceWarning, kTraceUtility, -1,
"No function to get number of cores");
diff --git a/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_spreadsortlib_spreadsort_hpp b/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_spreadsortlib_spreadsort_hpp
index 7c262e5ff..ac1d23267 100644
--- a/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_spreadsortlib_spreadsort_hpp
+++ b/package/firefox/patches/patch-media_webrtc_trunk_webrtc_system_wrappers_source_spreadsortlib_spreadsort_hpp
@@ -1,8 +1,8 @@
---- mozilla-release.orig/media/webrtc/trunk/webrtc/system_wrappers/source/spreadsortlib/spreadsort.hpp 2013-09-11 01:15:18.000000000 +0200
-+++ mozilla-release/media/webrtc/trunk/webrtc/system_wrappers/source/spreadsortlib/spreadsort.hpp 2013-10-15 16:05:38.000000000 +0200
+--- mozilla-release.orig/media/webrtc/trunk/webrtc/system_wrappers/source/spreadsortlib/spreadsort.hpp 2013-12-05 17:07:50.000000000 +0100
++++ mozilla-release/media/webrtc/trunk/webrtc/system_wrappers/source/spreadsortlib/spreadsort.hpp 2014-01-02 14:53:44.000000000 +0100
@@ -21,6 +21,11 @@ Scott McMurray
- #include "constants.hpp"
- #include <cstring>
+ #include <vector>
+ #include "webrtc/system_wrappers/source/spreadsortlib/constants.hpp"
+#include <features.h>
+#if defined(__UCLIBC__)
diff --git a/package/firefox/patches/patch-python_mozbuild_mozbuild_backend_recursivemake_py b/package/firefox/patches/patch-python_mozbuild_mozbuild_backend_recursivemake_py
new file mode 100644
index 000000000..30f5edd57
--- /dev/null
+++ b/package/firefox/patches/patch-python_mozbuild_mozbuild_backend_recursivemake_py
@@ -0,0 +1,11 @@
+--- mozilla-release.orig/python/mozbuild/mozbuild/backend/recursivemake.py 2013-12-05 17:07:53.000000000 +0100
++++ mozilla-release/python/mozbuild/mozbuild/backend/recursivemake.py 2014-01-04 17:58:26.000000000 +0100
+@@ -421,7 +421,7 @@ class RecursiveMakeBackend(CommonBackend
+ def _handle_idl_manager(self, manager):
+ build_files = self._purge_manifests['xpidl']
+
+- for p in ('Makefile', 'backend.mk', '.deps/.mkdir.done',
++ for p in ('Makefile.in', 'Makefile', 'backend.mk', '.deps/.mkdir.done',
+ 'xpt/.mkdir.done'):
+ build_files.add(p)
+
diff --git a/package/firefox/patches/patch-tools_profiler_platform-linux_cc b/package/firefox/patches/patch-tools_profiler_platform-linux_cc
index 7e9a44eba..a331e87fe 100644
--- a/package/firefox/patches/patch-tools_profiler_platform-linux_cc
+++ b/package/firefox/patches/patch-tools_profiler_platform-linux_cc
@@ -1,15 +1,15 @@
---- mozilla-release.orig/tools/profiler/platform-linux.cc 2013-09-11 01:15:26.000000000 +0200
-+++ mozilla-release/tools/profiler/platform-linux.cc 2013-10-23 16:28:38.000000000 +0200
-@@ -53,7 +53,7 @@
- #include <sys/stat.h> // open
+--- mozilla-release.orig/tools/profiler/platform-linux.cc 2013-12-05 17:07:58.000000000 +0100
++++ mozilla-release/tools/profiler/platform-linux.cc 2014-01-02 14:59:20.000000000 +0100
+@@ -58,7 +58,7 @@
#include <fcntl.h> // open
#include <unistd.h> // sysconf
+ #include <semaphore.h>
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && ! defined(__UCLIBC__)
#include <execinfo.h> // backtrace, backtrace_symbols
#endif // def __GLIBC__
#include <strings.h> // index
-@@ -73,14 +73,12 @@
+@@ -84,14 +84,12 @@
#define SIGNAL_SAVE_PROFILE SIGUSR2
diff --git a/package/firefox/patches/patch-tools_profiler_shared-libraries-linux_cc b/package/firefox/patches/patch-tools_profiler_shared-libraries-linux_cc
index 8ffa06228..40b8b594d 100644
--- a/package/firefox/patches/patch-tools_profiler_shared-libraries-linux_cc
+++ b/package/firefox/patches/patch-tools_profiler_shared-libraries-linux_cc
@@ -1,11 +1,11 @@
---- mozilla-release.orig/tools/profiler/shared-libraries-linux.cc 2013-09-11 01:15:26.000000000 +0200
-+++ mozilla-release/tools/profiler/shared-libraries-linux.cc 2013-10-23 16:28:38.000000000 +0200
+--- mozilla-release.orig/tools/profiler/shared-libraries-linux.cc 2013-12-05 17:07:58.000000000 +0100
++++ mozilla-release/tools/profiler/shared-libraries-linux.cc 2014-01-02 15:00:00.000000000 +0100
@@ -14,7 +14,7 @@
#include "platform.h"
#include "shared-libraries.h"
--#ifndef __GLIBC__
+-#if !defined(__GLIBC__) && ANDROID_VERSION < 18
+#if 0
- /* a crapy version of getline, because it's not included in bionic */
+ /* a crapy version of getline, because it's not included in old bionics */
static ssize_t getline(char **lineptr, size_t *n, FILE *stream)
{
diff --git a/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp b/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
index e9c2a28ad..868ad69d4 100644
--- a/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
+++ b/package/firefox/patches/patch-xpcom_io_nsLocalFileUnix_cpp
@@ -1,6 +1,6 @@
---- mozilla-release.orig/xpcom/io/nsLocalFileUnix.cpp 2013-09-11 01:15:27.000000000 +0200
-+++ mozilla-release/xpcom/io/nsLocalFileUnix.cpp 2013-10-14 14:33:08.000000000 +0200
-@@ -1256,8 +1256,13 @@ nsLocalFile::GetDiskSpaceAvailable(int64
+--- mozilla-release.orig/xpcom/io/nsLocalFileUnix.cpp 2013-12-05 17:08:00.000000000 +0100
++++ mozilla-release/xpcom/io/nsLocalFileUnix.cpp 2014-01-02 14:53:47.000000000 +0100
+@@ -1234,8 +1234,13 @@ nsLocalFile::GetDiskSpaceAvailable(int64
&& dq.dqb_bhardlimit)
{
int64_t QuotaSpaceAvailable = 0;
diff --git a/package/firefox/patches/patch-xpcom_threads_nsThread_cpp b/package/firefox/patches/patch-xpcom_threads_nsThread_cpp
index eb7d1f21a..0f40d736a 100644
--- a/package/firefox/patches/patch-xpcom_threads_nsThread_cpp
+++ b/package/firefox/patches/patch-xpcom_threads_nsThread_cpp
@@ -1,6 +1,6 @@
---- mozilla-release.orig/xpcom/threads/nsThread.cpp 2013-09-11 01:15:27.000000000 +0200
-+++ mozilla-release/xpcom/threads/nsThread.cpp 2013-10-14 15:49:25.000000000 +0200
-@@ -20,11 +20,13 @@
+--- mozilla-release.orig/xpcom/threads/nsThread.cpp 2013-12-05 17:08:00.000000000 +0100
++++ mozilla-release/xpcom/threads/nsThread.cpp 2014-01-02 14:53:47.000000000 +0100
+@@ -23,11 +23,13 @@
_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) && \
!(_POSIX_C_SOURCE >= 200809L || _XOPEN_SOURCE >= 700)
diff --git a/package/fuse/Makefile b/package/fuse/Makefile
index 5515ae209..6cfef381f 100644
--- a/package/fuse/Makefile
+++ b/package/fuse/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= fuse
PKG_VERSION:= 2.9.3
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 33cae22ca50311446400daf8a6255c6a
PKG_DESCR:= Filesystem in Userspace (utilities)
PKG_SECTION:= fs
diff --git a/package/fuse/patches/patch-lib_fuse_c b/package/fuse/patches/patch-lib_fuse_c
new file mode 100644
index 000000000..9b3c74e39
--- /dev/null
+++ b/package/fuse/patches/patch-lib_fuse_c
@@ -0,0 +1,10 @@
+--- fuse-2.9.3.orig/lib/fuse.c 2013-07-01 09:40:39.000000000 +0200
++++ fuse-2.9.3/lib/fuse.c 2014-01-01 11:45:54.000000000 +0100
+@@ -33,6 +33,7 @@
+ #include <dlfcn.h>
+ #include <assert.h>
+ #include <poll.h>
++#include <sys/file.h>
+ #include <sys/param.h>
+ #include <sys/uio.h>
+ #include <sys/time.h>
diff --git a/package/fuse/patches/patch-lib_fuse_lowlevel_c b/package/fuse/patches/patch-lib_fuse_lowlevel_c
new file mode 100644
index 000000000..253b89d27
--- /dev/null
+++ b/package/fuse/patches/patch-lib_fuse_lowlevel_c
@@ -0,0 +1,10 @@
+--- fuse-2.9.3.orig/lib/fuse_lowlevel.c 2013-07-01 09:40:39.000000000 +0200
++++ fuse-2.9.3/lib/fuse_lowlevel.c 2014-01-01 11:50:38.000000000 +0100
+@@ -24,6 +24,7 @@
+ #include <limits.h>
+ #include <errno.h>
+ #include <assert.h>
++#include <sys/file.h>
+
+ #ifndef F_LINUX_SPECIFIC_BASE
+ #define F_LINUX_SPECIFIC_BASE 1024
diff --git a/package/fuse/patches/patch-lib_mount_util_c b/package/fuse/patches/patch-lib_mount_util_c
new file mode 100644
index 000000000..5c8639b43
--- /dev/null
+++ b/package/fuse/patches/patch-lib_mount_util_c
@@ -0,0 +1,10 @@
+--- fuse-2.9.3.orig/lib/mount_util.c 2013-07-01 09:25:36.000000000 +0200
++++ fuse-2.9.3/lib/mount_util.c 2014-01-01 11:52:48.000000000 +0100
+@@ -16,6 +16,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <limits.h>
++#include <paths.h>
+ #ifndef __NetBSD__
+ #include <mntent.h>
+ #endif
diff --git a/package/fuse/patches/patch-util_mount_util_c b/package/fuse/patches/patch-util_mount_util_c
new file mode 100644
index 000000000..d38196ed0
--- /dev/null
+++ b/package/fuse/patches/patch-util_mount_util_c
@@ -0,0 +1,10 @@
+--- fuse-2.9.3.orig/util/mount_util.c 2013-07-01 10:02:18.000000000 +0200
++++ fuse-2.9.3/util/mount_util.c 2014-01-01 11:54:07.000000000 +0100
+@@ -16,6 +16,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <limits.h>
++#include <paths.h>
+ #ifndef __NetBSD__
+ #include <mntent.h>
+ #endif
diff --git a/package/gcc/Makefile b/package/gcc/Makefile
index 2c2fb70a6..f0e17503a 100644
--- a/package/gcc/Makefile
+++ b/package/gcc/Makefile
@@ -8,7 +8,7 @@ PKG_NAME:= gcc
PKG_DESCR:= GNU C compiler
PKG_SECTION:= lang
PKG_OPTS:= noremove
-PKG_DEPENDS:= libmpc libgmp mpfr
+PKG_DEPENDS:= libmpc libgmp mpfr libgcc
PKG_BUILDDEP:= libmpc gmp mpfr
PKG_ARCH_DEPENDS:= !avr32
@@ -37,6 +37,12 @@ ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS64EL),y)
CONFIGURE_ARGS+= --with-abi=$(ADK_TARGET_ABI)
endif
+ifeq ($(ADK_TOOLCHAIN_GCC_SJLJ),y)
+CONFIGURE_ARGS+= --enable-sjlj-exceptions
+else
+CONFIGURE_ARGS+= --disable-sjlj-exceptions
+endif
+
ifneq ($(ADK_PACKAGE_GXX),)
CONFIGURE_ARGS+= --enable-languages=c,c++
else
@@ -50,7 +56,6 @@ CONFIGURE_ARGS+= --host=$(REAL_GNU_TARGET_NAME) \
--without-headers \
--libexecdir=/usr/lib \
--disable-libssp \
- --disable-sjlj-exceptions \
--disable-biarch \
--disable-libmudflap \
--disable-libgomp \
diff --git a/package/gcc/patches/cflags.patch b/package/gcc/patches/4.7.3/cflags.patch
index 3623d3872..3623d3872 100644
--- a/package/gcc/patches/cflags.patch
+++ b/package/gcc/patches/4.7.3/cflags.patch
diff --git a/package/gcc/patches/cross-gcc-fix.patch b/package/gcc/patches/4.7.3/cross-gcc-fix.patch
index f39b35fb9..f39b35fb9 100644
--- a/package/gcc/patches/cross-gcc-fix.patch
+++ b/package/gcc/patches/4.7.3/cross-gcc-fix.patch
diff --git a/package/gcc/patches/gcc-cppflags.patch b/package/gcc/patches/4.7.3/gcc-cppflags.patch
index 0971bbec9..0971bbec9 100644
--- a/package/gcc/patches/gcc-cppflags.patch
+++ b/package/gcc/patches/4.7.3/gcc-cppflags.patch
diff --git a/package/gcc/patches/ltmain.patch b/package/gcc/patches/4.7.3/ltmain.patch
index 215889b70..215889b70 100644
--- a/package/gcc/patches/ltmain.patch
+++ b/package/gcc/patches/4.7.3/ltmain.patch
diff --git a/package/gcc/patches/mirbsd-compat.patch b/package/gcc/patches/4.7.3/mirbsd-compat.patch
index 2f3ea0c87..2f3ea0c87 100644
--- a/package/gcc/patches/mirbsd-compat.patch
+++ b/package/gcc/patches/4.7.3/mirbsd-compat.patch
diff --git a/package/gcc/patches/musl-cris.patch b/package/gcc/patches/4.7.3/musl-cris.patch
index 4889263a1..4889263a1 100644
--- a/package/gcc/patches/musl-cris.patch
+++ b/package/gcc/patches/4.7.3/musl-cris.patch
diff --git a/package/gcc/patches/musl-cross.patch b/package/gcc/patches/4.7.3/musl-cross.patch
index 453ba9aec..453ba9aec 100644
--- a/package/gcc/patches/musl-cross.patch
+++ b/package/gcc/patches/4.7.3/musl-cross.patch
diff --git a/package/gcc/patches/musl-m68k.patch b/package/gcc/patches/4.7.3/musl-m68k.patch
index 54c7e0eef..54c7e0eef 100644
--- a/package/gcc/patches/musl-m68k.patch
+++ b/package/gcc/patches/4.7.3/musl-m68k.patch
diff --git a/package/gcc/patches/musl-mips64.patch b/package/gcc/patches/4.7.3/musl-mips64.patch
index 671ba9f28..671ba9f28 100644
--- a/package/gcc/patches/musl-mips64.patch
+++ b/package/gcc/patches/4.7.3/musl-mips64.patch
diff --git a/package/gcc/patches/musl-ppc.patch b/package/gcc/patches/4.7.3/musl-ppc.patch
index f4211ee73..f4211ee73 100644
--- a/package/gcc/patches/musl-ppc.patch
+++ b/package/gcc/patches/4.7.3/musl-ppc.patch
diff --git a/package/gcc/patches/musl-sh.patch b/package/gcc/patches/4.7.3/musl-sh.patch
index 7738f266e..7738f266e 100644
--- a/package/gcc/patches/musl-sh.patch
+++ b/package/gcc/patches/4.7.3/musl-sh.patch
diff --git a/package/gcc/patches/musl-sparc.patch b/package/gcc/patches/4.7.3/musl-sparc.patch
index 228b8522d..228b8522d 100644
--- a/package/gcc/patches/musl-sparc.patch
+++ b/package/gcc/patches/4.7.3/musl-sparc.patch
diff --git a/package/gcc/patches/sdt.patch b/package/gcc/patches/4.7.3/sdt.patch
index 7ee2cf1b7..7ee2cf1b7 100644
--- a/package/gcc/patches/sdt.patch
+++ b/package/gcc/patches/4.7.3/sdt.patch
diff --git a/package/gcc/patches/4.8.2/patch-libatomic_Makefile_in b/package/gcc/patches/4.8.2/patch-libatomic_Makefile_in
new file mode 100644
index 000000000..e67a62dd3
--- /dev/null
+++ b/package/gcc/patches/4.8.2/patch-libatomic_Makefile_in
@@ -0,0 +1,12 @@
+--- gcc-4.8.2.orig/libatomic/Makefile.in 2013-10-16 09:27:58.000000000 +0200
++++ gcc-4.8.2/libatomic/Makefile.in 2014-01-01 11:37:38.000000000 +0100
+@@ -298,7 +298,8 @@ PAT_N = $(word 2,$(PAT_SPLIT))
+ PAT_S = $(word 3,$(PAT_SPLIT))
+ IFUNC_DEF = -DIFUNC_ALT=$(PAT_S)
+ IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS))
+-M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo
++@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo
++@AMDEP_FALSE@M_DEPS =
+ M_SIZE = -DN=$(PAT_N)
+ M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT))
+ M_FILE = $(PAT_BASE)_n.c
diff --git a/package/gdb/patches/patch-gdb_gdbserver_configure b/package/gdb/patches/patch-gdb_gdbserver_configure
new file mode 100644
index 000000000..fb32187b2
--- /dev/null
+++ b/package/gdb/patches/patch-gdb_gdbserver_configure
@@ -0,0 +1,20 @@
+--- gdb-7.6.orig/gdb/gdbserver/configure 2013-03-11 09:35:09.000000000 +0100
++++ gdb-7.6/gdb/gdbserver/configure 2013-12-23 19:39:06.000000000 +0100
+@@ -4927,9 +4927,6 @@ if test "${GCC}" = yes -a -z "${ERROR_ON
+ fi
+
+ WERROR_CFLAGS=""
+-if test "${ERROR_ON_WARNING}" = yes ; then
+- WERROR_CFLAGS="-Werror"
+-fi
+
+ build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
+ -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
+@@ -4943,7 +4940,6 @@ $as_echo_n "checking compiler warning fl
+ # compiled with it enabled.
+ for w in ${build_warnings}; do
+ case $w in
+- -Werr*) WERROR_CFLAGS=-Werror ;;
+ *) # Check that GCC accepts it
+ saved_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS $w"
diff --git a/package/gdbserver/Makefile b/package/gdbserver/Makefile
index bc2a9b72f..71de5e559 100644
--- a/package/gdbserver/Makefile
+++ b/package/gdbserver/Makefile
@@ -10,6 +10,7 @@ PKG_SECTION:= debug
PKG_DEPENDS:= libthread-db
PKG_ARCH_DEPENDS:= !avr32 !m68k
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
PKG_SUBPKGS:= GDBSERVER
WRKSRC= ${WRKDIST}/gdb/gdbserver
diff --git a/package/glibc/files/libc.so.microblaze b/package/glibc/files/libc.so.microblaze
new file mode 100644
index 000000000..4642dcbd5
--- /dev/null
+++ b/package/glibc/files/libc.so.microblaze
@@ -0,0 +1,5 @@
+/* GNU ld script
+ Use the shared library, but some functions are only in
+ the static library, so try that secondarily. */
+OUTPUT_FORMAT(elf32-microblaze)
+GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) )
diff --git a/package/gperf/Makefile b/package/gperf/Makefile
index 567613f8d..cfc0aa2f5 100644
--- a/package/gperf/Makefile
+++ b/package/gperf/Makefile
@@ -9,16 +9,22 @@ PKG_RELEASE:= 1
PKG_MD5SUM:= c1f1db32fb6598d6a93e6e88796a8632
PKG_DESCR:= perfect hash function generator
PKG_SECTION:= lang
+PKG_BUILDDEP:= gperf-host
PKG_DEPENDS:= libstdc++
PKG_URL:= http://www.gnu.org/software/gperf/
PKG_SITES:= ${MASTER_SITE_GNU:=${PKG_NAME}/}
+include ${TOPDIR}/mk/host.mk
include ${TOPDIR}/mk/package.mk
+$(eval $(call HOST_template,GPERF,gperf,${PKG_VERSION}-${PKG_RELEASE}))
$(eval $(call PKG_template,GPERF,gperf,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+HOST_STYLE:= auto
+
gperf-install:
${INSTALL_DIR} ${IDIR_GPERF}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/gperf ${IDIR_GPERF}/usr/bin
+include ${TOPDIR}/mk/host-bottom.mk
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/gpm/Makefile b/package/gpm/Makefile
index e664facdd..8ea741164 100644
--- a/package/gpm/Makefile
+++ b/package/gpm/Makefile
@@ -4,13 +4,14 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= gpm
-PKG_VERSION:= 1.20.6
-PKG_RELEASE:= 2
-PKG_MD5SUM:= b75e794bfb9fe8114d0b083932673b8f
+PKG_VERSION:= 1.20.7
+PKG_RELEASE:= 1
+PKG_MD5SUM:= e9a4ba2711753c89b37950aada7aed4a
PKG_DESCR:= console mouse support
PKG_SECTION:= misc
+PKG_BUILDDEP:= autotool
PKG_URL:= http://launchpad.net/gpm
-PKG_SITES:= http://launchpad.net/gpm/main/${PKG_VERSION}/+download/
+PKG_SITES:= http://www.nico.schottelius.org/software/gpm/archives/
PKG_NOPARALLEL:= 1
PKG_OPTS:= dev
@@ -22,6 +23,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,GPM,gpm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+AUTOTOOL_STYLE:= autogen
TARGET_CPPFLAGS+= -I${WRKSRC}/src/headers
gpm-install:
diff --git a/package/gpm/patches/patch-Makefile_in b/package/gpm/patches/patch-Makefile_in
new file mode 100644
index 000000000..d1999564b
--- /dev/null
+++ b/package/gpm/patches/patch-Makefile_in
@@ -0,0 +1,11 @@
+--- gpm-1.20.7.orig/Makefile.in 2012-10-26 23:21:38.000000000 +0200
++++ gpm-1.20.7/Makefile.in 2013-12-22 13:07:05.000000000 +0100
+@@ -19,7 +19,7 @@ include Makefile.include
+ # user-overridable flags, but it's also all the implicit rule looks at.
+ # missing ?
+
+-SUBDIRS = src doc contrib
++SUBDIRS = src contrib
+
+
+ ### simple, but effective rules
diff --git a/package/gpm/patches/patch-src_Makefile_in b/package/gpm/patches/patch-src_Makefile_in
index 3957260ae..22824e974 100644
--- a/package/gpm/patches/patch-src_Makefile_in
+++ b/package/gpm/patches/patch-src_Makefile_in
@@ -1,5 +1,5 @@
---- gpm-1.20.6.orig/src/Makefile.in 2009-02-09 10:58:53.000000000 +0100
-+++ gpm-1.20.6/src/Makefile.in 2011-01-11 16:48:43.000000000 +0100
+--- gpm-1.20.7.orig/src/Makefile.in 2012-10-26 23:21:38.000000000 +0200
++++ gpm-1.20.7/src/Makefile.in 2013-12-22 12:46:27.000000000 +0100
@@ -59,19 +59,19 @@ STRIP = -s
# the prog rules are not very clean...
@@ -26,7 +26,7 @@
# old, unused, but good rule [dependings]
#%.d: $(srcdir)/%.c
@@ -82,7 +82,7 @@ prog/%: prog/%.o
- all: gpm lib/libgpm.so.@abi_lev@ lib/libgpm.a $(PROG)
+ all: gpm lib/libgpm.so.@abi_lev@ @LIBGPM_A@ $(PROG)
gpm: $(GOBJ)
- $(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $(GOBJ) @LIBS@ $(LIBS) -lm
@@ -34,7 +34,7 @@
# construct dependings of sourcefiles and link sourcefiles
$(DEPFILE) dep: prog/gpm-root.c
-@@ -148,11 +148,11 @@ prog/gpm-root.c: $(srcdir)/prog/gpm-root
+@@ -150,11 +150,11 @@ prog/gpm-root.c: $(srcdir)/prog/gpm-root
# gpm-root needs an own rule, because gpm-root.c is not in $(srcdir)
prog/gpm-root: prog/gpm-root.c lib/libgpm.so.@abi_lev@
diff --git a/package/gpm/patches/patch-src_daemon_open_console_c b/package/gpm/patches/patch-src_daemon_open_console_c
index 28bd57e11..9ead6ea40 100644
--- a/package/gpm/patches/patch-src_daemon_open_console_c
+++ b/package/gpm/patches/patch-src_daemon_open_console_c
@@ -1,12 +1,11 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- gpm-1.20.5.orig/src/daemon/open_console.c 2008-06-13 10:08:19.000000000 +0200
-+++ gpm-1.20.5/src/daemon/open_console.c 2008-09-16 17:11:51.000000000 +0200
-@@ -21,7 +21,7 @@
+--- gpm-1.20.7.orig/src/daemon/open_console.c 2012-10-26 23:21:38.000000000 +0200
++++ gpm-1.20.7/src/daemon/open_console.c 2013-12-22 12:54:02.000000000 +0100
+@@ -27,6 +27,8 @@
+ #include <linux/serial.h> /* for serial console check */
+ #include <asm/ioctls.h> /* for serial console check */
- #include <fcntl.h> /* open and co. */
- #include <sys/stat.h> /* stat() */
--#include <stropts.h> /* ioctl */
-+#include <sys/ioctl.h> /* ioctl */
++#define major(dev) (((unsigned) (dev))>>8)
++#define minor(dev) ((dev)&0xff)
- /* Linux specific (to be outsourced in gpm2 */
- #include <linux/serial.h> /* for serial console check */
+ #include "headers/message.h" /* messaging in gpm */
+ #include "headers/daemon.h" /* daemon internals */
diff --git a/package/gpm/patches/patch-src_prog_display-buttons_c b/package/gpm/patches/patch-src_prog_display-buttons_c
new file mode 100644
index 000000000..485a7b0dd
--- /dev/null
+++ b/package/gpm/patches/patch-src_prog_display-buttons_c
@@ -0,0 +1,10 @@
+--- gpm-1.20.7.orig/src/prog/display-buttons.c 2012-10-26 23:21:38.000000000 +0200
++++ gpm-1.20.7/src/prog/display-buttons.c 2013-12-22 12:58:43.000000000 +0100
+@@ -31,6 +31,7 @@
+ *
+ */
+
++#include <sys/select.h>
+ #include <unistd.h> /* write, read, open */
+ #include <stdlib.h> /* strtol() */
+ #include <stdio.h> /* printf() */
diff --git a/package/gpm/patches/patch-src_prog_display-coords_c b/package/gpm/patches/patch-src_prog_display-coords_c
new file mode 100644
index 000000000..8e52f1734
--- /dev/null
+++ b/package/gpm/patches/patch-src_prog_display-coords_c
@@ -0,0 +1,10 @@
+--- gpm-1.20.7.orig/src/prog/display-coords.c 2012-10-26 23:21:38.000000000 +0200
++++ gpm-1.20.7/src/prog/display-coords.c 2013-12-22 12:59:32.000000000 +0100
+@@ -32,6 +32,7 @@
+ *
+ */
+
++#include <sys/select.h>
+ #include <unistd.h> /* write, read, open */
+ #include <stdlib.h> /* strtol() */
+ #include <stdio.h> /* printf() */
diff --git a/package/gpm/patches/patch-src_prog_gpm-root_y b/package/gpm/patches/patch-src_prog_gpm-root_y
new file mode 100644
index 000000000..786f7a6ec
--- /dev/null
+++ b/package/gpm/patches/patch-src_prog_gpm-root_y
@@ -0,0 +1,25 @@
+--- gpm-1.20.7.orig/src/prog/gpm-root.y 2012-10-26 23:21:38.000000000 +0200
++++ gpm-1.20.7/src/prog/gpm-root.y 2013-12-22 13:06:09.000000000 +0100
+@@ -56,6 +56,9 @@
+ #define minor(dev) ((dev)&0xff)
+ #endif
+
++#ifndef SA_INTERRUPT
++#define SA_INTERRUPT 0
++#endif
+
+ #define GPM_NULL_DEV "/dev/null"
+
+@@ -1196,11 +1199,7 @@ int main(int argc, char **argv)
+ LOG_DAEMON : LOG_USER);
+ /* reap your zombies */
+ childaction.sa_handler=reap_children;
+-#if defined(__GLIBC__)
+- __sigemptyset(&childaction.sa_mask);
+-#else /* __GLIBC__ */
+- childaction.sa_mask=0;
+-#endif /* __GLIBC__ */
++ sigemptyset(&childaction.sa_mask);
+ childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */
+ sigaction(SIGCHLD,&childaction,NULL);
+
diff --git a/package/hdparm/Makefile b/package/hdparm/Makefile
index 85b49f5a0..61925e59c 100644
--- a/package/hdparm/Makefile
+++ b/package/hdparm/Makefile
@@ -4,11 +4,11 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= hdparm
-PKG_VERSION:= 9.15
+PKG_VERSION:= 9.43
PKG_RELEASE:= 1
-PKG_MD5SUM:= 0524dd10ad986285ff4eeb3507f7471c
+PKG_MD5SUM:= f73233be118d86c779a8463d8b6a3cdb
PKG_DESCR:= get/set ATA drive parameters
-PKG_SECTION:= utils
+PKG_SECTION:= fs
PKG_URL:= http://sourceforge.net/projects/hdparm
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=hdparm/}
diff --git a/package/hdparm/patches/patch-Makefile b/package/hdparm/patches/patch-Makefile
deleted file mode 100644
index 616b9fccc..000000000
--- a/package/hdparm/patches/patch-Makefile
+++ /dev/null
@@ -1,36 +0,0 @@
---- hdparm-9.15.orig/Makefile 2008-12-10 01:14:28.000000000 +0100
-+++ hdparm-9.15/Makefile 2011-01-15 20:46:42.000000000 +0100
-@@ -13,10 +13,10 @@ oldmandir = $(manprefix)/man
- CC ?= gcc
- STRIP ?= strip
-
--CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS)
-+CFLAGS ?= -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS)
-
- #LDFLAGS = -s -static
--LDFLAGS = -s
-+LDFLAGS ?= -s
- INSTALL = install
- INSTALL_DATA = $(INSTALL) -m 644
- INSTALL_DIR = $(INSTALL) -m 755 -d
-@@ -28,7 +28,6 @@ all: hdparm
-
- hdparm: hdparm.h sgio.h $(OBJS)
- $(CC) $(LDFLAGS) -o hdparm $(OBJS)
-- $(STRIP) hdparm
-
- hdparm.o: hdparm.h sgio.h
-
-@@ -46,9 +45,9 @@ install: all hdparm.8
- if [ -f $(DESTDIR)$(sbindir)/hdparm ]; then rm -f $(DESTDIR)$(sbindir)/hdparm ; fi
- if [ -f $(DESTDIR)$(mandir)/man8/hdparm.8 ]; then rm -f $(DESTDIR)$(mandir)/man8/hdparm.8 ;\
- elif [ -f $(DESTDIR)$(oldmandir)/man8/hdparm.8 ]; then rm -f $(DESTDIR)$(oldmandir)/man8/hdparm.8 ; fi
-- $(INSTALL_PROGRAM) -D hdparm $(DESTDIR)$(sbindir)/hdparm
-- if [ -d $(DESTDIR)$(mandir) ]; then $(INSTALL_DATA) -D hdparm.8 $(DESTDIR)$(mandir)/man8/hdparm.8 ;\
-- elif [ -d $(DESTDIR)$(oldmandir) ]; then $(INSTALL_DATA) -D hdparm.8 $(DESTDIR)$(oldmandir)/man8/hdparm.8 ; fi
-+ $(INSTALL_PROGRAM) hdparm $(DESTDIR)$(sbindir)/hdparm
-+ if [ -d $(DESTDIR)$(mandir) ]; then $(INSTALL_DATA) hdparm.8 $(DESTDIR)$(mandir)/man8/hdparm.8 ;\
-+ elif [ -d $(DESTDIR)$(oldmandir) ]; then $(INSTALL_DATA) hdparm.8 $(DESTDIR)$(oldmandir)/man8/hdparm.8 ; fi
-
- clean:
- -rm -f hdparm $(OBJS) core 2>/dev/null
diff --git a/package/hdparm/patches/patch-fallocate_c b/package/hdparm/patches/patch-fallocate_c
new file mode 100644
index 000000000..b826cdeba
--- /dev/null
+++ b/package/hdparm/patches/patch-fallocate_c
@@ -0,0 +1,11 @@
+--- hdparm-9.43.orig/fallocate.c 2010-10-04 21:38:39.000000000 +0200
++++ hdparm-9.43/fallocate.c 2013-12-26 10:25:40.000000000 +0100
+@@ -27,7 +27,7 @@ int do_fallocate_syscall (const char *pa
+ err = EINVAL;
+ #else
+ int fd;
+- loff_t offset = 0, len;
++ off_t offset = 0, len;
+ int mode = 0;
+
+ fd = open(path, O_WRONLY|O_CREAT|O_EXCL, 0600);
diff --git a/package/hdparm/patches/patch-hdparm_h b/package/hdparm/patches/patch-hdparm_h
new file mode 100644
index 000000000..8149ef69c
--- /dev/null
+++ b/package/hdparm/patches/patch-hdparm_h
@@ -0,0 +1,10 @@
+--- hdparm-9.43.orig/hdparm.h 2012-01-06 17:38:59.000000000 +0100
++++ hdparm-9.43/hdparm.h 2013-12-26 10:25:23.000000000 +0100
+@@ -2,6 +2,7 @@
+
+ //#undef __KERNEL_STRICT_NAMES
+ #include <linux/types.h>
++#include <sys/types.h>
+
+ #if !defined(__GNUC__) && !defined(__attribute__)
+ #define __attribute__(x)
diff --git a/package/hdparm/patches/patch-sysfs_c b/package/hdparm/patches/patch-sysfs_c
new file mode 100644
index 000000000..b3ffc3191
--- /dev/null
+++ b/package/hdparm/patches/patch-sysfs_c
@@ -0,0 +1,14 @@
+--- hdparm-9.43.orig/sysfs.c 2010-10-04 21:39:20.000000000 +0200
++++ hdparm-9.43/sysfs.c 2013-12-26 10:24:57.000000000 +0100
+@@ -11,9 +11,11 @@
+ #include <string.h>
+ #include <stdio.h>
+ #include <fcntl.h>
++#include <limits.h>
+ #include <errno.h>
+ #include <dirent.h>
+ #include <sys/stat.h>
++#include <sys/types.h>
+ #include <linux/types.h>
+
+ #include "hdparm.h"
diff --git a/package/heyu/Makefile b/package/heyu/Makefile
index 9feaa4a67..d4dd07df8 100644
--- a/package/heyu/Makefile
+++ b/package/heyu/Makefile
@@ -13,6 +13,8 @@ PKG_DEPENDS:= setserial
PKG_URL:= http://heyu.tanj.com/
PKG_SITES:= http://heyu.tanj.com/download/
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
include ${TOPDIR}/mk/package.mk
diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile
index 51f638578..d6373de34 100644
--- a/package/hostapd/Makefile
+++ b/package/hostapd/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= hostapd
-PKG_VERSION:= 1.0
+PKG_VERSION:= 2.0
PKG_RELEASE:= 1
-PKG_MD5SUM:= 236247a7bbd4f60d5fa3e99849d1ffc9
+PKG_MD5SUM:= ba22e639bc57aa4035d2ea8ffa9bbbee
PKG_DESCR:= an IEEE 802.11 AP, IEEE 802.1x/WPA/WPA2/EAP/RADIUS Authenticator
PKG_SECTION:= wifi
PKG_DEPENDS:= libnl
diff --git a/package/hostapd/patches/patch-src_drivers_linux_wext_h b/package/hostapd/patches/patch-src_drivers_linux_wext_h
new file mode 100644
index 000000000..f09fa321e
--- /dev/null
+++ b/package/hostapd/patches/patch-src_drivers_linux_wext_h
@@ -0,0 +1,19 @@
+--- hostapd-2.0.orig/src/drivers/linux_wext.h 2013-01-12 16:42:53.000000000 +0100
++++ hostapd-2.0/src/drivers/linux_wext.h 2014-01-02 16:26:15.000000000 +0100
+@@ -21,11 +21,11 @@
+
+ #include <sys/types.h>
+ #include <net/if.h>
+-typedef __uint32_t __u32;
+-typedef __int32_t __s32;
+-typedef __uint16_t __u16;
+-typedef __int16_t __s16;
+-typedef __uint8_t __u8;
++typedef uint32_t __u32;
++typedef int32_t __s32;
++typedef uint16_t __u16;
++typedef int16_t __s16;
++typedef uint8_t __u8;
+ #ifndef __user
+ #define __user
+ #endif /* __user */
diff --git a/package/htop/Makefile b/package/htop/Makefile
index b0bfaa905..5ecd5a59a 100644
--- a/package/htop/Makefile
+++ b/package/htop/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= htop
PKG_VERSION:= 1.0.2
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 0d01cca8df3349c74569cefebbd9919e
PKG_DESCR:= graphical process manager
PKG_SECTION:= utils
@@ -18,6 +18,7 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,HTOP,htop,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_LDFLAGS+= -ltinfo
CONFIGURE_ENV+= ac_cv_file__proc_stat=yes \
ac_cv_file__proc_meminfo=yes
CONFIGURE_ARGS+= --disable-unicode
diff --git a/package/iftop/Makefile b/package/iftop/Makefile
index cbe15eb62..0d50f685c 100644
--- a/package/iftop/Makefile
+++ b/package/iftop/Makefile
@@ -18,6 +18,8 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,IFTOP,iftop,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_LDFLAGS+= -ltinfo
+
iftop-install:
${INSTALL_DIR} ${IDIR_IFTOP}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/sbin/iftop ${IDIR_IFTOP}/usr/bin/
diff --git a/package/iptraf/Makefile b/package/iptraf/Makefile
index 2bcffc733..7ae627284 100644
--- a/package/iptraf/Makefile
+++ b/package/iptraf/Makefile
@@ -22,7 +22,9 @@ CONFIG_STYLE:= manual
BUILD_STYLE:= manual
INSTALL_STYLE:= manual
+TARGET_CPPFLAGS+= -D_GNU_SOURCE
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
+TARGET_LDFLAGS+= -ltinfo
do-build:
${MAKE} -C ${WRKBUILD}/src \
diff --git a/package/irssi/Makefile b/package/irssi/Makefile
index 6323eedae..554173ad1 100644
--- a/package/irssi/Makefile
+++ b/package/irssi/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= irssi
PKG_VERSION:= 0.8.15
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 870db8e319f640c2bf446c30d0c24ef6
PKG_DESCR:= IRC text client
PKG_SECTION:= chat
@@ -24,6 +24,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,IRSSI,irssi,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_LDFLAGS+= -ltinfo
CONFIGURE_ARGS+= --with-perl=no \
--with-gnu-ld \
--with-textui \
diff --git a/package/jamvm/Makefile b/package/jamvm/Makefile
index 44d160ee1..6cca7f5d8 100644
--- a/package/jamvm/Makefile
+++ b/package/jamvm/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= jamvm
PKG_VERSION:= 1.5.4
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= 7654e9657691f5f09c4f481ed4686176
PKG_DESCR:= A Java Virtual Machine (JVM) implementation
PKG_SECTION:= lang
diff --git a/package/jamvm/patches/patch-src_os_linux_os_c b/package/jamvm/patches/patch-src_os_linux_os_c
new file mode 100644
index 000000000..a867841e3
--- /dev/null
+++ b/package/jamvm/patches/patch-src_os_linux_os_c
@@ -0,0 +1,17 @@
+--- jamvm-1.5.4.orig/src/os/linux/os.c 2009-12-31 19:40:48.000000000 +0100
++++ jamvm-1.5.4/src/os/linux/os.c 2013-12-25 16:43:03.000000000 +0100
+@@ -46,10 +46,12 @@ void *nativeStackBase() {
+ }
+
+ int nativeAvailableProcessors() {
+-#ifdef __UCLIBC__
++#if defined(__UCLIBC__)
+ return 1;
+-#else
++#elif defined(__GLIBC__)
+ return get_nprocs();
++#else
++ return 1;
+ #endif
+ }
+
diff --git a/package/kismet/Makefile b/package/kismet/Makefile
index b5aa3de05..110f6f78d 100644
--- a/package/kismet/Makefile
+++ b/package/kismet/Makefile
@@ -4,16 +4,18 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= kismet
-PKG_VERSION:= 2011-01-R1
-PKG_RELEASE:= 3
-PKG_MD5SUM:= 1fb1f024a7ca52814b255e2f2faccf3b
+PKG_VERSION:= 2013-03-R1b
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 596acdd2940887dd05a498ea27475eea
PKG_DESCR:= Kismet
PKG_SECTION:= wifi
PKG_DEPENDS:= libpcap libncurses libpthread
-PKG_BUILDDEP:= libpcap ncurses
+PKG_BUILDDEP:= autotool libpcap ncurses
PKG_URL:= http://www.kismetwireless.net/
PKG_SITES:= http://www.kismetwireless.net/code/
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
+
PKG_SUBPKGS:= KISMET KISMET_CLIENT KISMET_DRONE KISMET_SERVER
PKGSD_KISMET_CLIENT:= Kismet client
PKGSD_KISMET_SERVER:= Kismet server
@@ -26,7 +28,8 @@ $(eval $(call PKG_template,KISMET_CLIENT,kismet-client,${PKG_VERSION}-${PKG_RELE
$(eval $(call PKG_template,KISMET_DRONE,kismet-drone,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_KISMET_DRONE},${PKG_SECTION}))
$(eval $(call PKG_template,KISMET_SERVER,kismet-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_KISMET_SERVER},${PKG_SECTION}))
-TARGET_LDFLAGS+= -lpthread
+AUTOTOOL_STYLE:= autoreconf
+TARGET_LDFLAGS+= -lpthread -ltinfo
CONFIGURE_ARGS+= --sysconfdir=/etc/kismet
pre-build:
diff --git a/package/kismet/patches/patch-configure_in b/package/kismet/patches/patch-configure_in
new file mode 100644
index 000000000..cb7d45cbd
--- /dev/null
+++ b/package/kismet/patches/patch-configure_in
@@ -0,0 +1,12 @@
+--- kismet-2013-03-R1b.orig/configure.in 2013-03-27 15:41:48.000000000 +0100
++++ kismet-2013-03-R1b/configure.in 2013-12-31 23:14:38.000000000 +0100
+@@ -406,9 +406,6 @@ AC_ARG_ENABLE(client,
+ )
+ AC_SUBST(wantclient)
+
+-# Add additional cflags since some distros bury panel.h
+-CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
+-
+ termcontrol="none";
+
+ if test "$wantclient" = "yes"; then
diff --git a/package/kismet/patches/patch-dumpfile_tuntap_h b/package/kismet/patches/patch-dumpfile_tuntap_h
new file mode 100644
index 000000000..f669446f5
--- /dev/null
+++ b/package/kismet/patches/patch-dumpfile_tuntap_h
@@ -0,0 +1,18 @@
+--- kismet-2013-03-R1b.orig/dumpfile_tuntap.h 2013-03-27 15:41:48.000000000 +0100
++++ kismet-2013-03-R1b/dumpfile_tuntap.h 2014-01-02 20:53:21.000000000 +0100
+@@ -65,7 +65,15 @@
+ #include "dumpfile.h"
+
+ #ifdef SYS_LINUX
++#if defined(__GLIBC__)
+ #include <linux/if_tun.h>
++#else
++#define IFF_TUN 0x0001
++#define IFF_TAP 0x0002
++#define IFF_NO_PI 0x1000
++#define TUNSETNOCSUM _IOW('T', 200, int)
++#define TUNSETIFF _IOW('T', 202, int)
++#endif
+
+ // Linux IEEE80211 link typ to set
+ #define LNX_LINKTYPE_80211 801
diff --git a/package/kmod/patches/patch-libkmod_libkmod-util_c b/package/kmod/patches/patch-libkmod_libkmod-util_c
new file mode 100644
index 000000000..330fce456
--- /dev/null
+++ b/package/kmod/patches/patch-libkmod_libkmod-util_c
@@ -0,0 +1,24 @@
+--- kmod-15.orig/libkmod/libkmod-util.c 2013-07-15 17:45:31.000000000 +0200
++++ kmod-15/libkmod/libkmod-util.c 2013-12-21 18:02:49.000000000 +0100
+@@ -28,6 +28,7 @@
+ #include <unistd.h>
+ #include <errno.h>
+ #include <string.h>
++#include <limits.h>
+ #include <ctype.h>
+
+ #include "libkmod.h"
+@@ -323,8 +324,12 @@ static inline int is_dir(const char *pat
+ int mkdir_p(const char *path, int len, mode_t mode)
+ {
+ char *start, *end;
++ char buf[PATH_MAX+1];
+
+- start = strndupa(path, len);
++ snprintf(buf, sizeof buf, "%s", path);
++ assert(len < sizeof(buf));
++ buf[len] = 0;
++ start = buf;
+ end = start + len;
+
+ /*
diff --git a/package/l2tpns/Makefile b/package/l2tpns/Makefile
index d48ec3ee5..073e142a2 100644
--- a/package/l2tpns/Makefile
+++ b/package/l2tpns/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= l2tpns
PKG_VERSION:= 2.1.21
-PKG_RELEASE:= 1
+PKG_RELEASE:= 3
PKG_MD5SUM:= 385c58055723ebc6c38062acd2db9c2c
PKG_DESCR:= A layer 2 tunneling protocol network server (LNS)
PKG_SECTION:= net/security
diff --git a/package/l2tpns/patches/patch-cli_c b/package/l2tpns/patches/patch-cli_c
new file mode 100644
index 000000000..e076bde4b
--- /dev/null
+++ b/package/l2tpns/patches/patch-cli_c
@@ -0,0 +1,10 @@
+--- l2tpns-2.1.21.orig/cli.c 2005-12-06 10:43:42.000000000 +0100
++++ l2tpns-2.1.21/cli.c 2013-12-21 14:33:08.000000000 +0100
+@@ -4,6 +4,7 @@
+ char const *cvs_name = "$Name: release_2_1_21 $";
+ char const *cvs_id_cli = "$Id: cli.c,v 1.71 2005/12/06 09:43:42 bodea Exp $";
+
++#include <fcntl.h>
+ #include <stdio.h>
+ #include <stddef.h>
+ #include <stdarg.h>
diff --git a/package/l2tpns/patches/patch-cluster_c b/package/l2tpns/patches/patch-cluster_c
new file mode 100644
index 000000000..68f8ba6b3
--- /dev/null
+++ b/package/l2tpns/patches/patch-cluster_c
@@ -0,0 +1,10 @@
+--- l2tpns-2.1.21.orig/cluster.c 2006-12-02 15:09:14.000000000 +0100
++++ l2tpns-2.1.21/cluster.c 2013-12-21 14:33:19.000000000 +0100
+@@ -2,6 +2,7 @@
+
+ char const *cvs_id_cluster = "$Id: cluster.c,v 1.50.2.1 2006/12/02 14:09:14 bodea Exp $";
+
++#include <fcntl.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
diff --git a/package/lame/Makefile b/package/lame/Makefile
index 261ffe840..55d485de2 100644
--- a/package/lame/Makefile
+++ b/package/lame/Makefile
@@ -30,6 +30,7 @@ $(eval $(call PKG_template,LAME,lame,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS
$(eval $(call PKG_template,LIBMP3LAME,libmp3lame,$(PKG_VERSION)-${PKG_RELEASE},,${PKGSD_LIBMP3LAME},${PKGSC_LIBMP3LAME},${PKG_OPTS}))
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
+TARGET_LDFLAGS+= -ltinfo
lame-install:
$(INSTALL_DIR) $(IDIR_LAME)/usr/bin
diff --git a/package/libXft/patches/patch-src_xftglyphs_c b/package/libXft/patches/patch-src_xftglyphs_c
index 54457857f..c8da32ca4 100644
--- a/package/libXft/patches/patch-src_xftglyphs_c
+++ b/package/libXft/patches/patch-src_xftglyphs_c
@@ -1,16 +1,17 @@
--- libXft-2.3.1.orig/src/xftglyphs.c 2012-06-02 18:36:35.000000000 +0200
-+++ libXft-2.3.1/src/xftglyphs.c 2013-12-07 12:17:23.000000000 +0100
++++ libXft-2.3.1/src/xftglyphs.c 2014-01-02 14:41:02.000000000 +0100
@@ -21,10 +21,10 @@
*/
#include "xftint.h"
-#include <freetype/ftoutln.h>
-#include <freetype/ftlcdfil.h>
-+#include <ftoutln.h>
-+#include <ftlcdfil.h>
-
+-
-#include <freetype/ftsynth.h>
-+#include <ftsynth.h>
++#include <ft2build.h>
++#include FT_OUTLINE_H
++#include FT_LCD_FILTER_H
++#include FT_SYNTHESIS_H
/*
* Validate the memory info for a font
diff --git a/package/libXt/Makefile b/package/libXt/Makefile
index 4e4e8a8db..69cd67d2f 100644
--- a/package/libXt/Makefile
+++ b/package/libXt/Makefile
@@ -10,7 +10,7 @@ PKG_MD5SUM:= 7a80ed7aba06668b12ebd0910318a1f1
PKG_DESCR:= X Toolkit Intrinsics libraries
PKG_SECTION:= x11/libs
PKG_DEPENDS:= libsm libice libuuid libx11 libxau libxdmcp libxcb
-PKG_BUILDDEP:= libSM libX11 kbproto
+PKG_BUILDDEP:= autotool libSM libX11 kbproto util-macros
PKG_SITES:= ${MASTER_SITE_XORG}
PKG_LIBNAME:= libxt
PKG_OPTS:= dev
@@ -19,6 +19,7 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBXT,libxt,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+AUTOTOOL_STYLE:= autoreconf
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
CONFIGURE_ARGS+= --disable-malloc0returnsnull
diff --git a/package/libXt/patches/patch-util_Makefile_in b/package/libXt/patches/patch-util_Makefile_in
index a92166c93..b20260a8e 100644
--- a/package/libXt/patches/patch-util_Makefile_in
+++ b/package/libXt/patches/patch-util_Makefile_in
@@ -5,7 +5,7 @@
CHANGELOG_CMD = @CHANGELOG_CMD@
CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-+CPPFLAGS =
++CPPFLAGS = @CPPFLAGS_FOR_BUILD@
CWARNFLAGS = @CWARNFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
diff --git a/package/libaudiofile/Makefile b/package/libaudiofile/Makefile
index 2d01191fa..cc4011f7a 100644
--- a/package/libaudiofile/Makefile
+++ b/package/libaudiofile/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= audiofile
PKG_VERSION:= 0.3.6
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 2731d79bec0acef3d30d2fc86b0b72fd
PKG_DESCR:= audiofile library
PKG_SECTION:= libs
diff --git a/package/libaudiofile/patches/patch-Makefile_in b/package/libaudiofile/patches/patch-Makefile_in
new file mode 100644
index 000000000..6753979af
--- /dev/null
+++ b/package/libaudiofile/patches/patch-Makefile_in
@@ -0,0 +1,11 @@
+--- audiofile-0.3.6.orig/Makefile.in 2013-03-07 08:27:14.000000000 +0100
++++ audiofile-0.3.6/Makefile.in 2013-12-23 15:53:28.000000000 +0100
+@@ -294,7 +294,7 @@ target_alias = @target_alias@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-SUBDIRS = gtest libaudiofile sfcommands test examples docs
++SUBDIRS = gtest libaudiofile sfcommands
+ EXTRA_DIST = \
+ ACKNOWLEDGEMENTS \
+ NOTES \
diff --git a/package/libbluray/Makefile b/package/libbluray/Makefile
index 1988ce7d6..4fe695207 100644
--- a/package/libbluray/Makefile
+++ b/package/libbluray/Makefile
@@ -9,6 +9,7 @@ PKG_RELEASE:= 2
PKG_MD5SUM:= c7a1cc71cb9747f93122ec650d4ae933
PKG_DESCR:= bluray library
PKG_SECTION:= libs
+PKG_BUILDDEP:= libxml2
PKG_URL:= http://www.videolan.org/developers/libbluray.html
PKG_SITES:= ftp://ftp.videolan.org/pub/videolan/libbluray/${PKG_VERSION}/
PKG_OPTS:= dev
diff --git a/package/libcec/Makefile b/package/libcec/Makefile
new file mode 100644
index 000000000..e085df139
--- /dev/null
+++ b/package/libcec/Makefile
@@ -0,0 +1,34 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= libcec
+PKG_VERSION:= 2.1.4
+PKG_RELEASE:= 1
+PKG_MD5SUM:= d65e52ab3295e9e4b73bf4580f3bd4f7
+PKG_DESCR:= control your device with your TV remote control
+PKG_SECTION:= libs
+PKG_BUILDDEP:= autotool
+PKG_URL:= http://libcec.pulse-eight.com/
+PKG_SITES:= http://www.openadk.org/distfiles
+PKG_OPTS:= dev
+
+PKG_SYSTEM_DEPENDS:= raspberry-pi
+PKG_LIBC_DEPENDS:= eglibc glibc musl
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBCEC,libcec,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+
+AUTOTOOL_STYLE:= autoreconf
+CONFIGURE_ARGS+= --enable-rpi \
+ --with-rpi-include-path=$(STAGING_TARGET_DIR)/opt/vc/include \
+ --with-rpi-lib-path=$(STAGING_TARGET_DIR)/opt/vc/lib
+
+libcec-install:
+ $(INSTALL_DIR) $(IDIR_LIBCEC)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libcec*.so* \
+ $(IDIR_LIBCEC)/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libcli/Makefile b/package/libcli/Makefile
index 9b105cca8..d4fe39ca3 100755
--- a/package/libcli/Makefile
+++ b/package/libcli/Makefile
@@ -4,13 +4,13 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= libcli
-PKG_VERSION:= 1.9.4
+PKG_VERSION:= 1.9.7
PKG_RELEASE:= 1
-PKG_MD5SUM:= b917617d21b90db214971efe64a33416
+PKG_MD5SUM:= 1b07b09e2840f910defde66afa28fbe7
PKG_DESCR:= Cisco-like command-line interface library
PKG_SECTION:= libs
-PKG_URL:= http://code.google.com/p/libcli
-PKG_SITES:= http://libcli.googlecode.com/files/
+PKG_URL:= http://sites.dparrish.com/libcli
+PKG_SITES:= https://github.com/dparrish/libcli
PKG_OPTS:= dev
include ${TOPDIR}/mk/package.mk
diff --git a/package/libcli/patches/patch-Makefile b/package/libcli/patches/patch-Makefile
index 03c26c349..8ec1b0f04 100644
--- a/package/libcli/patches/patch-Makefile
+++ b/package/libcli/patches/patch-Makefile
@@ -1,21 +1,35 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- libcli-1.9.4.orig/Makefile 2008-10-09 04:38:01.000000000 +0200
-+++ libcli-1.9.4/Makefile 2009-05-29 17:42:04.310095050 +0200
-@@ -1,15 +1,12 @@
+--- libcli-1.9.7.orig/Makefile 2013-12-21 13:33:31.000000000 +0100
++++ libcli-1.9.7/Makefile 2013-12-21 13:37:09.000000000 +0100
+@@ -1,6 +1,5 @@
+-UNAME = $(shell sh -c 'uname -s 2>/dev/null || echo not')
DESTDIR =
-PREFIX = /usr/local
+PREFIX = /usr
MAJOR = 1
MINOR = 9
- REVISION = 3
+@@ -8,21 +7,15 @@ REVISION = 7
LIB = libcli.so
+ LIB_STATIC = libcli.a
-CC = gcc
+-AR = ar
++CC ?= gcc
++AR ?= ar
+ ARFLAGS = rcs
-DEBUG = -g
-OPTIM = -O3
--CFLAGS += $(DEBUG) $(OPTIM) -Wall -Wformat-security -Wno-format-zero-length
-+CFLAGS += -Wall -Wformat-security -Wno-format-zero-length
- LDFLAGS += -shared -Wl,-soname,$(LIB).$(MAJOR).$(MINOR)
+-CFLAGS += $(DEBUG) $(OPTIM) -Wall -std=c99 -pedantic -Wformat-security -Wno-format-zero-length -Werror -Wwrite-strings -Wformat -fdiagnostics-show-option -Wextra -Wsign-compare -Wcast-align -Wno-unused-parameter
++CFLAGS += -Wall -std=c99 -pedantic -Wformat-security -Wno-format-zero-length -Werror -Wwrite-strings -Wformat -fdiagnostics-show-option -Wextra -Wsign-compare -Wcast-align -Wno-unused-parameter
+ LDFLAGS += -shared
LIBPATH += -L.
+
+-ifeq ($(UNAME),Darwin)
+-LDFLAGS += -Wl,-install_name,$(LIB).$(MAJOR).$(MINOR)
+-else
+ LDFLAGS += -Wl,-soname,$(LIB).$(MAJOR).$(MINOR)
LIBS = -lcrypt
+-endif
+
+ all: $(LIB) $(LIB_STATIC) clitest
+
diff --git a/package/libgcrypt/Makefile b/package/libgcrypt/Makefile
index 189b82cce..0f0f4f051 100644
--- a/package/libgcrypt/Makefile
+++ b/package/libgcrypt/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libgcrypt
PKG_VERSION:= 1.5.0
-PKG_RELEASE:= 3
+PKG_RELEASE:= 4
PKG_MD5SUM:= 78f8f8bec4580f75b25816f7896d0389
PKG_DESCR:= GNU crypto library
PKG_SECTION:= libs
@@ -22,13 +22,15 @@ $(eval $(call PKG_template,LIBGCRYPT,libgcrypt,${PKG_VERSION}-${PKG_RELEASE},${P
CONFIGURE_ARGS+= --disable-asm \
--with-gpg-error-prefix="${STAGING_TARGET_DIR}/usr"
-libgcrypt-install:
- ${INSTALL_DIR} ${IDIR_LIBGCRYPT}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libgcrypt.so* \
- ${IDIR_LIBGCRYPT}/usr/lib
+post-install:
# provides own automake macros
${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/share/aclocal
${CP} ${WRKINST}//usr/share/aclocal/libgcrypt.m4 \
${STAGING_HOST_DIR}/usr/share/aclocal
+libgcrypt-install:
+ ${INSTALL_DIR} ${IDIR_LIBGCRYPT}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libgcrypt.so* \
+ ${IDIR_LIBGCRYPT}/usr/lib
+
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libjansson/Makefile b/package/libjansson/Makefile
new file mode 100644
index 000000000..4fef0dd4b
--- /dev/null
+++ b/package/libjansson/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= libjansson
+PKG_VERSION:= 2.5
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 46ac93bec48aacf207b67b51c8fbf7f1
+PKG_DESCR:= JSON library
+PKG_SECTION:= libs
+PKG_URL:= http://www.digip.org/jansson/
+PKG_SITES:= http://www.digip.org/jansson/releases/
+PKG_OPTS:= dev
+
+DISTFILES:= jansson-${PKG_VERSION}.tar.gz
+WRKDIST= ${WRKDIR}/jansson-${PKG_VERSION}
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBJANSSON,libjansson,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+
+libjansson-install:
+ $(INSTALL_DIR) $(IDIR_LIBJANSSON)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libjansson*.so* \
+ $(IDIR_LIBJANSSON)/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/liblzo/Makefile b/package/liblzo/Makefile
index 37955a774..3f79d0317 100644
--- a/package/liblzo/Makefile
+++ b/package/liblzo/Makefile
@@ -4,11 +4,12 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= lzo
-PKG_VERSION:= 2.04
-PKG_RELEASE:= 2
-PKG_MD5SUM:= a383c7055a310e2a71b9ecd19cfea238
+PKG_VERSION:= 2.06
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 95380bd4081f85ef08c5209f4107e9f8
PKG_DESCR:= a real-time data compression library
PKG_SECTION:= libs
+PKG_BUILDDEP:= liblzo-host
PKG_URL:= http://www.oberhumer.com/opensource/lzo
PKG_SITES:= http://www.oberhumer.com/opensource/lzo/download/
PKG_LIBNAME:= liblzo
@@ -18,10 +19,13 @@ ifeq ($(ADK_STATIC),y)
PKG_OPTS+= libonly
endif
+include ${TOPDIR}/mk/host.mk
include ${TOPDIR}/mk/package.mk
+$(eval $(call HOST_template,LIBLZO,liblzo,${PKG_VERSION}-${PKG_RELEASE}))
$(eval $(call PKG_template,LIBLZO,liblzo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},$(PKG_OPTS)))
+HOST_STYLE:= auto
CONFIGURE_ARGS+= --enable-static
MAKE_FLAGS+= CFLAGS_O="${TARGET_CFLAGS}"
@@ -29,4 +33,5 @@ liblzo-install:
${INSTALL_DIR} ${IDIR_LIBLZO}/usr/lib
${CP} ${WRKINST}/usr/lib/liblzo2.so* ${IDIR_LIBLZO}/usr/lib
+include ${TOPDIR}/mk/host-bottom.mk
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libmms/Makefile b/package/libmms/Makefile
index 9e2c2108a..cfd900c0d 100644
--- a/package/libmms/Makefile
+++ b/package/libmms/Makefile
@@ -9,6 +9,8 @@ PKG_RELEASE:= 1
PKG_MD5SUM:= 9f63aa363deb4874e072a45850161bff
PKG_DESCR:= common library for parsing mms:// type network streams
PKG_SECTION:= libs
+PKG_BUILDDEP:= glib
+PKG_DEPENDS:= glib
PKG_URL:= http://libmms.sourceforge.net/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libmms/}
PKG_OPTS:= dev
diff --git a/package/libnet/Makefile b/package/libnet/Makefile
index b1cee13d9..2f765cc71 100644
--- a/package/libnet/Makefile
+++ b/package/libnet/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= libnet
-PKG_VERSION:= 1.1.5
-PKG_RELEASE:= 3
-PKG_MD5SUM:= a9bc1d75a610efcfee200d3e28d8eb8f
+PKG_VERSION:= 1.1.6
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 710296fe424a49344e5fcc0d09e53317
PKG_DESCR:= a low-level packet creation library
PKG_SECTION:= libs
PKG_DEPENDS:= libpcap
diff --git a/package/libnet/patches/patch-src_libnet_link_linux_c b/package/libnet/patches/patch-src_libnet_link_linux_c
new file mode 100644
index 000000000..565aae510
--- /dev/null
+++ b/package/libnet/patches/patch-src_libnet_link_linux_c
@@ -0,0 +1,30 @@
+* from alpinelinux
+--- libnet-1.1.6.orig/src/libnet_link_linux.c 2012-03-19 17:59:50.000000000 +0100
++++ libnet-1.1.6/src/libnet_link_linux.c 2013-12-21 15:19:01.000000000 +0100
+@@ -30,26 +30,15 @@
+ #include <sys/time.h>
+
+ #include <net/if.h>
+-#if (__GLIBC__)
+ #include <netinet/if_ether.h>
+ #include <net/if_arp.h>
+-#else
+-#include <linux/if_arp.h>
+-#include <linux/if_ether.h>
+-#endif
+
+ #if (HAVE_PACKET_SOCKET)
+ #ifndef SOL_PACKET
+ #define SOL_PACKET 263
+ #endif /* SOL_PACKET */
+-#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
+ #include <netpacket/packet.h>
+ #include <net/ethernet.h> /* the L2 protocols */
+-#else
+-#include <asm/types.h>
+-#include <linux/if_packet.h>
+-#include <linux/if_ether.h> /* The L2 protocols */
+-#endif
+ #endif /* HAVE_PACKET_SOCKET */
+
+ #include "../include/libnet.h"
diff --git a/package/libnfs/Makefile b/package/libnfs/Makefile
new file mode 100644
index 000000000..2ad21801f
--- /dev/null
+++ b/package/libnfs/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= libnfs
+PKG_VERSION:= 1.8.0
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 0f20c7c104aa2e2ee563169b7e164aab
+PKG_DESCR:= NFS client library
+PKG_SECTION:= libs
+PKG_BUILDDEP:= autotool
+PKG_URL:= https://github.com/sahlberg/libnfs
+PKG_SITES:= https://sites.google.com/site/libnfstarballs/li/
+PKG_OPTS:= dev
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBNFS,libnfs,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+
+AUTOTOOL_STYLE:= autoreconf
+
+libnfs-install:
+ $(INSTALL_DIR) $(IDIR_LIBNFS)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libnfs*.so* \
+ $(IDIR_LIBNFS)/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libnids/Makefile b/package/libnids/Makefile
index 29930e729..d93bed8e9 100644
--- a/package/libnids/Makefile
+++ b/package/libnids/Makefile
@@ -15,10 +15,13 @@ PKG_URL:= http://libnids.sourceforge.net/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libnids/}
PKG_OPTS:= dev
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBNIDS,libnids,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+TARGET_CPPFLAGS+= -D_GNU_SOURCE
TARGET_LDFLAGS+= -lpthread
CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no
CONFIGURE_ARGS+= --with-libpcap=${STAGING_TARGET_DIR}/usr
diff --git a/package/libpng/Makefile b/package/libpng/Makefile
index 1d43a4998..ea4c3a1f8 100644
--- a/package/libpng/Makefile
+++ b/package/libpng/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= libpng
-PKG_VERSION:= 1.5.15
-PKG_RELEASE:= 2
-PKG_MD5SUM:= ea24254980fd820964a710e4d2a947c7
+PKG_VERSION:= 1.6.8
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 29b7065906e2551508a0d7eacd19174e
PKG_DESCR:= A library for reading/writing PNG images
PKG_SECTION:= libs
PKG_DEPENDS:= zlib
diff --git a/package/libpng/patches/libpng-1.5.15-apng.patch b/package/libpng/patches/libpng-1.6.8-apng.patch
index b169303e9..02cf32620 100644
--- a/package/libpng/patches/libpng-1.5.15-apng.patch
+++ b/package/libpng/patches/libpng-1.6.8-apng.patch
@@ -1,7 +1,7 @@
-diff -Naru libpng-1.5.15.org/png.h libpng-1.5.15/png.h
---- libpng-1.5.15.org/png.h 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/png.h 2013-04-02 20:39:30.000000000 +0900
-@@ -448,6 +448,10 @@
+diff -Naru libpng-1.6.8.org/png.h libpng-1.6.8/png.h
+--- libpng-1.6.8.org/png.h 2013-12-22 17:03:17.220988502 +0900
++++ libpng-1.6.8/png.h 2013-12-22 17:03:17.287990651 +0900
+@@ -451,6 +451,10 @@
# include "pnglibconf.h"
#endif
@@ -10,9 +10,9 @@ diff -Naru libpng-1.5.15.org/png.h libpng-1.5.15/png.h
+#define PNG_WRITE_APNG_SUPPORTED
+
#ifndef PNG_VERSION_INFO_ONLY
- # ifndef PNG_BUILDING_SYMBOL_TABLE
- /*
-@@ -555,6 +559,17 @@
+ /* Machine specific configuration. */
+ # include "pngconf.h"
+@@ -541,6 +545,17 @@
* See pngconf.h for base types that vary by machine/system
*/
@@ -30,7 +30,7 @@ diff -Naru libpng-1.5.15.org/png.h libpng-1.5.15/png.h
/* This triggers a compiler error in png.c, if png.c and png.h
* do not agree upon the version number.
*/
-@@ -838,6 +853,10 @@
+@@ -861,6 +876,10 @@
#define PNG_INFO_sPLT 0x2000 /* ESR, 1.0.6 */
#define PNG_INFO_sCAL 0x4000 /* ESR, 1.0.6 */
#define PNG_INFO_IDAT 0x8000 /* ESR, 1.0.6 */
@@ -41,7 +41,7 @@ diff -Naru libpng-1.5.15.org/png.h libpng-1.5.15/png.h
/* This is used for the transformation routines, as some of them
* change these values for the row. It also should enable using
-@@ -883,6 +902,10 @@
+@@ -898,6 +917,10 @@
#ifdef PNG_PROGRESSIVE_READ_SUPPORTED
typedef PNG_CALLBACK(void, *png_progressive_info_ptr, (png_structp, png_infop));
typedef PNG_CALLBACK(void, *png_progressive_end_ptr, (png_structp, png_infop));
@@ -52,97 +52,97 @@ diff -Naru libpng-1.5.15.org/png.h libpng-1.5.15/png.h
/* The following callback receives png_uint_32 row_number, int pass for the
* png_bytep data of the row. When transforming an interlaced image the
-@@ -2702,6 +2725,74 @@
+@@ -3300,6 +3323,74 @@
/*******************************************************************************
* END OF HARDWARE OPTIONS
******************************************************************************/
+#ifdef PNG_APNG_SUPPORTED
-+PNG_EXPORT(237, png_uint_32, png_get_acTL, (png_structp png_ptr,
++PNG_EXPORT(245, png_uint_32, png_get_acTL, (png_structp png_ptr,
+ png_infop info_ptr, png_uint_32 *num_frames, png_uint_32 *num_plays));
+
-+PNG_EXPORT(238, png_uint_32, png_set_acTL, (png_structp png_ptr,
++PNG_EXPORT(246, png_uint_32, png_set_acTL, (png_structp png_ptr,
+ png_infop info_ptr, png_uint_32 num_frames, png_uint_32 num_plays));
+
-+PNG_EXPORT(239, png_uint_32, png_get_num_frames, (png_structp png_ptr,
++PNG_EXPORT(247, png_uint_32, png_get_num_frames, (png_structp png_ptr,
+ png_infop info_ptr));
+
-+PNG_EXPORT(240, png_uint_32, png_get_num_plays, (png_structp png_ptr,
++PNG_EXPORT(248, png_uint_32, png_get_num_plays, (png_structp png_ptr,
+ png_infop info_ptr));
+
-+PNG_EXPORT(241, png_uint_32, png_get_next_frame_fcTL,
++PNG_EXPORT(249, png_uint_32, png_get_next_frame_fcTL,
+ (png_structp png_ptr, png_infop info_ptr, png_uint_32 *width,
+ png_uint_32 *height, png_uint_32 *x_offset, png_uint_32 *y_offset,
+ png_uint_16 *delay_num, png_uint_16 *delay_den, png_byte *dispose_op,
+ png_byte *blend_op));
+
-+PNG_EXPORT(242, png_uint_32, png_set_next_frame_fcTL,
++PNG_EXPORT(250, png_uint_32, png_set_next_frame_fcTL,
+ (png_structp png_ptr, png_infop info_ptr, png_uint_32 width,
+ png_uint_32 height, png_uint_32 x_offset, png_uint_32 y_offset,
+ png_uint_16 delay_num, png_uint_16 delay_den, png_byte dispose_op,
+ png_byte blend_op));
+
-+PNG_EXPORT(243, png_uint_32, png_get_next_frame_width,
++PNG_EXPORT(251, png_uint_32, png_get_next_frame_width,
+ (png_structp png_ptr, png_infop info_ptr));
-+PNG_EXPORT(244, png_uint_32, png_get_next_frame_height,
++PNG_EXPORT(252, png_uint_32, png_get_next_frame_height,
+ (png_structp png_ptr, png_infop info_ptr));
-+PNG_EXPORT(245, png_uint_32, png_get_next_frame_x_offset,
++PNG_EXPORT(253, png_uint_32, png_get_next_frame_x_offset,
+ (png_structp png_ptr, png_infop info_ptr));
-+PNG_EXPORT(246, png_uint_32, png_get_next_frame_y_offset,
++PNG_EXPORT(254, png_uint_32, png_get_next_frame_y_offset,
+ (png_structp png_ptr, png_infop info_ptr));
-+PNG_EXPORT(247, png_uint_16, png_get_next_frame_delay_num,
++PNG_EXPORT(255, png_uint_16, png_get_next_frame_delay_num,
+ (png_structp png_ptr, png_infop info_ptr));
-+PNG_EXPORT(248, png_uint_16, png_get_next_frame_delay_den,
++PNG_EXPORT(256, png_uint_16, png_get_next_frame_delay_den,
+ (png_structp png_ptr, png_infop info_ptr));
-+PNG_EXPORT(249, png_byte, png_get_next_frame_dispose_op,
++PNG_EXPORT(257, png_byte, png_get_next_frame_dispose_op,
+ (png_structp png_ptr, png_infop info_ptr));
-+PNG_EXPORT(250, png_byte, png_get_next_frame_blend_op,
++PNG_EXPORT(258, png_byte, png_get_next_frame_blend_op,
+ (png_structp png_ptr, png_infop info_ptr));
-+PNG_EXPORT(251, png_byte, png_get_first_frame_is_hidden,
++PNG_EXPORT(259, png_byte, png_get_first_frame_is_hidden,
+ (png_structp png_ptr, png_infop info_ptr));
-+PNG_EXPORT(252, png_uint_32, png_set_first_frame_is_hidden,
++PNG_EXPORT(260, png_uint_32, png_set_first_frame_is_hidden,
+ (png_structp png_ptr, png_infop info_ptr, png_byte is_hidden));
+
+#ifdef PNG_READ_APNG_SUPPORTED
-+PNG_EXPORT(253, void, png_read_frame_head, (png_structp png_ptr,
++PNG_EXPORT(261, void, png_read_frame_head, (png_structp png_ptr,
+ png_infop info_ptr));
+#ifdef PNG_PROGRESSIVE_READ_SUPPORTED
-+PNG_EXPORT(254, void, png_set_progressive_frame_fn, (png_structp png_ptr,
++PNG_EXPORT(262, void, png_set_progressive_frame_fn, (png_structp png_ptr,
+ png_progressive_frame_ptr frame_info_fn,
+ png_progressive_frame_ptr frame_end_fn));
+#endif /* PNG_PROGRESSIVE_READ_SUPPORTED */
+#endif /* PNG_READ_APNG_SUPPORTED */
+
+#ifdef PNG_WRITE_APNG_SUPPORTED
-+PNG_EXPORT(255, void, png_write_frame_head, (png_structp png_ptr,
++PNG_EXPORT(263, void, png_write_frame_head, (png_structp png_ptr,
+ png_infop info_ptr, png_bytepp row_pointers,
+ png_uint_32 width, png_uint_32 height,
+ png_uint_32 x_offset, png_uint_32 y_offset,
+ png_uint_16 delay_num, png_uint_16 delay_den, png_byte dispose_op,
+ png_byte blend_op));
+
-+PNG_EXPORT(256, void, png_write_frame_tail, (png_structp png_ptr,
++PNG_EXPORT(264, void, png_write_frame_tail, (png_structp png_ptr,
+ png_infop info_ptr));
+#endif /* PNG_WRITE_APNG_SUPPORTED */
+#endif /* PNG_APNG_SUPPORTED */
/* Maintainer: Put new public prototypes here ^, in libpng.3, and project
- * defs
-@@ -2712,7 +2803,11 @@
+ * defs, scripts/pnglibconf.h, and scripts/pnglibconf.h.prebuilt
+@@ -3310,7 +3401,11 @@
* scripts/symbols.def as well.
*/
#ifdef PNG_EXPORT_LAST_ORDINAL
+#ifdef PNG_APNG_SUPPORTED
-+ PNG_EXPORT_LAST_ORDINAL(256);
++ PNG_EXPORT_LAST_ORDINAL(264);
+#else
- PNG_EXPORT_LAST_ORDINAL(236);
+ PNG_EXPORT_LAST_ORDINAL(244);
+#endif /* PNG_APNG_SUPPORTED */
#endif
#ifdef __cplusplus
-diff -Naru libpng-1.5.15.org/pngget.c libpng-1.5.15/pngget.c
---- libpng-1.5.15.org/pngget.c 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/pngget.c 2013-04-02 20:39:30.000000000 +0900
-@@ -1140,4 +1140,166 @@
+diff -Naru libpng-1.6.8.org/pngget.c libpng-1.6.8/pngget.c
+--- libpng-1.6.8.org/pngget.c 2013-12-22 17:03:17.220988502 +0900
++++ libpng-1.6.8/pngget.c 2013-12-22 17:03:17.288990684 +0900
+@@ -1174,4 +1174,166 @@
# endif
#endif
@@ -309,10 +309,10 @@ diff -Naru libpng-1.5.15.org/pngget.c libpng-1.5.15/pngget.c
+}
+#endif /* PNG_APNG_SUPPORTED */
#endif /* PNG_READ_SUPPORTED || PNG_WRITE_SUPPORTED */
-diff -Naru libpng-1.5.15.org/pnginfo.h libpng-1.5.15/pnginfo.h
---- libpng-1.5.15.org/pnginfo.h 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/pnginfo.h 2013-04-02 20:39:30.000000000 +0900
-@@ -265,5 +265,18 @@
+diff -Naru libpng-1.6.8.org/pnginfo.h libpng-1.6.8/pnginfo.h
+--- libpng-1.6.8.org/pnginfo.h 2013-12-22 17:03:17.220988502 +0900
++++ libpng-1.6.8/pnginfo.h 2013-12-22 17:03:17.288990684 +0900
+@@ -256,5 +256,18 @@
png_bytepp row_pointers; /* the image bits */
#endif
@@ -331,10 +331,10 @@ diff -Naru libpng-1.5.15.org/pnginfo.h libpng-1.5.15/pnginfo.h
+
};
#endif /* PNGINFO_H */
-diff -Naru libpng-1.5.15.org/pngpread.c libpng-1.5.15/pngpread.c
---- libpng-1.5.15.org/pngpread.c 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/pngpread.c 2013-04-02 20:39:30.000000000 +0900
-@@ -215,6 +215,109 @@
+diff -Naru libpng-1.6.8.org/pngpread.c libpng-1.6.8/pngpread.c
+--- libpng-1.6.8.org/pngpread.c 2013-12-22 17:03:17.221988534 +0900
++++ libpng-1.6.8/pngpread.c 2013-12-22 17:03:17.288990684 +0900
+@@ -217,6 +217,109 @@
chunk_name = png_ptr->chunk_name;
@@ -443,22 +443,21 @@ diff -Naru libpng-1.5.15.org/pngpread.c libpng-1.5.15/pngpread.c
+
if (chunk_name == png_IDAT)
{
- /* This is here above the if/else case statement below because if the
-@@ -318,6 +421,10 @@
- png_benign_error(png_ptr, "Too many IDATs found");
- }
+ if (png_ptr->mode & PNG_AFTER_IDAT)
+@@ -299,6 +402,9 @@
+ else if (chunk_name == png_IDAT)
+ {
+#ifdef PNG_READ_APNG_SUPPORTED
+ png_have_info(png_ptr, info_ptr);
+#endif
-+
png_ptr->idat_size = png_ptr->push_length;
- png_ptr->mode |= PNG_HAVE_IDAT;
png_ptr->process_mode = PNG_READ_IDAT_MODE;
-@@ -551,6 +658,28 @@
-
+ png_push_have_info(png_ptr, info_ptr);
+@@ -529,6 +635,30 @@
+ png_handle_iTXt(png_ptr, info_ptr, png_ptr->push_length);
+ }
#endif
-
+#ifdef PNG_READ_APNG_SUPPORTED
+ else if (chunk_name == png_acTL)
+ {
@@ -467,6 +466,7 @@ diff -Naru libpng-1.5.15.org/pngpread.c libpng-1.5.15/pngpread.c
+ png_push_save_buffer(png_ptr);
+ return;
+ }
++
+ png_handle_acTL(png_ptr, info_ptr, png_ptr->push_length);
+ }
+
@@ -477,14 +477,15 @@ diff -Naru libpng-1.5.15.org/pngpread.c libpng-1.5.15/pngpread.c
+ png_push_save_buffer(png_ptr);
+ return;
+ }
++
+ png_handle_fcTL(png_ptr, info_ptr, png_ptr->push_length);
+ }
-+#endif /* PNG_READ_APNG_SUPPORTED */
+
++#endif /* PNG_READ_APNG_SUPPORTED */
+
else
{
- if (png_ptr->push_length + 4 > png_ptr->buffer_size)
-@@ -758,7 +887,11 @@
+@@ -731,7 +861,11 @@
png_byte chunk_tag[4];
/* TODO: this code can be commoned up with the same code in push_read */
@@ -496,14 +497,14 @@ diff -Naru libpng-1.5.15.org/pngpread.c libpng-1.5.15/pngpread.c
{
png_push_save_buffer(png_ptr);
return;
-@@ -771,17 +904,64 @@
+@@ -744,17 +878,64 @@
png_ptr->chunk_name = PNG_CHUNK_FROM_STRING(chunk_tag);
png_ptr->mode |= PNG_HAVE_CHUNK_HEADER;
+#ifdef PNG_READ_APNG_SUPPORTED
+ if (png_ptr->chunk_name != png_fdAT && png_ptr->num_frames_read > 0)
+ {
-+ if (png_ptr->flags & PNG_FLAG_ZLIB_FINISHED)
++ if (png_ptr->flags & PNG_FLAG_ZSTREAM_ENDED)
+ {
+ png_ptr->process_mode = PNG_READ_CHUNK_MODE;
+ if (png_ptr->frame_end_fn != NULL)
@@ -537,7 +538,7 @@ diff -Naru libpng-1.5.15.org/pngpread.c libpng-1.5.15/pngpread.c
{
png_ptr->process_mode = PNG_READ_CHUNK_MODE;
- if (!(png_ptr->flags & PNG_FLAG_ZLIB_FINISHED))
+ if (!(png_ptr->flags & PNG_FLAG_ZSTREAM_ENDED))
png_error(png_ptr, "Not enough compressed data");
+#ifdef PNG_READ_APNG_SUPPORTED
@@ -561,7 +562,7 @@ diff -Naru libpng-1.5.15.org/pngpread.c libpng-1.5.15/pngpread.c
}
if (png_ptr->idat_size && png_ptr->save_buffer_size)
-@@ -859,6 +1039,15 @@
+@@ -832,6 +1013,15 @@
if (!(buffer_length > 0) || buffer == NULL)
png_error(png_ptr, "No IDAT data (internal error)");
@@ -569,7 +570,7 @@ diff -Naru libpng-1.5.15.org/pngpread.c libpng-1.5.15/pngpread.c
+ /* If the app is not APNG-aware, decode only the first frame */
+ if (!(png_ptr->apng_flags & PNG_APNG_APP) && png_ptr->num_frames_read > 0)
+ {
-+ png_ptr->flags |= PNG_FLAG_ZLIB_FINISHED;
++ png_ptr->flags |= PNG_FLAG_ZSTREAM_ENDED;
+ return;
+ }
+#endif
@@ -577,7 +578,7 @@ diff -Naru libpng-1.5.15.org/pngpread.c libpng-1.5.15/pngpread.c
/* This routine must process all the data it has been given
* before returning, calling the row callback as required to
* handle the uncompressed results.
-@@ -1304,6 +1493,18 @@
+@@ -1280,6 +1470,18 @@
png_set_read_fn(png_ptr, progressive_ptr, png_push_fill_buffer);
}
@@ -594,30 +595,30 @@ diff -Naru libpng-1.5.15.org/pngpread.c libpng-1.5.15/pngpread.c
+#endif
+
png_voidp PNGAPI
- png_get_progressive_ptr(png_const_structp png_ptr)
+ png_get_progressive_ptr(png_const_structrp png_ptr)
{
-diff -Naru libpng-1.5.15.org/pngpriv.h libpng-1.5.15/pngpriv.h
---- libpng-1.5.15.org/pngpriv.h 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/pngpriv.h 2013-04-02 20:39:30.000000000 +0900
-@@ -461,6 +461,10 @@
- #define PNG_HAVE_PNG_SIGNATURE 0x1000
+diff -Naru libpng-1.6.8.org/pngpriv.h libpng-1.6.8/pngpriv.h
+--- libpng-1.6.8.org/pngpriv.h 2013-12-22 17:03:17.221988534 +0900
++++ libpng-1.6.8/pngpriv.h 2013-12-22 17:03:17.289990716 +0900
+@@ -550,6 +550,10 @@
#define PNG_HAVE_CHUNK_AFTER_IDAT 0x2000 /* Have another chunk after IDAT */
- #define PNG_HAVE_iCCP 0x4000
+ /* 0x4000 (unused) */
+ #define PNG_IS_READ_STRUCT 0x8000 /* Else is a write struct */
+#ifdef PNG_APNG_SUPPORTED
-+#define PNG_HAVE_acTL 0x8000
-+#define PNG_HAVE_fcTL 0x10000
++#define PNG_HAVE_acTL 0x10000
++#define PNG_HAVE_fcTL 0x20000
+#endif
/* Flags for the transformations the PNG library does on the image data */
#define PNG_BGR 0x0001
-@@ -658,6 +662,16 @@
- #define png_tRNS PNG_CHUNK(116, 82, 78, 83)
- #define png_zTXt PNG_CHUNK(122, 84, 88, 116)
+@@ -771,6 +775,16 @@
+ #define png_tRNS PNG_U32(116, 82, 78, 83)
+ #define png_zTXt PNG_U32(122, 84, 88, 116)
+#ifdef PNG_APNG_SUPPORTED
-+#define png_acTL PNG_CHUNK( 97, 99, 84, 76)
-+#define png_fcTL PNG_CHUNK(102, 99, 84, 76)
-+#define png_fdAT PNG_CHUNK(102, 100, 65, 84)
++#define png_acTL PNG_U32( 97, 99, 84, 76)
++#define png_fcTL PNG_U32(102, 99, 84, 76)
++#define png_fdAT PNG_U32(102, 100, 65, 84)
+
+/* For png_struct.apng_flags: */
+#define PNG_FIRST_FRAME_HIDDEN 0x0001
@@ -627,66 +628,68 @@ diff -Naru libpng-1.5.15.org/pngpriv.h libpng-1.5.15/pngpriv.h
/* The following will work on (signed char*) strings, whereas the get_uint_32
* macro will fail on top-bit-set values because of the sign extension.
*/
-@@ -1349,6 +1363,45 @@
- png_bytep row));
+@@ -1583,6 +1597,47 @@
+ */
#endif
+#ifdef PNG_APNG_SUPPORTED
-+PNG_EXTERN void png_ensure_fcTL_is_valid PNGARG((png_structp png_ptr,
++PNG_INTERNAL_FUNCTION(void,png_ensure_fcTL_is_valid,(png_structp png_ptr,
+ png_uint_32 width, png_uint_32 height,
+ png_uint_32 x_offset, png_uint_32 y_offset,
+ png_uint_16 delay_num, png_uint_16 delay_den,
-+ png_byte dispose_op, png_byte blend_op));
++ png_byte dispose_op, png_byte blend_op), PNG_EMPTY);
+
+#ifdef PNG_READ_APNG_SUPPORTED
-+PNG_EXTERN void png_handle_acTL PNGARG((png_structp png_ptr, png_infop info_ptr,
-+ png_uint_32 length));
-+PNG_EXTERN void png_handle_fcTL PNGARG((png_structp png_ptr, png_infop info_ptr,
-+ png_uint_32 length));
-+PNG_EXTERN void png_handle_fdAT PNGARG((png_structp png_ptr, png_infop info_ptr,
-+ png_uint_32 length));
-+PNG_EXTERN void png_have_info PNGARG((png_structp png_ptr, png_infop info_ptr));
-+PNG_EXTERN void png_ensure_sequence_number PNGARG((png_structp png_ptr,
-+ png_uint_32 length));
-+PNG_EXTERN void png_read_reset PNGARG((png_structp png_ptr));
-+PNG_EXTERN void png_read_reinit PNGARG((png_structp png_ptr,
-+ png_infop info_ptr));
++PNG_INTERNAL_FUNCTION(void,png_handle_acTL,(png_structp png_ptr, png_infop info_ptr,
++ png_uint_32 length),PNG_EMPTY);
++PNG_INTERNAL_FUNCTION(void,png_handle_fcTL,(png_structp png_ptr, png_infop info_ptr,
++ png_uint_32 length),PNG_EMPTY);
++PNG_INTERNAL_FUNCTION(void,png_handle_fdAT,(png_structp png_ptr, png_infop info_ptr,
++ png_uint_32 length),PNG_EMPTY);
++PNG_INTERNAL_FUNCTION(void,png_have_info,(png_structp png_ptr, png_infop info_ptr),PNG_EMPTY);
++PNG_INTERNAL_FUNCTION(void,png_ensure_sequence_number,(png_structp png_ptr,
++ png_uint_32 length),PNG_EMPTY);
++PNG_INTERNAL_FUNCTION(void,png_read_reset,(png_structp png_ptr),PNG_EMPTY);
++PNG_INTERNAL_FUNCTION(void,png_read_reinit,(png_structp png_ptr,
++ png_infop info_ptr),PNG_EMPTY);
+#ifdef PNG_PROGRESSIVE_READ_SUPPORTED
-+PNG_EXTERN void png_progressive_read_reset PNGARG((png_structp png_ptr));
++PNG_INTERNAL_FUNCTION(void,png_progressive_read_reset,(png_structp png_ptr),PNG_EMPTY);
+#endif /* PNG_PROGRESSIVE_READ_SUPPORTED */
+#endif /* PNG_READ_APNG_SUPPORTED */
+
+#ifdef PNG_WRITE_APNG_SUPPORTED
-+PNG_EXTERN void png_write_acTL PNGARG((png_structp png_ptr,
-+ png_uint_32 num_frames, png_uint_32 num_plays));
-+PNG_EXTERN void png_write_fcTL PNGARG((png_structp png_ptr,
++PNG_INTERNAL_FUNCTION(void,png_write_acTL,(png_structp png_ptr,
++ png_uint_32 num_frames, png_uint_32 num_plays),PNG_EMPTY);
++PNG_INTERNAL_FUNCTION(void,png_write_fcTL,(png_structp png_ptr,
+ png_uint_32 width, png_uint_32 height,
+ png_uint_32 x_offset, png_uint_32 y_offset,
+ png_uint_16 delay_num, png_uint_16 delay_den,
-+ png_byte dispose_op, png_byte blend_op));
-+PNG_EXTERN void png_write_reset PNGARG((png_structp png_ptr));
-+PNG_EXTERN void png_write_reinit PNGARG((png_structp png_ptr,
-+ png_infop info_ptr, png_uint_32 width, png_uint_32 height));
++ png_byte dispose_op, png_byte blend_op),PNG_EMPTY);
++PNG_INTERNAL_FUNCTION(void,png_write_fdAT,(png_structp png_ptr,
++ png_const_bytep data, png_size_t length),PNG_EMPTY);
++PNG_INTERNAL_FUNCTION(void,png_write_reset,(png_structp png_ptr),PNG_EMPTY);
++PNG_INTERNAL_FUNCTION(void,png_write_reinit,(png_structp png_ptr,
++ png_infop info_ptr, png_uint_32 width, png_uint_32 height),PNG_EMPTY);
+#endif /* PNG_WRITE_APNG_SUPPORTED */
+#endif /* PNG_APNG_SUPPORTED */
+
/* Added at libpng version 1.4.0 */
- #ifdef PNG_CHECK_cHRM_SUPPORTED
- PNG_EXTERN int png_check_cHRM_fixed PNGARG((png_structp png_ptr,
-diff -Naru libpng-1.5.15.org/pngread.c libpng-1.5.15/pngread.c
---- libpng-1.5.15.org/pngread.c 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/pngread.c 2013-04-02 20:39:30.000000000 +0900
-@@ -240,6 +240,9 @@
- !(png_ptr->mode & PNG_HAVE_PLTE))
- png_error(png_ptr, "Missing PLTE before IDAT");
+ #ifdef PNG_COLORSPACE_SUPPORTED
+ /* These internal functions are for maintaining the colorspace structure within
+diff -Naru libpng-1.6.8.org/pngread.c libpng-1.6.8/pngread.c
+--- libpng-1.6.8.org/pngread.c 2013-12-22 17:03:17.222988566 +0900
++++ libpng-1.6.8/pngread.c 2013-12-22 17:03:17.290990748 +0900
+@@ -158,6 +158,9 @@
+ else if (chunk_name == png_IDAT)
+ {
+#ifdef PNG_READ_APNG_SUPPORTED
+ png_have_info(png_ptr, info_ptr);
+#endif
png_ptr->idat_size = length;
- png_ptr->mode |= PNG_HAVE_IDAT;
break;
-@@ -330,12 +333,90 @@
+ }
+@@ -247,6 +250,17 @@
png_handle_iTXt(png_ptr, info_ptr, length);
#endif
@@ -702,8 +705,9 @@ diff -Naru libpng-1.5.15.org/pngread.c libpng-1.5.15/pngread.c
+#endif
+
else
- png_handle_unknown(png_ptr, info_ptr, length);
- }
+ png_handle_unknown(png_ptr, info_ptr, length,
+ PNG_HANDLE_CHUNK_AS_DEFAULT);
+@@ -254,6 +268,72 @@
}
#endif /* PNG_SEQUENTIAL_READ_SUPPORTED */
@@ -723,9 +727,8 @@ diff -Naru libpng-1.5.15.org/pngread.c libpng-1.5.15/pngread.c
+ if (png_ptr->num_frames_read == 0)
+ return;
+
-+ png_crc_finish(png_ptr, 0); /* CRC from last IDAT or fdAT chunk */
-+
+ png_read_reset(png_ptr);
++ png_ptr->flags &= ~PNG_FLAG_ROW_INIT;
+ png_ptr->mode &= ~PNG_HAVE_fcTL;
+
+ have_chunk_after_DAT = 0;
@@ -776,68 +779,11 @@ diff -Naru libpng-1.5.15.org/pngread.c libpng-1.5.15/pngread.c
+
/* Optional call to update the users info_ptr structure */
void PNGAPI
- png_read_update_info(png_structp png_ptr, png_infop info_ptr)
-@@ -537,6 +618,38 @@
- {
- if (!(png_ptr->zstream.avail_in))
- {
-+#ifdef PNG_READ_APNG_SUPPORTED
-+ png_uint_32 bytes_to_skip = 0;
-+
-+ while (!png_ptr->idat_size || bytes_to_skip != 0)
-+ {
-+ png_crc_finish(png_ptr, bytes_to_skip);
-+ bytes_to_skip = 0;
-+
-+ png_ptr->idat_size = png_read_chunk_header(png_ptr);
-+ if (png_ptr->num_frames_read == 0)
-+ {
-+ if (png_ptr->chunk_name != png_IDAT)
-+ png_error(png_ptr, "Not enough image data");
-+ }
-+ else
-+ {
-+ if (png_ptr->chunk_name == png_IEND)
-+ png_error(png_ptr, "Not enough image data");
-+ if (png_ptr->chunk_name != png_fdAT)
-+ {
-+ png_warning(png_ptr, "Skipped (ignored) a chunk "
-+ "between APNG chunks");
-+ bytes_to_skip = png_ptr->idat_size;
-+ continue;
-+ }
-+
-+ png_ensure_sequence_number(png_ptr, png_ptr->idat_size);
-+
-+ png_ptr->idat_size -= 4;
-+ }
-+ }
-+#else
- while (!png_ptr->idat_size)
- {
- png_crc_finish(png_ptr, 0);
-@@ -545,6 +658,7 @@
- if (png_ptr->chunk_name != png_IDAT)
- png_error(png_ptr, "Not enough image data");
- }
-+#endif
- png_ptr->zstream.avail_in = (uInt)png_ptr->zbuf_size;
- png_ptr->zstream.next_in = png_ptr->zbuf;
- if (png_ptr->zbuf_size > png_ptr->idat_size)
-@@ -563,6 +677,9 @@
- png_benign_error(png_ptr, "Extra compressed data");
- png_ptr->mode |= PNG_AFTER_IDAT;
- png_ptr->flags |= PNG_FLAG_ZLIB_FINISHED;
-+#ifdef PNG_READ_APNG_SUPPORTED
-+ png_ptr->num_frames_read++;
-+#endif
- break;
- }
-
-diff -Naru libpng-1.5.15.org/pngrutil.c libpng-1.5.15/pngrutil.c
---- libpng-1.5.15.org/pngrutil.c 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/pngrutil.c 2013-04-02 20:39:30.000000000 +0900
-@@ -547,6 +547,11 @@
+ png_read_update_info(png_structrp png_ptr, png_inforp info_ptr)
+diff -Naru libpng-1.6.8.org/pngrutil.c libpng-1.6.8/pngrutil.c
+--- libpng-1.6.8.org/pngrutil.c 2013-12-22 17:03:17.224988631 +0900
++++ libpng-1.6.8/pngrutil.c 2013-12-22 17:03:17.291990780 +0900
+@@ -826,6 +826,11 @@
filter_type = buf[11];
interlace_type = buf[12];
@@ -849,7 +795,7 @@ diff -Naru libpng-1.5.15.org/pngrutil.c libpng-1.5.15/pngrutil.c
/* Set internal variables */
png_ptr->width = width;
png_ptr->height = height;
-@@ -2624,6 +2629,179 @@
+@@ -2700,6 +2705,179 @@
}
#endif
@@ -1026,10 +972,68 @@ diff -Naru libpng-1.5.15.org/pngrutil.c libpng-1.5.15/pngrutil.c
+}
+#endif /* PNG_READ_APNG_SUPPORTED */
+
- /* This function is called when we haven't found a handler for a
- * chunk. If there isn't a problem with the chunk itself (ie bad
- * chunk name, CRC, or a critical chunk), the chunk is silently ignored
-@@ -4114,4 +4292,81 @@
+ #ifdef PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
+ /* Utility function for png_handle_unknown; set up png_ptr::unknown_chunk */
+ static int
+@@ -3956,7 +4134,38 @@
+ {
+ uInt avail_in;
+ png_bytep buffer;
++#ifdef PNG_READ_APNG_SUPPORTED
++ png_uint_32 bytes_to_skip = 0;
++
++ while (png_ptr->idat_size == 0 || bytes_to_skip != 0)
++ {
++ png_crc_finish(png_ptr, bytes_to_skip);
++ bytes_to_skip = 0;
+
++ png_ptr->idat_size = png_read_chunk_header(png_ptr);
++ if (png_ptr->num_frames_read == 0)
++ {
++ if (png_ptr->chunk_name != png_IDAT)
++ png_error(png_ptr, "Not enough image data");
++ }
++ else
++ {
++ if (png_ptr->chunk_name == png_IEND)
++ png_error(png_ptr, "Not enough image data");
++ if (png_ptr->chunk_name != png_fdAT)
++ {
++ png_warning(png_ptr, "Skipped (ignored) a chunk "
++ "between APNG chunks");
++ bytes_to_skip = png_ptr->idat_size;
++ continue;
++ }
++
++ png_ensure_sequence_number(png_ptr, png_ptr->idat_size);
++
++ png_ptr->idat_size -= 4;
++ }
++ }
++#else
+ while (png_ptr->idat_size == 0)
+ {
+ png_crc_finish(png_ptr, 0);
+@@ -3968,7 +4177,7 @@
+ if (png_ptr->chunk_name != png_IDAT)
+ png_error(png_ptr, "Not enough image data");
+ }
+-
++#endif /* PNG_READ_APNG_SUPPORTED */
+ avail_in = png_ptr->IDAT_read_size;
+
+ if (avail_in > png_ptr->idat_size)
+@@ -4031,6 +4240,9 @@
+
+ png_ptr->mode |= PNG_AFTER_IDAT;
+ png_ptr->flags |= PNG_FLAG_ZSTREAM_ENDED;
++#ifdef PNG_READ_APNG_SUPPORTED
++ png_ptr->num_frames_read++;
++#endif
+
+ if (png_ptr->zstream.avail_in > 0 || png_ptr->idat_size > 0)
+ png_chunk_benign_error(png_ptr, "Extra compressed data");
+@@ -4476,4 +4688,80 @@
png_ptr->flags |= PNG_FLAG_ROW_INIT;
}
@@ -1045,7 +1049,6 @@ diff -Naru libpng-1.5.15.org/pngrutil.c libpng-1.5.15/pngrutil.c
+ png_ptr->mode &= ~PNG_AFTER_IDAT;
+ png_ptr->row_number = 0;
+ png_ptr->pass = 0;
-+ png_ptr->flags &= ~PNG_FLAG_ROW_INIT;
+}
+
+void /* PRIVATE */
@@ -1057,7 +1060,7 @@ diff -Naru libpng-1.5.15.org/pngrutil.c libpng-1.5.15/pngrutil.c
+ png_ptr->info_rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth,
+ png_ptr->width);
+ if (png_ptr->prev_row)
-+ png_memset(png_ptr->prev_row, 0, png_ptr->rowbytes + 1);
++ memset(png_ptr->prev_row, 0, png_ptr->rowbytes + 1);
+}
+
+#ifdef PNG_PROGRESSIVE_READ_SUPPORTED
@@ -1069,16 +1072,16 @@ diff -Naru libpng-1.5.15.org/pngrutil.c libpng-1.5.15/pngrutil.c
+ /* Arrays to facilitate easy interlacing - use pass (0 - 6) as index */
+
+ /* Start of interlace block */
-+ const int FARDATA png_pass_start[] = {0, 4, 0, 2, 0, 1, 0};
++ const int png_pass_start[] = {0, 4, 0, 2, 0, 1, 0};
+
+ /* Offset to next interlace block */
-+ const int FARDATA png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1};
++ const int png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1};
+
+ /* Start of interlace block in the y direction */
-+ const int FARDATA png_pass_ystart[] = {0, 0, 4, 0, 2, 0, 1};
++ const int png_pass_ystart[] = {0, 0, 4, 0, 2, 0, 1};
+
+ /* Offset to next interlace block in the y direction */
-+ const int FARDATA png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};
++ const int png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};
+
+ if (png_ptr->interlaced)
+ {
@@ -1099,7 +1102,7 @@ diff -Naru libpng-1.5.15.org/pngrutil.c libpng-1.5.15/pngrutil.c
+ png_ptr->num_rows = png_ptr->height;
+ png_ptr->iwidth = png_ptr->width;
+ }
-+ png_ptr->flags &= ~PNG_FLAG_ZLIB_FINISHED;
++ png_ptr->flags &= ~PNG_FLAG_ZSTREAM_ENDED;
+ if (inflateReset(&(png_ptr->zstream)) != Z_OK)
+ png_error(png_ptr, "inflateReset failed");
+ png_ptr->zstream.avail_in = 0;
@@ -1111,13 +1114,13 @@ diff -Naru libpng-1.5.15.org/pngrutil.c libpng-1.5.15/pngrutil.c
+#endif /* PNG_PROGRESSIVE_READ_SUPPORTED */
+#endif /* PNG_READ_APNG_SUPPORTED */
#endif /* PNG_READ_SUPPORTED */
-diff -Naru libpng-1.5.15.org/pngset.c libpng-1.5.15/pngset.c
---- libpng-1.5.15.org/pngset.c 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/pngset.c 2013-04-02 20:39:30.000000000 +0900
-@@ -262,6 +262,11 @@
- info_ptr->rowbytes = 0;
- else
- info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, width);
+diff -Naru libpng-1.6.8.org/pngset.c libpng-1.6.8/pngset.c
+--- libpng-1.6.8.org/pngset.c 2013-12-22 17:03:17.224988631 +0900
++++ libpng-1.6.8/pngset.c 2013-12-22 17:03:17.292990812 +0900
+@@ -239,6 +239,11 @@
+ info_ptr->pixel_depth = (png_byte)(info_ptr->channels * info_ptr->bit_depth);
+
+ info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, width);
+
+#ifdef PNG_APNG_SUPPORTED
+ /* for non-animated png. this may be overwritten from an acTL chunk later */
@@ -1126,7 +1129,7 @@ diff -Naru libpng-1.5.15.org/pngset.c libpng-1.5.15/pngset.c
}
#ifdef PNG_oFFs_SUPPORTED
-@@ -1048,6 +1053,147 @@
+@@ -1065,6 +1070,147 @@
}
#endif /* PNG_sPLT_SUPPORTED */
@@ -1225,10 +1228,6 @@ diff -Naru libpng-1.5.15.org/pngset.c libpng-1.5.15/pngset.c
+ png_uint_16 delay_num, png_uint_16 delay_den,
+ png_byte dispose_op, png_byte blend_op)
+{
-+ if (width + x_offset > png_ptr->first_frame_width ||
-+ height + y_offset > png_ptr->first_frame_height)
-+ png_error(png_ptr, "dimensions of a frame are greater than"
-+ "the ones in IHDR");
+ if (width > PNG_UINT_31_MAX)
+ png_error(png_ptr, "invalid width in fcTL (> 2^31-1)");
+ if (height > PNG_UINT_31_MAX)
@@ -1237,6 +1236,10 @@ diff -Naru libpng-1.5.15.org/pngset.c libpng-1.5.15/pngset.c
+ png_error(png_ptr, "invalid x_offset in fcTL (> 2^31-1)");
+ if (y_offset > PNG_UINT_31_MAX)
+ png_error(png_ptr, "invalid y_offset in fcTL (> 2^31-1)");
++ if (width + x_offset > png_ptr->first_frame_width ||
++ height + y_offset > png_ptr->first_frame_height)
++ png_error(png_ptr, "dimensions of a frame are greater than"
++ "the ones in IHDR");
+
+ if (dispose_op != PNG_DISPOSE_OP_NONE &&
+ dispose_op != PNG_DISPOSE_OP_BACKGROUND &&
@@ -1271,13 +1274,13 @@ diff -Naru libpng-1.5.15.org/pngset.c libpng-1.5.15/pngset.c
+}
+#endif /* PNG_APNG_SUPPORTED */
+
- #ifdef PNG_UNKNOWN_CHUNKS_SUPPORTED
- void PNGAPI
- png_set_unknown_chunks(png_structp png_ptr,
-diff -Naru libpng-1.5.15.org/pngstruct.h libpng-1.5.15/pngstruct.h
---- libpng-1.5.15.org/pngstruct.h 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/pngstruct.h 2013-04-02 20:39:30.000000000 +0900
-@@ -293,6 +293,27 @@
+ #ifdef PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED
+ static png_byte
+ check_location(png_const_structrp png_ptr, int location)
+diff -Naru libpng-1.6.8.org/pngstruct.h libpng-1.6.8/pngstruct.h
+--- libpng-1.6.8.org/pngstruct.h 2013-12-22 17:03:17.224988631 +0900
++++ libpng-1.6.8/pngstruct.h 2013-12-22 17:03:17.292990812 +0900
+@@ -409,6 +409,27 @@
png_byte filter_type;
#endif
@@ -1305,10 +1308,10 @@ diff -Naru libpng-1.5.15.org/pngstruct.h libpng-1.5.15/pngstruct.h
/* New members added in libpng-1.2.0 */
/* New members added in libpng-1.0.2 but first enabled by default in 1.2.0 */
-diff -Naru libpng-1.5.15.org/pngtest.c libpng-1.5.15/pngtest.c
---- libpng-1.5.15.org/pngtest.c 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/pngtest.c 2013-04-02 20:39:30.000000000 +0900
-@@ -822,6 +822,10 @@
+diff -Naru libpng-1.6.8.org/pngtest.c libpng-1.6.8/pngtest.c
+--- libpng-1.6.8.org/pngtest.c 2013-12-22 17:03:17.224988631 +0900
++++ libpng-1.6.8/pngtest.c 2013-12-22 17:03:17.292990812 +0900
+@@ -840,6 +840,10 @@
png_uint_32 width, height;
int num_pass, pass;
int bit_depth, color_type;
@@ -1319,7 +1322,7 @@ diff -Naru libpng-1.5.15.org/pngtest.c libpng-1.5.15/pngtest.c
row_buf = NULL;
error_parameters.file_name = inname;
-@@ -1271,6 +1275,20 @@
+@@ -1290,6 +1294,20 @@
}
}
#endif
@@ -1340,7 +1343,7 @@ diff -Naru libpng-1.5.15.org/pngtest.c libpng-1.5.15/pngtest.c
#ifdef PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED
{
png_unknown_chunkp unknowns;
-@@ -1336,6 +1354,89 @@
+@@ -1355,6 +1373,89 @@
t_misc += (t_stop - t_start);
t_start = t_stop;
#endif
@@ -1430,21 +1433,21 @@ diff -Naru libpng-1.5.15.org/pngtest.c libpng-1.5.15/pngtest.c
for (pass = 0; pass < num_pass; pass++)
{
pngtest_debug1("Writing row data for pass %d", pass);
-diff -Naru libpng-1.5.15.org/pngwrite.c libpng-1.5.15/pngwrite.c
---- libpng-1.5.15.org/pngwrite.c 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/pngwrite.c 2013-04-02 20:39:30.000000000 +0900
-@@ -58,6 +58,10 @@
- /* The rest of these check to see if the valid field has the appropriate
- * flag set, and if it does, writes the chunk.
+diff -Naru libpng-1.6.8.org/pngwrite.c libpng-1.6.8/pngwrite.c
+--- libpng-1.6.8.org/pngwrite.c 2013-12-22 17:03:17.225988663 +0900
++++ libpng-1.6.8/pngwrite.c 2013-12-22 17:03:17.310991389 +0900
+@@ -127,6 +127,10 @@
+ * application continues writing the PNG. So check the 'invalid' flag here
+ * too.
*/
+#ifdef PNG_WRITE_APNG_SUPPORTED
+ if (info_ptr->valid & PNG_INFO_acTL)
+ png_write_acTL(png_ptr, info_ptr->num_frames, info_ptr->num_plays);
+#endif
- #ifdef PNG_WRITE_gAMA_SUPPORTED
- if (info_ptr->valid & PNG_INFO_gAMA)
- png_write_gAMA_fixed(png_ptr, info_ptr->gamma);
-@@ -310,6 +314,11 @@
+ #ifdef PNG_GAMMA_SUPPORTED
+ # ifdef PNG_WRITE_gAMA_SUPPORTED
+ if (!(info_ptr->colorspace.flags & PNG_COLORSPACE_INVALID) &&
+@@ -357,6 +361,11 @@
png_benign_error(png_ptr, "Wrote palette index exceeding num_palette");
#endif
@@ -1456,11 +1459,10 @@ diff -Naru libpng-1.5.15.org/pngwrite.c libpng-1.5.15/pngwrite.c
/* See if user wants us to write information chunks */
if (info_ptr != NULL)
{
-@@ -1667,4 +1676,42 @@
- PNG_UNUSED(params)
+@@ -1560,6 +1569,43 @@
}
#endif
-+
+
+#ifdef PNG_WRITE_APNG_SUPPORTED
+void PNGAPI
+png_write_frame_head(png_structp png_ptr, png_infop info_ptr,
@@ -1498,11 +1500,13 @@ diff -Naru libpng-1.5.15.org/pngwrite.c libpng-1.5.15/pngwrite.c
+ PNG_UNUSED(info_ptr)
+}
+#endif /* PNG_WRITE_APNG_SUPPORTED */
- #endif /* PNG_WRITE_SUPPORTED */
-diff -Naru libpng-1.5.15.org/pngwutil.c libpng-1.5.15/pngwutil.c
---- libpng-1.5.15.org/pngwutil.c 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/pngwutil.c 2013-04-02 20:39:30.000000000 +0900
-@@ -818,6 +818,11 @@
+
+ #ifdef PNG_SIMPLIFIED_WRITE_SUPPORTED
+ #ifdef PNG_STDIO_SUPPORTED /* currently required for png_image_write_* */
+diff -Naru libpng-1.6.8.org/pngwutil.c libpng-1.6.8/pngwutil.c
+--- libpng-1.6.8.org/pngwutil.c 2013-12-22 17:03:17.226988695 +0900
++++ libpng-1.6.8/pngwutil.c 2013-12-22 17:03:17.311991421 +0900
+@@ -898,6 +898,11 @@
/* Write the chunk */
png_write_complete_chunk(png_ptr, png_IHDR, buf, (png_size_t)13);
@@ -1511,39 +1515,41 @@ diff -Naru libpng-1.5.15.org/pngwutil.c libpng-1.5.15/pngwutil.c
+ png_ptr->first_frame_height = height;
+#endif
+
- /* Initialize zlib with PNG info */
- png_ptr->zstream.zalloc = png_zalloc;
- png_ptr->zstream.zfree = png_zfree;
-@@ -1032,7 +1037,28 @@
- }
- #endif /* PNG_WRITE_OPTIMIZE_CMF_SUPPORTED */
+ if (!(png_ptr->do_filter))
+ {
+ if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE ||
+@@ -1076,7 +1081,14 @@
+ optimize_cmf(data, png_image_size(png_ptr));
+ # endif
-+#ifdef PNG_WRITE_APNG_SUPPORTED
-+ if (png_ptr->num_frames_written == 0)
-+#endif
- png_write_complete_chunk(png_ptr, png_IDAT, data, length);
-+#ifdef PNG_WRITE_APNG_SUPPORTED
-+ else
-+ {
-+ png_byte buf[4];
-+
-+ png_write_chunk_header(png_ptr, png_fdAT, 4 + length);
-+
-+ png_save_uint_32(buf, png_ptr->next_seq_num);
-+ png_write_chunk_data(png_ptr, buf, 4);
-+
-+ png_write_chunk_data(png_ptr, data, length);
-+
-+ png_write_chunk_end(png_ptr);
-+
-+ png_ptr->next_seq_num++;
-+ }
-+#endif /* PNG_WRITE_APNG_SUPPORTED */
-+
- png_ptr->mode |= PNG_HAVE_IDAT;
++# ifdef PNG_WRITE_APNG_SUPPORTED
++ if (png_ptr->num_frames_written == 0)
++# endif
+ png_write_complete_chunk(png_ptr, png_IDAT, data, size);
++# ifdef PNG_WRITE_APNG_SUPPORTED
++ else
++ png_write_fdAT(png_ptr, data, size);
++# endif /* PNG_WRITE_APNG_SUPPORTED */
+ png_ptr->mode |= PNG_HAVE_IDAT;
- /* Prior to 1.5.4 this code was replicated in every caller (except at the
-@@ -1995,6 +2021,64 @@
+ png_ptr->zstream.next_out = data;
+@@ -1122,7 +1134,15 @@
+ optimize_cmf(data, png_image_size(png_ptr));
+ # endif
+
++# ifdef PNG_WRITE_APNG_SUPPORTED
++ if (png_ptr->num_frames_written == 0)
++# endif
+ png_write_complete_chunk(png_ptr, png_IDAT, data, size);
++# ifdef PNG_WRITE_APNG_SUPPORTED
++ else
++ png_write_fdAT(png_ptr, data, size);
++# endif /* PNG_WRITE_APNG_SUPPORTED */
++
+ png_ptr->zstream.avail_out = 0;
+ png_ptr->zstream.next_out = NULL;
+ png_ptr->mode |= PNG_HAVE_IDAT | PNG_AFTER_IDAT;
+@@ -1934,6 +1954,82 @@
}
#endif
@@ -1603,12 +1609,30 @@ diff -Naru libpng-1.5.15.org/pngwutil.c libpng-1.5.15/pngwutil.c
+
+ png_ptr->next_seq_num++;
+}
++
++void /* PRIVATE */
++png_write_fdAT(png_structp png_ptr,
++ png_const_bytep data, png_size_t length)
++{
++ png_byte buf[4];
++
++ png_write_chunk_header(png_ptr, png_fdAT, (png_uint_32)(4 + length));
++
++ png_save_uint_32(buf, png_ptr->next_seq_num);
++ png_write_chunk_data(png_ptr, buf, 4);
++
++ png_write_chunk_data(png_ptr, data, length);
++
++ png_write_chunk_end(png_ptr);
++
++ png_ptr->next_seq_num++;
++}
+#endif /* PNG_WRITE_APNG_SUPPORTED */
+
/* Initializes the row writing capability of libpng */
void /* PRIVATE */
- png_write_start_row(png_structp png_ptr)
-@@ -3174,4 +3258,39 @@
+ png_write_start_row(png_structrp png_ptr)
+@@ -3020,4 +3116,39 @@
}
#endif
}
@@ -1648,30 +1672,30 @@ diff -Naru libpng-1.5.15.org/pngwutil.c libpng-1.5.15/pngwutil.c
+}
+#endif /* PNG_WRITE_APNG_SUPPORTED */
#endif /* PNG_WRITE_SUPPORTED */
-diff -Naru libpng-1.5.15.org/scripts/symbols.def libpng-1.5.15/scripts/symbols.def
---- libpng-1.5.15.org/scripts/symbols.def 2013-04-02 20:39:30.000000000 +0900
-+++ libpng-1.5.15/scripts/symbols.def 2013-04-02 20:39:30.000000000 +0900
-@@ -242,3 +242,23 @@
- png_set_check_for_invalid_index @234
- png_get_palette_max @235
- png_set_option @236
-+ png_get_acTL @237
-+ png_set_acTL @238
-+ png_get_num_frames @239
-+ png_get_num_plays @240
-+ png_get_next_frame_fcTL @241
-+ png_set_next_frame_fcTL @242
-+ png_get_next_frame_width @243
-+ png_get_next_frame_height @244
-+ png_get_next_frame_x_offset @245
-+ png_get_next_frame_y_offset @246
-+ png_get_next_frame_delay_num @247
-+ png_get_next_frame_delay_den @248
-+ png_get_next_frame_dispose_op @249
-+ png_get_next_frame_blend_op @250
-+ png_get_first_frame_is_hidden @251
-+ png_set_first_frame_is_hidden @252
-+ png_read_frame_head @253
-+ png_set_progressive_frame_fn @254
-+ png_write_frame_head @255
-+ png_write_frame_tail @256
+diff -Naru libpng-1.6.8.org/scripts/symbols.def libpng-1.6.8/scripts/symbols.def
+--- libpng-1.6.8.org/scripts/symbols.def 2013-12-22 17:03:17.232988887 +0900
++++ libpng-1.6.8/scripts/symbols.def 2013-12-22 17:03:17.317991614 +0900
+@@ -249,3 +249,23 @@
+ png_set_check_for_invalid_index @242
+ png_get_palette_max @243
+ png_set_option @244
++ png_get_acTL @245
++ png_set_acTL @246
++ png_get_num_frames @247
++ png_get_num_plays @248
++ png_get_next_frame_fcTL @249
++ png_set_next_frame_fcTL @250
++ png_get_next_frame_width @251
++ png_get_next_frame_height @252
++ png_get_next_frame_x_offset @253
++ png_get_next_frame_y_offset @254
++ png_get_next_frame_delay_num @255
++ png_get_next_frame_delay_den @256
++ png_get_next_frame_dispose_op @257
++ png_get_next_frame_blend_op @258
++ png_get_first_frame_is_hidden @259
++ png_set_first_frame_is_hidden @260
++ png_read_frame_head @261
++ png_set_progressive_frame_fn @262
++ png_write_frame_head @263
++ png_write_frame_tail @264
diff --git a/package/librpcsecgss/Makefile b/package/librpcsecgss/Makefile
index 7f8207f33..1b8c7beb9 100644
--- a/package/librpcsecgss/Makefile
+++ b/package/librpcsecgss/Makefile
@@ -14,6 +14,8 @@ PKG_BUILDDEP:= libgssglue libtirpc autotool
PKG_SITES:= http://www.citi.umich.edu/projects/nfsv4/linux/librpcsecgss/
PKG_OPTS:= dev
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBRPCSECGSS,librpcsecgss,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
diff --git a/package/libshout/Makefile b/package/libshout/Makefile
index 13ef36c4c..26520e13a 100644
--- a/package/libshout/Makefile
+++ b/package/libshout/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= libshout
-PKG_VERSION:= 2.2.2
-PKG_RELEASE:= 2
-PKG_MD5SUM:= 4f75fc9901c724b712c371c9a1e782d3
+PKG_VERSION:= 2.3.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 11765b2592e7ea623ccd93d3f8df172c
PKG_DESCR:= Library which can be used to write a source client for streaming
PKG_SECTION:= libs
PKG_DEPENDS:= libvorbis libogg
@@ -19,8 +19,8 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBSHOUT,libshout,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-CONFIGURE_ARGS+= --with-speex=no \
- --with-theora=no
+CONFIGURE_ARGS+= --disable-speex \
+ --disable-theora
libshout-install:
${INSTALL_DIR} ${IDIR_LIBSHOUT}/usr/lib
diff --git a/package/libshout/patches/patch-ltmain_sh b/package/libshout/patches/patch-ltmain_sh
deleted file mode 100644
index 16c4c7888..000000000
--- a/package/libshout/patches/patch-ltmain_sh
+++ /dev/null
@@ -1,11 +0,0 @@
---- libshout-2.2.2.orig/ltmain.sh 2006-01-10 16:23:50.000000000 +0100
-+++ libshout-2.2.2/ltmain.sh 2011-01-15 23:03:59.000000000 +0100
-@@ -1623,7 +1623,7 @@ EOF
- # -pg pass through profiling flag for GCC
- # @file GCC response files
- -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
-- -t[45]*|-txscale*|@*)
-+ -t[45]*|-txscale*|@*|-fstack-protector*|-flto)
-
- # Unknown arguments in both finalize_command and compile_command need
- # to be aesthetically quoted because they are evaled later.
diff --git a/package/libssh/Makefile b/package/libssh/Makefile
new file mode 100644
index 000000000..8d7b455fb
--- /dev/null
+++ b/package/libssh/Makefile
@@ -0,0 +1,37 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= libssh
+PKG_VERSION:= 0.5.3
+PKG_RELEASE:= 3
+PKG_MD5SUM:= 9ad01838d3b89d98e900e0f6260a88cc
+PKG_DESCR:= SSH library
+PKG_SECTION:= libs
+PKG_DEPENDS:= libopenssl zlib
+PKG_BUILDDEP:= openssl zlib
+PKG_URL:= http://www.libssh.org/
+PKG_SITES:= http://www.libssh.org/files/0.5/
+PKG_OPTS:= dev
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBSSH,libssh,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+
+WRKBUILD= ${WRKDIR}/${PKG_NAME}-obj
+CONFIG_STYLE:= manual
+
+do-configure:
+ (cd $(WRKBUILD) && PATH='${TARGET_PATH}' \
+ cmake -DCMAKE_SYSTEM_NAME=Linux \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DOPENSSL_ROOT_DIR='$(STAGING_TARGET_DIR)/usr' \
+ -DZLIB_ROOT_DIR='$(STAGING_TARGET_DIR)/usr' $(WRKSRC)/)
+
+libssh-install:
+ $(INSTALL_DIR) $(IDIR_LIBSSH)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libssh*.so* \
+ $(IDIR_LIBSSH)/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libssh/patches/patch-cmake_Modules_DefineCompilerFlags_cmake b/package/libssh/patches/patch-cmake_Modules_DefineCompilerFlags_cmake
new file mode 100644
index 000000000..a67998250
--- /dev/null
+++ b/package/libssh/patches/patch-cmake_Modules_DefineCompilerFlags_cmake
@@ -0,0 +1,14 @@
+--- libssh-0.5.3.orig/cmake/Modules/DefineCompilerFlags.cmake 2012-11-20 12:41:49.000000000 +0100
++++ libssh-0.5.3/cmake/Modules/DefineCompilerFlags.cmake 2013-12-17 13:20:04.073723090 +0100
+@@ -20,11 +20,6 @@ if (UNIX AND NOT WIN32)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
+ endif (WITH_FPIC)
+
+- check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR)
+- if (WITH_STACK_PROTECTOR)
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector")
+- endif (WITH_STACK_PROTECTOR)
+-
+ check_c_compiler_flag("-D_FORTIFY_SOURCE=2" WITH_FORTIFY_SOURCE)
+ if (WITH_FORTIFY_SOURCE)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_FORTIFY_SOURCE=2")
diff --git a/package/libstdcxx/Makefile b/package/libstdcxx/Makefile
index b4e5c3b86..45c1edfc4 100644
--- a/package/libstdcxx/Makefile
+++ b/package/libstdcxx/Makefile
@@ -16,16 +16,20 @@ endif
endif
endif
-PKG_NAME:= libstdcxx
-PKG_DESCR:= C++ support library
-PKG_SECTION:= libs
-PKG_NEED_CXX:= 1
ifeq ($(ADK_LINUX_AVR32),y)
-PKG_SUBVER:= 13
+LIBSTDCXX_VER:= 13
+else
+ifeq ($(ADK_LINUX_MICROBLAZE),y)
+LIBSTDCXX_VER:= 18
else
-PKG_SUBVER:= 17
+LIBSTDCXX_VER:= 17
+endif
endif
+PKG_NAME:= libstdcxx
+PKG_DESCR:= C++ support library
+PKG_SECTION:= libs
+PKG_NEED_CXX:= 1
NO_DISTFILES:= 1
include ${TOPDIR}/mk/package.mk
@@ -41,10 +45,10 @@ do-install:
ifeq ($(ADK_NATIVE),y)
$(CP) /usr/lib/libstdc++.so* ${IDIR_LIBSTDCXX}/usr/lib
else
- (cd ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}; ln -sf libstdc++.so.6.0.${PKG_SUBVER} libstdc++.so.6)
- (cd ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}; ln -sf libstdc++.so.6.0.${PKG_SUBVER} libstdc++.so)
- (cd ${STAGING_TARGET_DIR}/${ADK_TARGET_LIBC_PATH}/; ln -sf libstdc++.so.6.0.${PKG_SUBVER} libstdc++.so)
- $(CP) ${STAGING_TARGET_DIR}/${ADK_TARGET_LIBC_PATH}/libstdc++.so.6.0.${PKG_SUBVER} ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
+ (cd ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}; ln -sf libstdc++.so.6.0.${LIBSTDCXX_VER} libstdc++.so.6)
+ (cd ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}; ln -sf libstdc++.so.6.0.${LIBSTDCXX_VER} libstdc++.so)
+ (cd ${STAGING_TARGET_DIR}/${ADK_TARGET_LIBC_PATH}/; ln -sf libstdc++.so.6.0.${LIBSTDCXX_VER} libstdc++.so)
+ $(CP) ${STAGING_TARGET_DIR}/${ADK_TARGET_LIBC_PATH}/libstdc++.so.6.0.${LIBSTDCXX_VER} ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}
-@rm ${IDIR_LIBSTDCXX}/usr/${ADK_TARGET_LIBC_PATH}/libstdc++.so.*-gdb.py
endif
diff --git a/package/libtirpc/Makefile b/package/libtirpc/Makefile
index 088a4f589..bda186efb 100644
--- a/package/libtirpc/Makefile
+++ b/package/libtirpc/Makefile
@@ -15,6 +15,8 @@ PKG_URL:= http://sourceforge.net/projects/libtirpc/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libtirpc/}
PKG_OPTS: dev
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
include ${TOPDIR}/mk/package.mk
diff --git a/package/libunistring/Makefile b/package/libunistring/Makefile
index b1e131160..3831e0638 100755
--- a/package/libunistring/Makefile
+++ b/package/libunistring/Makefile
@@ -13,6 +13,8 @@ PKG_URL:= http://www.gnu.org/software/libunistring/
PKG_SITES:= ${MASTER_SITE_GNU:=libunistring/}
PKG_OPTS:= dev
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBUNISTRING,libunistring,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
diff --git a/package/libusb-compat/Makefile b/package/libusb-compat/Makefile
index 7441504cd..c4942d8ba 100644
--- a/package/libusb-compat/Makefile
+++ b/package/libusb-compat/Makefile
@@ -4,13 +4,13 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= libusb-compat
-PKG_VERSION:= 0.1.3
-PKG_RELEASE:= 2
-PKG_MD5SUM:= 570ac2ea085b80d1f74ddc7c6a93c0eb
+PKG_VERSION:= 0.1.5
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 2780b6a758a1e2c2943bdbf7faf740e4
PKG_DESCR:= a library for accessing Linux USB devices
PKG_SECTION:= libs
PKG_BUILDDEP:= libusb
-PKG_URL:= http://libusb.wiki.sourceforge.net
+PKG_URL:= http://www.libusb.org/wiki/libusb-compat-0.1
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libusb/}
PKG_OPTS:= dev
diff --git a/package/libusb-compat/patches/patch-libusb_usb_h b/package/libusb-compat/patches/patch-libusb_usb_h
new file mode 100644
index 000000000..f081d8261
--- /dev/null
+++ b/package/libusb-compat/patches/patch-libusb_usb_h
@@ -0,0 +1,10 @@
+--- libusb-compat-0.1.5.orig/libusb/usb.h 2013-05-05 18:29:02.000000000 +0200
++++ libusb-compat-0.1.5/libusb/usb.h 2013-12-20 15:49:30.974611582 +0100
+@@ -25,6 +25,7 @@
+ #ifndef __USB_H__
+ #define __USB_H__
+
++#include <sys/types.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <limits.h>
diff --git a/package/libvirt/Makefile b/package/libvirt/Makefile
index 7f06db28e..a6c593f19 100644
--- a/package/libvirt/Makefile
+++ b/package/libvirt/Makefile
@@ -19,6 +19,7 @@ PKG_OPTS:= dev
PKG_HOST_DEPENDS:= !freebsd !netbsd !openbsd
PKG_ARCH_DEPENDS:= x86 x86_64
+PKG_LIBC_DEPENDS:= eglibc glibc
include ${TOPDIR}/mk/package.mk
diff --git a/package/libxml2/Makefile b/package/libxml2/Makefile
index 7157a0705..2d0ecadea 100644
--- a/package/libxml2/Makefile
+++ b/package/libxml2/Makefile
@@ -5,12 +5,12 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libxml2
PKG_VERSION:= 2.9.1
-PKG_RELEASE:= 5
+PKG_RELEASE:= 6
PKG_MD5SUM:= 9c0cfef285d5c4a5c80d00904ddab380
PKG_DESCR:= XML C parser and toolkit
PKG_SECTION:= libs
PKG_DEPENDS:= zlib
-PKG_BUILDDEP:= autotool gettext-tiny libxml2-host zlib
+PKG_BUILDDEP:= autotool gettext-tiny python2-host libxml2-host zlib
PKG_URL:= http://www.xmlsoft.org/
PKG_SITES:= http://xmlsoft.org/sources/
PKG_OPTS:= dev
diff --git a/package/lsof/Makefile b/package/lsof/Makefile
index 54e9c1ca1..1dd291110 100644
--- a/package/lsof/Makefile
+++ b/package/lsof/Makefile
@@ -14,6 +14,8 @@ PKG_BUILDDEP:= libtirpc
PKG_URL:= http://people.freebsd.org/~abe/
PKG_SITES:= ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.tar.gz
WRKDIST= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}
WRKSRC= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}/${PKG_NAME}_${PKG_VERSION}_src
diff --git a/package/lsscsi/Makefile b/package/lsscsi/Makefile
index 3a8cd740d..8cc747238 100644
--- a/package/lsscsi/Makefile
+++ b/package/lsscsi/Makefile
@@ -4,9 +4,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= lsscsi
-PKG_VERSION:= 0.25
+PKG_VERSION:= 0.27
PKG_RELEASE:= 1
-PKG_MD5SUM:= c4e36b106624aff78527c54cf08ecbfe
+PKG_MD5SUM:= 33ab2927a9e567a47905e6a618c17859
PKG_DESCR:= list SCSI devices
PKG_SECTION:= utils
PKG_URL:= http://sg.danny.cz/scsi/lsscsi.html
diff --git a/package/m4/Makefile b/package/m4/Makefile
index 8cb482904..f34780964 100644
--- a/package/m4/Makefile
+++ b/package/m4/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= m4
-PKG_VERSION:= 1.4.16
+PKG_VERSION:= 1.4.17
PKG_RELEASE:= 1
-PKG_MD5SUM:= a5dfb4f2b7370e9d34293d23fd09b280
+PKG_MD5SUM:= a5e9954b1dae036762f7b13673a2cf76
PKG_DESCR:= macro processor
PKG_SECTION:= lang
PKG_BUILDDEP:= m4-host
diff --git a/package/m4/patches/patch-lib_stdio_in_h b/package/m4/patches/patch-lib_stdio_in_h
deleted file mode 100644
index 1d6eefc41..000000000
--- a/package/m4/patches/patch-lib_stdio_in_h
+++ /dev/null
@@ -1,13 +0,0 @@
---- m4-1.4.16.orig/lib/stdio.in.h 2011-03-01 17:39:29.000000000 +0100
-+++ m4-1.4.16/lib/stdio.in.h 2013-10-29 10:45:30.000000000 +0100
-@@ -161,8 +161,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not
- /* 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. */
-+#if HAVE_RAW_DECL_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/package/madplay/Makefile b/package/madplay/Makefile
index cb154ae8c..f18588787 100644
--- a/package/madplay/Makefile
+++ b/package/madplay/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= madplay
PKG_VERSION:= 0.15.2b
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 6814b47ceaa99880c754c5195aa1aac1
PKG_DESCR:= MPEG audio player in fixed point
PKG_SECTION:= multimedia
@@ -19,6 +19,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,MADPLAY,madplay,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
CONFIGURE_ENV+= BUILD_CC="${TARGET_CC}" HOSTCC=${CC_FOR_BUILD} \
LIBS="-lz" \
ac_cv_linux_vers=2 \
diff --git a/package/mdadm/Makefile b/package/mdadm/Makefile
index 522a57f51..e2543cf00 100644
--- a/package/mdadm/Makefile
+++ b/package/mdadm/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= mdadm
-PKG_VERSION:= 3.2.6
+PKG_VERSION:= 3.3
PKG_RELEASE:= 1
-PKG_MD5SUM:= dd2472f07993496ca4f4e3e8f6746517
+PKG_MD5SUM:= f73bf9c6a72cdd644904b287bc9b7c9e
PKG_DESCR:= tool for managing Linux Software RAID arrays
PKG_SECTION:= fs
PKG_URL:= http://neil.brown.name/blog/mdadm
diff --git a/package/mdadm/patches/patch-Makefile b/package/mdadm/patches/patch-Makefile
index 7e11c9f8a..d8e182c0c 100644
--- a/package/mdadm/patches/patch-Makefile
+++ b/package/mdadm/patches/patch-Makefile
@@ -1,25 +1,15 @@
---- mdadm-3.2.5.orig/Makefile 2012-05-18 09:10:03.000000000 +0200
-+++ mdadm-3.2.5/Makefile 2012-07-25 13:51:12.000000000 +0200
-@@ -42,7 +42,7 @@ KLIBC_GCC = gcc -nostdinc -iwithprefix i
+--- mdadm-3.3.orig/Makefile 2013-09-03 06:47:47.000000000 +0200
++++ mdadm-3.3/Makefile 2013-12-31 18:42:30.000000000 +0100
+@@ -43,7 +43,7 @@ KLIBC_GCC = gcc -nostdinc -iwithprefix i
CC = $(CROSS_COMPILE)gcc
- CXFLAGS = -ggdb
+ CXFLAGS ?= -ggdb
-CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter
+CWFLAGS = -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter
ifdef WARN_UNUSED
- CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O
+ CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3
endif
-@@ -76,7 +76,8 @@ FAILED_SLOTS_DIR = /run/mdadm/failed-slo
- DIRFLAGS = -DMAP_DIR=\"$(MAP_DIR)\" -DMAP_FILE=\"$(MAP_FILE)\"
- DIRFLAGS += -DMDMON_DIR=\"$(MDMON_DIR)\"
- DIRFLAGS += -DFAILED_SLOTS_DIR=\"$(FAILED_SLOTS_DIR)\"
--CFLAGS = $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) $(DIRFLAGS)
-+CFLAGS ?=
-+CFLAGS += $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) $(DIRFLAGS)
-
- # The glibc TLS ABI requires applications that call clone(2) to set up
- # TLS data structures, use pthreads until mdmon implements this support
-@@ -231,9 +232,10 @@ $(MON_OBJS) : $(INCL) mdmon.h
+@@ -257,9 +257,10 @@ $(MON_OBJS) : $(INCL) mdmon.h
sha1.o : sha1.c sha1.h md5.h
$(CC) $(CFLAGS) -DHAVE_STDINT_H -o sha1.o -c sha1.c
diff --git a/package/miax/Makefile b/package/miax/Makefile
index 581909511..bd7c9de30 100644
--- a/package/miax/Makefile
+++ b/package/miax/Makefile
@@ -8,11 +8,11 @@ PKG_VERSION:= 1.4
PKG_RELEASE:= 1
PKG_MD5SUM:= 44f0d2ef46ee2697d890b7b96846adc7
PKG_DESCR:= A console iax (asterisk) client
-PKG_SECTION:= bluetooth
-PKG_DEPENDS:= kmod-bt bluez libpthread
-PKG_BUILDDEP:= bluez
+PKG_SECTION:= misc
+PKG_DEPENDS:= libpthread
PKG_URL:= http://sourceforge.net/projects/miax
PKG_SITES:= http://mesh.dl.sourceforge.net/sourceforge/miax/
+PKG_CFLINE_MIAX:= depends on ADK_BROKEN
PKG_ARCH_DEPENDS:= !avr32
diff --git a/package/miax/patches/01-cross.patch b/package/miax/patches/01-cross.patch
index f47c1101d..04ec04d78 100644
--- a/package/miax/patches/01-cross.patch
+++ b/package/miax/patches/01-cross.patch
@@ -1,6 +1,6 @@
diff -ruN miax-1.4-old/Makefile miax-1.4-new/Makefile
---- miax-1.4-old/Makefile 2005-04-27 18:56:13.000000000 +0200
-+++ miax-1.4-new/Makefile 2005-11-30 01:07:21.000000000 +0100
+--- miax.orig/Makefile 2005-04-27 18:56:13.000000000 +0200
++++ miax/Makefile 2013-12-22 09:48:41.000000000 +0100
@@ -1,4 +1,5 @@
-CFLAGS= -Iiax/ -Igsm/inc -DIAXC_IAX2 -DLIBIAX -g -DPOSIXSLEEP -DLINUX -O2
+OFLAGS= -02 -g
@@ -8,7 +8,7 @@ diff -ruN miax-1.4-old/Makefile miax-1.4-new/Makefile
SYSLIBS=-lpthread -lm -lbluetooth
-@@ -32,11 +33,10 @@
+@@ -32,11 +33,10 @@ OBJS=\
miax.o
all: $(OBJS)
diff --git a/package/miredo/Makefile b/package/miredo/Makefile
index 87aecf3e4..45e1ad42b 100644
--- a/package/miredo/Makefile
+++ b/package/miredo/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= miredo
PKG_VERSION:= 1.2.6
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 5bcdbaced54f40b6cb1e9c9a8dbac411
PKG_DESCR:= A Teredo client and relay daemon
PKG_SECTION:= ipv6
diff --git a/package/miredo/patches/patch-libtun6_tun6_c b/package/miredo/patches/patch-libtun6_tun6_c
new file mode 100644
index 000000000..2bddcfb06
--- /dev/null
+++ b/package/miredo/patches/patch-libtun6_tun6_c
@@ -0,0 +1,15 @@
+--- miredo-1.2.6.orig/libtun6/tun6.c 2012-09-12 15:03:59.000000000 +0200
++++ miredo-1.2.6/libtun6/tun6.c 2013-12-23 17:23:42.000000000 +0100
+@@ -53,7 +53,12 @@
+ const char os_driver[] = "Linux";
+ # define USE_LINUX 1
+
++#if defined(__GLIBC__)
+ # include <linux/if_tun.h> // TUNSETIFF - Linux tunnel driver
++#else
++#define IFF_TUN 0x0001
++#define TUNSETIFF _IOW('T', 202, int)
++#endif
+ /*
+ * <linux/ipv6.h> conflicts with <netinet/in.h> and <arpa/inet.h>,
+ * so we've got to declare this structure by hand.
diff --git a/package/monit/Makefile b/package/monit/Makefile
index 3ba33eef1..93681fbd5 100644
--- a/package/monit/Makefile
+++ b/package/monit/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= monit
-PKG_VERSION:= 5.2.1
+PKG_VERSION:= 5.6
PKG_RELEASE:= 1
-PKG_MD5SUM:= 19ee6247b7528947d151720767bcf9d3
+PKG_MD5SUM:= 19dfc1ce8512e832134d06eedd96ba50
PKG_DESCR:= An utility for system services monitoring
PKG_SECTION:= admin
PKG_DEPENDS:= libpthread libopenssl
@@ -18,6 +18,8 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,MONIT,monit,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+CONFIGURE_ENV+= libmonit_cv_setjmp_available=yes \
+ libmonit_cv_vsnprintf_c99_conformant=yes
CONFIGURE_ARGS+= --with-ssl --with-ssl-dir="${STAGING_TARGET_DIR}/usr"
monit-install:
diff --git a/package/monit/patches/patch-configure b/package/monit/patches/patch-configure
deleted file mode 100644
index 1617c86ac..000000000
--- a/package/monit/patches/patch-configure
+++ /dev/null
@@ -1,88 +0,0 @@
---- monit-5.2.1.orig/configure 2010-09-24 21:46:55.000000000 +0200
-+++ monit-5.2.1/configure 2010-10-08 23:36:24.000000000 +0200
-@@ -10961,82 +10961,14 @@ fi
- # Architecture/OS detection
- # ------------------------------------------------------------------------
-
--# Backward compatibility until we get ride of arch settings
--if test `uname` = "SunOS"
--then
-- ARCH="SOLARIS"
-- CFLAGS="$CFLAGS -D _REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
-- test_kstat="true"
--
--cat >>confdefs.h <<\_ACEOF
--#define HAVE_CPU_WAIT 1
--_ACEOF
--
--elif test `uname` = "Linux"
--then
-- ARCH="LINUX"
-- CFLAGS="$CFLAGS -D _REENTRANT"
-- LDFLAGS="$LDFLAGS -rdynamic"
-- if test `uname -r | awk -F '.' '{print$1$2}'` -ge "26"
-- then
--
--cat >>confdefs.h <<\_ACEOF
--#define HAVE_CPU_WAIT 1
--_ACEOF
--
-- fi
--elif test `uname` = "HP-UX"
--then
-- ARCH="HPUX"
-- CFLAGS="$CFLAGS -D _REENTRANT"
--
--cat >>confdefs.h <<\_ACEOF
--#define HAVE_CPU_WAIT 1
--_ACEOF
--
--elif test `uname` = "OpenBSD"
--then
-- ARCH="OPENBSD"
-- CFLAGS="$CFLAGS -D _REENTRANT"
-- test_kvm="true"
--elif test `uname` = "FreeBSD"
--then
-- ARCH="FREEBSD"
-- CFLAGS="$CFLAGS -D _REENTRANT"
-- test_kvm="true"
--elif test `uname` = "NetBSD"
--then
-- ARCH="NETBSD"
-- CFLAGS="$CFLAGS -D _REENTRANT"
-- test_kvm="true"
--elif test `uname` = "Darwin"
--then
-- ARCH="DARWIN"
-- CFLAGS="$CFLAGS -DREENTRANT -no-cpp-precomp -DNEED_SOCKLEN_T_DEFINED"
-- test_kvm="true"
-- LIBS="$LIBS -framework System -multiply_defined suppress"
--elif test `uname` = "AIX"
--then
-- ARCH="AIX"
-- CFLAGS="$CFLAGS -D _REENTRANT"
-- LIBS="$LIBS -lodm"
-- # AIX v. 5.2
-- LIBS="$LIBS -lcfg"
-- # AIX v. 5.3
-- LIBS="$LIBS -lperfstat"
-+ARCH="LINUX"
-+CFLAGS="$CFLAGS -D _REENTRANT"
-+LDFLAGS="$LDFLAGS -rdynamic"
-
- cat >>confdefs.h <<\_ACEOF
- #define HAVE_CPU_WAIT 1
- _ACEOF
-
--else
-- { $as_echo "$as_me:$LINENO: WARNING: Architecture not supported: \`uname\`." >&5
--$as_echo "$as_me: WARNING: Architecture not supported: \`uname\`." >&2;}
-- CFLAGS="$CFLAGS -D _REENTRANT"
-- ARCH="UNKNOWN"
--fi
--
--
- # ------------------------------------------------------------------------
- # Resource code
- # ------------------------------------------------------------------------
diff --git a/package/monit/patches/patch-src_process_sysdep_LINUX_c b/package/monit/patches/patch-src_process_sysdep_LINUX_c
new file mode 100644
index 000000000..a2781dd91
--- /dev/null
+++ b/package/monit/patches/patch-src_process_sysdep_LINUX_c
@@ -0,0 +1,11 @@
+--- monit-5.6.orig/src/process/sysdep_LINUX.c 2012-05-10 22:52:38.000000000 +0200
++++ monit-5.6/src/process/sysdep_LINUX.c 2014-01-04 20:19:48.000000000 +0100
+@@ -204,7 +204,7 @@ int initprocesstree_sysdep(ProcessTree_T
+ ASSERT(reference);
+
+ /* Find all processes in the /proc directory */
+- if ((rv = glob("/proc/[0-9]*", GLOB_ONLYDIR, NULL, &globbuf))) {
++ if ((rv = glob("/proc/[0-9]*", NULL, NULL, &globbuf))) {
+ LogError("system statistic error -- glob failed: %d (%s)\n", rv, STRERROR);
+ return FALSE;
+ }
diff --git a/package/mpd/Makefile b/package/mpd/Makefile
index 46a1262c4..aa227c4ec 100644
--- a/package/mpd/Makefile
+++ b/package/mpd/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= mpd
PKG_VERSION:= 0.18.5
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 63bcf6ce338caa2ae2cd6dc8e9710d5c
PKG_DESCR:= A music player daemon
PKG_SECTION:= multimedia
@@ -126,6 +126,7 @@ CONFIGURE_ARGS+= --disable-jack \
--disable-pulse \
--disable-oss \
--disable-bzip2 \
+ --disable-libwrap \
--disable-mpc \
--disable-wavpack \
--disable-modplug \
diff --git a/package/mpg123/Makefile b/package/mpg123/Makefile
index 49d23b617..350a7a097 100644
--- a/package/mpg123/Makefile
+++ b/package/mpg123/Makefile
@@ -20,6 +20,7 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,MPG123,mpg123,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
CONFIGURE_ARGS+= --disable-shared \
--with-default-audio=alsa
diff --git a/package/mtr/Makefile b/package/mtr/Makefile
index e0a3d589f..83db697d1 100644
--- a/package/mtr/Makefile
+++ b/package/mtr/Makefile
@@ -14,6 +14,8 @@ PKG_BUILDDEP:= ncurses
PKG_URL:= http://www.bitwizard.nl/mtr/
PKG_SITES:= ftp://ftp.bitwizard.nl/mtr/
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,MTR,mtr,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
diff --git a/package/nano/Makefile b/package/nano/Makefile
index 42bb647df..b351ab73e 100644
--- a/package/nano/Makefile
+++ b/package/nano/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= nano
-PKG_VERSION:= 2.2.4
+PKG_VERSION:= 2.2.6
PKG_RELEASE:= 1
-PKG_MD5SUM:= 6304308afb1f7ef4a5e93eb99206632a
+PKG_MD5SUM:= 03233ae480689a008eb98feb1b599807
PKG_DESCR:= An enhanced clone of the Pico editor
PKG_SECTION:= editor
PKG_DEPENDS:= libncurses
@@ -14,30 +14,24 @@ PKG_BUILDDEP:= ncurses
PKG_URL:= http://www.nano-editor.org/
PKG_SITES:= http://www.nano-editor.org/dist/v2.2/
-PKG_FLAVOURS_NANO:= TINY
-PKGFD_TINY:= tiny nano
-
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,NANO,nano,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CONFIGURE_ENV+= ac_cv_header_regex_h=no
CONFIGURE_ARGS+= --enable-nanorc \
- --disable-glibtest \
+ --enable-tiny \
--disable-utf8 \
+ --disable-glibtest \
--disable-color \
- --without-slang
-ifeq (${ADK_PACKAGE_NANO_TINY},y)
-CONFIGURE_ARGS+= --enable-tiny
-else
-CONFIGURE_ARGS+= --disable-browser \
+ --without-slang \
+ --disable-browser \
--disable-help \
--disable-mouse \
- --disable-nls \
--disable-speller \
--disable-operatingdir \
--enable-multibuffer
-endif
+TARGET_LDFLAGS+= -ltinfo
nano-install:
${INSTALL_DIR} ${IDIR_NANO}/usr/bin
diff --git a/package/ncurses/Makefile b/package/ncurses/Makefile
index 0841a9070..2455c9a2f 100644
--- a/package/ncurses/Makefile
+++ b/package/ncurses/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= ncurses
PKG_VERSION:= 5.9
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= 8cb9c412e5f2d96bc6f459aa8c6282a1
PKG_DESCR:= a terminal handling library
PKG_SECTION:= libs
@@ -34,6 +34,7 @@ CONFIGURE_ARGS+= --without-cxx \
--enable-symlinks \
--without-ada \
--with-shared \
+ --with-termlib \
--without-debug \
--without-profile \
--without-gpm \
@@ -78,7 +79,7 @@ libncurses-install:
echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
# libcurses will not show up in the IPKG, only in STAGING_TARGET_DIR
${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
- ${CP} ${WRKINST}/usr/lib/lib{form,menu,ncurses,panel}.so* \
+ ${CP} ${WRKINST}/usr/lib/lib{tinfo,form,menu,ncurses,panel}.so* \
${IDIR_LIBNCURSES}/usr/lib
for ti in rxvt rxvt-unicode; do \
TERMINFO=${WRKINST}/usr/share/terminfo \
diff --git a/package/net-snmp/Makefile b/package/net-snmp/Makefile
index 07c90a094..04fed494f 100644
--- a/package/net-snmp/Makefile
+++ b/package/net-snmp/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= net-snmp
PKG_VERSION:= 5.7.2
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 5bddd02e2f82b62daa79f82717737a14
PKG_DESCR:= SNMP Agent
PKG_SECTION:= net/misc
diff --git a/package/net-snmp/patches/patch-agent_mibgroup_mibII_tcpTable_c b/package/net-snmp/patches/patch-agent_mibgroup_mibII_tcpTable_c
index f0be57e78..a4396b963 100644
--- a/package/net-snmp/patches/patch-agent_mibgroup_mibII_tcpTable_c
+++ b/package/net-snmp/patches/patch-agent_mibgroup_mibII_tcpTable_c
@@ -1,6 +1,6 @@
---- net-snmp-5.6.1.orig/agent/mibgroup/mibII/tcpTable.c 2010-10-20 15:12:08.000000000 +0200
-+++ net-snmp-5.6.1/agent/mibgroup/mibII/tcpTable.c 2011-01-12 14:48:14.000000000 +0100
-@@ -33,6 +33,12 @@
+--- net-snmp-5.7.2.orig/agent/mibgroup/mibII/tcpTable.c 2012-10-10 00:28:58.000000000 +0200
++++ net-snmp-5.7.2/agent/mibgroup/mibII/tcpTable.c 2014-01-01 17:12:30.000000000 +0100
+@@ -34,6 +34,12 @@
#include <netlink/netlink.h>
#include <netlink/msg.h>
#include <linux/inet_diag.h>
@@ -13,7 +13,7 @@
#endif
#include <net-snmp/net-snmp-includes.h>
-@@ -565,8 +571,8 @@ tcpTable_load_netlink(void)
+@@ -579,8 +585,8 @@ tcpTable_load_netlink(void)
}
if (nl_connect(nl, NETLINK_INET_DIAG) < 0) {
@@ -24,7 +24,7 @@
nl_handle_destroy(nl);
return -1;
}
-@@ -580,8 +586,8 @@ tcpTable_load_netlink(void)
+@@ -594,8 +600,8 @@ tcpTable_load_netlink(void)
nlmsg_append(nm, &req, sizeof(struct inet_diag_req), 0);
if (nl_send_auto_complete(nl, nm) < 0) {
@@ -35,7 +35,7 @@
nl_handle_destroy(nl);
return -1;
}
-@@ -593,8 +599,8 @@ tcpTable_load_netlink(void)
+@@ -607,8 +613,8 @@ tcpTable_load_netlink(void)
while (running) {
if ((len = nl_recv(nl, &peer, &buf, NULL)) <= 0) {
diff --git a/package/net-snmp/patches/patch-agent_mibgroup_util_funcs_get_pid_from_inode_c b/package/net-snmp/patches/patch-agent_mibgroup_util_funcs_get_pid_from_inode_c
new file mode 100644
index 000000000..08097feb3
--- /dev/null
+++ b/package/net-snmp/patches/patch-agent_mibgroup_util_funcs_get_pid_from_inode_c
@@ -0,0 +1,10 @@
+--- net-snmp-5.7.2.orig/agent/mibgroup/util_funcs/get_pid_from_inode.c 2012-10-10 00:28:58.000000000 +0200
++++ net-snmp-5.7.2/agent/mibgroup/util_funcs/get_pid_from_inode.c 2014-01-01 17:29:08.000000000 +0100
+@@ -6,6 +6,7 @@
+
+ #include <ctype.h>
+ #include <stdio.h>
++#include <limits.h>
+ #if HAVE_STDLIB_H
+ #include <stdlib.h>
+ #endif
diff --git a/package/net-snmp/patches/patch-net-snmp-config_in b/package/net-snmp/patches/patch-net-snmp-config_in
index 2465be023..7e0623ad7 100644
--- a/package/net-snmp/patches/patch-net-snmp-config_in
+++ b/package/net-snmp/patches/patch-net-snmp-config_in
@@ -1,6 +1,6 @@
---- net-snmp-5.6.1.orig/net-snmp-config.in 2010-10-13 11:58:34.000000000 +0200
-+++ net-snmp-5.6.1/net-snmp-config.in 2011-01-21 18:05:18.494919068 +0100
-@@ -127,10 +127,10 @@ else
+--- net-snmp-5.7.2.orig/net-snmp-config.in 2012-10-10 00:28:58.000000000 +0200
++++ net-snmp-5.7.2/net-snmp-config.in 2014-01-01 17:12:30.000000000 +0100
+@@ -138,10 +138,10 @@ else
;;
#################################################### compile
--base-cflags)
diff --git a/package/net-tools/Makefile b/package/net-tools/Makefile
index 711f150ef..e550059a4 100644
--- a/package/net-tools/Makefile
+++ b/package/net-tools/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= net-tools
PKG_VERSION:= 1.60
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 888774accab40217dde927e21979c165
PKG_DESCR:= Linux net-tools
PKG_SECTION:= net
diff --git a/package/net-tools/patches/patch-lib_inet_c b/package/net-tools/patches/patch-lib_inet_c
new file mode 100644
index 000000000..915cb7131
--- /dev/null
+++ b/package/net-tools/patches/patch-lib_inet_c
@@ -0,0 +1,11 @@
+--- net-tools-1.60.orig/lib/inet.c 2000-05-22 23:27:13.000000000 +0200
++++ net-tools-1.60/lib/inet.c 2013-12-27 18:00:30.000000000 +0100
+@@ -224,7 +224,7 @@ static int INET_rresolve(char *name, siz
+
+ static void INET_reserror(char *text)
+ {
+- herror(text);
++ perror(text);
+ }
+
+
diff --git a/package/nfs-utils/Makefile b/package/nfs-utils/Makefile
index 897f63aaa..18845a0a5 100644
--- a/package/nfs-utils/Makefile
+++ b/package/nfs-utils/Makefile
@@ -18,6 +18,8 @@ PKG_URL:= http://sourceforge.net/projects/nfs
PKG_SITES:= http://openadk.org/distfiles/
#PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=nfs/}
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
PKG_FLAVOURS_NFS_UTILS:=WITH_KERBEROS
PKGFD_WITH_KERBEROS:= enable Kerberos support (MIT)
PKGFS_WITH_KERBEROS:= libkrb5 libevent libnfsidmap librpcsecgss libcom-err libgssglue kmod-rpcsec-gss-krb5 kmod-sunrpc-gss
diff --git a/package/nspr/Makefile b/package/nspr/Makefile
index eaa679d95..33063d67f 100644
--- a/package/nspr/Makefile
+++ b/package/nspr/Makefile
@@ -4,9 +4,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= nspr
-PKG_VERSION:= 4.9.6
-PKG_RELEASE:= 2
-PKG_MD5SUM:= 62b1e9d376d503d972f90c3c0031d879
+PKG_VERSION:= 4.10.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= f0d254da0b2b870d9a5fa094e879d4b8
PKG_DESCR:= Netscape Portable Runtime library
PKG_SECTION:= libs
PKG_URL:= http://www.mozilla.org/projects/nspr/
@@ -15,7 +15,7 @@ PKG_OPTS:= dev
PKG_ARCH_DEPENDS:= !cris
-WRKSRC= ${WRKDIST}/mozilla/nsprpub
+WRKSRC= ${WRKDIST}/nspr
include $(TOPDIR)/mk/package.mk
diff --git a/package/nspr/patches/patch-mozilla_nsprpub_config_Makefile_in b/package/nspr/patches/patch-mozilla_nsprpub_config_Makefile_in
deleted file mode 100644
index 9e925158b..000000000
--- a/package/nspr/patches/patch-mozilla_nsprpub_config_Makefile_in
+++ /dev/null
@@ -1,11 +0,0 @@
---- nspr-4.9.5.orig/mozilla/nsprpub/config/Makefile.in 2012-11-14 00:17:57.000000000 +0100
-+++ nspr-4.9.5/mozilla/nsprpub/config/Makefile.in 2013-02-27 16:29:38.000000000 +0100
-@@ -113,7 +113,7 @@ endif
-
- $(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX)
- @$(MAKE_OBJDIR)
-- $(CC) $(XCFLAGS) $< $(LDFLAGS) $(XLDOPTS) $(OUTOPTION)$@
-+ $(CC_FOR_BUILD) $(HOSTCFLAGS) $< $(HOSTLDFLAGS) $(XLDOPTS) $(OUTOPTION)$@
-
- install:: nspr.m4
- $(NSINSTALL) -D $(DESTDIR)$(datadir)/aclocal
diff --git a/package/nspr/patches/patch-mozilla_nsprpub_configure b/package/nspr/patches/patch-mozilla_nsprpub_configure
deleted file mode 100644
index cfaa795ed..000000000
--- a/package/nspr/patches/patch-mozilla_nsprpub_configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- nspr-4.9.6.orig/mozilla/nsprpub/configure 2013-03-14 18:34:31.000000000 +0100
-+++ nspr-4.9.6/mozilla/nsprpub/configure 2013-10-21 15:29:36.000000000 +0200
-@@ -2855,7 +2855,7 @@ esac
- if test "$cross_compiling" = "yes"; then
- CROSS_COMPILE=1
- else
-- CROSS_COMPILE=
-+ CROSS_COMPILE=1
- fi
-
- echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6
diff --git a/package/nspr/patches/patch-mozilla_nsprpub_pr_src_misc_prnetdb_c b/package/nspr/patches/patch-mozilla_nsprpub_pr_src_misc_prnetdb_c
deleted file mode 100644
index 99ecc22dc..000000000
--- a/package/nspr/patches/patch-mozilla_nsprpub_pr_src_misc_prnetdb_c
+++ /dev/null
@@ -1,16 +0,0 @@
-* patch from alpinelinux
-
---- nspr-4.9.6.orig/mozilla/nsprpub/pr/src/misc/prnetdb.c 2012-09-28 16:33:48.000000000 +0200
-+++ nspr-4.9.6/mozilla/nsprpub/pr/src/misc/prnetdb.c 2013-10-21 18:07:57.000000000 +0200
-@@ -61,10 +61,7 @@ PRLock *_pr_dnsLock = NULL;
- #define _PR_HAVE_GETPROTO_R_POINTER
- #endif
-
--#if defined(SOLARIS) || (defined(BSDI) && defined(_REENTRANT)) \
-- || (defined(LINUX) && defined(_REENTRANT) \
-- && !(defined(__GLIBC__) && __GLIBC__ >= 2) \
-- && !defined(ANDROID))
-+#if defined(SOLARIS) || (defined(BSDI) && defined(_REENTRANT))
- #define _PR_HAVE_GETPROTO_R
- #define _PR_HAVE_GETPROTO_R_POINTER
- #endif
diff --git a/package/ntpclient/patches/patch-ntpclient_c b/package/ntpclient/patches/patch-ntpclient_c
new file mode 100644
index 000000000..ed3b6c1d2
--- /dev/null
+++ b/package/ntpclient/patches/patch-ntpclient_c
@@ -0,0 +1,11 @@
+--- ntpclient-2010.orig/ntpclient.c 2010-12-31 18:28:36.000000000 +0100
++++ ntpclient-2010/ntpclient.c 2014-01-03 12:20:27.000000000 +0100
+@@ -441,7 +441,7 @@ static void stuff_net_addr(struct in_add
+ struct hostent *ntpserver;
+ ntpserver=gethostbyname(hostname);
+ if (ntpserver == NULL) {
+- herror(hostname);
++ perror(hostname);
+ exit(1);
+ }
+ if (ntpserver->h_length != 4) {
diff --git a/package/obexftp/Makefile b/package/obexftp/Makefile
index e70519cc6..828d73871 100644
--- a/package/obexftp/Makefile
+++ b/package/obexftp/Makefile
@@ -7,9 +7,9 @@ PKG_NAME:= obexftp
PKG_VERSION:= 0.23
PKG_RELEASE:= 4
PKG_MD5SUM:= f20762061b68bc921e80be4aebc349eb
-PKG_DESCR:= bluetooth ftp application
-PKG_SECTION:= bluetooth
-PKG_DEPENDS:= openobex libobexftp libbluetooth
+PKG_DESCR:= OBEX ftp application
+PKG_SECTION:= misc
+PKG_DEPENDS:= openobex libobexftp
PKG_BUILDDEP:= openobex libiconv-tiny
PKG_URL:= http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=openobex/}
@@ -39,7 +39,7 @@ endif
CONFIGURE_ENV+= OPENOBEX_CFLAGS="-I${STAGING_TARGET_DIR}/usr/include" \
OPENOBEX_LIBS="-L${STAGING_TARGET_DIR}/usr/lib \
- -lopenobex -lbluetooth -liconv"
+ -lopenobex -liconv"
CONFIGURE_ARGS+= --disable-perl \
--disable-ruby \
--disable-tcl \
diff --git a/package/obexftp/patches/patch-obexftp_client_c b/package/obexftp/patches/patch-obexftp_client_c
new file mode 100644
index 000000000..f4c90143b
--- /dev/null
+++ b/package/obexftp/patches/patch-obexftp_client_c
@@ -0,0 +1,11 @@
+--- obexftp-0.23.orig/obexftp/client.c 2009-02-17 19:27:48.000000000 +0100
++++ obexftp-0.23/obexftp/client.c 2013-12-22 09:35:39.000000000 +0100
+@@ -51,8 +51,6 @@
+
+ #ifdef HAVE_BLUETOOTH
+ #include "bt_kit.h"
+-#else
+-#define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
+ #endif /* HAVE_BLUETOOTH */
+
+ #include <openobex/obex.h>
diff --git a/package/open-iscsi/patches/patch-usr_idbm_c b/package/open-iscsi/patches/patch-usr_idbm_c
new file mode 100644
index 000000000..38838c9a1
--- /dev/null
+++ b/package/open-iscsi/patches/patch-usr_idbm_c
@@ -0,0 +1,10 @@
+--- open-iscsi-2.0-871.orig/usr/idbm.c 2009-07-11 05:55:58.000000000 +0200
++++ open-iscsi-2.0-871/usr/idbm.c 2014-01-03 12:44:20.000000000 +0100
+@@ -29,6 +29,7 @@
+ #include <limits.h>
+ #include <sys/stat.h>
+ #include <sys/file.h>
++#include <fcntl.h>
+
+ #include "idbm.h"
+ #include "idbm_fields.h"
diff --git a/package/open-iscsi/patches/patch-usr_mgmt_ipc_c b/package/open-iscsi/patches/patch-usr_mgmt_ipc_c
index bc29bd21b..d1d936e0f 100644
--- a/package/open-iscsi/patches/patch-usr_mgmt_ipc_c
+++ b/package/open-iscsi/patches/patch-usr_mgmt_ipc_c
@@ -1,6 +1,6 @@
--- open-iscsi-2.0-871.orig/usr/mgmt_ipc.c 2009-07-11 05:55:58.000000000 +0200
-+++ open-iscsi-2.0-871/usr/mgmt_ipc.c 2010-11-22 22:47:25.000000000 +0100
-@@ -341,31 +341,7 @@ mgmt_ipc_notify_del_portal(queue_task_t
++++ open-iscsi-2.0-871/usr/mgmt_ipc.c 2014-01-03 12:35:32.000000000 +0100
+@@ -341,31 +341,7 @@ mgmt_ipc_notify_del_portal(queue_task_t
static int
mgmt_peeruser(int sock, char *user)
{
diff --git a/package/openafs/Makefile b/package/openafs/Makefile
index a5a81dcc0..d22a1d691 100644
--- a/package/openafs/Makefile
+++ b/package/openafs/Makefile
@@ -4,7 +4,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= openafs
-PKG_VERSION:= 1.6.5
+PKG_VERSION:= 1.6.5.1
PKG_RELEASE:= 1
PKG_MD5SUM:= e33e0b031760d4f90815d40b8ab3c540
PKG_DESCR:= AFS implementation
diff --git a/package/openobex/Makefile b/package/openobex/Makefile
index e4e95e93f..d0091fe5c 100644
--- a/package/openobex/Makefile
+++ b/package/openobex/Makefile
@@ -8,8 +8,7 @@ PKG_VERSION:= 1.5
PKG_RELEASE:= 2
PKG_MD5SUM:= 0d83dc86445a46a1b9750107ba7ab65c
PKG_DESCR:= implementation of the Object Exchange (OBEX) protocol
-PKG_SECTION:= bluetooth
-PKG_BUILDDEP:= bluez
+PKG_SECTION:= misc
PKG_URL:= http://dev.zuckschwerdt.org/openobex/wiki/WikiStart
PKG_SITES:= ${MASTER_SITE_KERNEL:=bluetooth/}
PKG_OPTS:= dev
diff --git a/package/oprofile/Makefile b/package/oprofile/Makefile
index 63724cbdb..1d4278fd0 100644
--- a/package/oprofile/Makefile
+++ b/package/oprofile/Makefile
@@ -15,6 +15,7 @@ PKG_URL:= http://oprofile.sourceforge.net/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=oprofile/}
PKG_ARCH_DEPENDS:= !cris !avr32 !m68k
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
PKG_CFLINE_OPROFILE:= select BUSYBOX_EXPR
@@ -23,7 +24,6 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,OPROFILE,oprofile,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
TARGET_LDFLAGS+= -lpthread
-CONFIGURE_ARGS+= --with-kernel-support
oprofile-install:
$(INSTALL_DIR) $(IDIR_OPROFILE)/usr/{bin,share}
diff --git a/package/orbit2/Makefile b/package/orbit2/Makefile
index 618841d7d..15cc231ee 100644
--- a/package/orbit2/Makefile
+++ b/package/orbit2/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= ORBit2
PKG_VERSION:= 2.14.19
PKG_EXTRAVER:= 2.14
-PKG_RELEASE:= 3
+PKG_RELEASE:= 4
PKG_MD5SUM:= 87c69c56c6d0bdafa4de5e18ae115cc9
PKG_DESCR:= a CORBA 2.4-compliant Object Request Broker
PKG_SECTION:= libs
@@ -22,8 +22,8 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,ORBIT2,orbit2,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-CFLAGS_FOR_BUILD+= $(shell PATH=$(TARGET_PATH) libIDL-config-2 --cflags)
-LDFLAGS_FOR_BUILD+= $(shell PATH=$(TARGET_PATH) libIDL-config-2 --libs)
+CFLAGS_FOR_BUILD+= $(shell PATH=$(HOST_PATH) libIDL-config-2 --cflags)
+LDFLAGS_FOR_BUILD+= $(shell PATH=$(HOST_PATH) libIDL-config-2 --libs)
LDFLAGS_FOR_BUILD+= -lgmodule-2.0
CONFIGURE_ENV+= ac_cv_alignof_CORBA_octet=1 \
ac_cv_alignof_CORBA_boolean=1 \
@@ -43,9 +43,6 @@ orbit2-install:
$(INSTALL_DIR) $(IDIR_ORBIT2)/usr/lib
$(INSTALL_BIN) $(WRKINST)/usr/lib/libORBit*.so* \
$(IDIR_ORBIT2)/usr/lib
- $(INSTALL_DIR) $(IDIR_ORBIT2)/usr/bin
- $(CP) $(WRKINST)/usr/bin/orbit-idl-2 \
- $(IDIR_ORBIT2)/usr/bin
$(INSTALL_DIR) $(STAGING_DIR)/usr/bin
$(CP) $(WRKINST)/usr/bin/orbit-idl-2 \
$(STAGING_DIR)/usr/bin
diff --git a/package/orbit2/patches/patch-src_idl-compiler_Makefile_in b/package/orbit2/patches/patch-src_idl-compiler_Makefile_in
index 2053d9f29..ec73ef4f3 100644
--- a/package/orbit2/patches/patch-src_idl-compiler_Makefile_in
+++ b/package/orbit2/patches/patch-src_idl-compiler_Makefile_in
@@ -33,15 +33,6 @@
ORBIT_LIBS = @ORBIT_LIBS@
ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@
ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@
-@@ -199,7 +197,7 @@ PACKAGE_URL = @PACKAGE_URL@
- PACKAGE_VERSION = @PACKAGE_VERSION@
- PATH_SEPARATOR = @PATH_SEPARATOR@
- PKG_CONFIG = @PKG_CONFIG@
--PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
-+PKG_CONFIG_LIBDIR = $(PKG_HOSTLIB_DIR)
- PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
- RANLIB = @RANLIB@
- SED = @SED@
@@ -270,8 +268,7 @@ INCLUDES = \
-DVERSION=\"$(ORBIT_VERSION)\" \
-DORBIT2_INTERNAL_API \
diff --git a/package/osiris/patches/patch-src_libosiris_Makefile_in b/package/osiris/patches/patch-src_libosiris_Makefile_in
index a7d09c693..458fc8bbd 100644
--- a/package/osiris/patches/patch-src_libosiris_Makefile_in
+++ b/package/osiris/patches/patch-src_libosiris_Makefile_in
@@ -1,6 +1,6 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- osiris-4.2.3.orig/src/libosiris/Makefile.in 2006-07-28 01:57:51.000000000 +0200
-+++ osiris-4.2.3/src/libosiris/Makefile.in 2009-05-10 20:51:38.000000000 +0200
++++ osiris-4.2.3/src/libosiris/Makefile.in 2014-01-03 17:24:45.000000000 +0100
@@ -105,7 +105,7 @@ libosiris_a_SOURCES = list.c message.c s
filter_uid.c filter_gid.c filter_user.c \
filter_group.c filter_header.c filter_file.c \
@@ -10,7 +10,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
string_list.h ssl_utilities.h utilities.h \
regex.h regex.c debug.h debug.c strcasestr.c \
error.h strptime.h
-@@ -128,11 +128,10 @@ am_libosiris_a_OBJECTS = list.$(OBJEXT)
+@@ -128,11 +128,10 @@ am_libosiris_a_OBJECTS = list.$(OBJEXT)
filter_python.$(OBJEXT) filter_script.$(OBJEXT) \
filter_gzip.$(OBJEXT) filter_zip.$(OBJEXT) filter_tar.$(OBJEXT) \
filter_pgp.$(OBJEXT) filter_rpm.$(OBJEXT) filter_uid.$(OBJEXT) \
diff --git a/package/osiris/patches/patch-src_libosiris_osi_common_h b/package/osiris/patches/patch-src_libosiris_osi_common_h
new file mode 100644
index 000000000..b30462a3c
--- /dev/null
+++ b/package/osiris/patches/patch-src_libosiris_osi_common_h
@@ -0,0 +1,10 @@
+--- osiris-4.2.3.orig/src/libosiris/osi_common.h 2006-07-28 01:57:51.000000000 +0200
++++ osiris-4.2.3/src/libosiris/osi_common.h 2014-01-03 17:33:53.000000000 +0100
+@@ -31,6 +31,7 @@
+ #ifndef OSI_COMMON_H
+ #define OSI_COMMON_H
+
++#include <sys/types.h>
+ #include "config.h"
+
+ /* for atomic_t */
diff --git a/package/pacemaker-mgmt/Makefile b/package/pacemaker-mgmt/Makefile
index a762af376..29ece82cd 100644
--- a/package/pacemaker-mgmt/Makefile
+++ b/package/pacemaker-mgmt/Makefile
@@ -9,11 +9,12 @@ PKG_RELEASE:= 1
PKG_MD5SUM:= be16a38588d1c518f53e64e7e48e1c90
PKG_DESCR:= Pacemaker management daemon
PKG_SECTION:= ha
-PKG_BUILDDEP:= pacemaker gnutls pam python2
+PKG_BUILDDEP:= swig-host pacemaker gnutls pam python2
PKG_URL:= http://hg.clusterlabs.org/pacemaker/pygui/
PKG_SITES:= http://openadk.org/distfiles/
PKG_LIBC_DEPENDS:= eglibc glibc musl
+PKG_ARCH_DEPENDS:= x86 x86_64
include $(TOPDIR)/mk/package.mk
diff --git a/package/pam/Makefile b/package/pam/Makefile
index bf322e71e..a326655e8 100644
--- a/package/pam/Makefile
+++ b/package/pam/Makefile
@@ -4,13 +4,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= pam
-PKG_VERSION:= 1.1.4
+PKG_VERSION:= 1.1.8
PKG_RELEASE:= 2
-PKG_MD5SUM:= ff8f3c4382b78ac211e11bcd56ab17bf
+PKG_MD5SUM:= 5107bbf54042400b6200e8367cc7feef
PKG_DESCR:= Pluggable Authentication Modules
PKG_BUILDDEP:= flex
PKG_SECTION:= misc
-PKG_SITES:= http://openadk.org/distfiles/
+PKG_URL:= http://www.linux-pam.org/
+PKG_SITES:= http://www.linux-pam.org/library/
PKG_OPTS:= dev
DISTFILES:= Linux-PAM-$(PKG_VERSION).tar.gz
@@ -20,10 +21,14 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,PAM,pam,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-XAKE_FLAGS+= GCC_HONOUR_COPTS=s
+#XAKE_FLAGS+= GCC_HONOUR_COPTS=s
CONFIGURE_ARGS+= --disable-nis \
--enable-db=no
+post-install:
+ # /lib is not automatically installed to staging area
+ $(CP) $(WRKINST)/lib/libpam*.so* $(STAGING_TARGET_DIR)/usr/lib
+
pam-install:
$(INSTALL_DIR) $(IDIR_PAM)/etc/security
$(CP) $(WRKINST)/etc/security/* $(IDIR_PAM)/etc/security
@@ -31,7 +36,5 @@ pam-install:
$(CP) $(WRKINST)/lib/libpam*.so* $(IDIR_PAM)/lib
$(CP) $(WRKINST)/lib/security/*.so* $(IDIR_PAM)/lib/security
$(CP) ./files/pam.conf $(IDIR_PAM)/etc
- # /lib is not automatically installed to staging area
- $(CP) $(WRKINST)/lib/libpam*.so* $(STAGING_DIR)/usr/lib
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/pam/patches/patch-Makefile_in b/package/pam/patches/patch-Makefile_in
deleted file mode 100644
index 12574da06..000000000
--- a/package/pam/patches/patch-Makefile_in
+++ /dev/null
@@ -1,24 +0,0 @@
---- Linux-PAM-1.1.4.orig/Makefile.in 2011-06-24 12:48:16.000000000 +0200
-+++ Linux-PAM-1.1.4/Makefile.in 2011-10-07 11:42:21.000000000 +0200
-@@ -75,8 +75,8 @@ RECURSIVE_CLEAN_TARGETS = mostlyclean-re
- distclean-recursive maintainer-clean-recursive
- ETAGS = etags
- CTAGS = ctags
--DIST_SUBDIRS = libpam tests libpamc libpam_misc modules po conf doc \
-- examples xtests
-+DIST_SUBDIRS = libpam tests libpamc libpam_misc modules po conf \
-+ examples
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
- distdir = $(PACKAGE)-$(VERSION)
- top_distdir = $(distdir)
-@@ -258,8 +258,8 @@ top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
- AUTOMAKE_OPTIONS = 1.9 gnu dist-bzip2 check-news
--@STATIC_MODULES_FALSE@SUBDIRS = libpam tests libpamc libpam_misc modules po conf doc examples xtests
--@STATIC_MODULES_TRUE@SUBDIRS = modules libpam libpamc libpam_misc tests po conf doc examples xtests
-+@STATIC_MODULES_FALSE@SUBDIRS = libpam tests libpamc libpam_misc modules po conf examples
-+@STATIC_MODULES_TRUE@SUBDIRS = modules libpam libpamc libpam_misc tests po conf examples
- CLEANFILES = *~
- M4_FILES = m4/gettext.m4 m4/iconv.m4 m4/intlmacosx.m4 \
- m4/japhar_grep_cflags.m4 m4/jh_path_xml_catalog.m4 \
diff --git a/package/pam/patches/patch-conf_Makefile_in b/package/pam/patches/patch-conf_Makefile_in
deleted file mode 100644
index b4a0d7afb..000000000
--- a/package/pam/patches/patch-conf_Makefile_in
+++ /dev/null
@@ -1,11 +0,0 @@
---- Linux-PAM-1.1.4.orig/conf/Makefile.in 2011-06-24 12:48:02.000000000 +0200
-+++ Linux-PAM-1.1.4/conf/Makefile.in 2011-10-07 11:32:37.000000000 +0200
-@@ -236,7 +236,7 @@ target_alias = @target_alias@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
--SUBDIRS = pam_conv1
-+SUBDIRS =
- CLEANFILES = *~
- EXTRA_DIST = install_conf md5itall pam.conf
- all: all-recursive
diff --git a/package/pam/patches/patch-configure b/package/pam/patches/patch-configure
index 728ff6492..63e03cf5d 100644
--- a/package/pam/patches/patch-configure
+++ b/package/pam/patches/patch-configure
@@ -1,6 +1,6 @@
---- Linux-PAM-1.1.4.orig/configure 2011-06-24 12:48:18.000000000 +0200
-+++ Linux-PAM-1.1.4/configure 2011-10-12 14:51:42.323559002 +0200
-@@ -2766,8 +2766,6 @@ then
+--- Linux-PAM-1.1.8.orig/configure 2013-09-19 10:01:32.000000000 +0200
++++ Linux-PAM-1.1.8/configure 2013-12-21 18:40:31.000000000 +0100
+@@ -10718,8 +10718,6 @@ then
if test ${libdir} = '${exec_prefix}/lib'
then
case "`uname -m`" in
@@ -9,3 +9,12 @@
*)
libdir="/lib" ;;
esac
+@@ -13299,7 +13297,7 @@ $as_echo "$ac_cv_search_crypt" >&6; }
+ ac_res=$ac_cv_search_crypt
+ if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+- LIBCRYPT="-l$ac_lib"
++ LIBCRYPT="-lcrypt"
+ else
+ LIBCRYPT=""
+ fi
diff --git a/package/pam/patches/patch-modules_Makefile_in b/package/pam/patches/patch-modules_Makefile_in
new file mode 100644
index 000000000..4185b299e
--- /dev/null
+++ b/package/pam/patches/patch-modules_Makefile_in
@@ -0,0 +1,11 @@
+--- Linux-PAM-1.1.8.orig/modules/Makefile.in 2013-09-19 10:01:33.000000000 +0200
++++ Linux-PAM-1.1.8/modules/Makefile.in 2013-12-21 18:45:07.000000000 +0100
+@@ -274,7 +274,7 @@ SUBDIRS = pam_access pam_cracklib pam_de
+ pam_group pam_issue pam_keyinit pam_lastlog pam_limits \
+ pam_listfile pam_localuser pam_loginuid pam_mail \
+ pam_mkhomedir pam_motd pam_namespace pam_nologin \
+- pam_permit pam_pwhistory pam_rhosts pam_rootok pam_securetty \
++ pam_permit pam_pwhistory pam_rootok pam_securetty \
+ pam_selinux pam_sepermit pam_shells pam_stress \
+ pam_succeed_if pam_tally pam_tally2 pam_time pam_timestamp \
+ pam_tty_audit pam_umask \
diff --git a/package/pam/patches/patch-modules_pam_group_pam_group_c b/package/pam/patches/patch-modules_pam_group_pam_group_c
index 40c1897d2..bbf25bcfd 100644
--- a/package/pam/patches/patch-modules_pam_group_pam_group_c
+++ b/package/pam/patches/patch-modules_pam_group_pam_group_c
@@ -1,12 +1,17 @@
---- Linux-PAM-1.1.4.orig/modules/pam_group/pam_group.c 2011-06-21 11:04:56.000000000 +0200
-+++ Linux-PAM-1.1.4/modules/pam_group/pam_group.c 2011-10-12 14:31:55.693559001 +0200
-@@ -656,7 +656,8 @@ static int check_account(pam_handle_t *p
+--- Linux-PAM-1.1.8.orig/modules/pam_group/pam_group.c 2013-06-18 16:11:21.000000000 +0200
++++ Linux-PAM-1.1.8/modules/pam_group/pam_group.c 2013-12-21 18:30:19.000000000 +0100
+@@ -655,10 +655,13 @@ static int check_account(pam_handle_t *p
+ continue;
}
/* If buffer starts with @, we are using netgroups */
++#ifdef HAVE_INNETGR
if (buffer[0] == '@')
-- good &= innetgr (&buffer[1], NULL, user, NULL);
-+ pam_syslog(pamh, LOG_ERR, "%s: no netgroup supported by C library", PAM_GROUP_CONF);
-+ //good &= innetgr (&buffer[1], NULL, user, NULL);
+ good &= innetgr (&buffer[1], NULL, user, NULL);
/* otherwise, if the buffer starts with %, it's a UNIX group */
- else if (buffer[0] == '%')
+- else if (buffer[0] == '%')
++ else
++#endif
++ if (buffer[0] == '%')
good &= pam_modutil_user_in_group_nam_nam(pamh, user, &buffer[1]);
+ else
+ good &= logic_field(pamh,user, buffer, count, is_same);
diff --git a/package/pam/patches/patch-modules_pam_lastlog_pam_lastlog_c b/package/pam/patches/patch-modules_pam_lastlog_pam_lastlog_c
new file mode 100644
index 000000000..b20bd413d
--- /dev/null
+++ b/package/pam/patches/patch-modules_pam_lastlog_pam_lastlog_c
@@ -0,0 +1,21 @@
+--- Linux-PAM-1.1.8.orig/modules/pam_lastlog/pam_lastlog.c 2013-06-18 16:11:21.000000000 +0200
++++ Linux-PAM-1.1.8/modules/pam_lastlog/pam_lastlog.c 2013-12-21 18:34:07.000000000 +0100
+@@ -10,6 +10,7 @@
+
+ #include "config.h"
+
++#include <paths.h>
+ #include <fcntl.h>
+ #include <time.h>
+ #include <errno.h>
+@@ -50,6 +51,10 @@ struct lastlog {
+ # define _PATH_BTMP "/var/log/btmp"
+ #endif
+
++#ifndef __GLIBC__
++#define logwtmp(args...)
++#endif
++
+ /* XXX - time before ignoring lock. Is 1 sec enough? */
+ #define LASTLOG_IGNORE_LOCK_TIME 1
+
diff --git a/package/pam/patches/patch-modules_pam_succeed_if_pam_succeed_if_c b/package/pam/patches/patch-modules_pam_succeed_if_pam_succeed_if_c
index 63f82cc4b..93a79ebda 100644
--- a/package/pam/patches/patch-modules_pam_succeed_if_pam_succeed_if_c
+++ b/package/pam/patches/patch-modules_pam_succeed_if_pam_succeed_if_c
@@ -1,52 +1,23 @@
---- Linux-PAM-1.1.4.orig/modules/pam_succeed_if/pam_succeed_if.c 2011-06-21 11:04:56.000000000 +0200
-+++ Linux-PAM-1.1.4/modules/pam_succeed_if/pam_succeed_if.c 2012-07-31 12:02:24.000000000 +0200
-@@ -230,6 +230,7 @@ evaluate_notingroup(pam_handle_t *pamh,
- return PAM_AUTH_ERR;
- }
- /* Return PAM_SUCCESS if the (host,user) is in the netgroup. */
-+/*
+--- Linux-PAM-1.1.8.orig/modules/pam_succeed_if/pam_succeed_if.c 2013-06-18 16:11:21.000000000 +0200
++++ Linux-PAM-1.1.8/modules/pam_succeed_if/pam_succeed_if.c 2013-12-21 18:30:19.000000000 +0100
+@@ -233,16 +233,20 @@ evaluate_notingroup(pam_handle_t *pamh,
static int
evaluate_innetgr(const char *host, const char *user, const char *group)
{
-@@ -237,7 +238,9 @@ evaluate_innetgr(const char *host, const
++#ifdef HAVE_INNETGR
+ if (innetgr(group, host, user, NULL) == 1)
return PAM_SUCCESS;
++#endif
return PAM_AUTH_ERR;
}
-+*/
/* Return PAM_SUCCESS if the (host,user) is NOT in the netgroup. */
-+/*
static int
evaluate_notinnetgr(const char *host, const char *user, const char *group)
{
-@@ -245,6 +248,7 @@ evaluate_notinnetgr(const char *host, co
++#ifdef HAVE_INNETGR
+ if (innetgr(group, host, user, NULL) == 0)
return PAM_SUCCESS;
++#endif
return PAM_AUTH_ERR;
}
-+*/
- /* Match a triple. */
- static int
-@@ -357,19 +361,23 @@ evaluate(pam_handle_t *pamh, int debug,
- return evaluate_notingroup(pamh, user, right);
- }
- /* (Rhost, user) is in this netgroup. */
-+ /*
- if (strcasecmp(qual, "innetgr") == 0) {
- const void *rhost;
- if (pam_get_item(pamh, PAM_RHOST, &rhost) != PAM_SUCCESS)
- rhost = NULL;
- return evaluate_innetgr(rhost, user, right);
- }
-+ */
- /* (Rhost, user) is not in this group. */
-+ /*
- if (strcasecmp(qual, "notinnetgr") == 0) {
- const void *rhost;
- if (pam_get_item(pamh, PAM_RHOST, &rhost) != PAM_SUCCESS)
- rhost = NULL;
- return evaluate_notinnetgr(rhost, user, right);
- }
-+ */
- /* Fail closed. */
- return PAM_SERVICE_ERR;
- }
diff --git a/package/pam/patches/patch-modules_pam_time_pam_time_c b/package/pam/patches/patch-modules_pam_time_pam_time_c
index e44b2f489..b8670e562 100644
--- a/package/pam/patches/patch-modules_pam_time_pam_time_c
+++ b/package/pam/patches/patch-modules_pam_time_pam_time_c
@@ -1,13 +1,14 @@
---- Linux-PAM-1.1.4.orig/modules/pam_time/pam_time.c 2011-06-21 11:04:56.000000000 +0200
-+++ Linux-PAM-1.1.4/modules/pam_time/pam_time.c 2012-07-31 12:02:24.000000000 +0200
-@@ -555,7 +555,9 @@ check_account(pam_handle_t *pamh, const
+--- Linux-PAM-1.1.8.orig/modules/pam_time/pam_time.c 2013-06-18 16:11:21.000000000 +0200
++++ Linux-PAM-1.1.8/modules/pam_time/pam_time.c 2013-12-21 18:30:19.000000000 +0100
+@@ -554,9 +554,11 @@ check_account(pam_handle_t *pamh, const
+ continue;
}
/* If buffer starts with @, we are using netgroups */
++#ifdef HAVE_INNETGR
if (buffer[0] == '@')
-- good &= innetgr (&buffer[1], NULL, user, NULL);
-+ //good &= innetgr (&buffer[1], NULL, user, NULL);
-+ pam_syslog(pamh, LOG_ERR,
-+ "%s: no netgroup support in C library", PAM_TIME_CONF);
+ good &= innetgr (&buffer[1], NULL, user, NULL);
else
++#endif
good &= logic_field(pamh, user, buffer, count, is_same);
D(("with user: %s", good ? "passes":"fails" ));
+
diff --git a/package/pam/patches/patch-modules_pam_timestamp_hmacfile b/package/pam/patches/patch-modules_pam_timestamp_hmacfile
deleted file mode 100644
index 5cc35d24e..000000000
--- a/package/pam/patches/patch-modules_pam_timestamp_hmacfile
+++ /dev/null
@@ -1,107 +0,0 @@
---- Linux-PAM-1.1.4.orig/modules/pam_timestamp/hmacfile 2011-06-21 11:37:55.000000000 +0200
-+++ Linux-PAM-1.1.4/modules/pam_timestamp/hmacfile 2012-07-31 12:03:27.000000000 +0200
-@@ -1,4 +1,4 @@
--#! /bin/sh
-+#! /bin/bash
-
- # hmacfile - temporary wrapper script for .libs/hmacfile
- # Generated by ltmain.sh (GNU libtool) 2.2.6
-@@ -11,7 +11,7 @@
-
- # Sed substitution that helps us do robust quoting. It backslashifies
- # metacharacters that are still active within double-quoted strings.
--Xsed='/bin/sed -e 1s/^X//'
-+Xsed='/Volumes/adk/openadk/scripts/sed -e 1s/^X//'
- sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
-
- # Be Bourne compatible
-@@ -32,13 +32,13 @@ DUALCASE=1; export DUALCASE # for MKS sh
- # if CDPATH is set.
- (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
--relink_command=""
-+relink_command="(cd /Volumes/adk/openadk/build_qemu_i686_eglibc/w-pam-1.1.4-2/Linux-PAM-1.1.4/modules/pam_timestamp; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z \"\${LD_LIBRARY_PATH+set}\" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/Volumes/adk/openadk/scripts:/Volumes/adk/openadk/bin/tools:/Volumes/adk/openadk/host_i686_eglibc/bin:/Volumes/adk/openadk/host_i686_eglibc/usr/bin:/Volumes/adk/openadk/target_i686_eglibc/scripts:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin:/usr/X11/bin; export PATH; /Volumes/adk/openadk/host_i686_eglibc/bin/i686-openadk-linux-gnu-gcc -I../../libpam/include -I../../libpamc/include -march=i686 -fwrapv -fno-ident -fhonour-copts -fomit-frame-pointer -Os -pipe -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/Volumes/adk/openadk/target_i686_eglibc/usr/lib -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -o \$progdir/\$file hmacfile.o hmacsha1.o sha1.o -L/Volumes/adk/openadk/target_i686_eglibc/lib -L/Volumes/adk/openadk/target_i686_eglibc/usr/lib -L/Volumes/adk/openadk/build_qemu_i686_eglibc/w-pam-1.1.4-2/Linux-PAM-1.1.4/libpam /Volumes/adk/openadk/build_qemu_i686_eglibc/w-pam-1.1.4-2/Linux-PAM-1.1.4/libpam/.libs/libpam.so -ldl -Wl,-rpath -Wl,/Volumes/adk/openadk/build_qemu_i686_eglibc/w-pam-1.1.4-2/Linux-PAM-1.1.4/libpam/.libs)"
-
- # This environment variable determines our operation mode.
- if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
- # install mode needs the following variables:
- generated_by_libtool_version='2.2.6'
-- notinst_deplibs=' /data/git/Linux-PAM/libpam/libpam.la'
-+ notinst_deplibs=' /Volumes/adk/openadk/build_qemu_i686_eglibc/w-pam-1.1.4-2/Linux-PAM-1.1.4/libpam/libpam.la'
- else
- # When we are sourced in execute mode, $file and $ECHO are already set.
- if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
-@@ -53,7 +53,7 @@ else
- :
- else
- # Restart under the correct shell, and then maybe $ECHO will work.
-- exec /bin/sh "$0" --no-reexec ${1+"$@"}
-+ exec /bin/bash "$0" --no-reexec ${1+"$@"}
- fi
- fi
-
-@@ -62,7 +62,7 @@ else
- test "x$thisdir" = "x$file" && thisdir=.
-
- # Follow symbolic links until we get to the real thisdir.
-- file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
-+ file=`ls -ld "$file" | /Volumes/adk/openadk/scripts/sed -n 's/.*-> //p'`
- while test -n "$file"; do
- destdir=`$ECHO "X$file" | $Xsed -e 's%/[^/]*$%%'`
-
-@@ -75,7 +75,7 @@ else
- fi
-
- file=`$ECHO "X$file" | $Xsed -e 's%^.*/%%'`
-- file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
-+ file=`ls -ld "$thisdir/$file" | /Volumes/adk/openadk/scripts/sed -n 's/.*-> //p'`
- done
-
-
-@@ -98,20 +98,38 @@ else
- absdir=`cd "$thisdir" && pwd`
- test -n "$absdir" && thisdir="$absdir"
-
-- program='hmacfile'
-+ program=lt-'hmacfile'
- progdir="$thisdir/.libs"
-
-+ if test ! -f "$progdir/$program" ||
-+ { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /Volumes/adk/openadk/scripts/sed 1q`; \
-+ test "X$file" != "X$progdir/$program"; }; then
-
-- if test -f "$progdir/$program"; then
-- # Add our own library path to LD_LIBRARY_PATH
-- LD_LIBRARY_PATH="/data/git/Linux-PAM/libpam/.libs:$LD_LIBRARY_PATH"
-+ file="$$-$program"
-
-- # Some systems cannot cope with colon-terminated LD_LIBRARY_PATH
-- # The second colon is a workaround for a bug in BeOS R4 sed
-- LD_LIBRARY_PATH=`$ECHO "X$LD_LIBRARY_PATH" | $Xsed -e 's/::*$//'`
-+ if test ! -d "$progdir"; then
-+ mkdir "$progdir"
-+ else
-+ rm -f "$progdir/$file"
-+ fi
-
-- export LD_LIBRARY_PATH
-+ # relink executable if necessary
-+ if test -n "$relink_command"; then
-+ if relink_command_output=`eval $relink_command 2>&1`; then :
-+ else
-+ echo "$relink_command_output" >&2
-+ rm -f "$progdir/$file"
-+ exit 1
-+ fi
-+ fi
-+
-+ mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
-+ { rm -f "$progdir/$program";
-+ mv -f "$progdir/$file" "$progdir/$program"; }
-+ rm -f "$progdir/$file"
-+ fi
-
-+ if test -f "$progdir/$program"; then
- if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
- # Run the actual program with our arguments.
-
diff --git a/package/pam/patches/patch-modules_pam_unix_pam_unix_acct_c b/package/pam/patches/patch-modules_pam_unix_pam_unix_acct_c
deleted file mode 100644
index 2ce448f1a..000000000
--- a/package/pam/patches/patch-modules_pam_unix_pam_unix_acct_c
+++ /dev/null
@@ -1,10 +0,0 @@
---- Linux-PAM-1.1.4.orig/modules/pam_unix/pam_unix_acct.c 2011-06-21 11:04:56.000000000 +0200
-+++ Linux-PAM-1.1.4/modules/pam_unix/pam_unix_acct.c 2012-07-31 13:08:58.000000000 +0200
-@@ -47,6 +47,7 @@
- #include <time.h> /* for time() */
- #include <errno.h>
- #include <sys/wait.h>
-+#include <sys/resource.h>
-
- #include <security/_pam_macros.h>
-
diff --git a/package/parted/Makefile b/package/parted/Makefile
index e0898450b..8223abe7b 100644
--- a/package/parted/Makefile
+++ b/package/parted/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= parted
PKG_VERSION:= 3.1
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 5d89d64d94bcfefa9ce8f59f4b81bdcb
PKG_DESCR:= partition table editor
PKG_SECTION:= fs
diff --git a/package/parted/patches/patch-lib_config_h_in b/package/parted/patches/patch-lib_config_h_in
index ba4569ea9..df6cb1f7d 100644
--- a/package/parted/patches/patch-lib_config_h_in
+++ b/package/parted/patches/patch-lib_config_h_in
@@ -1,7 +1,7 @@
---- parted-3.0.orig/lib/config.h.in 2011-05-30 09:07:32.000000000 +0200
-+++ parted-3.0/lib/config.h.in 2013-02-11 15:50:00.000000000 +0100
-@@ -1385,6 +1385,11 @@
- # endif
+--- parted-3.1.orig/lib/config.h.in 2012-03-02 17:10:29.000000000 +0100
++++ parted-3.1/lib/config.h.in 2013-12-25 20:03:47.000000000 +0100
+@@ -1424,6 +1424,11 @@
+ # define _DARWIN_USE_64_BIT_INODE 1
#endif
+/* Enable large inode numbers on Mac OS X 10.5. */
diff --git a/package/parted/patches/patch-libparted_fs_xfs_platform_defs_h b/package/parted/patches/patch-libparted_fs_xfs_platform_defs_h
new file mode 100644
index 000000000..9d6fe232d
--- /dev/null
+++ b/package/parted/patches/patch-libparted_fs_xfs_platform_defs_h
@@ -0,0 +1,11 @@
+--- parted-3.1.orig/libparted/fs/xfs/platform_defs.h 2012-01-12 17:38:40.000000000 +0100
++++ parted-3.1/libparted/fs/xfs/platform_defs.h 2013-12-25 20:53:13.000000000 +0100
+@@ -51,7 +51,7 @@
+ # define constpp char * const *
+ #endif
+
+-typedef loff_t xfs_off_t;
++typedef off_t xfs_off_t;
+ typedef uint64_t xfs_ino_t;
+ typedef uint32_t xfs_dev_t;
+ typedef int64_t xfs_daddr_t;
diff --git a/package/picocom/Makefile b/package/picocom/Makefile
index d602f724f..db15a0646 100644
--- a/package/picocom/Makefile
+++ b/package/picocom/Makefile
@@ -4,13 +4,13 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= picocom
-PKG_VERSION:= 1.4
+PKG_VERSION:= 1.7
PKG_RELEASE:= 1
-PKG_MD5SUM:= 08fcc5f6bb9e7676a2569386d5ea9f70
+PKG_MD5SUM:= 8eaba1d31407e8408674d6e57af447ef
PKG_DESCR:= minimal dumb-terminal emulation program
PKG_SECTION:= serial
-PKG_URL:= http://efault.net/npat/hacks/picocom/
-PKG_SITES:= http://efault.net/npat/hacks/picocom/dist/
+PKG_URL:= http://code.google.com/p/picocom
+PKG_SITES:= http://picocom.googlecode.com/files/
include ${TOPDIR}/mk/package.mk
diff --git a/package/picocom/patches/patch-Makefile b/package/picocom/patches/patch-Makefile
index 621e7c211..6c08b9d12 100644
--- a/package/picocom/patches/patch-Makefile
+++ b/package/picocom/patches/patch-Makefile
@@ -1,13 +1,15 @@
---- picocom-1.4.orig/Makefile 2004-08-13 13:18:38.000000000 +0200
-+++ picocom-1.4/Makefile 2011-01-21 21:02:02.096749132 +0100
-@@ -2,11 +2,12 @@
- VERSION=1.4
+--- picocom-1.7.orig/Makefile 2012-02-21 06:42:24.000000000 +0100
++++ picocom-1.7/Makefile 2013-12-26 09:43:38.000000000 +0100
+@@ -4,13 +4,14 @@ VERSION=1.7
+ UUCP_LOCK_DIR=/var/lock
# CC = gcc
--CPPFLAGS=-DVERSION_STR=\"$(VERSION)\" -DUUCP_LOCK_DIR=\"/var/lock\"
--CFLAGS = -Wall -g
+-CPPFLAGS=-DVERSION_STR=\"$(VERSION)\" \
+CPPFLAGS ?=
-+CPPFLAGS += -DVERSION_STR=\"$(VERSION)\" -DUUCP_LOCK_DIR=\"/var/lock\"
++CPPFLAGS+=-DVERSION_STR=\"$(VERSION)\" \
+ -DUUCP_LOCK_DIR=\"$(UUCP_LOCK_DIR)\" \
+ -DHIGH_BAUD
+-CFLAGS = -Wall -g
+CFLAGS ?= -Wall -g
# LD = gcc
diff --git a/package/picocom/patches/patch-term_c b/package/picocom/patches/patch-term_c
new file mode 100644
index 000000000..6ed95ab65
--- /dev/null
+++ b/package/picocom/patches/patch-term_c
@@ -0,0 +1,106 @@
+--- picocom-1.7.orig/term.c 2010-05-29 00:41:19.000000000 +0200
++++ picocom-1.7/term.c 2013-12-26 09:45:20.000000000 +0100
+@@ -33,11 +33,7 @@
+ #include <string.h>
+ #include <errno.h>
+ #include <unistd.h>
+-#ifdef __linux__
+-#include <termio.h>
+-#else
+ #include <termios.h>
+-#endif /* of __linux__ */
+
+ #include "term.h"
+
+@@ -945,27 +941,6 @@ term_pulse_dtr (int fd)
+ break;
+ }
+
+-#ifdef __linux__
+- {
+- int opins = TIOCM_DTR;
+-
+- r = ioctl(fd, TIOCMBIC, &opins);
+- if ( r < 0 ) {
+- term_errno = TERM_EDTRDOWN;
+- rval = -1;
+- break;
+- }
+-
+- sleep(1);
+-
+- r = ioctl(fd, TIOCMBIS, &opins);
+- if ( r < 0 ) {
+- term_errno = TERM_EDTRUP;
+- rval = -1;
+- break;
+- }
+- }
+-#else
+ {
+ struct termios tio, tioold;
+
+@@ -997,8 +972,6 @@ term_pulse_dtr (int fd)
+ break;
+ }
+ }
+-#endif /* of __linux__ */
+-
+ } while (0);
+
+ return rval;
+@@ -1020,19 +993,6 @@ term_raise_dtr(int fd)
+ rval = -1;
+ break;
+ }
+-
+-#ifdef __linux__
+- {
+- int opins = TIOCM_DTR;
+-
+- r = ioctl(fd, TIOCMBIS, &opins);
+- if ( r < 0 ) {
+- term_errno = TERM_EDTRUP;
+- rval = -1;
+- break;
+- }
+- }
+-#else
+ r = tcsetattr(fd, TCSANOW, &term.currtermios[i]);
+ if ( r < 0 ) {
+ /* FIXME: perhaps try to update currtermios */
+@@ -1040,7 +1000,6 @@ term_raise_dtr(int fd)
+ rval = -1;
+ break;
+ }
+-#endif /* of __linux__ */
+ } while (0);
+
+ return rval;
+@@ -1064,18 +1023,6 @@ term_lower_dtr(int fd)
+ break;
+ }
+
+-#ifdef __linux__
+- {
+- int opins = TIOCM_DTR;
+-
+- r = ioctl(fd, TIOCMBIC, &opins);
+- if ( r < 0 ) {
+- term_errno = TERM_EDTRDOWN;
+- rval = -1;
+- break;
+- }
+- }
+-#else
+ {
+ struct termios tio;
+
+@@ -1097,7 +1044,6 @@ term_lower_dtr(int fd)
+ break;
+ }
+ }
+-#endif /* of __linux__ */
+ } while (0);
+
+ return rval;
diff --git a/package/portsentry/Makefile b/package/portsentry/Makefile
index 19a46f0e0..a68b55593 100644
--- a/package/portsentry/Makefile
+++ b/package/portsentry/Makefile
@@ -12,6 +12,8 @@ PKG_SECTION:= net/security
PKG_URL:= http://sourceforge.net/projects/sentrytools
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=sentrytools/}
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
WRKDIST= ${WRKDIR}/${PKG_NAME}_beta
include ${TOPDIR}/mk/package.mk
diff --git a/package/ppp/Makefile b/package/ppp/Makefile
index b7aa99f20..2458c68f2 100644
--- a/package/ppp/Makefile
+++ b/package/ppp/Makefile
@@ -15,6 +15,8 @@ PKG_URL:= http://ppp.samba.org/
PKG_SITES:= ftp://ftp.samba.org/pub/ppp/
PKG_MULTI:= 1
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
PKG_SUBPKGS:= PPP PPP_MOD_PPPOA PPP_MOD_PPPOE PPP_MOD_RADIUS
PKG_SUBPKGS+= PPP_MOD_CHAT PPP_MOD_PPPDUMP PPP_MOD_PPPSTATS PPP_MOD_PPPUMTS
PKGSS_PPP_MOD_PPPOE:= kmod-pppoe
diff --git a/package/pptp/Makefile b/package/pptp/Makefile
index a2d6fb90a..feea59480 100644
--- a/package/pptp/Makefile
+++ b/package/pptp/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= pptp
-PKG_VERSION:= 1.6.0
-PKG_RELEASE:= 3
-PKG_MD5SUM:= 9a706327fb9827541d7c86d48ceb9631
+PKG_VERSION:= 1.8.0
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 4efce9f263e2c3f38d79d9df222476de
PKG_DESCR:= a Point-to-Point Tunneling Protocol (PPTP) client
PKG_SECTION:= ppp
PKG_DEPENDS:= ppp kmod-net-ipgre
diff --git a/package/pptp/patches/patch-Makefile b/package/pptp/patches/patch-Makefile
index 1b7ad4a3d..f96b980fe 100644
--- a/package/pptp/patches/patch-Makefile
+++ b/package/pptp/patches/patch-Makefile
@@ -1,22 +1,18 @@
---- pptp-1.6.0.orig/Makefile 2005-02-18 02:42:45.000000000 +0100
-+++ pptp-1.6.0/Makefile 2011-01-16 21:44:38.000000000 +0100
-@@ -11,14 +11,15 @@ BINDIR=$(DESTDIR)/usr/sbin
+--- pptp-1.8.0.orig/Makefile 2013-10-23 10:10:46.000000000 +0200
++++ pptp-1.8.0/Makefile 2013-12-22 11:35:12.000000000 +0100
+@@ -14,12 +14,13 @@ BINDIR=$(DESTDIR)/usr/sbin
MANDIR=$(DESTDIR)/usr/share/man/man8
PPPDIR=$(DESTDIR)/etc/ppp
-CC = gcc
+CC ?= gcc
RM = rm -f
- OPTIMIZE= -O0
+ OPTIMIZE= -O -Wuninitialized
DEBUG = -g
INCLUDE =
-CFLAGS = -Wall $(OPTIMIZE) $(DEBUG) $(INCLUDE)
--LIBS = -lutil
--LDFLAGS =
-+CPPFLAGS ?=
-+CFLAGS ?= -Wall $(OPTIMIZE) $(DEBUG) $(INCLUDE)
-+LIBS ?= -lutil
-+LDFLAGS ?=
-
- PPTP_BIN = pptp
-
++CFLAGS ?=
++CFLAGS += -Wall $(INCLUDE)
+ # Solaris
+ # CFLAGS += -D_XPG4_2 -D__EXTENSIONS__
+ LIBS = -lutil
diff --git a/package/pptp/patches/patch-pptp_c b/package/pptp/patches/patch-pptp_c
new file mode 100644
index 000000000..7a4cfb520
--- /dev/null
+++ b/package/pptp/patches/patch-pptp_c
@@ -0,0 +1,11 @@
+--- pptp-1.8.0.orig/pptp.c 2013-10-23 10:10:46.000000000 +0200
++++ pptp-1.8.0/pptp.c 2013-12-22 11:40:01.000000000 +0100
+@@ -447,7 +447,7 @@ struct in_addr get_ip_address(char *name
+ if (host == NULL) {
+ if (h_errno == HOST_NOT_FOUND)
+ fatal("gethostbyname '%s': HOST NOT FOUND", name);
+- else if (h_errno == NO_ADDRESS)
++ else if (h_errno == NO_DATA)
+ fatal("gethostbyname '%s': NO IP ADDRESS", name);
+ else
+ fatal("gethostbyname '%s': name server error", name);
diff --git a/package/pptp/patches/patch-pqueue_c b/package/pptp/patches/patch-pqueue_c
new file mode 100644
index 000000000..477f7692b
--- /dev/null
+++ b/package/pptp/patches/patch-pqueue_c
@@ -0,0 +1,10 @@
+--- pptp-1.8.0.orig/pqueue.c 2013-10-23 10:10:46.000000000 +0200
++++ pptp-1.8.0/pqueue.c 2013-12-22 11:35:52.000000000 +0100
+@@ -2,6 +2,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <assert.h>
++#include <sys/types.h>
+
+ #include "util.h" // for log()
+ #include "pqueue.h"
diff --git a/package/procps/Makefile b/package/procps/Makefile
index 70765479e..dd5f1139c 100644
--- a/package/procps/Makefile
+++ b/package/procps/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= procps
PKG_VERSION:= 3.2.8
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 9532714b6846013ca9898984ba4cd7e0
PKG_DESCR:= The /proc file system utilities
PKG_SECTION:= utils
@@ -19,6 +19,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,PROCPS,procps,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CONFIG_STYLE:= manual
+TARGET_LDFLAGS+= -ltinfo
procps-install:
${INSTALL_DIR} ${IDIR_PROCPS}/{bin,sbin,usr/bin}
diff --git a/package/procps/patches/patch-Makefile b/package/procps/patches/patch-Makefile
index 5b0bcf74a..5849fc343 100644
--- a/package/procps/patches/patch-Makefile
+++ b/package/procps/patches/patch-Makefile
@@ -1,6 +1,6 @@
$Id$
---- procps-3.2.7.orig/Makefile Sat Jun 24 09:02:02 2006
-+++ procps-3.2.7/Makefile Tue May 22 14:43:11 2007
+--- procps-3.2.8.orig/Makefile 2009-05-10 20:50:48.000000000 +0200
++++ procps-3.2.8/Makefile 2013-12-23 16:53:06.000000000 +0100
@@ -27,7 +27,7 @@ TARVERSION := $(VERSION).$(SUBVERSION)
ldconfig := ldconfig
ln_f := ln -f
@@ -19,7 +19,7 @@ $Id$
ALL_CPPFLAGS := $(PKG_CPPFLAGS) $(CPPFLAGS)
# Left out -Wconversion due to noise in glibc headers.
-@@ -102,11 +102,11 @@ PKG_CFLAGS := -fno-common -ffast-math
+@@ -102,11 +102,11 @@ PKG_CFLAGS := -fno-common -ffast-math
-Wstrict-prototypes -Wmissing-prototypes
# Note that some stuff below is conditional on CFLAGS containing
# an option that starts with "-g". (-g, -g2, -g3, -ggdb, etc.)
diff --git a/package/procps/patches/patch-proc_readproc_c b/package/procps/patches/patch-proc_readproc_c
new file mode 100644
index 000000000..dd4868a69
--- /dev/null
+++ b/package/procps/patches/patch-proc_readproc_c
@@ -0,0 +1,10 @@
+--- procps-3.2.8.orig/proc/readproc.c 2006-06-16 10:18:13.000000000 +0200
++++ procps-3.2.8/proc/readproc.c 2013-12-23 16:58:19.000000000 +0100
+@@ -23,6 +23,7 @@
+ #include <unistd.h>
+ #include <signal.h>
+ #include <fcntl.h>
++#include <limits.h>
+ #include <sys/dir.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
diff --git a/package/proftpd/Makefile b/package/proftpd/Makefile
index 9796c0a09..cb0662354 100644
--- a/package/proftpd/Makefile
+++ b/package/proftpd/Makefile
@@ -4,15 +4,18 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= proftpd
-PKG_VERSION:= 1.3.3
+PKG_VERSION:= 1.3.4d
PKG_RELEASE:= 1
-PKG_MD5SUM:= 97ad29f31f4fe633a9f8d021bab2df20
+PKG_MD5SUM:= 13c6fd7ce320886adc371c81a3e23f07
PKG_DESCR:= A very configurable FTP server
PKG_SECTION:= www
PKG_URL:= http://www.proftpd.org/
PKG_SITES:= ftp://ftp.proftpd.org/distrib/source/
PKG_NOPARALLEL:= 1
+PKG_LIBC_DEPENDS:= eglibc glibc
+PKG_CFLINE_PROFTPD:= depends on ADK_BROKEN
+
PKG_FLAVOURS_PROFTPD:= WITH_FTPUSERS
PKGFD_WITH_FTPUSERS:= install /etc/ftpusers along with proftpd
@@ -23,6 +26,7 @@ $(eval $(call PKG_template,PROFTPD,proftpd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_D
CONFIGURE_ARGS+= --disable-cap
CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes \
ac_cv_func_setgrent_void=yes
+TARGET_LDFLAGS+= -ltinfo
proftpd-install:
$(INSTALL_DIR) $(IDIR_PROFTPD)/etc
diff --git a/package/ptunnel/Makefile b/package/ptunnel/Makefile
index f4186c626..ea564a5fd 100644
--- a/package/ptunnel/Makefile
+++ b/package/ptunnel/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= ptunnel
PKG_VERSION:= 0.61
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= b45f73875f2af48f101816672f83a5fe
PKG_DESCR:= Tunnel TCP connections over ICMP packets
PKG_SECTION:= net/security
diff --git a/package/ptunnel/patches/patch-ptunnel_c b/package/ptunnel/patches/patch-ptunnel_c
new file mode 100644
index 000000000..40fd0a76f
--- /dev/null
+++ b/package/ptunnel/patches/patch-ptunnel_c
@@ -0,0 +1,11 @@
+--- ptunnel-0.61.orig/ptunnel.c 2005-07-13 11:57:27.000000000 +0200
++++ ptunnel-0.61/ptunnel.c 2013-12-28 18:21:38.000000000 +0100
+@@ -43,7 +43,7 @@
+ #include "ptunnel.h"
+ #include <pthread.h>
+ #include <stdarg.h>
+-#include <sys/unistd.h>
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
diff --git a/package/ptunnel/patches/patch-ptunnel_h b/package/ptunnel/patches/patch-ptunnel_h
new file mode 100644
index 000000000..85d8caebb
--- /dev/null
+++ b/package/ptunnel/patches/patch-ptunnel_h
@@ -0,0 +1,11 @@
+--- ptunnel-0.61.orig/ptunnel.h 2005-07-13 11:57:27.000000000 +0200
++++ ptunnel-0.61/ptunnel.h 2013-12-28 18:22:22.000000000 +0100
+@@ -44,7 +44,7 @@
+ #define PING_TUNNEL_H
+
+ // Includes
+- #include <sys/unistd.h>
++ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
diff --git a/package/quagga/Makefile b/package/quagga/Makefile
index 99de25ba4..59135aeb0 100644
--- a/package/quagga/Makefile
+++ b/package/quagga/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= quagga
-PKG_VERSION:= 0.99.17
+PKG_VERSION:= 0.99.22.4
PKG_RELEASE:= 1
-PKG_MD5SUM:= 37b9022adca04b03863d2d79787e643f
+PKG_MD5SUM:= 27ef98abb1820bae19eb71f631a10853
PKG_DESCR:= A routing software package
PKG_SECTION:= route
PKG_BUILDDEP:= readline ncurses
diff --git a/package/quagga/patches/patch-configure b/package/quagga/patches/patch-configure
deleted file mode 100644
index 3780d661a..000000000
--- a/package/quagga/patches/patch-configure
+++ /dev/null
@@ -1,20 +0,0 @@
---- quagga-0.99.17.orig/configure 2010-08-19 11:43:02.000000000 +0200
-+++ quagga-0.99.17/configure 2011-02-16 22:51:51.000000000 +0100
-@@ -14188,7 +14188,7 @@ if test "${ac_cv_func_malloc_0_nonnull+s
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
-- ac_cv_func_malloc_0_nonnull=no
-+ ac_cv_func_malloc_0_nonnull=yes
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
-@@ -14640,7 +14640,7 @@ if test "${ac_cv_func_realloc_0_nonnull+
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
-- ac_cv_func_realloc_0_nonnull=no
-+ ac_cv_func_realloc_0_nonnull=yes
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
diff --git a/package/quagga/patches/patch-lib_queue_h b/package/quagga/patches/patch-lib_queue_h
new file mode 100644
index 000000000..2a2ce12ac
--- /dev/null
+++ b/package/quagga/patches/patch-lib_queue_h
@@ -0,0 +1,11 @@
+--- quagga-0.99.22.4.orig/lib/queue.h 2013-08-04 15:01:38.000000000 +0200
++++ quagga-0.99.22.4/lib/queue.h 2013-12-30 19:57:25.000000000 +0100
+@@ -33,8 +33,6 @@
+ #ifndef _SYS_QUEUE_H_
+ #define _SYS_QUEUE_H_
+
+-#include <sys/cdefs.h>
+-
+ /*
+ * This file defines four types of data structures: singly-linked lists,
+ * singly-linked tail queues, lists and tail queues.
diff --git a/package/quagga/patches/patch-lib_sockopt_c b/package/quagga/patches/patch-lib_sockopt_c
new file mode 100644
index 000000000..c33333766
--- /dev/null
+++ b/package/quagga/patches/patch-lib_sockopt_c
@@ -0,0 +1,23 @@
+--- quagga-0.99.22.4.orig/lib/sockopt.c 2013-04-14 14:46:07.000000000 +0200
++++ quagga-0.99.22.4/lib/sockopt.c 2013-12-30 19:56:54.000000000 +0100
+@@ -24,6 +24,20 @@
+ #include "sockopt.h"
+ #include "sockunion.h"
+
++#if !defined(__GLIBC__)
++/* For TCP_MD5SIG socket option. */
++#define TCP_MD5SIG_MAXKEYLEN 80
++
++struct tcp_md5sig
++{
++ struct sockaddr_storage tcpm_addr; /* Address associated. */
++ u_int16_t __tcpm_pad1; /* Zero. */
++ u_int16_t tcpm_keylen; /* Key length. */
++ u_int32_t __tcpm_pad2; /* Zero. */
++ u_int8_t tcpm_key[TCP_MD5SIG_MAXKEYLEN]; /* Key (binary). */
++};
++#endif
++
+ int
+ setsockopt_so_recvbuf (int sock, int size)
+ {
diff --git a/package/quagga/patches/patch-lib_zebra_h b/package/quagga/patches/patch-lib_zebra_h
new file mode 100644
index 000000000..160b4cc20
--- /dev/null
+++ b/package/quagga/patches/patch-lib_zebra_h
@@ -0,0 +1,10 @@
+--- quagga-0.99.22.4.orig/lib/zebra.h 2013-09-02 14:53:04.000000000 +0200
++++ quagga-0.99.22.4/lib/zebra.h 2013-12-30 19:58:14.000000000 +0100
+@@ -51,7 +51,6 @@ typedef int socklen_t;
+ #ifdef HAVE_STROPTS_H
+ #include <stropts.h>
+ #endif /* HAVE_STROPTS_H */
+-#include <sys/fcntl.h>
+ #ifdef HAVE_SYS_SELECT_H
+ #include <sys/select.h>
+ #endif /* HAVE_SYS_SELECT_H */
diff --git a/package/quagga/patches/patch-ltmain_sh b/package/quagga/patches/patch-ltmain_sh
deleted file mode 100644
index c6711472d..000000000
--- a/package/quagga/patches/patch-ltmain_sh
+++ /dev/null
@@ -1,11 +0,0 @@
---- quagga-0.99.17.orig/ltmain.sh 2010-08-19 11:43:02.000000000 +0200
-+++ quagga-0.99.17/ltmain.sh 2011-01-16 22:05:52.000000000 +0100
-@@ -4765,7 +4765,7 @@ func_mode_link ()
- # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
- # @file GCC response files
- -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
-+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto)
- func_quote_for_eval "$arg"
- arg="$func_quote_for_eval_result"
- func_append compile_command " $arg"
diff --git a/package/quagga/patches/patch-redhat_quagga_spec b/package/quagga/patches/patch-redhat_quagga_spec
deleted file mode 100644
index bf00ca130..000000000
--- a/package/quagga/patches/patch-redhat_quagga_spec
+++ /dev/null
@@ -1,11 +0,0 @@
---- quagga-0.99.17.orig/redhat/quagga.spec 2010-08-19 11:44:45.000000000 +0200
-+++ quagga-0.99.17/redhat/quagga.spec 2011-01-16 22:05:02.000000000 +0100
-@@ -90,7 +90,7 @@
- Summary: Routing daemon
- Name: quagga
- Version: 0.99.17
--Release: 20100819%{release_rev}
-+Release: 20110116%{release_rev}
- License: GPL
- Group: System Environment/Daemons
- Source0: http://www.quagga.net/snapshots/cvs/%{name}-%{version}.tar.gz
diff --git a/package/quagga/patches/patch-vtysh_extract_pl b/package/quagga/patches/patch-vtysh_extract_pl
deleted file mode 100644
index dc3229fd2..000000000
--- a/package/quagga/patches/patch-vtysh_extract_pl
+++ /dev/null
@@ -1,8 +0,0 @@
---- quagga-0.99.17.orig/vtysh/extract.pl 2010-08-19 11:44:45.000000000 +0200
-+++ quagga-0.99.17/vtysh/extract.pl 2011-01-16 22:05:03.000000000 +0100
-@@ -1,4 +1,4 @@
--#!
-+#! /opt/local/bin/perl
- ##
- ## vtysh/extract.pl. Generated from extract.pl.in by configure.
- ##
diff --git a/package/radvd/Makefile b/package/radvd/Makefile
index 4cb7d2c0a..1dd5b6ccf 100644
--- a/package/radvd/Makefile
+++ b/package/radvd/Makefile
@@ -4,13 +4,13 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= radvd
-PKG_VERSION:= 1.9.1
+PKG_VERSION:= 1.9.7
PKG_RELEASE:= 1
-PKG_MD5SUM:= e807ad7e9a76d46b6133df391385cd31
+PKG_MD5SUM:= 85141c7dc7d35e5499e16052742f1040
PKG_DESCR:= Routing Advertisement Daemon for IPv6
PKG_SECTION:= ipv6
PKG_DEPENDS:= kmod-ipv6 libdaemon
-PKG_BUILDDEP:= libdaemon
+PKG_BUILDDEP:= autotool libdaemon
PKG_URL:= http://www.litech.org/radvd/
PKG_SITES:= http://v6web.litech.org/radvd/dist/
@@ -20,6 +20,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,RADVD,radvd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+AUTOTOOL_STYLE:= autoreconf
CONFIGURE_ARGS+= --with-configfile=/etc/radvd.conf \
--with-logfile=/var/log/radvd.log \
--with-pidfile=/var/run/radvd.pid
diff --git a/package/radvd/patches/patch-configure_ac b/package/radvd/patches/patch-configure_ac
new file mode 100644
index 000000000..a20e387ac
--- /dev/null
+++ b/package/radvd/patches/patch-configure_ac
@@ -0,0 +1,10 @@
+--- radvd-1.9.7.orig/configure.ac 2013-11-17 16:41:26.000000000 +0100
++++ radvd-1.9.7/configure.ac 2014-01-04 18:30:07.000000000 +0100
+@@ -151,7 +151,6 @@ AC_CHECK_HEADERS( \
+ net/if_types.h \
+ sys/param.h \
+ sys/sockio.h \
+- sys/sysctl.h \
+ sys/time.h \
+ time.h \
+ )
diff --git a/package/rdate/Makefile b/package/rdate/Makefile
index 140857170..619b5ad6a 100644
--- a/package/rdate/Makefile
+++ b/package/rdate/Makefile
@@ -18,6 +18,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,RDATE,rdate,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CONFIG_STYLE:= manual
+TARGET_CPPFLAGS+= -D_GNU_SOURCE
MAKE_FILE= GNUmakefile
rdate-install:
diff --git a/package/rdate/patches/patch-ntp_c b/package/rdate/patches/patch-ntp_c
new file mode 100644
index 000000000..d36d421cd
--- /dev/null
+++ b/package/rdate/patches/patch-ntp_c
@@ -0,0 +1,50 @@
+--- rdate.orig/ntp.c 2007-08-17 17:03:24.000000000 +0200
++++ rdate/ntp.c 2013-12-30 23:07:06.000000000 +0100
+@@ -37,6 +37,7 @@
+ #include <sys/time.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
++#include <sys/types.h>
+
+ #include <ctype.h>
+ #include <err.h>
+@@ -100,9 +101,9 @@ struct ntp_data {
+ double transmit;
+ double current;
+ double originate;
+- u_int64_t xmitck;
+- u_int64_t recvck;
+- u_int32_t refid;
++ uint64_t xmitck;
++ uint64_t recvck;
++ uint32_t refid;
+ u_char status;
+ u_char version;
+ u_char mode;
+@@ -268,7 +269,7 @@ write_packet(int fd, struct ntp_data *da
+
+ packet[0] = ((nver ? nver : NTP_VERSION) << 3) | (NTP_MODE_CLIENT);
+
+- data->xmitck = (u_int64_t)arc4random() << 32 | arc4random();
++ data->xmitck = (uint64_t)arc4random() << 32 | arc4random();
+
+ /*
+ * Send out a random 64-bit number as our transmit time. The NTP
+@@ -286,7 +287,7 @@ write_packet(int fd, struct ntp_data *da
+ * the transmit field intelligible.
+ */
+
+- memcpy(packet + NTP_TRANSMIT, &data->xmitck, sizeof (u_int64_t));
++ memcpy(packet + NTP_TRANSMIT, &data->xmitck, sizeof (uint64_t));
+
+ data->originate = current_time(JAN_1970);
+
+@@ -437,7 +438,7 @@ unpack_ntp(struct ntp_data *data, u_char
+ data->transmit = d / NTP_SCALE;
+
+ /* See write_packet for why this isn't an endian problem. */
+- memcpy(&data->recvck, packet + NTP_ORIGINATE, sizeof (u_int64_t));
++ memcpy(&data->recvck, packet + NTP_ORIGINATE, sizeof (uint64_t));
+ }
+
+ /*
diff --git a/package/rdate/patches/patch-rdate_h b/package/rdate/patches/patch-rdate_h
new file mode 100644
index 000000000..33c4f1b3a
--- /dev/null
+++ b/package/rdate/patches/patch-rdate_h
@@ -0,0 +1,11 @@
+--- rdate.orig/rdate.h 2007-08-16 12:38:52.000000000 +0200
++++ rdate/rdate.h 2013-12-30 23:00:23.000000000 +0100
+@@ -10,7 +10,7 @@
+ #endif
+
+ #ifdef EXT_A4R
+-extern u_int32_t arc4random(void);
++extern uint32_t arc4random(void);
+ #endif
+
+ #ifdef __MirBSD__
diff --git a/package/rdate/patches/patch-rfc868time_c b/package/rdate/patches/patch-rfc868time_c
new file mode 100644
index 000000000..b095278ba
--- /dev/null
+++ b/package/rdate/patches/patch-rfc868time_c
@@ -0,0 +1,11 @@
+--- rdate.orig/rfc868time.c 2007-08-11 01:52:47.000000000 +0200
++++ rdate/rfc868time.c 2013-12-30 23:07:29.000000000 +0100
+@@ -70,7 +70,7 @@ rfc868time_client (const char *hostname,
+ {
+ struct addrinfo hints, *res0, *res;
+ struct timeval old;
+- u_int32_t tim; /* RFC 868 states clearly this is an uint32 */
++ uint32_t tim; /* RFC 868 states clearly this is an uint32 */
+ int s;
+ int error;
+
diff --git a/package/rdesktop/Makefile b/package/rdesktop/Makefile
index 18b8169d1..ebf30cf03 100644
--- a/package/rdesktop/Makefile
+++ b/package/rdesktop/Makefile
@@ -4,12 +4,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= rdesktop
-PKG_VERSION:= 1.6.0
+PKG_VERSION:= 1.8.1
PKG_RELEASE:= 1
-PKG_MD5SUM:= c6fcbed7f0ad7e60ac5fcb2d324d8b16
+PKG_MD5SUM:= f5382c5c85b0d2cc88b9b1aa9bbf1356
PKG_DESCR:= client for Windows Terminal Services
PKG_SECTION:= net
-PKG_BUILDDEP:= libiconv-tiny openssl
+PKG_DEPENDS:= libsamplerate libopenssl alsa-lib libao
+PKG_BUILDDEP:= libiconv-tiny openssl libsamplerate alsa-lib libao
PKG_URL:= http://www.rdesktop.org/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=rdesktop/}
@@ -17,7 +18,10 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,RDESKTOP,rdesktop,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-CONFIGURE_ARGS+= --with-openssl="${STAGING_TARGET_DIR}/usr"
+TARGET_CFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
+CONFIGURE_ARGS+= --with-openssl="${STAGING_TARGET_DIR}/usr" \
+ --disable-smartcard \
+ --disable-credssp
rdesktop-install:
$(INSTALL_DIR) $(IDIR_RDESKTOP)/usr/bin
diff --git a/package/rp-pppoe/Makefile b/package/rp-pppoe/Makefile
index 3c64eef20..75ed5fee9 100644
--- a/package/rp-pppoe/Makefile
+++ b/package/rp-pppoe/Makefile
@@ -13,6 +13,7 @@ PKG_DEPENDS:= ppp
PKG_URL:= http://www.roaringpenguin.com/
PKG_SITES:= http://www.roaringpenguin.com/files/download/
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
PKG_SUBPKGS:= PPPOE_CLIENT PPPOE_RELAY PPPOE_SERVER PPPOE_SNIFF
WRKSRC= ${WRKDIST}/src
diff --git a/package/rpcbind/Makefile b/package/rpcbind/Makefile
index f7aae1d38..7a8bdb15f 100644
--- a/package/rpcbind/Makefile
+++ b/package/rpcbind/Makefile
@@ -14,6 +14,8 @@ PKG_BUILDDEP:= libtirpc autotool
PKG_URL:= http://sourceforge.net/projects/rpcbind/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=rpcbind/}
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
include $(TOPDIR)/mk/package.mk
diff --git a/package/rtmpdump/Makefile b/package/rtmpdump/Makefile
new file mode 100644
index 000000000..c85f823fd
--- /dev/null
+++ b/package/rtmpdump/Makefile
@@ -0,0 +1,40 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= rtmpdump
+PKG_VERSION:= 2.4
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 61509a2ae8987691f1fa28175461be96
+PKG_DESCR:= toolkit for RTMP streams
+PKG_DEPENDS:= librtmp zlib libopenssl
+PKG_BUILDDEP:= openssl zlib
+PKG_SECTION:= multimedia
+PKG_URL:= http://rtmpdump.mplayerhq.hu/
+PKG_SITES:= http://www.openadk.org/distfiles
+PKG_LIBNAME:= librtmp
+PKG_OPTS:= dev
+
+PKG_SUBPKGS:= RTMPDUMP LIBRTMP
+PKGSD_LIBRTMP:= library for RTMP streams
+PKGSC_LIBRTMP:= libs
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,RTMPDUMP,rtmpdump,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBRTMP,librtmp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBRTMP},${PKGSC_LIBRTMP}))
+
+CONFIG_STYLE:= manual
+
+rtmpdump-install:
+ $(INSTALL_DIR) $(IDIR_RTMPDUMP)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/rtmpdump \
+ $(IDIR_RTMPDUMP)/usr/bin
+
+librtmp-install:
+ $(INSTALL_DIR) $(IDIR_LIBRTMP)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/librtmp*so.* \
+ $(IDIR_LIBRTMP)/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/rtmpdump/patches/patch-Makefile b/package/rtmpdump/patches/patch-Makefile
new file mode 100644
index 000000000..64f950750
--- /dev/null
+++ b/package/rtmpdump/patches/patch-Makefile
@@ -0,0 +1,28 @@
+--- rtmpdump-2.4.orig/Makefile 2013-12-15 14:24:48.000000000 +0100
++++ rtmpdump-2.4/Makefile 2013-12-15 15:18:27.000000000 +0100
+@@ -1,9 +1,9 @@
+ VERSION=v2.4
+
+-prefix=/usr/local
++prefix=/usr
+
+-CC=$(CROSS_COMPILE)gcc
+-LD=$(CROSS_COMPILE)ld
++CC?=$(CROSS)gcc
++LD?=$(CROSS)ld
+
+ SYS=posix
+ #SYS=mingw
+@@ -21,8 +21,10 @@ CRYPTO_DEF=$(DEF_$(CRYPTO))
+
+ DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
+ OPT=-O2
+-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
+-LDFLAGS=-Wall $(XLDFLAGS)
++CFLAGS?=
++CFLAGS+=-Wall $(XCFLAGS) $(INC) $(DEF)
++LDFLAGS?=
++LDFLAGS+=-Wall $(XLDFLAGS)
+
+ bindir=$(prefix)/bin
+ sbindir=$(prefix)/sbin
diff --git a/package/rtmpdump/patches/patch-librtmp_Makefile b/package/rtmpdump/patches/patch-librtmp_Makefile
new file mode 100644
index 000000000..8efd7ecb8
--- /dev/null
+++ b/package/rtmpdump/patches/patch-librtmp_Makefile
@@ -0,0 +1,36 @@
+--- rtmpdump-2.4.orig/librtmp/Makefile 2013-12-15 14:24:48.000000000 +0100
++++ rtmpdump-2.4/librtmp/Makefile 2013-12-15 15:20:13.000000000 +0100
+@@ -1,6 +1,6 @@
+ VERSION=v2.4
+
+-prefix=/usr/local
++prefix=/usr
+
+ incdir=$(prefix)/include/librtmp
+ bindir=$(prefix)/bin
+@@ -11,9 +11,9 @@ INCDIR=$(DESTDIR)$(incdir)
+ LIBDIR=$(DESTDIR)$(libdir)
+ MANDIR=$(DESTDIR)$(mandir)
+
+-CC=$(CROSS_COMPILE)gcc
+-LD=$(CROSS_COMPILE)ld
+-AR=$(CROSS_COMPILE)ar
++CC?=$(CROSS_COMPILE)gcc
++LD?=$(CROSS_COMPILE)ld
++AR?=$(CROSS_COMPILE)ar
+
+ SYS=posix
+ CRYPTO=OPENSSL
+@@ -74,8 +74,10 @@ SO_INST=$(SOINST_$(SHARED))
+
+ DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
+ OPT=-O2
+-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
+-LDFLAGS=$(XLDFLAGS)
++CFLAGS?=
++CFLAGS+=-Wall $(XCFLAGS) $(INC) $(DEF) $(SO_DEF)
++LDFLAGS?=
++LDFLAGS+=$(XLDFLAGS)
+
+
+ OBJS=rtmp.o log.o amf.o hashswf.o parseurl.o
diff --git a/package/samba/Makefile b/package/samba/Makefile
index 7d04d4ee2..5c090d1b8 100644
--- a/package/samba/Makefile
+++ b/package/samba/Makefile
@@ -62,8 +62,6 @@ samba-install:
${IDIR_SAMBA}/usr/lib/samba/charset
${INSTALL_DATA} ./files/smb.conf ${IDIR_SAMBA}/etc/samba
${INSTALL_BIN} ${WRKINST}/usr/sbin/{nmbd,smbd} ${IDIR_SAMBA}/usr/sbin
- ${CP} ${WRKINST}/usr/lib/samba/{libsmbclient,libsmbsharemodes,libnetapi}.so* \
- ${IDIR_SAMBA}/usr/lib/samba
${CP} ${WRKINST}/usr/lib/samba/vfs/*.so* ${IDIR_SAMBA}/usr/lib/samba/vfs
${INSTALL_DATA} ${WRKINST}/usr/lib/samba/*.dat ${IDIR_SAMBA}/usr/lib/samba
@@ -79,6 +77,8 @@ samba-client-install:
samba-lib-install:
${INSTALL_DIR} ${IDIR_SAMBA_LIB}/usr/lib/samba
+ ${CP} ${WRKINST}/usr/lib/samba/{libsmbclient,libsmbsharemodes,libnetapi}.so* \
+ ${IDIR_SAMBA}/usr/lib/samba
$(CP) ${WRKINST}/usr/lib/samba/{libtalloc,libtdb,libtevent}.* \
${IDIR_SAMBA_LIB}/usr/lib/samba
diff --git a/package/scanlogd/Makefile b/package/scanlogd/Makefile
index 312130771..95d3b28b1 100644
--- a/package/scanlogd/Makefile
+++ b/package/scanlogd/Makefile
@@ -15,6 +15,7 @@ PKG_URL:= http://www.openwall.com/scanlogd/
PKG_SITES:= http://www.openwall.com/scanlogd/
PKG_ARCH_DEPENDS:= !arm
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
include ${TOPDIR}/mk/package.mk
diff --git a/package/screen/Makefile b/package/screen/Makefile
index 244877847..e448c3b29 100644
--- a/package/screen/Makefile
+++ b/package/screen/Makefile
@@ -18,6 +18,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,SCREEN,screen,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_LDFLAGS+= -ltinfo
CONFIGURE_ENV+= $(foreach flag,rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime,ac_cv_func_${flag}=yes)
CONFIGURE_ARGS+= --with-sys-screenrc=/etc/screenrc
diff --git a/package/scsi-spin/src/scsi-spin.c b/package/scsi-spin/src/scsi-spin.c
index 443934c78..b92347ff4 100644
--- a/package/scsi-spin/src/scsi-spin.c
+++ b/package/scsi-spin/src/scsi-spin.c
@@ -31,6 +31,7 @@
#include <linux/major.h>
#include <sys/sysmacros.h>
#include <sys/stat.h>
+#include <sys/types.h>
#define SCSI_DISK_MAJOR(M) ((M) == SCSI_DISK0_MAJOR || \
((M) >= SCSI_DISK1_MAJOR && \
@@ -203,8 +204,8 @@ is_mounted( const char* device, int use_proc, int devmaj, int devmin )
struct stat devstat;
int mounted = 0;
struct {
- __uint32_t dev_id;
- __uint32_t host_unique_id;
+ uint32_t dev_id;
+ uint32_t host_unique_id;
} scsi_dev_id, scsi_id;
FILE *mtab;
char *mtabfile = use_proc ? "/proc/mounts" : "/etc/mtab";
diff --git a/package/sdl-image/Makefile b/package/sdl-image/Makefile
index 7aa1d1930..3f5e2b06d 100644
--- a/package/sdl-image/Makefile
+++ b/package/sdl-image/Makefile
@@ -10,7 +10,7 @@ PKG_MD5SUM:= 6c06584b31559e2b59f2b982d0d1f628
PKG_DESCR:= Simple DirectMedia Layer
PKG_SECTION:= libs
PKG_DEPENDS:= libpng libtiff libjpeg libsdl
-PKG_BUILDDEP:= libpng libtiff jpeg sdl
+PKG_BUILDDEP:= sdl-image-host libpng libtiff jpeg sdl
PKG_URL:= http://www.libsdl.org/
PKG_SITES:= http://www.libsdl.org/projects/SDL_image/release/
PKG_NEED_CXX:= 1
@@ -20,10 +20,13 @@ PKG_OPTS:= dev
DISTFILES:= SDL_image-${PKG_VERSION}.tar.gz
WRKDIST= ${WRKDIR}/SDL_image-${PKG_VERSION}
+include $(TOPDIR)/mk/host.mk
include $(TOPDIR)/mk/package.mk
+$(eval $(call HOST_template,LIBSDL_IMAGE,libsdl-image,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,LIBSDL_IMAGE,libsdl-image,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+HOST_STYLE:= auto
CONFIGURE_ARGS+= --enable-png \
--enable-jpg \
--enable-bmp \
@@ -33,4 +36,5 @@ libsdl-image-install:
$(INSTALL_DIR) $(IDIR_LIBSDL_IMAGE)/usr/lib
$(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL_IMAGE)/usr/lib
+include ${TOPDIR}/mk/host-bottom.mk
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/sdl/Makefile b/package/sdl/Makefile
index bb20aad1d..3a76249ae 100644
--- a/package/sdl/Makefile
+++ b/package/sdl/Makefile
@@ -10,7 +10,7 @@ PKG_MD5SUM:= e52086d1b508fa0b76c52ee30b55bec4
PKG_DESCR:= Simple DirectMedia Layer
PKG_SECTION:= libs
PKG_DEPENDS:= libusb alsa-lib libpthread libx11 libxext
-PKG_BUILDDEP:= libusb alsa-lib libX11 libXext
+PKG_BUILDDEP:= sdl-host libusb alsa-lib libX11 libXext
PKG_URL:= http://www.libsdl.org/
PKG_SITES:= http://www.libsdl.org/release/
PKG_LIBNAME:= libsdl
@@ -24,10 +24,14 @@ PKGFB_WITH_TSLIB:= tslib
DISTFILES:= SDL-${PKG_VERSION}.tar.gz
WRKDIST= ${WRKDIR}/SDL-${PKG_VERSION}
+include $(TOPDIR)/mk/host.mk
include $(TOPDIR)/mk/package.mk
+$(eval $(call HOST_template,LIBSDL,libsdl,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,LIBSDL,libsdl,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+HOST_STYLE:= auto
+
ifeq ($(ADK_PACKAGE_SDL_WITH_TSLIB),y)
CONFIGURE_ARGS+= --enable-input-tslib
endif
@@ -45,4 +49,5 @@ libsdl-install:
$(INSTALL_DIR) $(IDIR_LIBSDL)/usr/lib
$(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL)/usr/lib
+include ${TOPDIR}/mk/host-bottom.mk
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/section.lst b/package/section.lst
index b4aa58f3b..795840988 100644
--- a/package/section.lst
+++ b/package/section.lst
@@ -1,5 +1,4 @@
base Base System
-bluetooth Bluetooth
browser Browser / Editor / Pager
editor Browser / Editor / Pager
pager Browser / Editor / Pager
diff --git a/package/snort/Makefile b/package/snort/Makefile
index 089daab85..07f333207 100644
--- a/package/snort/Makefile
+++ b/package/snort/Makefile
@@ -15,6 +15,8 @@ PKG_URL:= http://www.snort.org/
PKG_SITES:= http://openadk.org/distfiles/
PKG_NOPARALLEL:= 1
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,SNORT,snort,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
diff --git a/package/socat/Makefile b/package/socat/Makefile
index de459c710..9f9d6d701 100644
--- a/package/socat/Makefile
+++ b/package/socat/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= socat
-PKG_VERSION:= 1.7.2.0
-PKG_RELEASE:= 1
-PKG_MD5SUM:= 0565dd58800e4c50534c61bbb453b771
+PKG_VERSION:= 1.7.2.2
+PKG_RELEASE:= 2
+PKG_MD5SUM:= fe70c821a104378a834c3ed1b5971e54
PKG_DESCR:= A multipurpose relay (SOcket CAT)
PKG_SECTION:= net/misc
PKG_DEPENDS:= libpthread libopenssl
diff --git a/package/socat/patches/501-honor_ldflags.patch b/package/socat/patches/501-honor_ldflags.patch
index a41a929f1..87c777067 100644
--- a/package/socat/patches/501-honor_ldflags.patch
+++ b/package/socat/patches/501-honor_ldflags.patch
@@ -1,7 +1,7 @@
diff -ruN socat-1.4-old/Makefile.in socat-1.4-new/Makefile.in
---- socat-1.4-old/Makefile.in 2005-09-10 22:09:11.000000000 +0200
-+++ socat-1.4-new/Makefile.in 2005-10-08 17:12:45.000000000 +0200
-@@ -36,7 +36,8 @@
+--- socat-1.7.2.2.orig/Makefile.in 2011-12-06 08:45:03.000000000 +0100
++++ socat-1.7.2.2/Makefile.in 2013-12-24 16:37:21.000000000 +0100
+@@ -38,7 +38,8 @@ INSTALL = @INSTALL@
#0 CFLAGS = @CFLAGS@ $(CCOPTS) $(DEFS) $(INCLS)
CFLAGS = @CFLAGS@ $(CCOPTS) $(DEFS) $(CPPFLAGS)
diff --git a/package/socat/patches/patch-sysincludes_h b/package/socat/patches/patch-sysincludes_h
new file mode 100644
index 000000000..59387a6ad
--- /dev/null
+++ b/package/socat/patches/patch-sysincludes_h
@@ -0,0 +1,14 @@
+--- socat-1.7.2.2.orig/sysincludes.h 2011-12-06 08:45:03.000000000 +0100
++++ socat-1.7.2.2/sysincludes.h 2013-12-25 15:43:19.000000000 +0100
+@@ -136,9 +136,11 @@
+ #if HAVE_NETINET_IF_ETHER_H
+ #include <netinet/if_ether.h>
+ #endif
++#if defined(__GLIBC__)
+ #if HAVE_LINUX_IF_TUN_H
+ #include <linux/if_tun.h>
+ #endif
++#endif
+
+ #if HAVE_TERMIOS_H && _WITH_TERMIOS
+ #include <termios.h>
diff --git a/package/socat/patches/patch-xio-ip4_c b/package/socat/patches/patch-xio-ip4_c
new file mode 100644
index 000000000..15d5bd86b
--- /dev/null
+++ b/package/socat/patches/patch-xio-ip4_c
@@ -0,0 +1,12 @@
+--- socat-1.7.2.2.orig/xio-ip4.c 2010-10-06 09:25:30.000000000 +0200
++++ socat-1.7.2.2/xio-ip4.c 2013-12-25 15:46:30.000000000 +0100
+@@ -13,6 +13,9 @@
+ #include "xio-ip.h"
+ #include "xio-ip4.h"
+
++#if !defined(__GLIBC__)
++# define NETDB_INTERNAL -1
++#endif
+
+ int xioparsenetwork_ip4(const char *rangename, struct xiorange *range) {
+ struct hostent *maskaddr;
diff --git a/package/socat/patches/patch-xio-proxy_c b/package/socat/patches/patch-xio-proxy_c
new file mode 100644
index 000000000..f378841cd
--- /dev/null
+++ b/package/socat/patches/patch-xio-proxy_c
@@ -0,0 +1,12 @@
+--- socat-1.7.2.2.orig/xio-proxy.c 2011-12-06 08:45:03.000000000 +0100
++++ socat-1.7.2.2/xio-proxy.c 2013-12-25 15:47:38.000000000 +0100
+@@ -16,6 +16,9 @@
+
+ #include "xio-proxy.h"
+
++#if !defined(__GLIBC__)
++# define NETDB_INTERNAL -1
++#endif
+
+ #define PROXYPORT "8080"
+
diff --git a/package/socat/patches/patch-xio-tun_c b/package/socat/patches/patch-xio-tun_c
new file mode 100644
index 000000000..2ad23eb21
--- /dev/null
+++ b/package/socat/patches/patch-xio-tun_c
@@ -0,0 +1,15 @@
+--- socat-1.7.2.2.orig/xio-tun.c 2011-12-06 08:45:03.000000000 +0100
++++ socat-1.7.2.2/xio-tun.c 2013-12-25 15:51:46.000000000 +0100
+@@ -14,6 +14,12 @@
+
+ #include "xio-tun.h"
+
++#if !defined(__GLIBC__)
++#define IFF_TUN 0x0001
++#define IFF_TAP 0x0002
++#define IFF_NO_PI 0x1000
++#define TUNSETIFF _IOW('T', 202, int)
++#endif
+
+ static int xioopen_tun(int argc, const char *argv[], struct opt *opts, int xioflags, xiofile_t *fd, unsigned groups, int dummy1, int dummy2, int dummy3);
+
diff --git a/package/squid/Makefile b/package/squid/Makefile
index 205bd49da..a10de02ac 100644
--- a/package/squid/Makefile
+++ b/package/squid/Makefile
@@ -4,15 +4,15 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= squid
-PKG_VERSION:= 3.3.11
+PKG_VERSION:= 3.4.1
PKG_RELEASE:= 1
-PKG_MD5SUM:= 1db9aa98a70e501ae8280bc5cfa33140
+PKG_MD5SUM:= da9f30aeff856bc8348494da2730f94e
PKG_DESCR:= squid web and cache proxy
PKG_SECTION:= proxy
PKG_DEPENDS:= libopenssl libpthread libstdcxx libltdl
PKG_BUILDDEP:= openssl libtool
PKG_URL:= http://www.squid-cache.org/
-PKG_SITES:= http://www.squid-cache.org/Versions/v3/3.3/
+PKG_SITES:= http://www.squid-cache.org/Versions/v3/3.4/
PKG_MULTI:= 1
PKG_NEED_CXX:= 1
diff --git a/package/ssltunnel/Makefile b/package/ssltunnel/Makefile
index 615d67ee0..770268518 100644
--- a/package/ssltunnel/Makefile
+++ b/package/ssltunnel/Makefile
@@ -13,6 +13,8 @@ PKG_DEPENDS:= libopenssl ppp
PKG_BUILDDEP:= openssl ppp
PKG_SITES:= http://www.hsc.fr/ressources/outils/ssltunnel/download/
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,SSLTUNNEL,ssltunnel,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
diff --git a/package/strongswan/Makefile b/package/strongswan/Makefile
index 902882f67..f645ff403 100644
--- a/package/strongswan/Makefile
+++ b/package/strongswan/Makefile
@@ -4,9 +4,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= strongswan
-PKG_VERSION:= 5.0.0
+PKG_VERSION:= 5.1.1
PKG_RELEASE:= 1
-PKG_MD5SUM:= 1d7bccb50f01020bb04d06e9755e0eec
+PKG_MD5SUM:= f624ab041c306af0f5f57c927e9ea2e4
PKG_DESCR:= IPsec software
PKG_SECTION:= net/security
PKG_DEPENDS:= ip libpthread kmod-net-key kmod-xfrm-user
@@ -18,6 +18,8 @@ PKG_DEPENDS+= kmod-crypto-hmac kmod-crypto-cbc kmod-crypto-authenc
PKG_URL:= http://strongswan.org/index.htm
PKG_SITES:= http://download.strongswan.org/
+PKG_LIBC_DEPENDS:= uclibc eglibc glibc
+
PKG_CHOICES_STRONGSWAN:=WITH_GMP WITH_OPENSSL WITH_GNUTLS
PKGCD_WITH_GMP:= use GMP for crypto
PKGCS_WITH_GMP:= libgmp
diff --git a/package/swig/Makefile b/package/swig/Makefile
new file mode 100644
index 000000000..6bc9f2b05
--- /dev/null
+++ b/package/swig/Makefile
@@ -0,0 +1,26 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= swig
+PKG_VERSION:= 2.0.11
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 291ba57c0acd218da0b0916c280dcbae
+PKG_DESCR:= swig utility
+PKG_SECTION:= lang
+PKG_URL:= http://www.swig.org/
+PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=swig/}
+
+PKG_ARCH_DEPENDS:= native
+
+include $(TOPDIR)/mk/host.mk
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call HOST_template,SWIG,swig,$(PKG_VERSION)-${PKG_RELEASE}))
+
+HOST_STYLE:= auto
+HOST_ALL_TARGET:= swig
+
+include ${TOPDIR}/mk/host-bottom.mk
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/systemd/Makefile b/package/systemd/Makefile
index 52c45504f..7094d3a4b 100644
--- a/package/systemd/Makefile
+++ b/package/systemd/Makefile
@@ -5,18 +5,19 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= systemd
PKG_VERSION:= 208
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= df64550d92afbffb4f67a434193ee165
PKG_DESCR:= System and Service Manager
PKG_SECTION:= utils
PKG_DEPENDS:= libblkid libcap
-PKG_BUILDDEP:= usbutils glib kmod util-linux libcap
+PKG_BUILDDEP:= autotool usbutils glib kmod util-linux libcap
+PKG_BUILDDEP+= libgcrypt gperf-host
PKG_URL:= http://freedesktop.org/wiki/Software/systemd/
PKG_SITES:= http://www.freedesktop.org/software/systemd/
PKG_LIBNAME:= libudev
PKG_OPTS:= dev
-PKG_LIBC_DEPENDS:= eglibc glibc musl
+PKG_LIBC_DEPENDS:= eglibc glibc
PKG_SUBPKGS:= UDEV LIBUDEV
PKGSC_LIBUDEV:= libs
PKGSD_LIBUDEV:= UDEV library
@@ -33,12 +34,12 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,UDEV,udev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBUDEV,libudev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+AUTOTOOL_STYLE:= autoreconf
TARGET_LDFLAGS+= -lrt
-CONFIGURE_ARGS+= --disable-logging \
- --disable-static \
+CONFIGURE_ARGS+= --disable-static \
--without-python \
- --with-pci-ids-path=/usr/share/pci.ids \
- --disable-introspection
+ --disable-manpages \
+ --disable-polkit
udev-install:
${INSTALL_DIR} ${IDIR_UDEV}/usr/bin ${IDIR_UDEV}/etc/udev
diff --git a/package/systemd/patches/patch-Makefile_am b/package/systemd/patches/patch-Makefile_am
new file mode 100644
index 000000000..c35e6d461
--- /dev/null
+++ b/package/systemd/patches/patch-Makefile_am
@@ -0,0 +1,20 @@
+--- systemd-208.orig/Makefile.am 2013-10-02 04:57:09.000000000 +0200
++++ systemd-208/Makefile.am 2013-12-14 16:18:32.000000000 +0100
+@@ -23,7 +23,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+ AM_MAKEFLAGS = --no-print-directory
+ AUTOMAKE_OPTIONS = color-tests parallel-tests
+
+-SUBDIRS = . po
++SUBDIRS = .
+
+ # remove targets if the command fails
+ .DELETE_ON_ERROR:
+@@ -537,8 +537,6 @@ dist_doc_DATA = \
+ LICENSE.MIT \
+ DISTRO_PORTING
+
+-@INTLTOOL_POLICY_RULE@
+-
+ # ------------------------------------------------------------------------------
+
+ MANPAGES =
diff --git a/package/systemd/patches/patch-configure_ac b/package/systemd/patches/patch-configure_ac
new file mode 100644
index 000000000..e3aeaa5c0
--- /dev/null
+++ b/package/systemd/patches/patch-configure_ac
@@ -0,0 +1,12 @@
+--- systemd-208.orig/configure.ac 2013-10-02 01:54:26.000000000 +0200
++++ systemd-208/configure.ac 2013-12-13 16:37:55.000000000 +0100
+@@ -47,9 +47,6 @@ LT_INIT([disable-static])
+ AS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by systemd])])
+ AS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
+
+-# i18n stuff for the PolicyKit policy files
+-IT_PROG_INTLTOOL([0.40.0])
+-
+ GETTEXT_PACKAGE=systemd
+ AC_SUBST(GETTEXT_PACKAGE)
+
diff --git a/package/systemd/patches/patch-src_libudev_libudev_pc_in b/package/systemd/patches/patch-src_libudev_libudev_pc_in
new file mode 100644
index 000000000..7bc3ab6f3
--- /dev/null
+++ b/package/systemd/patches/patch-src_libudev_libudev_pc_in
@@ -0,0 +1,15 @@
+--- systemd-208.orig/src/libudev/libudev.pc.in 2013-08-13 22:02:46.000000000 +0200
++++ systemd-208/src/libudev/libudev.pc.in 2013-12-14 17:20:31.000000000 +0100
+@@ -6,9 +6,9 @@
+ # (at your option) any later version.
+
+ prefix=@prefix@
+-exec_prefix=@exec_prefix@
+-libdir=@libdir@
+-includedir=@includedir@
++exec_prefix=${prefix}/usr
++libdir=${prefix}/lib
++includedir=${prefix}/include
+
+ Name: libudev
+ Description: Library to access udev device information
diff --git a/package/taglib/Makefile b/package/taglib/Makefile
index 493cf5abf..a71973676 100644
--- a/package/taglib/Makefile
+++ b/package/taglib/Makefile
@@ -10,7 +10,7 @@ PKG_MD5SUM:= dcb8bd1b756f2843e18b1fdf3aaeee15
PKG_DESCR:= Audio Meta-Data library
PKG_SECTION:= libs
PKG_DEPENDS:= zlib
-PKG_BUILDDEP:= zlib
+PKG_BUILDDEP:= cmake-host zlib
PKG_URL:= http://taglib.github.com/
PKG_SITES:= http://openadk.org/distfiles/
PKG_OPTS:= dev
@@ -22,7 +22,7 @@ $(eval $(call PKG_template,TAGLIB,taglib,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEP
CONFIG_STYLE:= manual
do-configure:
- (cd ${WRKBUILD} && cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .)
+ (cd ${WRKBUILD} && PATH='${TARGET_PATH}' cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .)
pre-install:
$(INSTALL_DATA) ./files/taglib.pc $(WRKBUILD)/
diff --git a/package/tcp_wrappers/Makefile b/package/tcp_wrappers/Makefile
index 15bee1ae6..e4b570f68 100644
--- a/package/tcp_wrappers/Makefile
+++ b/package/tcp_wrappers/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= tcp_wrappers
PKG_VERSION:= 7.6
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= e6fa25f71226d090f34de3f6b122fb5a
PKG_DESCR:= IP based access control
PKG_SECTION:= libs
diff --git a/package/tcp_wrappers/patches/patch-Makefile b/package/tcp_wrappers/patches/patch-Makefile
index dd737d4d5..ba92af2df 100644
--- a/package/tcp_wrappers/patches/patch-Makefile
+++ b/package/tcp_wrappers/patches/patch-Makefile
@@ -1,5 +1,5 @@
--- tcp_wrappers_7.6.orig/Makefile 1997-03-21 19:27:21.000000000 +0100
-+++ tcp_wrappers_7.6/Makefile 2011-01-17 15:40:16.000000000 +0100
++++ tcp_wrappers_7.6/Makefile 2013-12-22 16:30:35.000000000 +0100
@@ -1,5 +1,8 @@
# @(#) Makefile 1.23 97/03/21 19:27:20
@@ -66,7 +66,7 @@
#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DINET_ADDR_BUG
#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DSOLARIS_24_GETHOSTBYNAME_BUG
-@@ -464,7 +475,7 @@ BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS
+@@ -464,7 +475,7 @@ BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS
# If your system supports NIS or YP-style netgroups, enable the following
# macro definition. Netgroups are used only for host access control.
#
diff --git a/package/tcp_wrappers/patches/patch-cflags b/package/tcp_wrappers/patches/patch-cflags
index 3ad8a423f..06e60861d 100644
--- a/package/tcp_wrappers/patches/patch-cflags
+++ b/package/tcp_wrappers/patches/patch-cflags
@@ -1,4 +1,4 @@
--- tcp_wrappers_7.6.orig/cflags 1970-01-01 00:00:00.000000000 +0100
-+++ tcp_wrappers_7.6/cflags 2011-01-17 15:32:42.000000000 +0100
++++ tcp_wrappers_7.6/cflags 2013-12-22 16:30:36.000000000 +0100
@@ -0,0 +1 @@
-+-march=pentium-m -Os -pipe -fomit-frame-pointer -fwrapv -fstack-protector -fno-ident -fhonour-copts -DFACILITY=LOG_DAEMON -DHOSTS_ACCESS -DDAEMON_UMASK=022 -DREAL_DAEMON_DIR="/usr/sbin" -DPROCESS_OPTIONS -DKILL_IP_OPTIONS -DSEVERITY=LOG_INFO -DRFC931_TIMEOUT=10 -DHOSTS_DENY="/etc/hosts.deny" -DHOSTS_ALLOW="/etc/hosts.allow" -DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len
++-march=armv6 -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -fwrapv -fno-ident -fhonour-copts -fomit-frame-pointer -Os -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables -g3 -DFACILITY=LOG_DAEMON -DHOSTS_ACCESS -DDAEMON_UMASK=022 -DREAL_DAEMON_DIR="/usr/sbin" -DPROCESS_OPTIONS -DKILL_IP_OPTIONS -DSEVERITY=LOG_INFO -DRFC931_TIMEOUT=10 -DHOSTS_DENY="/etc/hosts.deny" -DHOSTS_ALLOW="/etc/hosts.allow" -DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len
diff --git a/package/tcp_wrappers/patches/patch-tcpd_h b/package/tcp_wrappers/patches/patch-tcpd_h
index 71627fe47..643a36217 100644
--- a/package/tcp_wrappers/patches/patch-tcpd_h
+++ b/package/tcp_wrappers/patches/patch-tcpd_h
@@ -1,6 +1,6 @@
--- tcp_wrappers_7.6.orig/tcpd.h 1996-03-19 16:22:25.000000000 +0100
-+++ tcp_wrappers_7.6/tcpd.h 2009-06-05 18:45:03.000000000 +0200
-@@ -4,6 +4,25 @@
++++ tcp_wrappers_7.6/tcpd.h 2013-12-22 16:52:10.000000000 +0100
+@@ -4,6 +4,24 @@
* Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
*/
@@ -21,12 +21,11 @@
+#include <netinet/in.h>
+#include <stdio.h>
+
-+__BEGIN_DECLS
+
/* Structure to describe one communications endpoint. */
#define STRING_LENGTH 128 /* hosts, users, processes */
-@@ -25,10 +44,10 @@ struct request_info {
+@@ -25,10 +43,10 @@ struct request_info {
char pid[10]; /* access via eval_pid(request) */
struct host_info client[1]; /* client endpoint info */
struct host_info server[1]; /* server endpoint info */
@@ -41,7 +40,7 @@
struct netconfig *config; /* netdir handle */
};
-@@ -61,25 +80,30 @@ extern char paranoid[];
+@@ -61,25 +79,30 @@ extern char paranoid[];
/* Global functions. */
#if defined(TLI) || defined(PTX) || defined(TLI_SEQUENT)
@@ -82,7 +81,7 @@
extern char *hosts_allow_table; /* for verification mode redirection */
extern char *hosts_deny_table; /* for verification mode redirection */
extern int hosts_access_verbose; /* for verbose matching mode */
-@@ -92,9 +116,14 @@ extern int resident; /* > 0 if residen
+@@ -92,9 +115,14 @@ extern int resident; /* > 0 if residen
*/
#ifdef __STDC__
@@ -97,7 +96,7 @@
extern struct request_info *request_init(); /* initialize request */
extern struct request_info *request_set(); /* update request structure */
#endif
-@@ -117,27 +146,31 @@ extern struct request_info *request_set(
+@@ -117,27 +145,31 @@ extern struct request_info *request_set(
* host_info structures serve as caches for the lookup results.
*/
@@ -139,7 +138,7 @@
#endif
/*
-@@ -178,7 +211,7 @@ extern struct tcpd_context tcpd_context;
+@@ -178,7 +210,7 @@ extern struct tcpd_context tcpd_context;
* behavior.
*/
@@ -148,11 +147,9 @@
extern int dry_run; /* verification flag */
/* Bug workarounds. */
-@@ -217,3 +250,7 @@ extern char *fix_strtok();
+@@ -217,3 +249,5 @@ extern char *fix_strtok();
#define strtok my_strtok
extern char *my_strtok();
#endif
+
-+__END_DECLS
-+
+#endif /* tcpd.h */
diff --git a/package/tcsh/Makefile b/package/tcsh/Makefile
index 3cc6a23d6..b1e93b373 100644
--- a/package/tcsh/Makefile
+++ b/package/tcsh/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= tcsh
PKG_VERSION:= 6.18.01
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 6eed09dbd4223ab5b6955378450d228a
PKG_DESCR:= alternative csh
PKG_SECTION:= shells
diff --git a/package/tcsh/patches/patch-sh_h b/package/tcsh/patches/patch-sh_h
index 029fca58f..c3d460ff6 100644
--- a/package/tcsh/patches/patch-sh_h
+++ b/package/tcsh/patches/patch-sh_h
@@ -1,6 +1,6 @@
---- tcsh-6.17.00.orig/sh.h 2009-06-25 23:27:37.000000000 +0200
-+++ tcsh-6.17.00/sh.h 2010-07-31 19:48:01.000000000 +0200
-@@ -338,7 +338,7 @@ static inline void ignore(intptr_t a)
+--- tcsh-6.18.01.orig/sh.h 2011-04-14 20:25:25.000000000 +0200
++++ tcsh-6.18.01/sh.h 2013-12-25 17:12:55.000000000 +0100
+@@ -361,7 +361,7 @@ typedef long tcsh_number_t;
# include <sys/filio.h>
#endif /* (!FIOCLEX && SUNOS4) || (SYSVREL == 4 && !_SEQUENT_ && !SCO && !_SX ) */
@@ -9,7 +9,7 @@
# include <sys/file.h>
#endif /* !_MINIX && !supermax && !WINNT_NATIVE && !defined(IRIS4D) */
-@@ -375,9 +375,11 @@ static inline void ignore(intptr_t a)
+@@ -395,9 +395,11 @@ typedef long tcsh_number_t;
#include <pwd.h>
#include <grp.h>
#endif /* WINNT_NATIVE */
diff --git a/package/tcsh/patches/patch-sh_proc_c b/package/tcsh/patches/patch-sh_proc_c
new file mode 100644
index 000000000..db32df2eb
--- /dev/null
+++ b/package/tcsh/patches/patch-sh_proc_c
@@ -0,0 +1,11 @@
+--- tcsh-6.18.01.orig/sh.proc.c 2012-01-25 16:34:41.000000000 +0100
++++ tcsh-6.18.01/sh.proc.c 2013-12-25 17:17:37.000000000 +0100
+@@ -47,7 +47,7 @@ RCSID("$tcsh: sh.proc.c,v 3.121 2012/01/
+ # define HZ 16
+ #endif /* aiws */
+
+-#if defined(_BSD) || (defined(IRIS4D) && __STDC__) || defined(__lucid) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)
++#if defined(_BSD) || (defined(IRIS4D) && __STDC__) || defined(__lucid) || defined(__GNU__) || defined(__GLIBC__)
+ # if !defined(__ANDROID__)
+ # define BSDWAIT
+ # endif
diff --git a/package/tinc/Makefile b/package/tinc/Makefile
index 9e5d8b06b..f5c558bb0 100644
--- a/package/tinc/Makefile
+++ b/package/tinc/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= tinc
-PKG_VERSION:= 1.0.11
+PKG_VERSION:= 1.0.23
PKG_RELEASE:= 1
-PKG_MD5SUM:= ee0b1a3366c6e379cae34be6fa5dcb15
+PKG_MD5SUM:= 762c0d47bdf1b33a40b19165d9c2761f
PKG_DESCR:= VPN tunnel daemon
PKG_SECTION:= net/security
PKG_DEPENDS:= zlib liblzo libopenssl kmod-tun
@@ -18,8 +18,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,TINC,tinc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-CONFIGURE_ARGS+= --with-kernel=${LINUX_DIR} \
- --with-zlib=${STAGING_TARGET_DIR}/usr/ \
+CONFIGURE_ARGS+= --with-zlib=${STAGING_TARGET_DIR}/usr/ \
--with-lzo-include=${STAGING_TARGET_DIR}/usr/include/lzo
tinc-install:
diff --git a/package/tinc/patches/patch-src_Makefile_in b/package/tinc/patches/patch-src_Makefile_in
deleted file mode 100644
index 49bcf90dc..000000000
--- a/package/tinc/patches/patch-src_Makefile_in
+++ /dev/null
@@ -1,11 +0,0 @@
---- tinc-1.0.11.orig/src/Makefile.in 2009-11-01 16:23:33.000000000 +0100
-+++ tinc-1.0.11/src/Makefile.in 2011-01-21 23:31:11.568658762 +0100
-@@ -197,7 +197,7 @@ noinst_HEADERS = conf.h connection.h dev
- tincd_LDADD = \
- $(top_builddir)/lib/libvpn.a
-
--AM_CFLAGS = @CFLAGS@ -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\"
-+AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\"
- all: all-am
-
- .SUFFIXES:
diff --git a/package/tinc/patches/patch-src_have_h b/package/tinc/patches/patch-src_have_h
new file mode 100644
index 000000000..4efd602ac
--- /dev/null
+++ b/package/tinc/patches/patch-src_have_h
@@ -0,0 +1,25 @@
+--- tinc-1.0.23.orig/src/have.h 2013-09-25 21:21:09.000000000 +0200
++++ tinc-1.0.23/src/have.h 2013-12-30 19:30:24.000000000 +0100
+@@ -175,9 +175,11 @@
+ #include <netinet/ip6.h>
+ #endif
+
++#if defined(__GLIBC__)
+ #ifdef HAVE_NET_ETHERNET_H
+ #include <net/ethernet.h>
+ #endif
++#endif
+
+ #ifdef HAVE_NET_IF_ARP_H
+ #include <net/if_arp.h>
+@@ -191,8 +193,10 @@
+ #include <netinet/icmp6.h>
+ #endif
+
++#if defined(__GLIBC__)
+ #ifdef HAVE_NETINET_IF_ETHER_H
+ #include <netinet/if_ether.h>
+ #endif
++#endif
+
+ #endif /* __TINC_SYSTEM_H__ */
diff --git a/package/tinc/patches/patch-src_linux_device_c b/package/tinc/patches/patch-src_linux_device_c
deleted file mode 100644
index 9a5c09059..000000000
--- a/package/tinc/patches/patch-src_linux_device_c
+++ /dev/null
@@ -1,20 +0,0 @@
---- tinc-1.0.11.orig/src/linux/device.c 2009-09-27 12:27:54.000000000 +0200
-+++ tinc-1.0.11/src/linux/device.c 2009-12-06 02:30:32.000000000 +0100
-@@ -61,7 +61,7 @@ bool setup_device(void) {
- if (netname != NULL)
- iface = xstrdup(netname);
- #else
-- iface = xstrdup(rindex(device, '/') ? rindex(device, '/') + 1 : device);
-+ iface = xstrdup(strrchr(device, '/') ? strrchr(device, '/') + 1 : device);
- #endif
- device_fd = open(device, O_RDWR | O_NONBLOCK);
-
-@@ -105,7 +105,7 @@ bool setup_device(void) {
- device_type = DEVICE_TYPE_ETHERTAP;
- if(iface)
- free(iface);
-- iface = xstrdup(rindex(device, '/') ? rindex(device, '/') + 1 : device);
-+ iface = xstrdup(strrchr(device, '/') ? strrchr(device, '/') + 1 : device);
- }
-
- logger(LOG_INFO, "%s is a %s", device, device_info);
diff --git a/package/tptest/Makefile b/package/tptest/Makefile
index 68ae6741b..4d6e1e1e8 100644
--- a/package/tptest/Makefile
+++ b/package/tptest/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= tptest
PKG_VERSION:= 3.1.7
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 46f941bdab738a2a11ecc2a5f757ec77
PKG_DESCR:= Internet bandwidth tester
PKG_SECTION:= net
diff --git a/package/tptest/patches/patch-apps_unix_server_server_c b/package/tptest/patches/patch-apps_unix_server_server_c
new file mode 100644
index 000000000..bdfbba5ac
--- /dev/null
+++ b/package/tptest/patches/patch-apps_unix_server_server_c
@@ -0,0 +1,10 @@
+--- tptest-3.1.7.orig/apps/unix/server/server.c 2002-11-11 18:22:12.000000000 +0100
++++ tptest-3.1.7/apps/unix/server/server.c 2013-12-22 10:08:55.000000000 +0100
+@@ -31,6 +31,7 @@
+ */
+
+
++#include <fcntl.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <signal.h>
diff --git a/package/traceroute/Makefile b/package/traceroute/Makefile
index 31ee8bd4c..64f1e1a48 100644
--- a/package/traceroute/Makefile
+++ b/package/traceroute/Makefile
@@ -4,14 +4,16 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= traceroute
-PKG_VERSION:= 2.0.18
+PKG_VERSION:= 2.0.19
PKG_RELEASE:= 1
-PKG_MD5SUM:= b7254149b7f081cce07f4b9e065ba5ef
+PKG_MD5SUM:= dd15d563993020d088ba02e8f987deaf
PKG_DESCR:= Utility to trace the route of IP packets
PKG_SECTION:= net
PKG_URL:= http://traceroute.sourceforge.net/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=traceroute/}
+PKG_LIBC_DEPENDS:= eglibc glibc musl
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,TRACEROUTE,traceroute,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
diff --git a/package/traceroute/patches/patch-Make_rules b/package/traceroute/patches/patch-Make_rules
index 35f8b4003..5d347bc68 100644
--- a/package/traceroute/patches/patch-Make_rules
+++ b/package/traceroute/patches/patch-Make_rules
@@ -1,5 +1,5 @@
---- traceroute-2.0.16.orig/Make.rules 2010-09-09 16:20:46.000000000 +0200
-+++ traceroute-2.0.16/Make.rules 2010-10-11 20:07:03.000000000 +0200
+--- traceroute-2.0.19.orig/Make.rules 2012-03-27 15:49:04.000000000 +0200
++++ traceroute-2.0.19/Make.rules 2013-12-29 20:01:35.000000000 +0100
@@ -46,14 +46,14 @@ $(call set, INSTALL, cp)
$(call set, INDENT, true)
@@ -15,11 +15,11 @@
-prefix = /usr/local
+prefix = /usr
- exec_prefix = $(prefix)
- bindir = $(exec_prefix)/bin
-@@ -125,7 +125,7 @@ _libs = $(strip $(foreach lib,$(LIBDIRS)
- $(wildcard $(srcdir)/$(lib)/$(lib).so \
- $(srcdir)/$(lib)/$(lib).a))))
+ ifneq ($(wildcard /lib64/libc.* /usr/lib64/libc.*),)
+ lib := lib64
+@@ -131,7 +131,7 @@ _libs = $(strip $(foreach _lib,$(LIBDIRS
+ $(wildcard $(srcdir)/$(_lib)/$(_lib).so \
+ $(srcdir)/$(_lib)/$(_lib).a))))
-override LIBS := $(_libs) -lm $(LIBS)
+override LIBS := $(_libs) $(LIBS)
diff --git a/package/traceroute/patches/patch-traceroute_csum_c b/package/traceroute/patches/patch-traceroute_csum_c
new file mode 100644
index 000000000..8332de5e4
--- /dev/null
+++ b/package/traceroute/patches/patch-traceroute_csum_c
@@ -0,0 +1,17 @@
+--- traceroute-2.0.19.orig/traceroute/csum.c 2007-07-19 16:47:55.000000000 +0200
++++ traceroute-2.0.19/traceroute/csum.c 2013-12-29 20:01:35.000000000 +0100
+@@ -12,11 +12,11 @@
+ #include "traceroute.h"
+
+
+-u_int16_t in_csum (const void *ptr, size_t len) {
+- const u_int16_t *p = (const u_int16_t *) ptr;
++uint16_t in_csum (const void *ptr, size_t len) {
++ const uint16_t *p = (const uint16_t *) ptr;
+ size_t nw = len / 2;
+ unsigned int sum = 0;
+- u_int16_t res;
++ uint16_t res;
+
+ while (nw--) sum += *p++;
+
diff --git a/package/traceroute/patches/patch-traceroute_extension_c b/package/traceroute/patches/patch-traceroute_extension_c
new file mode 100644
index 000000000..94606f546
--- /dev/null
+++ b/package/traceroute/patches/patch-traceroute_extension_c
@@ -0,0 +1,61 @@
+--- traceroute-2.0.19.orig/traceroute/extension.c 2010-07-14 16:29:08.000000000 +0200
++++ traceroute-2.0.19/traceroute/extension.c 2013-12-29 20:01:35.000000000 +0100
+@@ -14,16 +14,16 @@ struct icmp_ext_header {
+ unsigned int reserved:4;
+ unsigned int version:4;
+ #endif
+- u_int8_t reserved1;
+- u_int16_t checksum;
++ uint8_t reserved1;
++ uint16_t checksum;
+ } __attribute__ ((packed));
+
+
+ struct icmp_ext_object {
+- u_int16_t length;
+- u_int8_t class;
+- u_int8_t c_type;
+- u_int8_t data[0];
++ uint16_t length;
++ uint8_t class;
++ uint8_t c_type;
++ uint8_t data[0];
+ };
+
+ #define MPLS_CLASS 1
+@@ -49,7 +49,7 @@ static int try_extension (probe *pb, cha
+ if (iext->version != 2) return -1;
+
+ if (iext->checksum &&
+- in_csum (iext, len) != (u_int16_t) ~0
++ in_csum (iext, len) != (uint16_t) ~0
+ ) return -1;
+
+ buf += sizeof (*iext);
+@@ -60,7 +60,7 @@ static int try_extension (probe *pb, cha
+ struct icmp_ext_object *obj = (struct icmp_ext_object *) buf;
+ size_t objlen = ntohs (obj->length);
+ size_t data_len;
+- u_int32_t *ui = (u_int32_t *) obj->data;
++ uint32_t *ui = (uint32_t *) obj->data;
+ int i, n;
+
+ if (objlen < sizeof (*obj) ||
+@@ -68,7 +68,7 @@ static int try_extension (probe *pb, cha
+ ) return -1;
+
+ data_len = objlen - sizeof (*obj);
+- if (data_len % sizeof (u_int32_t))
++ if (data_len % sizeof (uint32_t))
+ return -1; /* must be 32bit rounded... */
+
+ n = data_len / sizeof (*ui);
+@@ -85,7 +85,7 @@ static int try_extension (probe *pb, cha
+ do_snprintf (curr, end, "MPLS:");
+
+ for (i = 0; i < n; i++, ui++) {
+- u_int32_t mpls = ntohl (*ui);
++ uint32_t mpls = ntohl (*ui);
+
+ do_snprintf (curr, end, "%sL=%u,E=%u,S=%u,T=%u",
+ i ? "/" : "",
diff --git a/package/traceroute/patches/patch-traceroute_mod-dccp_c b/package/traceroute/patches/patch-traceroute_mod-dccp_c
new file mode 100644
index 000000000..18dcbedaf
--- /dev/null
+++ b/package/traceroute/patches/patch-traceroute_mod-dccp_c
@@ -0,0 +1,55 @@
+--- traceroute-2.0.19.orig/traceroute/mod-dccp.c 2012-11-19 16:51:53.000000000 +0100
++++ traceroute-2.0.19/traceroute/mod-dccp.c 2013-12-29 20:01:35.000000000 +0100
+@@ -30,7 +30,7 @@ static unsigned int dest_port = 0;
+ static int raw_sk = -1;
+ static int last_ttl = 0;
+
+-static u_int8_t buf[1024]; /* enough, enough... */
++static uint8_t buf[1024]; /* enough, enough... */
+ static size_t csum_len = 0;
+ static struct dccp_hdr *dh = NULL;
+ static struct dccp_hdr_ext *dhe = NULL;
+@@ -51,8 +51,8 @@ static int dccp_init (const sockaddr_any
+ int af = dest->sa.sa_family;
+ sockaddr_any src;
+ socklen_t len;
+- u_int8_t *ptr;
+- u_int16_t *lenp;
++ uint8_t *ptr;
++ uint16_t *lenp;
+
+
+ dest_addr = *dest;
+@@ -117,10 +117,10 @@ static int dccp_init (const sockaddr_any
+ ptr += len;
+ }
+
+- lenp = (u_int16_t *) ptr;
+- ptr += sizeof (u_int16_t);
+- *((u_int16_t *) ptr) = htons ((u_int16_t) IPPROTO_DCCP);
+- ptr += sizeof (u_int16_t);
++ lenp = (uint16_t *) ptr;
++ ptr += sizeof (uint16_t);
++ *((uint16_t *) ptr) = htons ((uint16_t) IPPROTO_DCCP);
++ ptr += sizeof (uint16_t);
+
+
+ /* Construct DCCP header */
+@@ -153,7 +153,7 @@ static int dccp_init (const sockaddr_any
+ if (csum_len > sizeof (buf))
+ error ("impossible"); /* paranoia */
+
+- len = ptr - (u_int8_t *) dh;
++ len = ptr - (uint8_t *) dh;
+ if (len & 0x03) error ("impossible"); /* as >>2 ... */
+
+ *lenp = htons (len);
+@@ -232,7 +232,7 @@ static probe *dccp_check_reply (int sk,
+ char *buf, size_t len) {
+ probe *pb;
+ struct dccp_hdr *ndh = (struct dccp_hdr *) buf;
+- u_int16_t sport, dport;
++ uint16_t sport, dport;
+
+
+ if (len < 8) return NULL; /* too short */
diff --git a/package/traceroute/patches/patch-traceroute_mod-icmp_c b/package/traceroute/patches/patch-traceroute_mod-icmp_c
new file mode 100644
index 000000000..13852be0b
--- /dev/null
+++ b/package/traceroute/patches/patch-traceroute_mod-icmp_c
@@ -0,0 +1,22 @@
+--- traceroute-2.0.19.orig/traceroute/mod-icmp.c 2011-08-18 17:12:00.000000000 +0200
++++ traceroute-2.0.19/traceroute/mod-icmp.c 2013-12-29 20:01:35.000000000 +0100
+@@ -20,8 +20,8 @@
+
+
+ static sockaddr_any dest_addr = {{ 0, }, };
+-static u_int16_t seq = 1;
+-static u_int16_t ident = 0;
++static uint16_t seq = 1;
++static uint16_t ident = 0;
+
+ static char *data;
+ static size_t *length_p;
+@@ -173,7 +173,7 @@ static probe *icmp_check_reply (int sk,
+ char *buf, size_t len) {
+ int af = dest_addr.sa.sa_family;
+ int type;
+- u_int16_t recv_id, recv_seq;
++ uint16_t recv_id, recv_seq;
+ probe *pb;
+
+
diff --git a/package/traceroute/patches/patch-traceroute_mod-tcp_c b/package/traceroute/patches/patch-traceroute_mod-tcp_c
new file mode 100644
index 000000000..9327a1b86
--- /dev/null
+++ b/package/traceroute/patches/patch-traceroute_mod-tcp_c
@@ -0,0 +1,126 @@
+--- traceroute-2.0.19.orig/traceroute/mod-tcp.c 2012-03-27 16:01:15.000000000 +0200
++++ traceroute-2.0.19/traceroute/mod-tcp.c 2013-12-29 20:16:23.000000000 +0100
+@@ -18,6 +18,24 @@
+ #include <netinet/ip6.h>
+ #include <netinet/tcp.h>
+
++#if !defined(__GLIBC__)
++# define TCPOPT_EOL 0
++# define TCPOPT_NOP 1
++# define TCPOPT_MAXSEG 2
++# define TCPOLEN_MAXSEG 4
++# define TCPOPT_WINDOW 3
++# define TCPOLEN_WINDOW 3
++# define TCPOPT_SACK_PERMITTED 4 /* Experimental */
++# define TCPOLEN_SACK_PERMITTED 2
++# define TCPOPT_SACK 5 /* Experimental */
++# define TCPOPT_TIMESTAMP 8
++# define TCPOLEN_TIMESTAMP 10
++# define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2) /* appendix A */
++
++# define TCPOPT_TSTAMP_HDR \
++ (TCPOPT_NOP<<24|TCPOPT_NOP<<16|TCPOPT_TIMESTAMP<<8|TCPOLEN_TIMESTAMP)
++#endif
++
+
+ #include "traceroute.h"
+
+@@ -33,11 +51,11 @@ static unsigned int dest_port = 0;
+ static int raw_sk = -1;
+ static int last_ttl = 0;
+
+-static u_int8_t buf[1024]; /* enough, enough... */
++static uint8_t buf[1024]; /* enough, enough... */
+ static size_t csum_len = 0;
+ static struct tcphdr *th = NULL;
+
+-#define TH_FLAGS(TH) (((u_int8_t *) (TH))[13])
++#define TH_FLAGS(TH) (((uint8_t *) (TH))[13])
+ #define TH_FIN 0x01
+ #define TH_SYN 0x02
+ #define TH_RST 0x04
+@@ -164,7 +182,7 @@ static CLIF_option tcp_options[] = {
+ static int check_sysctl (const char *name) {
+ int fd, res;
+ char buf[sizeof (SYSCTL_PREFIX) + strlen (name) + 1];
+- u_int8_t ch;
++ uint8_t ch;
+
+ strcpy (buf, SYSCTL_PREFIX);
+ strcat (buf, name);
+@@ -191,8 +209,8 @@ static int tcp_init (const sockaddr_any
+ sockaddr_any src;
+ int mtu;
+ socklen_t len;
+- u_int8_t *ptr;
+- u_int16_t *lenp;
++ uint8_t *ptr;
++ uint16_t *lenp;
+
+
+ dest_addr = *dest;
+@@ -286,10 +304,10 @@ static int tcp_init (const sockaddr_any
+ ptr += len;
+ }
+
+- lenp = (u_int16_t *) ptr;
+- ptr += sizeof (u_int16_t);
+- *((u_int16_t *) ptr) = htons ((u_int16_t) IPPROTO_TCP);
+- ptr += sizeof (u_int16_t);
++ lenp = (uint16_t *) ptr;
++ ptr += sizeof (uint16_t);
++ *((uint16_t *) ptr) = htons ((uint16_t) IPPROTO_TCP);
++ ptr += sizeof (uint16_t);
+
+
+ /* Construct TCP header */
+@@ -309,13 +327,13 @@ static int tcp_init (const sockaddr_any
+
+ /* Build TCP options */
+
+- ptr = (u_int8_t *) (th + 1);
++ ptr = (uint8_t *) (th + 1);
+
+ if (flags & TH_SYN) {
+ *ptr++ = TCPOPT_MAXSEG; /* 2 */
+ *ptr++ = TCPOLEN_MAXSEG; /* 4 */
+- *((u_int16_t *) ptr) = htons (mss ? mss : mtu);
+- ptr += sizeof (u_int16_t);
++ *((uint16_t *) ptr) = htons (mss ? mss : mtu);
++ ptr += sizeof (uint16_t);
+ }
+
+ if (flags & FL_TSTAMP) {
+@@ -330,10 +348,10 @@ static int tcp_init (const sockaddr_any
+ *ptr++ = TCPOPT_TIMESTAMP; /* 8 */
+ *ptr++ = TCPOLEN_TIMESTAMP; /* 10 */
+
+- *((u_int32_t *) ptr) = random_seq (); /* really! */
+- ptr += sizeof (u_int32_t);
+- *((u_int32_t *) ptr) = (flags & TH_ACK) ? random_seq () : 0;
+- ptr += sizeof (u_int32_t);
++ *((uint32_t *) ptr) = random_seq (); /* really! */
++ ptr += sizeof (uint32_t);
++ *((uint32_t *) ptr) = (flags & TH_ACK) ? random_seq () : 0;
++ ptr += sizeof (uint32_t);
+ }
+ else if (flags & FL_SACK) {
+ *ptr++ = TCPOPT_NOP; /* 1 */
+@@ -355,7 +373,7 @@ static int tcp_init (const sockaddr_any
+ if (csum_len > sizeof (buf))
+ error ("impossible"); /* paranoia */
+
+- len = ptr - (u_int8_t *) th;
++ len = ptr - (uint8_t *) th;
+ if (len & 0x03) error ("impossible"); /* as >>2 ... */
+
+ *lenp = htons (len);
+@@ -436,7 +454,7 @@ static probe *tcp_check_reply (int sk, i
+ char *buf, size_t len) {
+ probe *pb;
+ struct tcphdr *tcp = (struct tcphdr *) buf;
+- u_int16_t sport, dport;
++ uint16_t sport, dport;
+
+
+ if (len < 8) return NULL; /* too short */
diff --git a/package/traceroute/patches/patch-traceroute_mod-udp_c b/package/traceroute/patches/patch-traceroute_mod-udp_c
new file mode 100644
index 000000000..1fcbf8b2b
--- /dev/null
+++ b/package/traceroute/patches/patch-traceroute_mod-udp_c
@@ -0,0 +1,20 @@
+--- traceroute-2.0.19.orig/traceroute/mod-udp.c 2010-12-14 16:51:44.000000000 +0100
++++ traceroute-2.0.19/traceroute/mod-udp.c 2013-12-29 20:01:35.000000000 +0100
+@@ -71,7 +71,7 @@ static int udp_init (const sockaddr_any
+ dest_addr = *dest;
+
+ if (!port_seq) port_seq = DEF_UDP_PORT;
+- dest_addr.sin.sin_port = htons ((u_int16_t) port_seq);
++ dest_addr.sin.sin_port = htons ((uint16_t) port_seq);
+
+ fill_data (packet_len_p);
+
+@@ -107,7 +107,7 @@ static int udplite_init (const sockaddr_
+ dest_addr = *dest;
+
+ if (!port_seq) port_seq = DEF_UDP_PORT; /* XXX: Hmmm... */
+- dest_addr.sin.sin_port = htons ((u_int16_t) port_seq);
++ dest_addr.sin.sin_port = htons ((uint16_t) port_seq);
+
+ protocol = IPPROTO_UDPLITE;
+
diff --git a/package/traceroute/patches/patch-traceroute_traceroute_c b/package/traceroute/patches/patch-traceroute_traceroute_c
new file mode 100644
index 000000000..b9b7f27d9
--- /dev/null
+++ b/package/traceroute/patches/patch-traceroute_traceroute_c
@@ -0,0 +1,34 @@
+--- traceroute-2.0.19.orig/traceroute/traceroute.c 2012-11-19 17:12:04.000000000 +0100
++++ traceroute-2.0.19/traceroute/traceroute.c 2013-12-30 11:22:50.000000000 +0100
+@@ -31,6 +31,13 @@
+ #include "version.h"
+ #include "traceroute.h"
+
++#ifndef AI_IDN
++# define AI_IDN 0 /* GNU/libc extension */
++#endif
++
++#ifndef NI_IDN
++# define NI_IDN 0 /* GNU/libc extension */
++#endif
+
+ #ifndef ICMP6_DST_UNREACH_BEYONDSCOPE
+ #ifdef ICMP6_DST_UNREACH_NOTNEIGHBOR
+@@ -325,7 +332,7 @@ static void init_ip_options (void) {
+ rth->ip6r_type = ipv6_rthdr_type;
+ rth->ip6r_segleft = num_gateways;
+
+- *((u_int32_t *) (rth + 1)) = 0;
++ *((uint32_t *) (rth + 1)) = 0;
+
+ in6 = (struct in6_addr *) (rtbuf + 8);
+ for (i = 0; i < num_gateways; i++)
+@@ -606,7 +613,7 @@ int main (int argc, char *argv[]) {
+ htonl (((tos & 0xff) << 20) | (flow_label & 0x000fffff));
+
+ if (src_port) {
+- src_addr.sin.sin_port = htons ((u_int16_t) src_port);
++ src_addr.sin.sin_port = htons ((uint16_t) src_port);
+ src_addr.sa.sa_family = af;
+ }
+
diff --git a/package/traceroute/patches/patch-traceroute_traceroute_h b/package/traceroute/patches/patch-traceroute_traceroute_h
new file mode 100644
index 000000000..21efe3210
--- /dev/null
+++ b/package/traceroute/patches/patch-traceroute_traceroute_h
@@ -0,0 +1,11 @@
+--- traceroute-2.0.19.orig/traceroute/traceroute.h 2012-11-19 15:46:11.000000000 +0100
++++ traceroute-2.0.19/traceroute/traceroute.h 2013-12-29 20:01:35.000000000 +0100
+@@ -92,7 +92,7 @@ const char *get_as_path (const char *que
+ int raw_can_connect (void);
+
+ unsigned int random_seq (void);
+-u_int16_t in_csum (const void *ptr, size_t len);
++uint16_t in_csum (const void *ptr, size_t len);
+
+
+ void tr_register_module (tr_module *module);
diff --git a/package/ussp-push/Makefile b/package/ussp-push/Makefile
index 85cde1233..a0302f016 100644
--- a/package/ussp-push/Makefile
+++ b/package/ussp-push/Makefile
@@ -8,10 +8,11 @@ PKG_VERSION:= 0.11
PKG_RELEASE:= 1
PKG_MD5SUM:= 5c44983ee27809867041feff6bb4423a
PKG_DESCR:= OBEX push command
-PKG_SECTION:= bluetooth
+PKG_SECTION:= misc
PKG_DEPENDS:= openobex
PKG_BUILDDEP:= openobex
PKG_SITES:= http://xmailserver.org/
+PKG_CFLINE_USSP_PUSH:= depends on ADK_BROKEN
PKG_ARCH_DEPENDS:= !avr32
diff --git a/package/util-linux/Makefile b/package/util-linux/Makefile
index a99c5ed0d..b449a985e 100644
--- a/package/util-linux/Makefile
+++ b/package/util-linux/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= util-linux
PKG_VERSION:= 2.23.2
-PKG_RELEASE:= 5
+PKG_RELEASE:= 6
PKG_MD5SUM:= b39fde897334a4858bb2098edcce5b3f
PKG_DESCR:= Linux utilities (meta-package)
PKG_SECTION:= utils
@@ -69,7 +69,7 @@ CONFIGURE_ARGS+= --disable-use-tty-group \
--with-ncurses=$(STAGING_DIR)/usr/include \
--libdir=/usr/lib
FAKE_FLAGS+= INSTALLSUID="install -m 4755"
-TARGET_CFLAGS+= -DSWAPON_HAS_TWO_ARGS -DHAVE_LLSEEK
+TARGET_CFLAGS+= -DSWAPON_HAS_TWO_ARGS -DHAVE_LLSEEK -ltinfo
util-linux-install:
diff --git a/package/util-linux/patches/patch-libuuid_uuid_pc_in b/package/util-linux/patches/patch-libuuid_uuid_pc_in
new file mode 100644
index 000000000..059310086
--- /dev/null
+++ b/package/util-linux/patches/patch-libuuid_uuid_pc_in
@@ -0,0 +1,13 @@
+--- util-linux-2.23.2.orig/libuuid/uuid.pc.in 2013-02-27 17:46:29.883020734 +0100
++++ util-linux-2.23.2/libuuid/uuid.pc.in 2013-12-17 17:07:37.935403478 +0100
+@@ -1,7 +1,7 @@
+ prefix=@prefix@
+-exec_prefix=@exec_prefix@
+-libdir=@usrlib_execdir@
+-includedir=@includedir@
++exec_prefix=${prefix}
++libdir=${prefix}/lib
++includedir=${prefix}/include
+
+ Name: uuid
+ Description: Universally unique id library
diff --git a/package/util-macros/Makefile b/package/util-macros/Makefile
index 83f2827e9..6ebfb6171 100644
--- a/package/util-macros/Makefile
+++ b/package/util-macros/Makefile
@@ -4,9 +4,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= util-macros
-PKG_VERSION:= 1.8.0
+PKG_VERSION:= 1.18.0
PKG_RELEASE:= 1
-PKG_MD5SUM:= fe73a69d02bd0be6cdf7c773bfd72041
+PKG_MD5SUM:= fd0ba21b3179703c071bbb4c3e5fb0f4
PKG_DESCR:= xorg macros
PKG_SECTION:= x11/misc
PKG_BUILDDEP:= autotool util-macros-host
diff --git a/package/v4l-utils/Makefile b/package/v4l-utils/Makefile
index 2aa16159f..70bcc28d6 100644
--- a/package/v4l-utils/Makefile
+++ b/package/v4l-utils/Makefile
@@ -4,9 +4,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= v4l-utils
-PKG_VERSION:= 0.9.3
-PKG_RELEASE:= 2
-PKG_MD5SUM:= f4d24bb9f0307345d5a8fc4febcb993d
+PKG_VERSION:= 1.0.0
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 2127f2d06be9162b0d346f7037a9e852
PKG_DESCR:= Video4Linux2 utilities
PKG_SECTION:= multimedia
PKG_BUILDDEP:= jpeg
@@ -16,7 +16,7 @@ PKG_OPTS:= dev
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
-PKG_LIBC_DEPENDS:= eglibc glibc musl
+PKG_LIBC_DEPENDS:= eglibc glibc
PKG_SUBPKGS:= V4L_UTILS LIBV4L
PKGSC_LIBV4L:= libs
PKGSD_LIBV4L:= Video4Linux2 libraries
diff --git a/package/vim/Makefile b/package/vim/Makefile
index f78e1e89f..cd09b8c2f 100644
--- a/package/vim/Makefile
+++ b/package/vim/Makefile
@@ -23,6 +23,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,VIM,vim,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
TARGET_CFLAGS+= -lgcc
+TARGET_LDFLAGS+= -ltinfo
CONFIGURE_ENV+= vim_cv_toupper_broken=no \
vim_cv_getcwd_broken=no \
vim_cv_stat_ignores_slash=yes \
diff --git a/package/vnc-reflector/Makefile b/package/vnc-reflector/Makefile
index 33b54fcd5..3be33a3a7 100644
--- a/package/vnc-reflector/Makefile
+++ b/package/vnc-reflector/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= vnc-reflector
PKG_VERSION:= 1.2.4
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= c3f88bc62f228b335c25c07f9744ab0c
PKG_DESCR:= specialized VNC server which acts as a proxy
PKG_SECTION:= proxy
diff --git a/package/vnc-reflector/patches/patch-actions_c b/package/vnc-reflector/patches/patch-actions_c
new file mode 100644
index 000000000..afce6980c
--- /dev/null
+++ b/package/vnc-reflector/patches/patch-actions_c
@@ -0,0 +1,10 @@
+--- vnc_reflector.orig/actions.c 2003-04-21 19:20:35.000000000 +0200
++++ vnc_reflector/actions.c 2013-12-31 17:43:24.000000000 +0100
+@@ -18,6 +18,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <unistd.h>
++#include <sys/types.h>
+
+ #include "rfblib.h"
+ #include "reflector.h"
diff --git a/package/vnc-reflector/patches/patch-active_c b/package/vnc-reflector/patches/patch-active_c
new file mode 100644
index 000000000..b8385de9e
--- /dev/null
+++ b/package/vnc-reflector/patches/patch-active_c
@@ -0,0 +1,10 @@
+--- vnc_reflector.orig/active.c 2003-04-21 19:20:35.000000000 +0200
++++ vnc_reflector/active.c 2013-12-31 17:44:10.000000000 +0100
+@@ -18,6 +18,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <unistd.h>
++#include <sys/types.h>
+
+ #include "rfblib.h"
+ #include "reflector.h"
diff --git a/package/vnc-reflector/patches/patch-region_c b/package/vnc-reflector/patches/patch-region_c
new file mode 100644
index 000000000..4aa2d4c60
--- /dev/null
+++ b/package/vnc-reflector/patches/patch-region_c
@@ -0,0 +1,10 @@
+--- vnc_reflector.orig/region.c 2002-09-21 14:43:01.000000000 +0200
++++ vnc_reflector/region.c 2013-12-31 17:45:02.000000000 +0100
+@@ -73,6 +73,7 @@ SOFTWARE.
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <sys/types.h>
+
+ /* Get definitions for CARD16 etc. */
+ #include "rfblib.h"
diff --git a/package/vpnc/Makefile b/package/vpnc/Makefile
index 10054738b..a172fa7d2 100644
--- a/package/vpnc/Makefile
+++ b/package/vpnc/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= vpnc
PKG_VERSION:= 0.5.3
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 4378f9551d5b077e1770bbe09995afb3
PKG_DESCR:= client for cisco3000 VPN Concentrator.
PKG_SECTION:= net/security
@@ -19,6 +19,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,VPNC,vpnc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CONFIG_STYLE:= manual
+TARGET_CPPFLAGS+= -D_GNU_SOURCE
XAKE_FLAGS+= CC="${TARGET_CC}" \
OFLAGS="${TARGET_CFLAGS}" \
OS="Linux" \
diff --git a/package/vpnc/patches/patch-sysdep_c b/package/vpnc/patches/patch-sysdep_c
new file mode 100644
index 000000000..abd723471
--- /dev/null
+++ b/package/vpnc/patches/patch-sysdep_c
@@ -0,0 +1,17 @@
+--- vpnc-0.5.3.orig/sysdep.c 2008-11-19 21:36:12.000000000 +0100
++++ vpnc-0.5.3/sysdep.c 2013-12-23 14:15:07.000000000 +0100
+@@ -58,14 +58,10 @@
+
+ #if defined(__DragonFly__)
+ #include <net/tun/if_tun.h>
+-#elif defined(__linux__)
+-#include <linux/if_tun.h>
+ #elif defined(__APPLE__)
+ /* no header for tun */
+ #elif defined(__CYGWIN__)
+ #include "tap-win32.h"
+-#else
+-#include <net/if_tun.h>
+ #endif
+
+ #include "sysdep.h"
diff --git a/package/vpnc/patches/patch-sysdep_h b/package/vpnc/patches/patch-sysdep_h
new file mode 100644
index 000000000..854a14034
--- /dev/null
+++ b/package/vpnc/patches/patch-sysdep_h
@@ -0,0 +1,11 @@
+--- vpnc-0.5.3.orig/sysdep.h 2008-11-19 21:36:12.000000000 +0100
++++ vpnc-0.5.3/sysdep.h 2013-12-23 14:13:51.000000000 +0100
+@@ -37,7 +37,7 @@ int tun_read(int fd, unsigned char *buf,
+ int tun_get_hwaddr(int fd, char *dev, uint8_t *hwaddr);
+
+ /***************************************************************************/
+-#if defined(__linux__) || defined(__GLIBC__)
++#if defined(__GLIBC__)
+ #include <error.h>
+
+ #define HAVE_VASPRINTF 1
diff --git a/package/wifidog/Makefile b/package/wifidog/Makefile
index 2b38090af..5971eadc6 100644
--- a/package/wifidog/Makefile
+++ b/package/wifidog/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= wifidog
PKG_VERSION:= 1.1.5
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= abe5f7123179a0f08c493ce59fb3cb31
PKG_DESCR:= a complete and embeddable captive portal
PKG_SECTION:= wifi
diff --git a/package/wifidog/patches/patch-libhttpd_api_c b/package/wifidog/patches/patch-libhttpd_api_c
index db790195b..6c76235fb 100644
--- a/package/wifidog/patches/patch-libhttpd_api_c
+++ b/package/wifidog/patches/patch-libhttpd_api_c
@@ -1,6 +1,6 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- wifidog-1.1.5.orig/libhttpd/api.c 2007-11-01 21:04:20.000000000 +0100
-+++ wifidog-1.1.5/libhttpd/api.c 2008-10-16 13:15:26.000000000 +0200
++++ wifidog-1.1.5/libhttpd/api.c 2014-01-01 16:20:22.000000000 +0100
@@ -166,7 +166,7 @@ int httpdAddVariable(request *r, char *n
while(*name == ' ' || *name == '\t')
name++;
@@ -173,7 +173,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
newEntry->name = NULL;
newEntry->type = HTTP_WILDCARD;
newEntry->indexFlag = HTTP_FALSE;
-@@ -755,7 +755,7 @@ int httpdAddCContent(server, dir, name,
+@@ -755,7 +755,7 @@ int httpdAddCContent(server, dir, name,
newEntry = malloc(sizeof(httpContent));
if (newEntry == NULL)
return(-1);
@@ -200,7 +200,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
newEntry->name = strdup(name);
newEntry->type = HTTP_STATIC;
newEntry->indexFlag = indexFlag;
-@@ -946,7 +946,7 @@ void httpdProcessRequest(httpd *server,
+@@ -946,7 +946,7 @@ void httpdProcessRequest(httpd *server,
r->response.responseLength = 0;
strncpy(dirName, httpdRequestPath(r), HTTP_MAX_URL);
diff --git a/package/wifidog/patches/patch-libhttpd_ip_acl_c b/package/wifidog/patches/patch-libhttpd_ip_acl_c
index 932855b5d..95642f2b6 100644
--- a/package/wifidog/patches/patch-libhttpd_ip_acl_c
+++ b/package/wifidog/patches/patch-libhttpd_ip_acl_c
@@ -1,7 +1,17 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- wifidog-1.1.5.orig/libhttpd/ip_acl.c 2007-03-12 20:37:06.000000000 +0100
-+++ wifidog-1.1.5/libhttpd/ip_acl.c 2008-10-16 13:12:15.000000000 +0200
-@@ -52,22 +52,22 @@ static int scanCidr(val, result, length)
++++ wifidog-1.1.5/libhttpd/ip_acl.c 2014-01-01 16:34:21.000000000 +0100
+@@ -44,30 +44,30 @@
+
+ static int scanCidr(val, result, length)
+ char *val;
+- u_int *result,
++ unsigned int *result,
+ *length;
+ {
+- u_int res, res1, res2, res3, res4, res5;
++ unsigned int res, res1, res2, res3, res4, res5;
+ char *cp;
cp = val;
res1 = atoi(cp);
diff --git a/package/wifidog/patches/patch-libhttpd_protocol_c b/package/wifidog/patches/patch-libhttpd_protocol_c
index 767337dd6..6770fc729 100644
--- a/package/wifidog/patches/patch-libhttpd_protocol_c
+++ b/package/wifidog/patches/patch-libhttpd_protocol_c
@@ -1,7 +1,15 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- wifidog-1.1.5.orig/libhttpd/protocol.c 2007-11-01 21:04:20.000000000 +0100
-+++ wifidog-1.1.5/libhttpd/protocol.c 2008-10-16 13:12:58.000000000 +0200
-@@ -83,7 +83,7 @@ int _httpd_readChar(request *r, char *cp
++++ wifidog-1.1.5/libhttpd/protocol.c 2014-01-01 16:29:50.000000000 +0100
+@@ -22,6 +22,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
++#include <fcntl.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <time.h>
+@@ -83,7 +84,7 @@ int _httpd_readChar(request *r, char *cp
{
if (r->readBufRemain == 0)
{
@@ -10,7 +18,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
r->readBufRemain = _httpd_net_read(r->clientSock,
r->readBuf, HTTP_READ_BUF_LEN);
if (r->readBufRemain < 1)
-@@ -352,7 +352,7 @@ void _httpd_storeData(request *r, char *
+@@ -352,7 +353,7 @@ void _httpd_storeData(request *r, char *
cp = query;
cp2 = var;
@@ -19,7 +27,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
val = NULL;
while(*cp)
{
-@@ -483,7 +483,7 @@ httpDir *_httpd_findContentDir(server, d
+@@ -483,7 +484,7 @@ httpDir *_httpd_findContentDir(server, d
if (createFlag == HTTP_TRUE)
{
curChild = malloc(sizeof(httpDir));
@@ -28,7 +36,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
curChild->name = strdup(curDir);
curChild->next = curItem->children;
curItem->children = curChild;
-@@ -606,7 +606,7 @@ void _httpd_sendFile(httpd *server, requ
+@@ -606,7 +607,7 @@ void _httpd_sendFile(httpd *server, requ
char *suffix;
struct stat sbuf;
@@ -37,7 +45,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
if (suffix != NULL)
{
if (strcasecmp(suffix,".gif") == 0)
-@@ -699,7 +699,7 @@ char *_httpd_escape(str)
+@@ -699,7 +700,7 @@ char *_httpd_escape(str)
if (!ACCEPTABLE((unsigned char)*p))
unacceptable +=2;
result = (char *) malloc(p-str + unacceptable + 1);
diff --git a/package/wifidog/patches/patch-src_client_list_c b/package/wifidog/patches/patch-src_client_list_c
new file mode 100644
index 000000000..ac78a1af6
--- /dev/null
+++ b/package/wifidog/patches/patch-src_client_list_c
@@ -0,0 +1,11 @@
+--- wifidog-1.1.5.orig/src/client_list.c 2007-03-12 20:36:41.000000000 +0100
++++ wifidog-1.1.5/src/client_list.c 2014-01-01 17:02:32.000000000 +0100
+@@ -35,7 +35,7 @@
+ #include <pthread.h>
+ #include <sys/wait.h>
+ #include <sys/types.h>
+-#include <sys/unistd.h>
++#include <unistd.h>
+
+ #include <string.h>
+
diff --git a/package/wifidog/patches/patch-src_firewall_c b/package/wifidog/patches/patch-src_firewall_c
new file mode 100644
index 000000000..0ebe0457c
--- /dev/null
+++ b/package/wifidog/patches/patch-src_firewall_c
@@ -0,0 +1,11 @@
+--- wifidog-1.1.5.orig/src/firewall.c 2007-11-01 21:04:20.000000000 +0100
++++ wifidog-1.1.5/src/firewall.c 2014-01-01 16:47:55.000000000 +0100
+@@ -37,7 +37,7 @@
+ #include <pthread.h>
+ #include <sys/wait.h>
+ #include <sys/types.h>
+-#include <sys/unistd.h>
++#include <unistd.h>
+
+ #include <string.h>
+
diff --git a/package/wifidog/patches/patch-src_util_c b/package/wifidog/patches/patch-src_util_c
new file mode 100644
index 000000000..c4c26926f
--- /dev/null
+++ b/package/wifidog/patches/patch-src_util_c
@@ -0,0 +1,11 @@
+--- wifidog-1.1.5.orig/src/util.c 2007-11-01 21:04:20.000000000 +0100
++++ wifidog-1.1.5/src/util.c 2014-01-01 17:11:39.000000000 +0100
+@@ -37,7 +37,7 @@
+ #include <pthread.h>
+ #include <sys/wait.h>
+ #include <sys/types.h>
+-#include <sys/unistd.h>
++#include <unistd.h>
+ #include <netinet/in.h>
+ #include <sys/ioctl.h>
+
diff --git a/package/xbmc/Makefile b/package/xbmc/Makefile
index b4f96f47f..aa971d872 100644
--- a/package/xbmc/Makefile
+++ b/package/xbmc/Makefile
@@ -5,11 +5,11 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= xbmc
PKG_VERSION:= 12.2
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= 489f3877decae4e265ece54f9eaef0ba
PKG_DESCR:= software media player
PKG_SECTION:= multimedia
-PKG_DEPENDS:= boost libffmpeg python2 libstdcxx
+PKG_DEPENDS:= boost libffmpeg python2 libstdcxx bcm2835-vc
PKG_DEPENDS+= libglew mesalib libass libmpeg2 libmad dbus
PKG_DEPENDS+= libjpeg libogg libvorbis libmodplug libcurl
PKG_DEPENDS+= libflac libopenssl libbz2 libtiff liblzo
@@ -17,13 +17,15 @@ PKG_DEPENDS+= yajl tinyxml libsqlite libpcrecpp libpng
PKG_DEPENDS+= libpcre libcdio libfreetype libsamplerate
PKG_DEPENDS+= taglib libjasper libmp3lame libmicrohttpd
PKG_DEPENDS+= omxplayer libusb-compat libbluray libgpg-error
+PKG_DEPENDS+= libssh libcec libnfs librtmp
PKG_BUILDDEP:= autotool boost ffmpeg python2 MesaLib libglew libass
PKG_BUILDDEP+= libmpeg2 libmad jpeg libogg libvorbis libmodplug
PKG_BUILDDEP+= curl flac openssl bzip2 libtiff liblzo yajl
PKG_BUILDDEP+= tinyxml sqlite pcre libpng libcdio freetype
PKG_BUILDDEP+= libsamplerate taglib libjasper lame libmicrohttpd
PKG_BUILDDEP+= bcm2835-vc libgpg-error dbus libusb-compat libbluray
-PKG_BUILDDEP+= libgpg-error
+PKG_BUILDDEP+= libssh libcec libnfs samba rtmpdump
+PKG_BUILDDEP+= swig-host sdl-host sdl-image-host liblzo-host
PKG_URL:= http://xbmc.org/
PKG_SITES:= http://mirrors.xbmc.org/releases/source/
@@ -41,19 +43,25 @@ TARGET_CPPFLAGS+= -I$(STAGING_DIR)/usr/include/boost-1_54 \
-I$(STAGING_DIR)/opt/vc/include \
-I$(STAGING_DIR)/opt/vc/include/interface/vcos/pthreads \
-I$(STAGING_DIR)/opt/vc/include/interface/vmcs_host/linux
-TARGET_LDFLAGS+= -L$(STAGING_DIR)/opt/vc/lib -lkhrn_static
+TARGET_LDFLAGS+= -L$(STAGING_DIR)/opt/vc/lib -lkhrn_static \
+ -L$(STAGING_DIR)/usr/lib/samba
AUTOTOOL_STYLE:= autoreconf
+CONFIGURE_ENV+= DESTDIR='${WRKINST}' \
+ TEXTUREPACKER_NATIVE_ROOT='$(STAGING_HOST_DIR)/usr'
CONFIGURE_ARGS+= --disable-optical-drive \
- --disable-ssh \
- --disable-samba \
--disable-mysql \
+ --enable-samba \
+ --enable-ssh \
+ --enable-nfs \
--enable-libusb \
--enable-libbluray \
--enable-external-libraries \
--enable-player=omxplayer \
--enable-gles \
+ --enable-rtmp \
--disable-sdl \
--disable-joystick \
+ --disable-dvdcss \
--disable-x11 \
--with-platform=raspberry-pi
diff --git a/package/xbmc/patches/patch-lib_libdvd_libdvdread_Makefile b/package/xbmc/patches/patch-lib_libdvd_libdvdread_Makefile
new file mode 100644
index 000000000..799e54eeb
--- /dev/null
+++ b/package/xbmc/patches/patch-lib_libdvd_libdvdread_Makefile
@@ -0,0 +1,13 @@
+--- xbmc-12.2.orig/lib/libdvd/libdvdread/Makefile 2013-05-03 07:57:40.000000000 +0200
++++ xbmc-12.2/lib/libdvd/libdvdread/Makefile 2013-12-15 12:24:12.000000000 +0100
+@@ -131,8 +131,8 @@ distclean: clean
+ dvdread-config: $(.OBJDIR)/dvdread-config
+ $(.OBJDIR)/dvdread-config: $(BUILDDEPS)
+ @echo '#!/bin/sh' > $(.OBJDIR)/dvdread-config
+- @echo 'prefix='$(PREFIX) >> $(.OBJDIR)/dvdread-config
+- @echo 'libdir='$(shlibdir) >> $(.OBJDIR)/dvdread-config
++ @echo 'prefix='$(DESTDIR)$(PREFIX) >> $(.OBJDIR)/dvdread-config
++ @echo 'libdir='$(DESTDIR)$(shlibdir) >> $(.OBJDIR)/dvdread-config
+ @echo 'version='$(SHLIB_VERSION) >> $(.OBJDIR)/dvdread-config
+ @echo >> $(.OBJDIR)/dvdread-config
+ cat $(SRC_PATH_BARE)/misc/dvdread-config.sh >> $(.OBJDIR)/dvdread-config
diff --git a/package/xf86-input-evdev/Makefile b/package/xf86-input-evdev/Makefile
index d2e5c3db3..5e5e35d53 100644
--- a/package/xf86-input-evdev/Makefile
+++ b/package/xf86-input-evdev/Makefile
@@ -13,7 +13,7 @@ PKG_DEPENDS:= xorg-server kmod-input-evdev libudev
PKG_BUILDDEP:= xorg-server systemd
PKG_SITES:= ${MASTER_SITE_XORG}
-PKG_LIBC_DEPENDS:= eglibc glibc musl
+PKG_LIBC_DEPENDS:= eglibc glibc
PKG_ARCH_DEPENDS:= !avr32 !m68k
PKG_CFLINE_XF86_INPUT_EVDEV:= depends on ADK_TARGET_WITH_INPUT
diff --git a/package/xf86-video-intel/Makefile b/package/xf86-video-intel/Makefile
index e49d2e81f..dbb22102c 100644
--- a/package/xf86-video-intel/Makefile
+++ b/package/xf86-video-intel/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= xf86-video-intel
PKG_VERSION:= 2.19.0
PKG_RELEASE:= 1
-PKG_MD5SUM:= df7e3644a34e97ead09f083ab48d4457
+PKG_MD5SUM:= a5e655904e8da22acb0d9be1badf9815
PKG_DESCR:= X11 driver for Intel VGA chip
PKG_SECTION:= x11/drivers
PKG_DEPENDS:= xorg-server libdrm mesalib
diff --git a/package/xf86-video-intel/patches/patch-configure b/package/xf86-video-intel/patches/patch-configure
deleted file mode 100644
index fe5ca4e86..000000000
--- a/package/xf86-video-intel/patches/patch-configure
+++ /dev/null
@@ -1,32 +0,0 @@
---- xf86-video-intel-2.13.0.orig/configure 2010-09-30 17:46:13.000000000 +0200
-+++ xf86-video-intel-2.13.0/configure 2010-11-24 22:05:13.100685362 +0100
-@@ -11623,9 +11623,6 @@ if test x$DRI != xno; then
- $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
- if eval "test \"\${$as_ac_File+set}\"" = set; then :
- $as_echo_n "(cached) " >&6
--else
-- test "$cross_compiling" = yes &&
-- as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
- if test -r "${sdkdir}/dri.h"; then
- eval "$as_ac_File=yes"
- else
-@@ -11646,9 +11643,6 @@ fi
- $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
- if eval "test \"\${$as_ac_File+set}\"" = set; then :
- $as_echo_n "(cached) " >&6
--else
-- test "$cross_compiling" = yes &&
-- as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
- if test -r "${sdkdir}/sarea.h"; then
- eval "$as_ac_File=yes"
- else
-@@ -11669,9 +11663,6 @@ fi
- $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
- if eval "test \"\${$as_ac_File+set}\"" = set; then :
- $as_echo_n "(cached) " >&6
--else
-- test "$cross_compiling" = yes &&
-- as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
- if test -r "${sdkdir}/dristruct.h"; then
- eval "$as_ac_File=yes"
- else
diff --git a/package/xf86-video-intel/patches/patch-ltmain_sh b/package/xf86-video-intel/patches/patch-ltmain_sh
deleted file mode 100644
index 5cf546d2a..000000000
--- a/package/xf86-video-intel/patches/patch-ltmain_sh
+++ /dev/null
@@ -1,11 +0,0 @@
---- xf86-video-intel-2.13.0.orig/ltmain.sh 2010-02-25 18:09:43.000000000 +0100
-+++ xf86-video-intel-2.13.0/ltmain.sh 2011-01-17 17:47:33.000000000 +0100
-@@ -4765,7 +4765,7 @@ func_mode_link ()
- # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
- # @file GCC response files
- -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
-+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto)
- func_quote_for_eval "$arg"
- arg="$func_quote_for_eval_result"
- func_append compile_command " $arg"
diff --git a/package/xfsprogs/Makefile b/package/xfsprogs/Makefile
index 42fd4efba..ceb1f82e1 100644
--- a/package/xfsprogs/Makefile
+++ b/package/xfsprogs/Makefile
@@ -15,7 +15,7 @@ PKG_URL:= http://oss.sgi.com/projects/xfs
PKG_SITES:= ftp://oss.sgi.com/projects/xfs/cmd_tars/ \
ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/
-PKG_LIBC_DEPENDS:= eglibc glibc musl
+PKG_LIBC_DEPENDS:= eglibc glibc
PKG_TARGET_DEPENDS:= !atmel-ngw100
include ${TOPDIR}/mk/package.mk
diff --git a/package/xorg-server/Makefile b/package/xorg-server/Makefile
index 3faa23e49..6ca4f67f0 100644
--- a/package/xorg-server/Makefile
+++ b/package/xorg-server/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= xorg-server
PKG_VERSION:= 1.12.2
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= a95c896fbe8322c3c8d518a13eb74c7a
PKG_DESCR:= Xorg server
PKG_SECTION:= x11/server
diff --git a/package/xorg-server/patches/patch-hw_kdrive_linux_linux_c b/package/xorg-server/patches/patch-hw_kdrive_linux_linux_c
new file mode 100644
index 000000000..2a8477cb8
--- /dev/null
+++ b/package/xorg-server/patches/patch-hw_kdrive_linux_linux_c
@@ -0,0 +1,13 @@
+--- xorg-server-1.12.2.orig/hw/kdrive/linux/linux.c 2012-05-17 19:09:03.000000000 +0200
++++ xorg-server-1.12.2/hw/kdrive/linux/linux.c 2013-12-22 20:10:03.000000000 +0100
+@@ -66,8 +66,8 @@ static void
+ LinuxCheckChown(char *file)
+ {
+ struct stat st;
+- __uid_t u;
+- __gid_t g;
++ uid_t u;
++ gid_t g;
+
+ if (stat(file, &st) < 0)
+ return;
diff --git a/package/xterm/Makefile b/package/xterm/Makefile
index 5e26c53b8..10bfaf21a 100644
--- a/package/xterm/Makefile
+++ b/package/xterm/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= xterm
PKG_VERSION:= 297
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 45610ae6fe90cf086fcd75b9cb97bbaf
PKG_DESCR:= Terminal Emulator for X Windows
PKG_SECTION:= x11/apps
@@ -20,6 +20,7 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,XTERM,xterm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_LDFLAGS+= -ltinfo
CONFIGURE_ARGS+= --with-app-defaults=/usr/lib/X11/app-defaults \
--disable-pty-handshake
diff --git a/package/xz/Makefile b/package/xz/Makefile
index 663e552f8..1793f8eaf 100644
--- a/package/xz/Makefile
+++ b/package/xz/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= xz
-PKG_VERSION:= 5.0.1
+PKG_VERSION:= 5.0.5
PKG_RELEASE:= 1
-PKG_MD5SUM:= 60044a5701997e4e0904257197208ea9
+PKG_MD5SUM:= 19d924e066b6fff0bc9d1981b4e53196
PKG_DESCR:= xz compression utility
PKG_SECTION:= archive
PKG_URL:= http://tukaani.org/xz/
diff --git a/rules.mk b/rules.mk
index f848d83ac..2d49a4b09 100644
--- a/rules.mk
+++ b/rules.mk
@@ -49,6 +49,7 @@ ADK_TOOLS_ADDPATTERN_ARGS:= $(strip $(subst ",, $(ADK_TOOLS_ADDPATTERN_ARGS)))
ADK_KERNEL_VERSION:= $(strip $(subst ",, $(ADK_KERNEL_VERSION)))
ADK_PARAMETER_NETCONSOLE_SRC_IP:= $(strip $(subst ",, $(ADK_PARAMETER_NETCONSOLE_SRC_IP)))
ADK_PARAMETER_NETCONSOLE_DST_IP:= $(strip $(subst ",, $(ADK_PARAMETER_NETCONSOLE_DST_IP)))
+ADK_JFFS2_OPTS:= $(strip $(subst ",, $(ADK_JFFS2_OPTS)))
ifeq ($(strip ${ADK_HAVE_DOT_CONFIG}),y)
ifneq ($(strip $(wildcard $(TOPDIR)/target/$(ADK_TARGET_ARCH)/target.mk)),)
diff --git a/scripts/scan-pkgs.sh b/scripts/scan-pkgs.sh
index 5d4a80abc..c94d01138 100644
--- a/scripts/scan-pkgs.sh
+++ b/scripts/scan-pkgs.sh
@@ -97,19 +97,6 @@ if [[ -n $ADK_PACKAGE_LIBXFONT ]]; then
NEED_XMLTO="$NEED_XMLTO libXfont"
fi
-if [[ -n $ADK_PACKAGE_PACEMAKER_MGMTD ]]; then
- NEED_SWIG="$NEED_SWIG pacemaker-mgmtd"
-fi
-
-if [[ -n $ADK_PACKAGE_EGLIBC ]]; then
- NEED_GPERF="$NEED_GPERF eglibc"
-fi
-
-if [[ -n $ADK_PACKAGE_XBMC ]]; then
- NEED_SDLDEV="$NEED_SDLDEV xbmc"
- NEED_SDLIMAGEDEV="$NEED_SDLIMAGEDEV xbmc"
-fi
-
if [[ -n $ADK_PACKAGE_FONT_BITSTREAM_100DPI ]]; then
NEED_MKFONTDIR="$NEED_MKFONTDIR font-bitstream-100dpi"
fi
@@ -251,20 +238,6 @@ if [[ -n $NEED_WWW ]]; then
fi
fi
-if [[ -n $NEED_SWIG ]]; then
- if ! which swig >/dev/null 2>&1; then
- echo >&2 You need swig to build $NEED_SWIG
- out=1
- fi
-fi
-
-if [[ -n $NEED_GPERF ]]; then
- if ! which gperf >/dev/null 2>&1; then
- echo >&2 You need gperf to build $NEED_GPERF
- out=1
- fi
-fi
-
if [[ -n $NEED_GXX ]]; then
if ! which g++ >/dev/null 2>&1; then
echo >&2 You need GNU c++ compiler to build $NEED_GXX
diff --git a/target/Makefile b/target/Makefile
index b8b92c960..562d2b86b 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -59,12 +59,22 @@ ifeq ($(ADK_NATIVE),y)
if [ -f /proc/config.gz ];then zcat /proc/config.gz > ${BUILD_DIR}/.kernelconfig.board; else cp ${ADK_TARGET}/kernel.config.$(ARCH) ${BUILD_DIR}/.kernelconfig.board; fi; \
fi
else
+ifeq ($(ADK_USE_KERNEL_MINICONFIG),y)
+ @if [ -f ${ADK_TARGET_ARCH}/kernel/${ADK_TARGET_KERNEL_MINICONFIG} ];then \
+ cat ${TOPDIR}/target/linux/kernel.config \
+ ${ADK_TARGET_ARCH}/kernel/${ADK_TARGET_KERNEL_MINICONFIG} > ${BUILD_DIR}/.kernelconfig.board; \
+ else \
+ echo "no miniconfig found for target system"; \
+ exit 1; \
+ fi
+else
@if [ -f ${ADK_TARGET_ARCH}/${KERNEL_CFG}.$(ADK_TARGET_SYSTEM) ];then \
cp ${ADK_TARGET_ARCH}/${KERNEL_CFG}.$(ADK_TARGET_SYSTEM) ${BUILD_DIR}/.kernelconfig.board; \
else \
cp ${ADK_TARGET_ARCH}/${KERNEL_CFG} ${BUILD_DIR}/.kernelconfig.board; \
fi
endif
+endif
@(cat ${BUILD_DIR}/.kernelconfig.{modules,kernel} | \
while IFS='=' read symbol value; do \
sed -i -e "/^# $$symbol/d" ${BUILD_DIR}/.kernelconfig.board; \
diff --git a/target/arm/kernel.config b/target/arm/kernel.config
index 7a4266c04..e477fcfb8 100644
--- a/target/arm/kernel.config
+++ b/target/arm/kernel.config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/arm 3.11.5 Kernel Configuration
+# Linux/arm 3.11.10 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
@@ -332,9 +332,6 @@ CONFIG_ZBOOT_ROM_TEXT=0
CONFIG_ZBOOT_ROM_BSS=0
# CONFIG_ARM_APPENDED_DTB is not set
CONFIG_CMDLINE=""
-# CONFIG_CMDLINE_FROM_BOOTLOADER is not set
-CONFIG_CMDLINE_EXTEND=y
-# CONFIG_CMDLINE_FORCE is not set
# CONFIG_XIP_KERNEL is not set
# CONFIG_KEXEC is not set
# CONFIG_CRASH_DUMP is not set
@@ -810,7 +807,57 @@ CONFIG_TMPFS=y
# CONFIG_CONFIGFS_FS is not set
# CONFIG_MISC_FILESYSTEMS is not set
# CONFIG_NETWORK_FILESYSTEMS is not set
-# CONFIG_NLS is not set
+CONFIG_NLS=m
+CONFIG_NLS_DEFAULT="iso8859-1"
+# CONFIG_NLS_CODEPAGE_437 is not set
+# CONFIG_NLS_CODEPAGE_737 is not set
+# CONFIG_NLS_CODEPAGE_775 is not set
+# CONFIG_NLS_CODEPAGE_850 is not set
+# CONFIG_NLS_CODEPAGE_852 is not set
+# CONFIG_NLS_CODEPAGE_855 is not set
+# CONFIG_NLS_CODEPAGE_857 is not set
+# CONFIG_NLS_CODEPAGE_860 is not set
+# CONFIG_NLS_CODEPAGE_861 is not set
+# CONFIG_NLS_CODEPAGE_862 is not set
+# CONFIG_NLS_CODEPAGE_863 is not set
+# CONFIG_NLS_CODEPAGE_864 is not set
+# CONFIG_NLS_CODEPAGE_865 is not set
+# CONFIG_NLS_CODEPAGE_866 is not set
+# CONFIG_NLS_CODEPAGE_869 is not set
+# CONFIG_NLS_CODEPAGE_936 is not set
+# CONFIG_NLS_CODEPAGE_950 is not set
+# CONFIG_NLS_CODEPAGE_932 is not set
+# CONFIG_NLS_CODEPAGE_949 is not set
+# CONFIG_NLS_CODEPAGE_874 is not set
+# CONFIG_NLS_ISO8859_8 is not set
+# CONFIG_NLS_CODEPAGE_1250 is not set
+# CONFIG_NLS_CODEPAGE_1251 is not set
+# CONFIG_NLS_ASCII is not set
+# CONFIG_NLS_ISO8859_1 is not set
+# CONFIG_NLS_ISO8859_2 is not set
+# CONFIG_NLS_ISO8859_3 is not set
+# CONFIG_NLS_ISO8859_4 is not set
+# CONFIG_NLS_ISO8859_5 is not set
+# CONFIG_NLS_ISO8859_6 is not set
+# CONFIG_NLS_ISO8859_7 is not set
+# CONFIG_NLS_ISO8859_9 is not set
+# CONFIG_NLS_ISO8859_13 is not set
+# CONFIG_NLS_ISO8859_14 is not set
+# CONFIG_NLS_ISO8859_15 is not set
+# CONFIG_NLS_KOI8_R is not set
+# CONFIG_NLS_KOI8_U is not set
+# CONFIG_NLS_MAC_ROMAN is not set
+# CONFIG_NLS_MAC_CELTIC is not set
+# CONFIG_NLS_MAC_CENTEURO is not set
+# CONFIG_NLS_MAC_CROATIAN is not set
+# CONFIG_NLS_MAC_CYRILLIC is not set
+# CONFIG_NLS_MAC_GAELIC is not set
+# CONFIG_NLS_MAC_GREEK is not set
+# CONFIG_NLS_MAC_ICELAND is not set
+# CONFIG_NLS_MAC_INUIT is not set
+# CONFIG_NLS_MAC_ROMANIAN is not set
+# CONFIG_NLS_MAC_TURKISH is not set
+# CONFIG_NLS_UTF8 is not set
#
# Kernel hacking
diff --git a/target/arm/sys-available/keyasic-ka2000 b/target/arm/sys-available/keyasic-ka2000
new file mode 100644
index 000000000..d4ed74282
--- /dev/null
+++ b/target/arm/sys-available/keyasic-ka2000
@@ -0,0 +1,16 @@
+config ADK_TARGET_SYSTEM_KEYASIC_KA2000
+ bool "KeyASIC KA2000 (f.e. Transcend WifiSD)"
+ select ADK_arm
+ select ADK_little
+ select ADK_keyasic_ka2000
+ select ADK_KERNEL_AEABI
+ select ADK_EABI
+ select ADK_CPU_ARMV5
+ select ADK_TARGET_NO_FPU
+ select ADK_TOOLCHAIN
+ select ADK_STATIC
+ select BUSYBOX_STATIC
+ help
+ KeyASIC KA2000 aka Transcend WifiSD.
+ Build a toolchain only and make all binaries static.
+
diff --git a/target/arm/sys-available/raspberry-pi b/target/arm/sys-available/raspberry-pi
index 9d743ed18..3fa60178e 100644
--- a/target/arm/sys-available/raspberry-pi
+++ b/target/arm/sys-available/raspberry-pi
@@ -14,7 +14,6 @@ config ADK_TARGET_SYSTEM_RASPBERRY_PI
select ADK_TARGET_WITH_USB
select ADK_TARGET_WITH_INPUT
select ADK_PACKAGE_BCM2835_FIRMWARE
- select ADK_PACKAGE_BCM2835_VC
select ADK_TARGET_KERNEL_ZIMAGE
help
Raspberry PI
diff --git a/target/config/Config.in b/target/config/Config.in
index f551e21a0..1e7afc323 100644
--- a/target/config/Config.in
+++ b/target/config/Config.in
@@ -20,7 +20,7 @@ config ADK_TARGET_KERNEL
string
default "zImage" if ADK_TARGET_KERNEL_ZIMAGE
default "Image" if ADK_TARGET_KERNEL_IMAGE
- default "simpleImage.system" if ADK_TARGET_KERNEL_LINUXBIN
+ default "linux.bin" if ADK_TARGET_KERNEL_LINUXBIN
default "vmlinuz" if ADK_TARGET_KERNEL_VMLINUZ
default "bzImage" if ADK_TARGET_KERNEL_BZIMAGE
default "vmlinux"
@@ -36,6 +36,11 @@ config ADK_TARGET_ENDIAN
default "little" if ADK_little
default "big" if ADK_big
+config ADK_JFFS2_OPTS
+ string
+ default "-l" if ADK_little
+ default "-b" if ADK_big
+
config ADK_TOOLCHAIN
boolean
@@ -143,7 +148,25 @@ config ADK_TARGET_LIBC_PATH
# submodel support
-#
+
+config ADK_TARGET_KERNEL_MINICONFIG
+ string
+ default "qemu-microblaze-s3adsp1800" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800
+ default "qemu-microblaze-ml605" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605
+
+choice
+prompt "Qemu MICROBLAZE Emulation"
+depends on ADK_TARGET_SYSTEM_QEMU_MICROBLAZE || ADK_TARGET_SYSTEM_QEMU_MICROBLAZEEL
+
+config ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605
+ boolean "Xilinx ml605"
+ select ADK_TARGET_WITH_MTD
+
+config ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800
+ boolean "Xilinx Spartan S3ADSP1800"
+
+endchoice
+
choice
prompt "Qemu ARM Emulation"
depends on ADK_TARGET_SYSTEM_QEMU_ARM
@@ -501,8 +524,8 @@ config ADK_TARGET_CMDLINE
default "console=ttyS0,115200 console=tty0" if ADK_TARGET_SYSTEM_IBM_X40
default "console=ttyS0,115200 console=tty0" if ADK_TARGET_SYSTEM_INTEL_ATOM
default "console=ttyS0,115200 console=tty0" if ADK_TARGET_SYSTEM_QEMU_I686
- default "console=ttyUL0" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE
- default "console=ttyUL0" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZEEL
+ default "console=ttyUL0" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800
+ default "console=ttyS0,115200" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605
default "console=ttyS0,115200 console=tty0" if ADK_TARGET_SYSTEM_VBOX_I686
default "console=ttyS0,115200 console=tty0" if ADK_TARGET_QEMU_ARM_MODEL_SPITZ
default "console=ttyAMA0 console=tty0" if ADK_TARGET_QEMU_ARM_MODEL_VERSATILE
@@ -680,6 +703,14 @@ config ADK_TARGET_ROOTFS_SQUASHFS
help
highly compressed read-only filesystem for MTD flash systems.
+config ADK_TARGET_ROOTFS_JFFS2
+ bool "Compressed read-write root filesystem (jffs2)"
+ select ADK_KERNEL_MISC_FILESYSTEMS
+ select ADK_KERNEL_JFFS2
+ depends on ADK_TARGET_WITH_MTD
+ help
+ compressed read-write filesystem for MTD flash systems.
+
config ADK_TARGET_ROOTFS_YAFFS
bool "YAFFS2 root filesystem (NAND)"
select ADK_KERNEL_MISC_FILESYSTEMS
@@ -748,9 +779,21 @@ config ADK_TARGET_ROOTFS_MMC
Use this option if you have a MMC/SDCARD based system.
(ext2 filesystem is used.)
+config ADK_TARGET_ROOTFS_ISO
+ bool "ISO image"
+ select ADK_KERNEL_ISO9660_FS
+ select ADK_KERNEL_JOLIET
+ select ADK_KERNEL_SCSI
+ select ADK_KERNEL_BLK_DEV_SR
+ depends on ADK_HOST_LINUX
+ depends on ADK_LINUX_X86
+ help
+ Use this option to create a bootable ISO image.
+
config ADK_TARGET_ROOTFS_ARCHIVE
bool "Archive usable for different filesystems"
select ADK_KERNEL_EXT2_FS if ADK_HARDWARE_QEMU
+ depends on !ADK_LINUX_MICROBLAZE
help
Use this option if your root filesystem is ext2/ext3/ext4/xfs.
diff --git a/target/linux/Config.in b/target/linux/Config.in
index 79511489c..e4b81dd2f 100644
--- a/target/linux/Config.in
+++ b/target/linux/Config.in
@@ -18,7 +18,6 @@ source target/linux/config/Config.in.bluetooth
source target/linux/config/Config.in.watchdog
source target/linux/config/Config.in.leds
source target/linux/config/Config.in.misc
-source target/linux/config/Config.in.microblaze
source target/linux/config/Config.in.mips
source target/linux/config/Config.in.lib
source target/linux/config/Config.in.pm
diff --git a/target/linux/config/Config.in.block b/target/linux/config/Config.in.block
index bbd9ce745..fb5bf080f 100644
--- a/target/linux/config/Config.in.block
+++ b/target/linux/config/Config.in.block
@@ -28,6 +28,9 @@ config ADK_KERNEL_SCSI
config ADK_KERNEL_BLK_DEV_SD
boolean
+config ADK_KERNEL_BLK_DEV_SR
+ boolean
+
config ADK_KERNEL_ISCSI_TCP
boolean
@@ -324,6 +327,7 @@ config ADK_KPACKAGE_KMOD_BLK_DEV_SD
config ADK_KPACKAGE_KMOD_BLK_DEV_SR
prompt "kmod-scsi-cdrom................... SCSI CDROM support"
depends on !ADK_KERNEL_SCSI
+ depends on !ADK_KERNEL_BLK_DEV_SR
depends on ADK_KPACKAGE_KMOD_SCSI
tristate
help
diff --git a/target/linux/config/Config.in.flash b/target/linux/config/Config.in.flash
index 091cb98a4..773c518e8 100644
--- a/target/linux/config/Config.in.flash
+++ b/target/linux/config/Config.in.flash
@@ -1,6 +1,10 @@
config ADK_KERNEL_MTD
+ select ADK_KERNEL_GENERIC_IO
boolean
+config ADK_KERNEL_GENERIC_IO
+ boolean
+
config ADK_KERNEL_MTD_MTDRAM
boolean
@@ -41,6 +45,9 @@ config ADK_KERNEL_MTD_GEN_PROBE
config ADK_KERNEL_MTD_PHYSMAP
boolean
+config ADK_KERNEL_MTD_PHYSMAP_OF
+ boolean
+
config ADK_KERNEL_MTD_CFI_ADV_OPTIONS
boolean
@@ -57,16 +64,31 @@ config ADK_KERNEL_MTD_AR7_PARTS
config ADK_KERNEL_MTD_CFI_INTELEXT
boolean
default y if ADK_TARGET_SYSTEM_BROADCOM_BCM47XX
+ default y if ADK_TARGET_SYSTEM_QEMU_MICROBLAZEEL
+ default y if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE
default n
config ADK_KERNEL_MTD_CFI_AMDSTD
boolean
default y if ADK_TARGET_SYSTEM_BROADCOM_BCM47XX
+ default y if ADK_TARGET_SYSTEM_QEMU_MICROBLAZEEL
+ default y if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE
default n
config ADK_KERNEL_MTD_CFI_STAA
boolean
default y if ADK_TARGET_SYSTEM_BROADCOM_BCM47XX
+ default y if ADK_TARGET_SYSTEM_QEMU_MICROBLAZEEL
+ default y if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE
+ default n
+
+config ADK_KERNEL_MTD_OF_PARTS
+ boolean
+ default n
+
+config ADK_KERNEL_MTD_M25P80
+ boolean
+ default y if ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605
default n
config ADK_KERNEL_MTD_AR2315
@@ -78,6 +100,7 @@ config ADK_KERNEL_MTD_AR2315
config ADK_TARGET_NAND
boolean
+ select ADK_KERNEL_BLOCK
select ADK_KERNEL_MISC_FILESYSTEMS
select ADK_KERNEL_YAFFS_FS
select ADK_KERNEL_YAFFS_YAFFS2
@@ -88,22 +111,31 @@ config ADK_TARGET_NAND
select ADK_KERNEL_MTD_NAND_PLATFORM
select ADK_KERNEL_MTD_CHAR
select ADK_KERNEL_MTD_BLKDEVS
- select ADK_KERNEL_BLOCK
select ADK_KERNEL_MTD_BLOCK
default y if ADK_TARGET_WITH_NAND
default n
config ADK_TARGET_MTD
boolean
+ select ADK_KERNEL_BLOCK
+ select ADK_KERNEL_MISC_FILESYSTEMS
+ select ADK_KERNEL_JFFS2_FS
select ADK_KERNEL_MTD
select ADK_KERNEL_MTD_PARTITIONS
select ADK_KERNEL_MTD_CHAR
select ADK_KERNEL_MTD_BLKDEVS
- select ADK_KERNEL_BLOCK
select ADK_KERNEL_MTD_BLOCK
select ADK_KERNEL_MTD_ROOTFS_ROOT_DEV
select ADK_KERNEL_MTD_CFI
select ADK_KERNEL_MTD_GEN_PROBE
select ADK_KERNEL_MTD_PHYSMAP
+ select ADK_KERNEL_MTD_PHYSMAP_OF if ADK_LINUX_MICROBLAZE
+ select ADK_KERNEL_MTD_OF_PARTS if ADK_LINUX_MICROBLAZE
default y if ADK_TARGET_WITH_MTD
default n
+
+config ADK_TARGET_MTD_SIZE
+ int
+ default "33554432" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE
+ default "33554432" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZEEL
+ default "0"
diff --git a/target/linux/config/Config.in.fs b/target/linux/config/Config.in.fs
index ab048805e..a764e7491 100644
--- a/target/linux/config/Config.in.fs
+++ b/target/linux/config/Config.in.fs
@@ -1,5 +1,8 @@
menu "Filesystems support"
+config ADK_KERNEL_MISC_FILESYSTEMS
+ boolean
+
config ADK_KERNEL_FSNOTIFY
boolean
default y
@@ -8,6 +11,9 @@ config ADK_KERNEL_EXPORTFS
boolean
default y
+config ADK_KERNEL_JFFS2_FS
+ boolean
+
config ADK_KERNEL_YAFFS_FS
tristate
@@ -27,9 +33,6 @@ config ADK_KERNEL_YAFFS_CHECKPOINT_RESERVED_BLOCKS
config ADK_KERNEL_YAFFS_SHORT_NAMES_IN_RAM
boolean
-config ADK_KERNEL_MISC_FILESYSTEMS
- boolean
-
config ADK_KERNEL_DNOTIFY
boolean
@@ -44,10 +47,15 @@ config ADK_KERNEL_FAT_DEFAULT_IOCHARSET
string
default "iso8859-1"
+config ADK_KERNEL_SQUASHFS_XZ
+ boolean
+ default n
+
config ADK_KERNEL_SQUASHFS
prompt "squashfs.......................... SquashFS filesystem"
boolean
select ADK_KERNEL_MISC_FILESYSTEMS
+ select ADK_KERNEL_SQUASHFS_XZ
default n
config ADK_KERNEL_EXT2_FS
@@ -172,7 +180,8 @@ config ADK_KPACKAGE_KMOD_VFAT_FS
prompt "kmod-vfat-fs...................... VFAT filesystem support"
tristate
select ADK_KPACKAGE_KMOD_NLS if !ADK_KERNEL_NLS
- select ADK_KPACKAGE_KMOD_NLS_UTF8
+ select ADK_KPACKAGE_KMOD_NLS_CODEPAGE_850
+ select ADK_KPACKAGE_KMOD_NLS_ISO8859_1
select ADK_KERNEL_BLOCK
default y if ADK_TARGET_WITH_MMC
default n
@@ -227,7 +236,11 @@ config ADK_KPACKAGE_KMOD_FUSE_FS
fuse-utils.
config ADK_KERNEL_JOLIET
- bool
+ boolean
+ default n
+
+config ADK_KERNEL_ISO9660_FS
+ boolean
default n
config ADK_KPACKAGE_KMOD_ISO9660_FS
diff --git a/target/linux/config/Config.in.graphics b/target/linux/config/Config.in.graphics
index 75c05449f..af28b91d7 100644
--- a/target/linux/config/Config.in.graphics
+++ b/target/linux/config/Config.in.graphics
@@ -1,6 +1,5 @@
config ADK_KERNEL_VT
boolean
- default y if ADK_HARDWARE_QEMU
default y if ADK_HARDWARE_VBOX
default y if ADK_TARGET_WITH_VGA
default y if ADK_NATIVE_SYSTEM_IBM_X40
@@ -9,7 +8,6 @@ config ADK_KERNEL_VT
config ADK_KERNEL_VT_CONSOLE
boolean
- default y if ADK_HARDWARE_QEMU
default y if ADK_HARDWARE_VBOX
default y if ADK_TARGET_WITH_VGA
default y if ADK_NATIVE_SYSTEM_IBM_X40
diff --git a/target/linux/config/Config.in.microblaze b/target/linux/config/Config.in.microblaze
deleted file mode 100644
index 5a6764250..000000000
--- a/target/linux/config/Config.in.microblaze
+++ /dev/null
@@ -1,4 +0,0 @@
-config ADK_KERNEL_OPT_LIB_ASM
- default y if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE
- default n
- boolean
diff --git a/target/linux/kernel.config b/target/linux/kernel.config
new file mode 100644
index 000000000..8bf3aafe6
--- /dev/null
+++ b/target/linux/kernel.config
@@ -0,0 +1,41 @@
+CONFIG_DEFAULT_HOSTNAME="openadk"
+CONFIG_CMDLINE_BOOL=y
+CONFIG_CMDLINE=""
+CONFIG_MMU=y
+CONFIG_SYSVIPC=y
+CONFIG_SYSVIPC_SYSCTL=y
+CONFIG_POSIX_MQUEUE=y
+CONFIG_POSIX_MQUEUE_SYSCTL=y
+CONFIG_NET=y
+CONFIG_PACKET=y
+CONFIG_UNIX=y
+CONFIG_XFRM=y
+CONFIG_INET=y
+CONFIG_PROC_FS=y
+CONFIG_PROC_SYSCTL=y
+CONFIG_SYSFS=y
+CONFIG_TMPFS=y
+CONFIG_NLS=y
+CONFIG_NLS_DEFAULT="iso8859-1"
+CONFIG_EMBEDDED=y
+CONFIG_MODULES=y
+CONFIG_BINFMT_ELF=y
+CONFIG_BINFMT_SCRIPT=y
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
+CONFIG_STANDALONE=y
+CONFIG_NO_HZ=y
+CONFIG_PRINTK=y
+CONFIG_BUG=n
+CONFIG_FUTEX=y
+CONFIG_EPOLL=y
+CONFIG_SIGNALFD=y
+CONFIG_TIMERFD=y
+CONFIG_EVENTFD=y
+CONFIG_SHMEM=y
+CONFIG_AIO=y
+CONFIG_PCI_QUIRKS=y
+CONFIG_TTY=y
+CONFIG_UNIX98_PTYS=y
+CONFIG_PRINTK_TIME=y
+CONFIG_EARLY_PRINTK=y
diff --git a/target/linux/patches/3.11.10/defaults.patch b/target/linux/patches/3.11.10/defaults.patch
index 58aae610b..6cdca084e 100644
--- a/target/linux/patches/3.11.10/defaults.patch
+++ b/target/linux/patches/3.11.10/defaults.patch
@@ -20,3 +20,27 @@ diff -Nur linux-3.0.4.orig/fs/notify/Kconfig linux-3.0.4/fs/notify/Kconfig
source "fs/notify/dnotify/Kconfig"
source "fs/notify/inotify/Kconfig"
+diff -Nur linux-3.11.10.orig/drivers/scsi/Kconfig linux-3.11.10/drivers/scsi/Kconfig
+--- linux-3.11.10.orig/drivers/scsi/Kconfig 2013-11-29 19:42:37.000000000 +0100
++++ linux-3.11.10/drivers/scsi/Kconfig 2013-12-27 19:13:21.000000000 +0100
+@@ -2,7 +2,7 @@
+
+ config SCSI_MOD
+ tristate
+- default y if SCSI=n || SCSI=y
++ default y if SCSI=y
+ default m if SCSI=m
+
+ config RAID_ATTRS
+diff -Nur linux-3.11.10.orig/usr/Kconfig linux-3.11.10/usr/Kconfig
+--- linux-3.11.10.orig/usr/Kconfig 2013-11-29 19:42:37.000000000 +0100
++++ linux-3.11.10/usr/Kconfig 2013-12-27 19:15:16.000000000 +0100
+@@ -47,7 +47,7 @@
+
+ config RD_GZIP
+ bool "Support initial ramdisks compressed using gzip" if EXPERT
+- default y
++ default n
+ depends on BLK_DEV_INITRD
+ select DECOMPRESS_GZIP
+ help
diff --git a/target/linux/patches/3.11.10/microblaze-dts.patch b/target/linux/patches/3.11.10/microblaze-dts.patch
deleted file mode 100644
index e73959a73..000000000
--- a/target/linux/patches/3.11.10/microblaze-dts.patch
+++ /dev/null
@@ -1,475 +0,0 @@
-diff -Nur linux-3.11.10.orig/arch/microblaze/platform/generic/system.dts linux-3.11.10/arch/microblaze/platform/generic/system.dts
---- linux-3.11.10.orig/arch/microblaze/platform/generic/system.dts 2013-11-29 19:42:37.000000000 +0100
-+++ linux-3.11.10/arch/microblaze/platform/generic/system.dts 2013-12-08 13:01:59.000000000 +0100
-@@ -1,102 +1,72 @@
--/*
-- * Device Tree Generator version: 1.1
-- *
-- * (C) Copyright 2007-2008 Xilinx, Inc.
-- * (C) Copyright 2007-2009 Michal Simek
-- *
-- * Michal SIMEK <monstr@monstr.eu>
-- *
-- * 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., 59 Temple Place, Suite 330, Boston,
-- * MA 02111-1307 USA
-- *
-- * CAUTION: This file is automatically generated by libgen.
-- * Version: Xilinx EDK 10.1.03 EDK_K_SP3.6
-- *
-- * XPS project directory: Xilinx-ML505-ll_temac-sgdma-MMU-FDT-edk101
-- */
--
- /dts-v1/;
-+
- / {
-- #address-cells = <1>;
-- #size-cells = <1>;
-+ #address-cells = <0x1>;
-+ #size-cells = <0x1>;
- compatible = "xlnx,microblaze";
-- hard-reset-gpios = <&LEDs_8Bit 2 1>;
- model = "testing";
-- DDR2_SDRAM: memory@90000000 {
-+
-+ memory@90000000 {
- device_type = "memory";
-- reg = < 0x90000000 0x10000000 >;
-- } ;
-- aliases {
-- ethernet0 = &Hard_Ethernet_MAC;
-- serial0 = &RS232_Uart_1;
-- } ;
-+ reg = <0x90000000 0x8000000>;
-+ };
-+
- chosen {
-- bootargs = "console=ttyUL0,115200 highres=on";
-+ bootargs = "console=ttyUL0,115200";
- linux,stdout-path = "/plb@0/serial@84000000";
-- } ;
-+ };
-+
- cpus {
-- #address-cells = <1>;
-+ #address-cells = <0x1>;
- #cpus = <0x1>;
-- #size-cells = <0>;
-- microblaze_0: cpu@0 {
-- clock-frequency = <125000000>;
-+ #size-cells = <0x0>;
-+
-+ cpu@0 {
-+ clock-frequency = <0x3b9aca0>;
- compatible = "xlnx,microblaze-7.10.d";
- d-cache-baseaddr = <0x90000000>;
-- d-cache-highaddr = <0x9fffffff>;
-+ d-cache-highaddr = <0x97ffffff>;
- d-cache-line-size = <0x10>;
-- d-cache-size = <0x2000>;
-+ d-cache-size = <0x800>;
- device_type = "cpu";
- i-cache-baseaddr = <0x90000000>;
-- i-cache-highaddr = <0x9fffffff>;
-+ i-cache-highaddr = <0x97ffffff>;
- i-cache-line-size = <0x10>;
-- i-cache-size = <0x2000>;
-+ i-cache-size = <0x800>;
- model = "microblaze,7.10.d";
-- reg = <0>;
-- timebase-frequency = <125000000>;
-- xlnx,addr-tag-bits = <0xf>;
-+ reg = <0x0>;
-+ timebase-frequency = <0x3b9aca0>;
-+ xlnx,addr-tag-bits = <0x10>;
- xlnx,allow-dcache-wr = <0x1>;
- xlnx,allow-icache-wr = <0x1>;
- xlnx,area-optimized = <0x0>;
-- xlnx,cache-byte-size = <0x2000>;
-+ xlnx,cache-byte-size = <0x800>;
- xlnx,d-lmb = <0x1>;
- xlnx,d-opb = <0x0>;
- xlnx,d-plb = <0x1>;
- xlnx,data-size = <0x20>;
-- xlnx,dcache-addr-tag = <0xf>;
-- xlnx,dcache-always-used = <0x1>;
-- xlnx,dcache-byte-size = <0x2000>;
-+ xlnx,dcache-addr-tag = <0x10>;
-+ xlnx,dcache-always-used = <0x0>;
-+ xlnx,dcache-byte-size = <0x800>;
- xlnx,dcache-line-len = <0x4>;
- xlnx,dcache-use-fsl = <0x1>;
- xlnx,debug-enabled = <0x1>;
-- xlnx,div-zero-exception = <0x1>;
-+ xlnx,div-zero-exception = <0x0>;
- xlnx,dopb-bus-exception = <0x0>;
- xlnx,dynamic-bus-sizing = <0x1>;
- xlnx,edge-is-positive = <0x1>;
-- xlnx,family = "virtex5";
-- xlnx,endianness = <0x1>;
-- xlnx,fpu-exception = <0x1>;
-+ xlnx,family = "spartan3adsp";
-+ xlnx,fpu-exception = <0x0>;
- xlnx,fsl-data-size = <0x20>;
- xlnx,fsl-exception = <0x0>;
- xlnx,fsl-links = <0x0>;
- xlnx,i-lmb = <0x1>;
- xlnx,i-opb = <0x0>;
- xlnx,i-plb = <0x1>;
-- xlnx,icache-always-used = <0x1>;
-+ xlnx,icache-always-used = <0x0>;
- xlnx,icache-line-len = <0x4>;
- xlnx,icache-use-fsl = <0x1>;
-- xlnx,ill-opcode-exception = <0x1>;
-+ xlnx,ill-opcode-exception = <0x0>;
- xlnx,instance = "microblaze_0";
- xlnx,interconnect = <0x1>;
- xlnx,interrupt-is-edge = <0x0>;
-@@ -105,11 +75,11 @@
- xlnx,mmu-itlb-size = <0x2>;
- xlnx,mmu-tlb-access = <0x3>;
- xlnx,mmu-zones = <0x10>;
-- xlnx,number-of-pc-brk = <0x1>;
-- xlnx,number-of-rd-addr-brk = <0x0>;
-- xlnx,number-of-wr-addr-brk = <0x0>;
-- xlnx,opcode-0x0-illegal = <0x1>;
-- xlnx,pvr = <0x2>;
-+ xlnx,number-of-pc-brk = <0x3>;
-+ xlnx,number-of-rd-addr-brk = <0x2>;
-+ xlnx,number-of-wr-addr-brk = <0x2>;
-+ xlnx,opcode-0x0-illegal = <0x0>;
-+ xlnx,pvr = <0x1>;
- xlnx,pvr-user1 = <0x0>;
- xlnx,pvr-user2 = <0x0>;
- xlnx,reset-msr = <0x0>;
-@@ -117,29 +87,44 @@
- xlnx,unaligned-exceptions = <0x1>;
- xlnx,use-barrel = <0x1>;
- xlnx,use-dcache = <0x1>;
-- xlnx,use-div = <0x1>;
-+ xlnx,use-div = <0x0>;
- xlnx,use-ext-brk = <0x1>;
- xlnx,use-ext-nm-brk = <0x1>;
- xlnx,use-extended-fsl-instr = <0x0>;
-- xlnx,use-fpu = <0x2>;
-- xlnx,use-hw-mul = <0x2>;
-+ xlnx,use-fpu = <0x0>;
-+ xlnx,use-hw-mul = <0x1>;
- xlnx,use-icache = <0x1>;
- xlnx,use-interrupt = <0x1>;
- xlnx,use-mmu = <0x3>;
- xlnx,use-msr-instr = <0x1>;
- xlnx,use-pcmp-instr = <0x1>;
-- } ;
-- } ;
-- mb_plb: plb@0 {
-- #address-cells = <1>;
-- #size-cells = <1>;
-- compatible = "xlnx,plb-v46-1.03.a", "xlnx,plb-v46-1.00.a", "simple-bus";
-- ranges ;
-- FLASH: flash@a0000000 {
-- bank-width = <2>;
-+ };
-+ };
-+
-+ plb@0 {
-+ #address-cells = <0x1>;
-+ #size-cells = <0x1>;
-+ compatible = "xlnx,plb-v46-1.03.a", "simple-bus";
-+ ranges;
-+
-+ ethernet@81000000 {
-+ compatible = "xlnx,xps-ethernetlite-2.00.b";
-+ device_type = "network";
-+ interrupt-parent = <0x1>;
-+ interrupts = <0x1 0x0>;
-+ local-mac-address = [02 00 00 00 00 00];
-+ reg = <0x81000000 0x10000>;
-+ xlnx,duplex = <0x1>;
-+ xlnx,family = "spartan3adsp";
-+ xlnx,rx-ping-pong = <0x0>;
-+ xlnx,tx-ping-pong = <0x0>;
-+ };
-+
-+ flash@a0000000 {
-+ bank-width = <0x1>;
- compatible = "xlnx,xps-mch-emc-2.00.a", "cfi-flash";
-- reg = < 0xa0000000 0x2000000 >;
-- xlnx,family = "virtex5";
-+ reg = <0xa0000000 0x1000000>;
-+ xlnx,family = "spartan3adsp";
- xlnx,include-datawidth-matching-0 = <0x1>;
- xlnx,include-datawidth-matching-1 = <0x0>;
- xlnx,include-datawidth-matching-2 = <0x0>;
-@@ -147,9 +132,9 @@
- xlnx,include-negedge-ioregs = <0x0>;
- xlnx,include-plb-ipif = <0x1>;
- xlnx,include-wrbuf = <0x1>;
-- xlnx,max-mem-width = <0x10>;
-+ xlnx,max-mem-width = <0x8>;
- xlnx,mch-native-dwidth = <0x20>;
-- xlnx,mch-plb-clk-period-ps = <0x1f40>;
-+ xlnx,mch-plb-clk-period-ps = <0x3e80>;
- xlnx,mch-splb-awidth = <0x20>;
- xlnx,mch0-accessbuf-depth = <0x10>;
- xlnx,mch0-protocol = <0x0>;
-@@ -163,7 +148,7 @@
- xlnx,mch3-accessbuf-depth = <0x10>;
- xlnx,mch3-protocol = <0x0>;
- xlnx,mch3-rddatabuf-depth = <0x10>;
-- xlnx,mem0-width = <0x10>;
-+ xlnx,mem0-width = <0x8>;
- xlnx,mem1-width = <0x20>;
- xlnx,mem2-width = <0x20>;
- xlnx,mem3-width = <0x20>;
-@@ -178,31 +163,31 @@
- xlnx,synch-pipedelay-1 = <0x2>;
- xlnx,synch-pipedelay-2 = <0x2>;
- xlnx,synch-pipedelay-3 = <0x2>;
-- xlnx,tavdv-ps-mem-0 = <0x1adb0>;
-+ xlnx,tavdv-ps-mem-0 = <0x11170>;
- xlnx,tavdv-ps-mem-1 = <0x3a98>;
- xlnx,tavdv-ps-mem-2 = <0x3a98>;
- xlnx,tavdv-ps-mem-3 = <0x3a98>;
-- xlnx,tcedv-ps-mem-0 = <0x1adb0>;
-+ xlnx,tcedv-ps-mem-0 = <0x11170>;
- xlnx,tcedv-ps-mem-1 = <0x3a98>;
- xlnx,tcedv-ps-mem-2 = <0x3a98>;
- xlnx,tcedv-ps-mem-3 = <0x3a98>;
-- xlnx,thzce-ps-mem-0 = <0x88b8>;
-+ xlnx,thzce-ps-mem-0 = <0x61a8>;
- xlnx,thzce-ps-mem-1 = <0x1b58>;
- xlnx,thzce-ps-mem-2 = <0x1b58>;
- xlnx,thzce-ps-mem-3 = <0x1b58>;
-- xlnx,thzoe-ps-mem-0 = <0x1b58>;
-+ xlnx,thzoe-ps-mem-0 = <0x61a8>;
- xlnx,thzoe-ps-mem-1 = <0x1b58>;
- xlnx,thzoe-ps-mem-2 = <0x1b58>;
- xlnx,thzoe-ps-mem-3 = <0x1b58>;
-- xlnx,tlzwe-ps-mem-0 = <0x88b8>;
-+ xlnx,tlzwe-ps-mem-0 = <0x1388>;
- xlnx,tlzwe-ps-mem-1 = <0x0>;
- xlnx,tlzwe-ps-mem-2 = <0x0>;
- xlnx,tlzwe-ps-mem-3 = <0x0>;
-- xlnx,twc-ps-mem-0 = <0x2af8>;
-+ xlnx,twc-ps-mem-0 = <0x11170>;
- xlnx,twc-ps-mem-1 = <0x3a98>;
- xlnx,twc-ps-mem-2 = <0x3a98>;
- xlnx,twc-ps-mem-3 = <0x3a98>;
-- xlnx,twp-ps-mem-0 = <0x11170>;
-+ xlnx,twp-ps-mem-0 = <0xafc8>;
- xlnx,twp-ps-mem-1 = <0x2ee0>;
- xlnx,twp-ps-mem-2 = <0x2ee0>;
- xlnx,twp-ps-mem-3 = <0x2ee0>;
-@@ -214,154 +199,83 @@
- xlnx,xcl2-writexfer = <0x1>;
- xlnx,xcl3-linesize = <0x4>;
- xlnx,xcl3-writexfer = <0x1>;
-- } ;
-- Hard_Ethernet_MAC: xps-ll-temac@81c00000 {
-- #address-cells = <1>;
-- #size-cells = <1>;
-- compatible = "xlnx,compound";
-- ranges ;
-- ethernet@81c00000 {
-- compatible = "xlnx,xps-ll-temac-1.01.b", "xlnx,xps-ll-temac-1.00.a";
-- device_type = "network";
-- interrupt-parent = <&xps_intc_0>;
-- interrupts = < 5 2 >;
-- llink-connected = <&PIM3>;
-- local-mac-address = [ 00 0a 35 00 00 00 ];
-- reg = < 0x81c00000 0x40 >;
-- xlnx,bus2core-clk-ratio = <0x1>;
-- xlnx,phy-type = <0x1>;
-- xlnx,phyaddr = <0x1>;
-- xlnx,rxcsum = <0x0>;
-- xlnx,rxfifo = <0x1000>;
-- xlnx,temac-type = <0x0>;
-- xlnx,txcsum = <0x0>;
-- xlnx,txfifo = <0x1000>;
-- } ;
-- } ;
-- IIC_EEPROM: i2c@81600000 {
-- compatible = "xlnx,xps-iic-2.00.a";
-- interrupt-parent = <&xps_intc_0>;
-- interrupts = < 6 2 >;
-- reg = < 0x81600000 0x10000 >;
-- xlnx,clk-freq = <0x7735940>;
-- xlnx,family = "virtex5";
-- xlnx,gpo-width = <0x1>;
-- xlnx,iic-freq = <0x186a0>;
-- xlnx,scl-inertial-delay = <0x0>;
-- xlnx,sda-inertial-delay = <0x0>;
-- xlnx,ten-bit-adr = <0x0>;
-- } ;
-- LEDs_8Bit: gpio@81400000 {
-+ };
-+
-+ gpio@81400000 {
- compatible = "xlnx,xps-gpio-1.00.a";
-- interrupt-parent = <&xps_intc_0>;
-- interrupts = < 7 2 >;
-- reg = < 0x81400000 0x10000 >;
-+ interrupt-parent = <0x1>;
-+ interrupts = <0x2 0x2>;
-+ reg = <0x81400000 0x10000>;
- xlnx,all-inputs = <0x0>;
- xlnx,all-inputs-2 = <0x0>;
- xlnx,dout-default = <0x0>;
- xlnx,dout-default-2 = <0x0>;
-- xlnx,family = "virtex5";
-+ xlnx,family = "spartan3adsp";
- xlnx,gpio-width = <0x8>;
- xlnx,interrupt-present = <0x1>;
-- xlnx,is-bidir = <0x1>;
-+ xlnx,is-bidir = <0x0>;
- xlnx,is-bidir-2 = <0x1>;
- xlnx,is-dual = <0x0>;
- xlnx,tri-default = <0xffffffff>;
- xlnx,tri-default-2 = <0xffffffff>;
-- #gpio-cells = <2>;
-- gpio-controller;
-- } ;
--
-- gpio-leds {
-- compatible = "gpio-leds";
--
-- heartbeat {
-- label = "Heartbeat";
-- gpios = <&LEDs_8Bit 4 1>;
-- linux,default-trigger = "heartbeat";
-- };
--
-- yellow {
-- label = "Yellow";
-- gpios = <&LEDs_8Bit 5 1>;
-- };
--
-- red {
-- label = "Red";
-- gpios = <&LEDs_8Bit 6 1>;
-- };
--
-- green {
-- label = "Green";
-- gpios = <&LEDs_8Bit 7 1>;
-- };
-- } ;
-- RS232_Uart_1: serial@84000000 {
-- clock-frequency = <125000000>;
-+ };
-+
-+ serial@84000000 {
-+ clock-frequency = <0x3b9aca0>;
- compatible = "xlnx,xps-uartlite-1.00.a";
-- current-speed = <115200>;
-+ current-speed = <0x1c200>;
- device_type = "serial";
-- interrupt-parent = <&xps_intc_0>;
-- interrupts = < 8 0 >;
-- port-number = <0>;
-- reg = < 0x84000000 0x10000 >;
-+ interrupt-parent = <0x1>;
-+ interrupts = <0x3 0x0>;
-+ port-number = <0x0>;
-+ reg = <0x84000000 0x10000>;
- xlnx,baudrate = <0x1c200>;
- xlnx,data-bits = <0x8>;
-- xlnx,family = "virtex5";
-+ xlnx,family = "spartan3adsp";
- xlnx,odd-parity = <0x0>;
- xlnx,use-parity = <0x0>;
-- } ;
-- SysACE_CompactFlash: sysace@83600000 {
-- compatible = "xlnx,xps-sysace-1.00.a";
-- interrupt-parent = <&xps_intc_0>;
-- interrupts = < 4 2 >;
-- reg = < 0x83600000 0x10000 >;
-- xlnx,family = "virtex5";
-- xlnx,mem-width = <0x10>;
-- } ;
-- debug_module: debug@84400000 {
-+ };
-+
-+ debug@84400000 {
- compatible = "xlnx,mdm-1.00.d";
-- reg = < 0x84400000 0x10000 >;
-- xlnx,family = "virtex5";
-+ reg = <0x84400000 0x10000>;
-+ xlnx,family = "spartan3adsp";
- xlnx,interconnect = <0x1>;
- xlnx,jtag-chain = <0x2>;
- xlnx,mb-dbg-ports = <0x1>;
- xlnx,uart-width = <0x8>;
- xlnx,use-uart = <0x1>;
- xlnx,write-fsl-ports = <0x0>;
-- } ;
-+ };
-+
- mpmc@90000000 {
-- #address-cells = <1>;
-- #size-cells = <1>;
-- compatible = "xlnx,mpmc-4.02.a";
-- ranges ;
-- PIM3: sdma@84600180 {
-- compatible = "xlnx,ll-dma-1.00.a";
-- interrupt-parent = <&xps_intc_0>;
-- interrupts = < 2 2 1 2 >;
-- reg = < 0x84600180 0x80 >;
-- } ;
-- } ;
-- xps_intc_0: interrupt-controller@81800000 {
-+ #address-cells = <0x1>;
-+ #size-cells = <0x1>;
-+ compatible = "xlnx,mpmc-4.03.a";
-+ };
-+
-+ interrupt-controller@81800000 {
- #interrupt-cells = <0x2>;
- compatible = "xlnx,xps-intc-1.00.a";
-- interrupt-controller ;
-- reg = < 0x81800000 0x10000 >;
-- xlnx,kind-of-intr = <0x100>;
-- xlnx,num-intr-inputs = <0x9>;
-- } ;
-- xps_timer_1: timer@83c00000 {
-+ interrupt-controller;
-+ reg = <0x81800000 0x10000>;
-+ xlnx,kind-of-intr = <0xa>;
-+ xlnx,num-intr-inputs = <0x4>;
-+ linux,phandle = <0x1>;
-+ };
-+
-+ timer@83c00000 {
- compatible = "xlnx,xps-timer-1.00.a";
-- interrupt-parent = <&xps_intc_0>;
-- interrupts = < 3 2 >;
-- reg = < 0x83c00000 0x10000 >;
-+ interrupt-parent = <0x1>;
-+ interrupts = <0x0 0x2>;
-+ reg = <0x83c00000 0x10000>;
- xlnx,count-width = <0x20>;
-- xlnx,family = "virtex5";
-+ xlnx,family = "spartan3adsp";
- xlnx,gen0-assert = <0x1>;
- xlnx,gen1-assert = <0x1>;
- xlnx,one-timer-only = <0x0>;
- xlnx,trig0-assert = <0x1>;
- xlnx,trig1-assert = <0x1>;
-- } ;
-- } ;
--} ;
-+ };
-+ };
-+};
diff --git a/target/linux/patches/3.11.10/microblaze-ethernet.patch b/target/linux/patches/3.11.10/microblaze-ethernet.patch
new file mode 100644
index 000000000..742ab477e
--- /dev/null
+++ b/target/linux/patches/3.11.10/microblaze-ethernet.patch
@@ -0,0 +1,11 @@
+diff -Nur linux-3.11.10.orig/drivers/net/ethernet/xilinx/xilinx_emaclite.c linux-3.11.10/drivers/net/ethernet/xilinx/xilinx_emaclite.c
+--- linux-3.11.10.orig/drivers/net/ethernet/xilinx/xilinx_emaclite.c 2013-11-29 19:42:37.000000000 +0100
++++ linux-3.11.10/drivers/net/ethernet/xilinx/xilinx_emaclite.c 2013-12-23 20:01:14.000000000 +0100
+@@ -1282,6 +1282,7 @@
+ { .compatible = "xlnx,opb-ethernetlite-1.01.b", },
+ { .compatible = "xlnx,xps-ethernetlite-1.00.a", },
+ { .compatible = "xlnx,xps-ethernetlite-2.00.a", },
++ { .compatible = "xlnx,xps-ethernetlite-2.00.b", },
+ { .compatible = "xlnx,xps-ethernetlite-2.01.a", },
+ { .compatible = "xlnx,xps-ethernetlite-3.00.a", },
+ { /* end of list */ },
diff --git a/target/microblaze/Makefile b/target/microblaze/Makefile
index 3ff728627..e4c98ed6d 100644
--- a/target/microblaze/Makefile
+++ b/target/microblaze/Makefile
@@ -9,16 +9,36 @@ include $(TOPDIR)/mk/image.mk
KERNEL:=$(LINUX_DIR)/arch/microblaze/boot/$(ADK_TARGET_KERNEL)
-ifeq ($(ADK_TARGET_FS),archive)
-imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
- @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
+tools-compile:
+ $(MAKE) -C ../tools/mtd-utils all
+ $(MAKE) -C ../tools/xz all
+ $(MAKE) -C ../tools/squashfs all
+
+ifeq ($(ADK_TARGET_QEMU_MICROBLAZE_MODEL_ML605),y)
+MODEL:=petalogix-ml605
+DTB:=-dtb target/microblaze/ml605.dtb
+endif
+ifeq ($(ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800),y)
+MODEL:=petalogix-s3adsp1800
+DTB:=
+endif
+
+ifeq ($(ADK_TARGET_FS),squashfs)
+imageinstall: tools-compile $(BUILD_DIR)/root.squashfs
+ qemu-img create -f raw $(BIN_DIR)/$(ROOTFSSQUASHFS) $(ADK_TARGET_MTD_SIZE)
+ dd conv=notrunc if=$(BUILD_DIR)/root.squashfs of=$(BIN_DIR)/$(ROOTFSSQUASHFS)
+ @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
ifneq ($(ADK_HARDWARE_QEMU),)
+ @echo "Start qemu with following options:"
+ @echo 'qemu-system-${CPU_ARCH} $(DTB) -M $(MODEL) -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL) -pflash $(BIN_DIR)/$(ROOTFSSQUASHFS)'
+endif
+endif
+ifeq ($(ADK_TARGET_FS),jffs2)
+imageinstall: tools-compile $(BIN_DIR)/$(ROOTFSJFFS2)
@cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
- @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
- @echo "Use following command to create a QEMU Image:"
- @echo "./scripts/create.sh +g qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)"
+ifneq ($(ADK_HARDWARE_QEMU),)
@echo "Start qemu with following options:"
- @echo 'qemu-system-${CPU_ARCH} -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL) qemu-${CPU_ARCH}.img'
+ @echo 'qemu-system-${CPU_ARCH} $(DTB) -M $(MODEL) -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL) -pflash $(BIN_DIR)/$(ROOTFSJFFS2)'
endif
endif
ifeq ($(ADK_TARGET_FS),initramfs)
@@ -28,7 +48,7 @@ imageinstall: $(BIN_DIR)/$(INITRAMFS)
@echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
ifneq ($(ADK_HARDWARE_QEMU),)
@echo "Start qemu with following command line:"
- @echo 'qemu-system-${CPU_ARCH} -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL) -initrd ${BIN_DIR}/${INITRAMFS}'
+ @echo 'qemu-system-${CPU_ARCH} $(DTB) -M $(MODEL) -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL) -initrd ${BIN_DIR}/${INITRAMFS}'
endif
endif
ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
@@ -37,6 +57,6 @@ imageinstall: createinitramfs
@echo 'The kernel+initramfs file is: $(BIN_DIR)/${TARGET_KERNEL}'
ifneq ($(ADK_HARDWARE_QEMU),)
@echo "Start qemu with following command line:"
- @echo 'qemu-system-${CPU_ARCH} -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL)'
+ @echo 'qemu-system-${CPU_ARCH} $(DTB) -M $(MODEL) -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL)'
endif
endif
diff --git a/target/microblaze/kernel.config b/target/microblaze/kernel.config
deleted file mode 100644
index ffea9e904..000000000
--- a/target/microblaze/kernel.config
+++ /dev/null
@@ -1,1337 +0,0 @@
-#
-# Automatically generated file; DO NOT EDIT.
-# Linux/microblaze 3.11.10 Kernel Configuration
-#
-CONFIG_MICROBLAZE=y
-# CONFIG_SWAP is not set
-CONFIG_RWSEM_GENERIC_SPINLOCK=y
-CONFIG_ZONE_DMA=y
-# CONFIG_ARCH_HAS_ILOG2_U32 is not set
-# CONFIG_ARCH_HAS_ILOG2_U64 is not set
-CONFIG_GENERIC_HWEIGHT=y
-CONFIG_GENERIC_CALIBRATE_DELAY=y
-CONFIG_GENERIC_CSUM=y
-CONFIG_STACKTRACE_SUPPORT=y
-CONFIG_LOCKDEP_SUPPORT=y
-CONFIG_HAVE_LATENCYTOP_SUPPORT=y
-CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
-CONFIG_IRQ_WORK=y
-
-#
-# General setup
-#
-CONFIG_BROKEN_ON_SMP=y
-CONFIG_INIT_ENV_ARG_LIMIT=32
-CONFIG_CROSS_COMPILE=""
-# CONFIG_COMPILE_TEST is not set
-CONFIG_LOCALVERSION=""
-# CONFIG_LOCALVERSION_AUTO is not set
-CONFIG_DEFAULT_HOSTNAME="openadk"
-CONFIG_SYSVIPC=y
-CONFIG_SYSVIPC_SYSCTL=y
-CONFIG_POSIX_MQUEUE=y
-CONFIG_POSIX_MQUEUE_SYSCTL=y
-# CONFIG_FHANDLE 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_DOMAIN=y
-CONFIG_GENERIC_CLOCKEVENTS=y
-CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
-
-#
-# Timers subsystem
-#
-CONFIG_HZ_PERIODIC=y
-# CONFIG_NO_HZ_IDLE is not set
-# CONFIG_NO_HZ is not set
-# CONFIG_HIGH_RES_TIMERS is not set
-
-#
-# CPU/Task time and stats accounting
-#
-CONFIG_TICK_CPU_ACCOUNTING=y
-# CONFIG_BSD_PROCESS_ACCT is not set
-# CONFIG_TASKSTATS is not set
-
-#
-# RCU Subsystem
-#
-CONFIG_TINY_RCU=y
-# CONFIG_PREEMPT_RCU is not set
-# CONFIG_RCU_STALL_COMMON is not set
-# CONFIG_TREE_RCU_TRACE is not set
-# CONFIG_IKCONFIG is not set
-CONFIG_LOG_BUF_SHIFT=17
-# CONFIG_CGROUPS is not set
-# CONFIG_CHECKPOINT_RESTORE is not set
-# CONFIG_NAMESPACES is not set
-CONFIG_UIDGID_CONVERTED=y
-# CONFIG_UIDGID_STRICT_TYPE_CHECKS is not set
-# CONFIG_SCHED_AUTOGROUP is not set
-# CONFIG_SYSFS_DEPRECATED is not set
-# CONFIG_RELAY is not set
-# CONFIG_BLK_DEV_INITRD is not set
-# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
-CONFIG_SYSCTL=y
-CONFIG_ANON_INODES=y
-CONFIG_EXPERT=y
-# CONFIG_SYSCTL_SYSCALL is not set
-CONFIG_KALLSYMS=y
-CONFIG_KALLSYMS_ALL=y
-CONFIG_PRINTK=y
-CONFIG_BUG=y
-# CONFIG_BASE_FULL is not set
-CONFIG_FUTEX=y
-CONFIG_EPOLL=y
-CONFIG_SIGNALFD=y
-CONFIG_TIMERFD=y
-CONFIG_EVENTFD=y
-CONFIG_SHMEM=y
-CONFIG_AIO=y
-CONFIG_PCI_QUIRKS=y
-CONFIG_EMBEDDED=y
-
-#
-# Kernel Performance Events And Counters
-#
-# CONFIG_VM_EVENT_COUNTERS is not set
-# CONFIG_COMPAT_BRK is not set
-CONFIG_SLAB=y
-# CONFIG_SLUB is not set
-# CONFIG_SLOB is not set
-# CONFIG_PROFILING is not set
-CONFIG_HAVE_OPROFILE=y
-# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
-CONFIG_HAVE_DMA_ATTRS=y
-CONFIG_GENERIC_IDLE_POLL_SETUP=y
-CONFIG_HAVE_DMA_API_DEBUG=y
-CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
-CONFIG_MODULES_USE_ELF_RELA=y
-CONFIG_CLONE_BACKWARDS3=y
-
-#
-# GCOV-based kernel profiling
-#
-# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
-CONFIG_SLABINFO=y
-CONFIG_RT_MUTEXES=y
-CONFIG_BASE_SMALL=1
-CONFIG_MODULES=y
-# CONFIG_MODULE_FORCE_LOAD is not set
-CONFIG_MODULE_UNLOAD=y
-# CONFIG_MODULE_FORCE_UNLOAD is not set
-# CONFIG_MODVERSIONS is not set
-# CONFIG_MODULE_SRCVERSION_ALL is not set
-# CONFIG_MODULE_SIG is not set
-# CONFIG_BLOCK is not set
-CONFIG_UNINLINE_SPIN_UNLOCK=y
-# CONFIG_FREEZER is not set
-
-#
-# Platform options
-#
-CONFIG_PLATFORM_GENERIC=y
-CONFIG_OPT_LIB_FUNCTION=y
-# CONFIG_OPT_LIB_ASM is not set
-
-#
-# Definitions for MICROBLAZE0
-#
-CONFIG_KERNEL_BASE_ADDR=0x90000000
-CONFIG_XILINX_MICROBLAZE0_FAMILY="spartan3adsp"
-CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1
-CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR=1
-CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1
-CONFIG_XILINX_MICROBLAZE0_USE_DIV=0
-CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=1
-CONFIG_XILINX_MICROBLAZE0_USE_FPU=0
-CONFIG_XILINX_MICROBLAZE0_HW_VER="7.10.d"
-
-#
-# Processor type and features
-#
-CONFIG_PREEMPT_NONE=y
-# CONFIG_PREEMPT_VOLUNTARY is not set
-# CONFIG_PREEMPT is not set
-CONFIG_HZ_100=y
-# CONFIG_HZ_250 is not set
-# CONFIG_HZ_300 is not set
-# CONFIG_HZ_1000 is not set
-CONFIG_HZ=100
-# CONFIG_SCHED_HRTICK is not set
-CONFIG_MMU=y
-
-#
-# Boot options
-#
-CONFIG_CMDLINE_BOOL=y
-CONFIG_CMDLINE=""
-CONFIG_CMDLINE_FORCE=y
-# CONFIG_SECCOMP is not set
-
-#
-# Advanced setup
-#
-# CONFIG_ADVANCED_OPTIONS is not set
-
-#
-# Default settings for advanced configuration options are used
-#
-CONFIG_HIGHMEM=y
-CONFIG_LOWMEM_SIZE=0x30000000
-CONFIG_MANUAL_RESET_VECTOR=0x0
-CONFIG_KERNEL_START=0xc0000000
-CONFIG_TASK_SIZE=0x80000000
-CONFIG_KERNEL_PAD=0x80000
-CONFIG_FLATMEM=y
-CONFIG_FLAT_NODE_MEM_MAP=y
-CONFIG_HAVE_MEMBLOCK=y
-CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
-# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
-CONFIG_PAGEFLAGS_EXTENDED=y
-CONFIG_SPLIT_PTLOCK_CPUS=999999
-# CONFIG_COMPACTION is not set
-# CONFIG_PHYS_ADDR_T_64BIT is not set
-CONFIG_ZONE_DMA_FLAG=1
-CONFIG_VIRT_TO_BUS=y
-# CONFIG_KSM is not set
-CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
-# CONFIG_CROSS_MEMORY_ATTACH is not set
-CONFIG_NEED_PER_CPU_KM=y
-# CONFIG_CLEANCACHE is not set
-# CONFIG_ZBUD is not set
-
-#
-# Executable file formats
-#
-CONFIG_BINFMT_ELF=y
-CONFIG_BINFMT_SCRIPT=y
-# CONFIG_HAVE_AOUT is not set
-# CONFIG_BINFMT_MISC is not set
-# CONFIG_COREDUMP is not set
-
-#
-# Bus Options
-#
-CONFIG_PCI=y
-CONFIG_PCI_DOMAINS=y
-CONFIG_PCI_SYSCALL=y
-CONFIG_PCI_XILINX=y
-# CONFIG_PCI_DEBUG is not set
-# CONFIG_PCI_REALLOC_ENABLE_AUTO is not set
-# CONFIG_PCI_STUB is not set
-# CONFIG_PCI_IOV is not set
-# CONFIG_PCI_PRI is not set
-# CONFIG_PCI_PASID is not set
-
-#
-# PCI host controller drivers
-#
-CONFIG_NET=y
-
-#
-# Networking options
-#
-CONFIG_PACKET=y
-# CONFIG_PACKET_DIAG is not set
-CONFIG_UNIX=y
-# CONFIG_UNIX_DIAG is not set
-# CONFIG_XFRM_USER is not set
-# CONFIG_NET_KEY is not set
-CONFIG_INET=y
-# CONFIG_IP_MULTICAST is not set
-# CONFIG_IP_ADVANCED_ROUTER is not set
-# CONFIG_IP_PNP is not set
-# CONFIG_NET_IPIP is not set
-# CONFIG_NET_IPGRE_DEMUX is not set
-# CONFIG_NET_IP_TUNNEL 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 is not set
-# 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 is not set
-# 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 is not set
-# 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_HAVE_NET_DSA=y
-# 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_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_OPENVSWITCH is not set
-# CONFIG_VSOCKETS is not set
-# CONFIG_NETLINK_MMAP is not set
-# CONFIG_NETLINK_DIAG is not set
-# CONFIG_NET_MPLS_GSO is not set
-CONFIG_NET_RX_BUSY_POLL=y
-CONFIG_BQL=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 is not set
-# CONFIG_AF_RXRPC is not set
-CONFIG_WIRELESS=y
-# CONFIG_CFG80211 is not set
-# CONFIG_LIB80211 is not set
-
-#
-# CFG80211 needs to be enabled for MAC80211
-#
-# 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=y
-CONFIG_DEVTMPFS_MOUNT=y
-CONFIG_STANDALONE=y
-# CONFIG_PREVENT_FIRMWARE_BUILD is not set
-# CONFIG_FW_LOADER is not set
-# CONFIG_DEBUG_DRIVER is not set
-# CONFIG_DEBUG_DEVRES is not set
-# CONFIG_SYS_HYPERVISOR is not set
-CONFIG_GENERIC_CPU_DEVICES=y
-# CONFIG_DMA_SHARED_BUFFER is not set
-
-#
-# Bus devices
-#
-# CONFIG_CONNECTOR is not set
-# CONFIG_MTD is not set
-CONFIG_DTC=y
-CONFIG_OF=y
-
-#
-# Device Tree and Open Firmware support
-#
-CONFIG_PROC_DEVICETREE=y
-# CONFIG_OF_SELFTEST is not set
-CONFIG_OF_FLATTREE=y
-CONFIG_OF_EARLY_FLATTREE=y
-CONFIG_OF_ADDRESS=y
-CONFIG_OF_IRQ=y
-CONFIG_OF_I2C=y
-CONFIG_OF_NET=y
-CONFIG_OF_MDIO=y
-CONFIG_OF_PCI=y
-CONFIG_OF_PCI_IRQ=y
-# CONFIG_PARPORT is not set
-
-#
-# Misc devices
-#
-# CONFIG_AD525X_DPOT is not set
-# CONFIG_DUMMY_IRQ is not set
-# CONFIG_PHANTOM is not set
-# CONFIG_SGI_IOC4 is not set
-# CONFIG_TIFM_CORE is not set
-# CONFIG_ICS932S401 is not set
-# CONFIG_ATMEL_SSC 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_TI_DAC7512 is not set
-# CONFIG_BMP085_I2C is not set
-# CONFIG_BMP085_SPI is not set
-# CONFIG_PCH_PHUB is not set
-# CONFIG_USB_SWITCH_FSA9480 is not set
-# CONFIG_LATTICE_ECP3_CONFIG is not set
-# CONFIG_SRAM is not set
-# CONFIG_C2PORT is not set
-
-#
-# EEPROM support
-#
-# CONFIG_EEPROM_AT24 is not set
-# CONFIG_EEPROM_AT25 is not set
-# CONFIG_EEPROM_LEGACY is not set
-# CONFIG_EEPROM_MAX6875 is not set
-# CONFIG_EEPROM_93CX6 is not set
-# CONFIG_EEPROM_93XX46 is not set
-# CONFIG_CB710_CORE is not set
-
-#
-# Texas Instruments shared transport line discipline
-#
-# CONFIG_TI_ST is not set
-
-#
-# Altera FPGA firmware download module
-#
-# CONFIG_ALTERA_STAPL is not set
-
-#
-# SCSI device support
-#
-CONFIG_SCSI_MOD=y
-# CONFIG_SCSI_DMA is not set
-# CONFIG_SCSI_NETLINK 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_NET_CORE=y
-# CONFIG_BONDING is not set
-# CONFIG_DUMMY is not set
-# CONFIG_EQUALIZER is not set
-# CONFIG_NET_TEAM is not set
-# CONFIG_MACVLAN is not set
-# CONFIG_VXLAN is not set
-# CONFIG_NETCONSOLE is not set
-# CONFIG_NETPOLL is not set
-# CONFIG_NET_POLL_CONTROLLER is not set
-# CONFIG_TUN is not set
-# CONFIG_VETH is not set
-# CONFIG_NLMON is not set
-# CONFIG_ARCNET is not set
-
-#
-# CAIF transport drivers
-#
-
-#
-# Distributed Switch Architecture drivers
-#
-# CONFIG_NET_DSA_MV88E6XXX is not set
-# CONFIG_NET_DSA_MV88E6060 is not set
-# CONFIG_NET_DSA_MV88E6XXX_NEED_PPU is not set
-# CONFIG_NET_DSA_MV88E6131 is not set
-# CONFIG_NET_DSA_MV88E6123_61_65 is not set
-CONFIG_ETHERNET=y
-CONFIG_NET_VENDOR_3COM=y
-# CONFIG_VORTEX is not set
-# CONFIG_TYPHOON is not set
-CONFIG_NET_VENDOR_ADAPTEC=y
-# CONFIG_ADAPTEC_STARFIRE is not set
-CONFIG_NET_VENDOR_ALTEON=y
-# CONFIG_ACENIC is not set
-CONFIG_NET_VENDOR_AMD=y
-# CONFIG_AMD8111_ETH is not set
-# CONFIG_PCNET32 is not set
-CONFIG_NET_VENDOR_ARC=y
-# CONFIG_ARC_EMAC is not set
-CONFIG_NET_VENDOR_ATHEROS=y
-# CONFIG_ATL2 is not set
-# CONFIG_ATL1 is not set
-# CONFIG_ATL1E is not set
-# CONFIG_ATL1C is not set
-# CONFIG_ALX is not set
-CONFIG_NET_CADENCE=y
-# CONFIG_ARM_AT91_ETHER is not set
-# CONFIG_MACB is not set
-CONFIG_NET_VENDOR_BROADCOM=y
-# CONFIG_B44 is not set
-# CONFIG_BNX2 is not set
-# CONFIG_CNIC is not set
-# CONFIG_TIGON3 is not set
-# CONFIG_BNX2X is not set
-CONFIG_NET_VENDOR_BROCADE=y
-# CONFIG_BNA is not set
-# CONFIG_NET_CALXEDA_XGMAC is not set
-CONFIG_NET_VENDOR_CHELSIO=y
-# CONFIG_CHELSIO_T1 is not set
-# CONFIG_CHELSIO_T3 is not set
-# CONFIG_CHELSIO_T4 is not set
-# CONFIG_CHELSIO_T4VF is not set
-CONFIG_NET_VENDOR_CISCO=y
-# CONFIG_ENIC is not set
-# CONFIG_DNET is not set
-CONFIG_NET_VENDOR_DEC=y
-# CONFIG_NET_TULIP is not set
-CONFIG_NET_VENDOR_DLINK=y
-# CONFIG_DL2K is not set
-# CONFIG_SUNDANCE is not set
-CONFIG_NET_VENDOR_EMULEX=y
-# CONFIG_BE2NET is not set
-CONFIG_NET_VENDOR_EXAR=y
-# CONFIG_S2IO is not set
-# CONFIG_VXGE is not set
-CONFIG_NET_VENDOR_HP=y
-# CONFIG_HP100 is not set
-CONFIG_NET_VENDOR_INTEL=y
-# CONFIG_E100 is not set
-# CONFIG_E1000 is not set
-# CONFIG_E1000E is not set
-# CONFIG_IGB is not set
-# CONFIG_IGBVF is not set
-# CONFIG_IXGB is not set
-# CONFIG_IXGBE is not set
-CONFIG_NET_VENDOR_I825XX=y
-# CONFIG_IP1000 is not set
-# CONFIG_JME is not set
-CONFIG_NET_VENDOR_MARVELL=y
-# CONFIG_MVMDIO is not set
-# CONFIG_SKGE is not set
-# CONFIG_SKY2 is not set
-CONFIG_NET_VENDOR_MELLANOX=y
-# CONFIG_MLX4_EN is not set
-# CONFIG_MLX4_CORE is not set
-CONFIG_NET_VENDOR_MICREL=y
-# CONFIG_KS8851 is not set
-# CONFIG_KS8851_MLL is not set
-# CONFIG_KSZ884X_PCI is not set
-CONFIG_NET_VENDOR_MICROCHIP=y
-# CONFIG_ENC28J60 is not set
-CONFIG_NET_VENDOR_MYRI=y
-# CONFIG_MYRI10GE is not set
-# CONFIG_FEALNX is not set
-CONFIG_NET_VENDOR_NATSEMI=y
-# CONFIG_NATSEMI is not set
-# CONFIG_NS83820 is not set
-CONFIG_NET_VENDOR_8390=y
-# CONFIG_NE2K_PCI is not set
-CONFIG_NET_VENDOR_NVIDIA=y
-# CONFIG_FORCEDETH is not set
-CONFIG_NET_VENDOR_OKI=y
-# CONFIG_ETHOC is not set
-CONFIG_NET_PACKET_ENGINE=y
-# CONFIG_HAMACHI is not set
-# CONFIG_YELLOWFIN is not set
-CONFIG_NET_VENDOR_QLOGIC=y
-# CONFIG_QLA3XXX is not set
-# CONFIG_QLCNIC is not set
-# CONFIG_QLGE is not set
-# CONFIG_NETXEN_NIC is not set
-CONFIG_NET_VENDOR_REALTEK=y
-# CONFIG_8139CP is not set
-# CONFIG_8139TOO is not set
-# CONFIG_R8169 is not set
-# CONFIG_SH_ETH is not set
-CONFIG_NET_VENDOR_RDC=y
-# CONFIG_R6040 is not set
-CONFIG_NET_VENDOR_SEEQ=y
-CONFIG_NET_VENDOR_SILAN=y
-# CONFIG_SC92031 is not set
-CONFIG_NET_VENDOR_SIS=y
-# CONFIG_SIS900 is not set
-# CONFIG_SIS190 is not set
-# CONFIG_SFC is not set
-CONFIG_NET_VENDOR_SMSC=y
-# CONFIG_EPIC100 is not set
-# CONFIG_SMSC911X is not set
-# CONFIG_SMSC9420 is not set
-CONFIG_NET_VENDOR_STMICRO=y
-# CONFIG_STMMAC_ETH is not set
-CONFIG_NET_VENDOR_SUN=y
-# CONFIG_HAPPYMEAL is not set
-# CONFIG_SUNGEM is not set
-# CONFIG_CASSINI is not set
-# CONFIG_NIU is not set
-CONFIG_NET_VENDOR_TEHUTI=y
-# CONFIG_TEHUTI is not set
-CONFIG_NET_VENDOR_TI=y
-# CONFIG_TLAN is not set
-CONFIG_NET_VENDOR_VIA=y
-# CONFIG_VIA_RHINE is not set
-# CONFIG_VIA_VELOCITY is not set
-CONFIG_NET_VENDOR_WIZNET=y
-# CONFIG_WIZNET_W5100 is not set
-# CONFIG_WIZNET_W5300 is not set
-CONFIG_NET_VENDOR_XILINX=y
-CONFIG_XILINX_EMACLITE=y
-# CONFIG_XILINX_AXI_EMAC is not set
-CONFIG_XILINX_LL_TEMAC=y
-# CONFIG_FDDI is not set
-# CONFIG_HIPPI is not set
-CONFIG_PHYLIB=y
-
-#
-# MII PHY device drivers
-#
-# CONFIG_AT803X_PHY is not set
-# CONFIG_AMD_PHY is not set
-# CONFIG_MARVELL_PHY is not set
-# CONFIG_DAVICOM_PHY is not set
-# CONFIG_QSEMI_PHY is not set
-# CONFIG_LXT_PHY is not set
-# CONFIG_CICADA_PHY is not set
-# CONFIG_VITESSE_PHY is not set
-# CONFIG_SMSC_PHY is not set
-# CONFIG_BROADCOM_PHY is not set
-# CONFIG_BCM87XX_PHY is not set
-# CONFIG_ICPLUS_PHY is not set
-# CONFIG_REALTEK_PHY is not set
-# CONFIG_NATIONAL_PHY is not set
-# CONFIG_STE10XP is not set
-# CONFIG_LSI_ET1011C_PHY is not set
-# CONFIG_MICREL_PHY is not set
-# CONFIG_FIXED_PHY is not set
-# CONFIG_MDIO_BITBANG is not set
-# CONFIG_MDIO_BUS_MUX_GPIO is not set
-# CONFIG_MDIO_BUS_MUX_MMIOREG is not set
-# CONFIG_MICREL_KS8995MA is not set
-# CONFIG_PPP is not set
-# CONFIG_SLIP is not set
-CONFIG_WLAN=y
-# CONFIG_ATMEL is not set
-# CONFIG_PRISM54 is not set
-# CONFIG_HOSTAP is not set
-# CONFIG_WL_TI is not set
-
-#
-# Enable WiMAX (Networking options) to see the WiMAX drivers
-#
-# CONFIG_WAN is not set
-# CONFIG_VMXNET3 is not set
-# CONFIG_ISDN is not set
-
-#
-# Input device support
-#
-# CONFIG_INPUT is not set
-
-#
-# Hardware I/O ports
-#
-# CONFIG_SERIO is not set
-# CONFIG_GAMEPORT is not set
-
-#
-# Character devices
-#
-CONFIG_TTY=y
-# 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 is not set
-
-#
-# Serial drivers
-#
-CONFIG_SERIAL_8250=y
-CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=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
-# CONFIG_SERIAL_8250_DW is not set
-
-#
-# Non-8250 serial port support
-#
-# CONFIG_SERIAL_MAX3100 is not set
-# CONFIG_SERIAL_MAX310X is not set
-# CONFIG_SERIAL_MFD_HSU is not set
-CONFIG_SERIAL_UARTLITE=y
-CONFIG_SERIAL_UARTLITE_CONSOLE=y
-CONFIG_SERIAL_CORE=y
-CONFIG_SERIAL_CORE_CONSOLE=y
-# CONFIG_SERIAL_JSM is not set
-# CONFIG_SERIAL_OF_PLATFORM is not set
-# CONFIG_SERIAL_SCCNXP 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_IFX6X60 is not set
-# CONFIG_SERIAL_PCH_UART is not set
-# CONFIG_SERIAL_XILINX_PS_UART is not set
-# CONFIG_SERIAL_ARC is not set
-# CONFIG_SERIAL_RP2 is not set
-# CONFIG_SERIAL_FSL_LPUART is not set
-# CONFIG_TTY_PRINTK is not set
-# CONFIG_IPMI_HANDLER is not set
-# CONFIG_HW_RANDOM is not set
-# CONFIG_RTC is not set
-# CONFIG_GEN_RTC is not set
-CONFIG_XILINX_HWICAP=y
-# CONFIG_R3964 is not set
-# CONFIG_APPLICOM is not set
-
-#
-# PCMCIA character devices
-#
-# CONFIG_TCG_TPM is not set
-CONFIG_DEVPORT=y
-# CONFIG_BRCM_CHAR_DRIVERS is not set
-CONFIG_I2C=y
-CONFIG_I2C_BOARDINFO=y
-CONFIG_I2C_COMPAT=y
-# CONFIG_I2C_CHARDEV is not set
-# 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_CBUS_GPIO is not set
-# CONFIG_I2C_DESIGNWARE_PCI is not set
-# CONFIG_I2C_EG20T is not set
-# CONFIG_I2C_GPIO 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=y
-
-#
-# External I2C/SMBus adapter drivers
-#
-# CONFIG_I2C_PARPORT_LIGHT is not set
-# CONFIG_I2C_TAOS_EVM 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=y
-# CONFIG_SPI_DEBUG is not set
-CONFIG_SPI_MASTER=y
-
-#
-# SPI Master Controller Drivers
-#
-# CONFIG_SPI_ALTERA is not set
-CONFIG_SPI_BITBANG=y
-# CONFIG_SPI_GPIO is not set
-# CONFIG_SPI_FSL_SPI is not set
-# CONFIG_SPI_OC_TINY is not set
-# CONFIG_SPI_PXA2XX is not set
-# CONFIG_SPI_PXA2XX_PCI is not set
-# CONFIG_SPI_SC18IS602 is not set
-# CONFIG_SPI_TOPCLIFF_PCH is not set
-# CONFIG_SPI_XCOMM is not set
-CONFIG_SPI_XILINX=y
-# CONFIG_SPI_DESIGNWARE is not set
-
-#
-# SPI Protocol Masters
-#
-# CONFIG_SPI_SPIDEV is not set
-# CONFIG_SPI_TLE62X0 is not set
-# CONFIG_HSI is not set
-
-#
-# PPS support
-#
-# CONFIG_PPS is not set
-
-#
-# PPS generators support
-#
-
-#
-# PTP clock support
-#
-# CONFIG_PTP_1588_CLOCK is not set
-
-#
-# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
-#
-CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
-CONFIG_GPIO_DEVRES=y
-CONFIG_GPIOLIB=y
-CONFIG_OF_GPIO=y
-# CONFIG_DEBUG_GPIO is not set
-CONFIG_GPIO_SYSFS=y
-
-#
-# Memory mapped GPIO drivers:
-#
-# CONFIG_GPIO_GENERIC_PLATFORM is not set
-# CONFIG_GPIO_TS5500 is not set
-CONFIG_GPIO_XILINX=y
-# CONFIG_GPIO_VX855 is not set
-# CONFIG_GPIO_GRGPIO is not set
-
-#
-# I2C GPIO expanders:
-#
-# CONFIG_GPIO_MAX7300 is not set
-# CONFIG_GPIO_MAX732X is not set
-# CONFIG_GPIO_PCA953X is not set
-# CONFIG_GPIO_PCF857X is not set
-# CONFIG_GPIO_SX150X is not set
-# CONFIG_GPIO_ADP5588 is not set
-# CONFIG_GPIO_ADNP is not set
-
-#
-# PCI GPIO expanders:
-#
-# CONFIG_GPIO_BT8XX is not set
-# CONFIG_GPIO_AMD8111 is not set
-# CONFIG_GPIO_ML_IOH is not set
-# CONFIG_GPIO_RDC321X is not set
-
-#
-# SPI GPIO expanders:
-#
-# CONFIG_GPIO_MAX7301 is not set
-# CONFIG_GPIO_MCP23S08 is not set
-# CONFIG_GPIO_MC33880 is not set
-# CONFIG_GPIO_74X164 is not set
-
-#
-# AC97 GPIO expanders:
-#
-
-#
-# MODULbus GPIO expanders:
-#
-
-#
-# USB GPIO expanders:
-#
-# CONFIG_W1 is not set
-# CONFIG_POWER_SUPPLY is not set
-# CONFIG_POWER_AVS is not set
-# CONFIG_HWMON is not set
-# CONFIG_THERMAL is not set
-CONFIG_WATCHDOG=y
-# CONFIG_WATCHDOG_CORE is not set
-# CONFIG_WATCHDOG_NOWAYOUT is not set
-
-#
-# Watchdog Device Drivers
-#
-# CONFIG_SOFT_WATCHDOG is not set
-# CONFIG_ALIM7101_WDT is not set
-# CONFIG_I6300ESB_WDT is not set
-CONFIG_XILINX_WATCHDOG=y
-# CONFIG_MEN_A21_WDT is not set
-
-#
-# PCI-based Watchdog Cards
-#
-# CONFIG_PCIPCWATCHDOG is not set
-# CONFIG_WDTPCI 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
-
-#
-# Multifunction device drivers
-#
-# CONFIG_MFD_CORE is not set
-# CONFIG_MFD_AS3711 is not set
-# CONFIG_PMIC_ADP5520 is not set
-# CONFIG_MFD_AAT2870_CORE is not set
-# CONFIG_MFD_CROS_EC is not set
-# CONFIG_PMIC_DA903X is not set
-# CONFIG_MFD_DA9052_SPI is not set
-# CONFIG_MFD_DA9052_I2C is not set
-# CONFIG_MFD_DA9055 is not set
-# CONFIG_MFD_MC13XXX_SPI is not set
-# CONFIG_MFD_MC13XXX_I2C is not set
-# CONFIG_HTC_PASIC3 is not set
-# CONFIG_HTC_I2CPLD is not set
-# CONFIG_LPC_ICH is not set
-# CONFIG_LPC_SCH is not set
-# CONFIG_MFD_JANZ_CMODIO is not set
-# CONFIG_MFD_KEMPLD is not set
-# CONFIG_MFD_88PM800 is not set
-# CONFIG_MFD_88PM805 is not set
-# CONFIG_MFD_88PM860X is not set
-# CONFIG_MFD_MAX77686 is not set
-# CONFIG_MFD_MAX77693 is not set
-# CONFIG_MFD_MAX8907 is not set
-# CONFIG_MFD_MAX8925 is not set
-# CONFIG_MFD_MAX8997 is not set
-# CONFIG_MFD_MAX8998 is not set
-# CONFIG_EZX_PCAP is not set
-# CONFIG_MFD_RETU is not set
-# CONFIG_MFD_PCF50633 is not set
-# CONFIG_MFD_RDC321X is not set
-# CONFIG_MFD_RTSX_PCI is not set
-# CONFIG_MFD_RC5T583 is not set
-# CONFIG_MFD_SEC_CORE is not set
-# CONFIG_MFD_SI476X_CORE is not set
-# CONFIG_MFD_SM501 is not set
-# CONFIG_MFD_SMSC is not set
-# CONFIG_ABX500_CORE is not set
-# CONFIG_MFD_STMPE is not set
-# CONFIG_MFD_SYSCON is not set
-# CONFIG_MFD_TI_AM335X_TSCADC is not set
-# CONFIG_MFD_LP8788 is not set
-# CONFIG_MFD_PALMAS is not set
-# CONFIG_TPS6105X is not set
-# CONFIG_TPS65010 is not set
-# CONFIG_TPS6507X is not set
-# CONFIG_MFD_TPS65090 is not set
-# CONFIG_MFD_TPS65217 is not set
-# CONFIG_MFD_TPS6586X is not set
-# CONFIG_MFD_TPS65910 is not set
-# CONFIG_MFD_TPS65912 is not set
-# CONFIG_MFD_TPS65912_I2C is not set
-# CONFIG_MFD_TPS65912_SPI is not set
-# CONFIG_MFD_TPS80031 is not set
-# CONFIG_TWL4030_CORE is not set
-# CONFIG_TWL6040_CORE is not set
-# CONFIG_MFD_WL1273_CORE is not set
-# CONFIG_MFD_LM3533 is not set
-# CONFIG_MFD_TIMBERDALE is not set
-# CONFIG_MFD_TC3589X is not set
-# CONFIG_MFD_TMIO is not set
-# CONFIG_MFD_VX855 is not set
-# CONFIG_MFD_ARIZONA_I2C is not set
-# CONFIG_MFD_ARIZONA_SPI is not set
-# CONFIG_MFD_WM8400 is not set
-# CONFIG_MFD_WM831X_I2C is not set
-# CONFIG_MFD_WM831X_SPI is not set
-# CONFIG_MFD_WM8350_I2C is not set
-# CONFIG_MFD_WM8994 is not set
-# CONFIG_REGULATOR is not set
-# CONFIG_MEDIA_SUPPORT is not set
-
-#
-# Graphics support
-#
-# CONFIG_VGA_ARB is not set
-# CONFIG_DRM is not set
-# CONFIG_VGASTATE is not set
-# CONFIG_VIDEO_OUTPUT_CONTROL is not set
-# CONFIG_FB is not set
-# CONFIG_EXYNOS_VIDEO is not set
-# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
-# CONFIG_SOUND is not set
-# CONFIG_USB_SUPPORT is not set
-# CONFIG_UWB is not set
-# CONFIG_MMC is not set
-# CONFIG_MEMSTICK is not set
-# CONFIG_NEW_LEDS is not set
-# CONFIG_ACCESSIBILITY is not set
-# CONFIG_INFINIBAND is not set
-# CONFIG_RTC_CLASS is not set
-# CONFIG_DMADEVICES is not set
-# CONFIG_AUXDISPLAY is not set
-CONFIG_UIO=y
-# CONFIG_UIO_CIF is not set
-CONFIG_UIO_PDRV=y
-CONFIG_UIO_PDRV_GENIRQ=y
-CONFIG_UIO_DMEM_GENIRQ=y
-# CONFIG_UIO_AEC is not set
-# CONFIG_UIO_SERCOS3 is not set
-# CONFIG_UIO_PCI_GENERIC is not set
-# CONFIG_UIO_NETX is not set
-# CONFIG_VIRT_DRIVERS is not set
-
-#
-# Virtio drivers
-#
-# CONFIG_VIRTIO_PCI is not set
-# CONFIG_VIRTIO_MMIO is not set
-
-#
-# Microsoft Hyper-V guest support
-#
-# CONFIG_STAGING is not set
-
-#
-# Hardware Spinlock drivers
-#
-# CONFIG_MAILBOX is not set
-CONFIG_IOMMU_SUPPORT=y
-CONFIG_OF_IOMMU=y
-
-#
-# Remoteproc drivers
-#
-# CONFIG_STE_MODEM_RPROC is not set
-
-#
-# Rpmsg drivers
-#
-# CONFIG_PM_DEVFREQ is not set
-# CONFIG_EXTCON is not set
-# CONFIG_MEMORY is not set
-# CONFIG_IIO is not set
-# CONFIG_VME_BUS is not set
-# CONFIG_PWM is not set
-CONFIG_IRQCHIP=y
-# CONFIG_IPACK_BUS is not set
-# CONFIG_RESET_CONTROLLER is not set
-# CONFIG_FMC is not set
-
-#
-# File systems
-#
-# CONFIG_FS_POSIX_ACL is not set
-CONFIG_EXPORTFS=y
-CONFIG_FILE_LOCKING=y
-CONFIG_FSNOTIFY=y
-CONFIG_DNOTIFY=y
-CONFIG_INOTIFY_USER=y
-CONFIG_FANOTIFY=y
-# CONFIG_QUOTA is not set
-# CONFIG_QUOTACTL is not set
-# CONFIG_AUTOFS4_FS is not set
-# CONFIG_FUSE_FS is not set
-
-#
-# Caches
-#
-# CONFIG_FSCACHE is not set
-
-#
-# Pseudo filesystems
-#
-CONFIG_PROC_FS=y
-# CONFIG_PROC_KCORE is not set
-CONFIG_PROC_SYSCTL=y
-# CONFIG_PROC_PAGE_MONITOR is not set
-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 is not set
-# CONFIG_NETWORK_FILESYSTEMS is not set
-# CONFIG_NLS is not set
-
-#
-# Kernel hacking
-#
-CONFIG_TRACE_IRQFLAGS_SUPPORT=y
-
-#
-# printk and dmesg options
-#
-# CONFIG_PRINTK_TIME is not set
-CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
-# CONFIG_BOOT_PRINTK_DELAY is not set
-
-#
-# Compile-time checks and compiler options
-#
-CONFIG_DEBUG_INFO=y
-# CONFIG_DEBUG_INFO_REDUCED is not set
-CONFIG_ENABLE_WARN_DEPRECATED=y
-CONFIG_ENABLE_MUST_CHECK=y
-CONFIG_FRAME_WARN=1024
-# CONFIG_STRIP_ASM_SYMS is not set
-# CONFIG_READABLE_ASM 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_FORCE_WEAK_PER_CPU is not set
-CONFIG_MAGIC_SYSRQ=y
-CONFIG_DEBUG_KERNEL=y
-
-#
-# Memory Debugging
-#
-# CONFIG_DEBUG_PAGEALLOC is not set
-# CONFIG_DEBUG_OBJECTS is not set
-# CONFIG_DEBUG_SLAB is not set
-CONFIG_HAVE_DEBUG_KMEMLEAK=y
-# CONFIG_DEBUG_KMEMLEAK is not set
-# CONFIG_DEBUG_STACK_USAGE is not set
-# CONFIG_DEBUG_VM is not set
-# CONFIG_DEBUG_MEMORY_INIT is not set
-# CONFIG_DEBUG_HIGHMEM is not set
-# CONFIG_DEBUG_SHIRQ is not set
-
-#
-# Debug Lockups and Hangs
-#
-# CONFIG_LOCKUP_DETECTOR is not set
-CONFIG_DETECT_HUNG_TASK=y
-CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
-# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
-CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
-# CONFIG_PANIC_ON_OOPS is not set
-CONFIG_PANIC_ON_OOPS_VALUE=0
-# CONFIG_SCHED_DEBUG is not set
-# CONFIG_SCHEDSTATS is not set
-# CONFIG_TIMER_STATS is not set
-
-#
-# Lock Debugging (spinlocks, mutexes, etc...)
-#
-# CONFIG_DEBUG_RT_MUTEXES is not set
-# CONFIG_RT_MUTEX_TESTER is not set
-CONFIG_DEBUG_SPINLOCK=y
-# CONFIG_DEBUG_MUTEXES is not set
-# CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set
-# CONFIG_DEBUG_LOCK_ALLOC is not set
-# CONFIG_PROVE_LOCKING 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_KOBJECT is not set
-# CONFIG_DEBUG_WRITECOUNT is not set
-# CONFIG_DEBUG_LIST is not set
-# CONFIG_DEBUG_SG is not set
-# CONFIG_DEBUG_NOTIFIERS is not set
-# CONFIG_DEBUG_CREDENTIALS is not set
-
-#
-# RCU Debugging
-#
-# CONFIG_SPARSE_RCU_POINTER is not set
-# CONFIG_RCU_TORTURE_TEST is not set
-# CONFIG_RCU_TRACE is not set
-# CONFIG_NOTIFIER_ERROR_INJECTION is not set
-# CONFIG_FAULT_INJECTION is not set
-# CONFIG_LATENCYTOP 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_TRACING_SUPPORT=y
-# CONFIG_FTRACE is not set
-
-#
-# Runtime Testing
-#
-# CONFIG_TEST_LIST_SORT is not set
-# CONFIG_BACKTRACE_SELF_TEST is not set
-# CONFIG_RBTREE_TEST is not set
-# CONFIG_INTERVAL_TREE_TEST is not set
-# CONFIG_ATOMIC64_SELFTEST is not set
-# CONFIG_TEST_STRING_HELPERS is not set
-# CONFIG_TEST_KSTRTOX is not set
-# CONFIG_DMA_API_DEBUG is not set
-# CONFIG_SAMPLES is not set
-CONFIG_HAVE_ARCH_KGDB=y
-# CONFIG_KGDB is not set
-CONFIG_EARLY_PRINTK=y
-# CONFIG_HEART_BEAT 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_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_USER is not set
-CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
-# CONFIG_CRYPTO_GF128MUL is not set
-# CONFIG_CRYPTO_NULL is not set
-CONFIG_CRYPTO_WORKQUEUE=y
-# CONFIG_CRYPTO_CRYPTD is not set
-# CONFIG_CRYPTO_AUTHENC is not set
-# 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=y
-# 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_CMAC=y
-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_CRC32 is not set
-# CONFIG_CRYPTO_GHASH is not set
-CONFIG_CRYPTO_MD4=y
-CONFIG_CRYPTO_MD5=y
-# CONFIG_CRYPTO_MICHAEL_MIC is not set
-# 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 is not set
-CONFIG_CRYPTO_SHA256=y
-# 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 is not set
-# CONFIG_CRYPTO_ZLIB is not set
-# CONFIG_CRYPTO_LZO is not set
-# CONFIG_CRYPTO_LZ4 is not set
-# CONFIG_CRYPTO_LZ4HC is not set
-
-#
-# 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_GENERIC_NET_UTILS=y
-CONFIG_GENERIC_PCI_IOMAP=y
-CONFIG_GENERIC_IO=y
-# CONFIG_CRC_CCITT is not set
-# CONFIG_CRC16 is not set
-# CONFIG_CRC_T10DIF is not set
-# CONFIG_CRC_ITU_T is not set
-# CONFIG_CRC32 is not set
-# CONFIG_CRC7 is not set
-# CONFIG_LIBCRC32C is not set
-# CONFIG_CRC8 is not set
-# CONFIG_XZ_DEC is not set
-# CONFIG_XZ_DEC_BCJ is not set
-CONFIG_HAS_IOMEM=y
-CONFIG_HAS_IOPORT=y
-CONFIG_HAS_DMA=y
-CONFIG_DQL=y
-CONFIG_NLATTR=y
-CONFIG_GENERIC_ATOMIC64=y
-CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
-# CONFIG_AVERAGE is not set
-# CONFIG_CORDIC is not set
-# CONFIG_DDR is not set
diff --git a/target/microblaze/kernel/qemu-microblaze-ml605 b/target/microblaze/kernel/qemu-microblaze-ml605
new file mode 100644
index 000000000..7ae56f8c5
--- /dev/null
+++ b/target/microblaze/kernel/qemu-microblaze-ml605
@@ -0,0 +1,37 @@
+CONFIG_PLATFORM_GENERIC=y
+CONFIG_OPT_LIB_FUNCTION=y
+CONFIG_KERNEL_BASE_ADDR=0x50000000
+CONFIG_XILINX_MICROBLAZE0_FAMILY="virtex6"
+CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1
+CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR=1
+CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1
+CONFIG_XILINX_MICROBLAZE0_USE_DIV=1
+CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=2
+CONFIG_XILINX_MICROBLAZE0_USE_FPU=1
+CONFIG_XILINX_MICROBLAZE0_HW_VER="8.10.a"
+CONFIG_CMDLINE_FORCE=y
+CONFIG_PCI=y
+CONFIG_PCI_XILINX=y
+CONFIG_DTC=y
+CONFIG_OF=y
+CONFIG_PROC_DEVICETREE=y
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_8250_NR_UARTS=4
+CONFIG_SERIAL_8250_RUNTIME_UARTS=4
+CONFIG_SERIAL_OF_PLATFORM=y
+CONFIG_SERIAL_CORE=y
+CONFIG_SERIAL_CORE_CONSOLE=y
+CONFIG_SPI=y
+CONFIG_SPI_MASTER=y
+CONFIG_SPI_BITBANG=y
+CONFIG_SPI_XILINX=y
+CONFIG_NETDEVICES=y
+CONFIG_NET_CORE=y
+CONFIG_ETHERNET=y
+CONFIG_NET_VENDOR_XILINX=y
+CONFIG_XILINX_AXI_EMAC=y
+CONFIG_GPIOLIB=y
+CONFIG_OF_GPIO=y
+CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_XILINX=y
diff --git a/target/microblaze/kernel/qemu-microblaze-s3adsp1800 b/target/microblaze/kernel/qemu-microblaze-s3adsp1800
new file mode 100644
index 000000000..652b68c03
--- /dev/null
+++ b/target/microblaze/kernel/qemu-microblaze-s3adsp1800
@@ -0,0 +1,34 @@
+CONFIG_PLATFORM_GENERIC=y
+CONFIG_OPT_LIB_FUNCTION=y
+CONFIG_KERNEL_BASE_ADDR=0x90000000
+CONFIG_XILINX_MICROBLAZE0_FAMILY="spartan3adsp"
+CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1
+CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR=1
+CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1
+CONFIG_XILINX_MICROBLAZE0_USE_DIV=0
+CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=1
+CONFIG_XILINX_MICROBLAZE0_USE_FPU=0
+CONFIG_XILINX_MICROBLAZE0_HW_VER="7.10.d"
+CONFIG_CMDLINE_FORCE=y
+CONFIG_PCI=y
+CONFIG_PCI_XILINX=y
+CONFIG_DTC=y
+CONFIG_OF=y
+CONFIG_PROC_DEVICETREE=y
+CONFIG_SERIAL_UARTLITE=y
+CONFIG_SERIAL_UARTLITE_CONSOLE=y
+CONFIG_SERIAL_CORE=y
+CONFIG_SERIAL_CORE_CONSOLE=y
+CONFIG_SPI=y
+CONFIG_SPI_MASTER=y
+CONFIG_SPI_BITBANG=y
+CONFIG_SPI_XILINX=y
+CONFIG_NETDEVICES=y
+CONFIG_NET_CORE=y
+CONFIG_ETHERNET=y
+CONFIG_NET_VENDOR_XILINX=y
+CONFIG_XILINX_EMACLITE=y
+CONFIG_GPIOLIB=y
+CONFIG_OF_GPIO=y
+CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_XILINX=y
diff --git a/target/microblaze/ml605.dtb b/target/microblaze/ml605.dtb
new file mode 100644
index 000000000..aaa7fb2b1
--- /dev/null
+++ b/target/microblaze/ml605.dtb
Binary files differ
diff --git a/target/microblaze/ml605.dts b/target/microblaze/ml605.dts
new file mode 100644
index 000000000..6ba0da255
--- /dev/null
+++ b/target/microblaze/ml605.dts
@@ -0,0 +1,399 @@
+/dts-v1/;
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "xlnx,microblaze";
+ model = "petalogix-ml605";
+ ddr3_sdram: memory@50000000 {
+ device_type = "memory";
+ reg = < 0x50000000 0x4000000 >;
+ } ;
+ aliases {
+ ethernet0 = &ethernet;
+ serial0 = &rs232_uart_1;
+ } ;
+ chosen {
+ bootargs = "console=ttyS0,115200";
+ linux,stdout-path = "/axi@1/serial@83e00000";
+ } ;
+ cpus {
+ #address-cells = <1>;
+ #cpus = <0x1>;
+ #size-cells = <0>;
+ microblaze_0: cpu@0 {
+ clock-frequency = <100000000>;
+ compatible = "xlnx,microblaze-8.40.a";
+ d-cache-baseaddr = <0x50000000>;
+ d-cache-highaddr = <0x53ffffff>;
+ d-cache-line-size = <0x10>;
+ d-cache-size = <0x8000>;
+ device_type = "cpu";
+ i-cache-baseaddr = <0x50000000>;
+ i-cache-highaddr = <0x53ffffff>;
+ i-cache-line-size = <0x10>;
+ i-cache-size = <0x8000>;
+ model = "microblaze,8.40.a";
+ reg = <0>;
+ timebase-frequency = <100000000>;
+ xlnx,addr-tag-bits = <0xb>;
+ xlnx,allow-dcache-wr = <0x1>;
+ xlnx,allow-icache-wr = <0x1>;
+ xlnx,area-optimized = <0x0>;
+ xlnx,avoid-primitives = <0x0>;
+ xlnx,branch-target-cache-size = <0x0>;
+ xlnx,cache-byte-size = <0x8000>;
+ xlnx,d-axi = <0x1>;
+ xlnx,d-lmb = <0x1>;
+ xlnx,d-plb = <0x0>;
+ xlnx,data-size = <0x20>;
+ xlnx,dcache-addr-tag = <0xb>;
+ xlnx,dcache-always-used = <0x1>;
+ xlnx,dcache-byte-size = <0x8000>;
+ xlnx,dcache-data-width = <0x0>;
+ xlnx,dcache-force-tag-lutram = <0x0>;
+ xlnx,dcache-interface = <0x0>;
+ xlnx,dcache-line-len = <0x4>;
+ xlnx,dcache-use-fsl = <0x0>;
+ xlnx,dcache-use-writeback = <0x0>;
+ xlnx,dcache-victims = <0x0>;
+ xlnx,debug-enabled = <0x0>;
+ xlnx,div-zero-exception = <0x1>;
+ xlnx,dynamic-bus-sizing = <0x1>;
+ xlnx,ecc-use-ce-exception = <0x0>;
+ xlnx,edge-is-positive = <0x1>;
+ xlnx,endianness = <0x1>;
+ xlnx,family = "virtex6";
+ xlnx,fault-tolerant = <0x0>;
+ xlnx,fpu-exception = <0x1>;
+ xlnx,freq = <0x5f5e100>;
+ xlnx,fsl-data-size = <0x20>;
+ xlnx,fsl-exception = <0x0>;
+ xlnx,fsl-links = <0x0>;
+ xlnx,i-axi = <0x1>;
+ xlnx,i-lmb = <0x1>;
+ xlnx,i-plb = <0x0>;
+ xlnx,icache-always-used = <0x1>;
+ xlnx,icache-data-width = <0x0>;
+ xlnx,icache-force-tag-lutram = <0x0>;
+ xlnx,icache-interface = <0x0>;
+ xlnx,icache-line-len = <0x4>;
+ xlnx,icache-streams = <0x0>;
+ xlnx,icache-use-fsl = <0x0>;
+ xlnx,icache-victims = <0x0>;
+ xlnx,ill-opcode-exception = <0x1>;
+ xlnx,instance = "microblaze_0";
+ xlnx,interconnect = <0x2>;
+ xlnx,interrupt-is-edge = <0x0>;
+ xlnx,lockstep-slave = <0x0>;
+ xlnx,mmu-dtlb-size = <0x2>;
+ xlnx,mmu-itlb-size = <0x4>;
+ xlnx,mmu-privileged-instr = <0x0>;
+ xlnx,mmu-tlb-access = <0x3>;
+ xlnx,mmu-zones = <0x2>;
+ xlnx,number-of-pc-brk = <0x1>;
+ xlnx,number-of-rd-addr-brk = <0x0>;
+ xlnx,number-of-wr-addr-brk = <0x0>;
+ xlnx,opcode-0x0-illegal = <0x0>;
+ xlnx,optimization = <0x0>;
+ xlnx,pc-width = <0x20>;
+ xlnx,pvr = <0x2>;
+ xlnx,pvr-user1 = <0x0>;
+ xlnx,pvr-user2 = <0x0>;
+ xlnx,reset-msr = <0x0>;
+ xlnx,sco = <0x0>;
+ xlnx,stream-interconnect = <0x0>;
+ xlnx,unaligned-exceptions = <0x0>;
+ xlnx,use-barrel = <0x1>;
+ xlnx,use-branch-target-cache = <0x0>;
+ xlnx,use-dcache = <0x1>;
+ xlnx,use-div = <0x1>;
+ xlnx,use-ext-brk = <0x1>;
+ xlnx,use-ext-nm-brk = <0x1>;
+ xlnx,use-extended-fsl-instr = <0x0>;
+ xlnx,use-fpu = <0x1>;
+ xlnx,use-hw-mul = <0x2>;
+ xlnx,use-icache = <0x1>;
+ xlnx,use-interrupt = <0x1>;
+ xlnx,use-mmu = <0x3>;
+ xlnx,use-msr-instr = <0x1>;
+ xlnx,use-pcmp-instr = <0x1>;
+ xlnx,use-reorder-instr = <0x1>;
+ xlnx,use-stack-protection = <0x0>;
+ } ;
+ } ;
+ axi4_0: axi@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "xlnx,axi-interconnect-1.06.a", "simple-bus";
+ ranges ;
+ } ;
+ axi4lite_0: axi@1 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "xlnx,axi-interconnect-1.06.a", "simple-bus";
+ ranges ;
+ ethernet: axi-ethernet@82780000 {
+ axistream-connected = <&ethernet_dma>;
+ axistream-control-connected = <&ethernet_dma>;
+ clock-frequency = <100000000>;
+ compatible = "xlnx,axi-ethernet-3.01.a", "xlnx,axi-ethernet-1.00.a";
+ device_type = "network";
+ interrupt-parent = <&microblaze_0_intc>;
+ interrupts = < 3 2 >;
+ local-mac-address = [ 00 0a 35 00 81 91 ];
+ phy-handle = <&phy0>;
+ reg = < 0x82780000 0x40000 >;
+ xlnx,avb = <0x0>;
+ xlnx,halfdup = <0x0>;
+ xlnx,include-io = <0x1>;
+ xlnx,mcast-extend = <0x0>;
+ xlnx,phy-type = <0x1>;
+ xlnx,phyaddr = "0B00001";
+ xlnx,rxcsum = <0x0>;
+ xlnx,rxmem = <0x1000>;
+ xlnx,rxvlan-strp = <0x0>;
+ xlnx,rxvlan-tag = <0x0>;
+ xlnx,rxvlan-tran = <0x0>;
+ xlnx,stats = <0x0>;
+ xlnx,txcsum = <0x0>;
+ xlnx,txmem = <0x1000>;
+ xlnx,txvlan-strp = <0x0>;
+ xlnx,txvlan-tag = <0x0>;
+ xlnx,txvlan-tran = <0x0>;
+ xlnx,type = <0x2>;
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ phy0: phy@7 {
+ compatible = "marvell,88e1111";
+ device_type = "ethernet-phy";
+ reg = <7>;
+ } ;
+ } ;
+ } ;
+ ethernet_dma: axi-dma@84600000 {
+ axistream-connected = <&ethernet>;
+ axistream-control-connected = <&ethernet>;
+ compatible = "xlnx,axi-dma-4.00.a", "xlnx,axi-dma-1.00.a";
+ interrupt-parent = <&microblaze_0_intc>;
+ interrupts = < 1 2 0 2 >;
+ reg = < 0x84600000 0x10000 >;
+ xlnx,dlytmr-resolution = <0x4e2>;
+ xlnx,family = "virtex6";
+ xlnx,include-mm2s = <0x1>;
+ xlnx,include-mm2s-dre = <0x1>;
+ xlnx,include-s2mm = <0x1>;
+ xlnx,include-s2mm-dre = <0x1>;
+ xlnx,include-sg = <0x1>;
+ xlnx,mm2s-burst-size = <0x10>;
+ xlnx,prmry-is-aclk-async = <0x0>;
+ xlnx,s2mm-burst-size = <0x10>;
+ xlnx,sg-include-desc-queue = <0x1>;
+ xlnx,sg-include-stscntrl-strm = <0x1>;
+ xlnx,sg-length-width = <0x10>;
+ xlnx,sg-use-stsapp-length = <0x1>;
+ } ;
+ rs232_uart_1: serial@83e00000 {
+ clock-frequency = <100000000>;
+ compatible = "xlnx,axi-uart16550-1.01.a", "xlnx,xps-uart16550-2.00.a", "ns16550a";
+ current-speed = <115200>;
+ device_type = "serial";
+ interrupt-parent = <&microblaze_0_intc>;
+ interrupts = < 5 2 >;
+ reg = < 0x83e00000 0x10000 >;
+ reg-offset = <0x1000>;
+ reg-shift = <2>;
+ xlnx,external-xin-clk-hz = <0x17d7840>;
+ xlnx,family = "virtex6";
+ xlnx,has-external-rclk = <0x0>;
+ xlnx,has-external-xin = <0x0>;
+ xlnx,instance = "RS232_Uart_1";
+ xlnx,is-a-16550 = <0x1>;
+ xlnx,use-modem-ports = <0x0>;
+ xlnx,use-user-ports = <0x0>;
+ } ;
+ pflash: flash@86000000 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "xlnx,axi-emc-1.03.a", "cfi-flash";
+ bank-width = <2>;
+ reg = < 0x86000000 0x02000000 >;
+ xlnx,axi-clk-period-ps = <0x2710>;
+ xlnx,family = "virtex6";
+ xlnx,include-datawidth-matching-0 = <0x1>;
+ xlnx,include-datawidth-matching-1 = <0x0>;
+ xlnx,include-datawidth-matching-2 = <0x0>;
+ xlnx,include-datawidth-matching-3 = <0x0>;
+ xlnx,include-negedge-ioregs = <0x0>;
+ xlnx,instance = "Linear_Flash";
+ xlnx,lflash-period-ps = <0x4e20>;
+ xlnx,linear-flash-sync-burst = <0x0>;
+ xlnx,max-mem-width = <0x10>;
+ xlnx,mem0-type = <0x2>;
+ xlnx,mem0-width = <0x10>;
+ xlnx,mem1-type = <0x0>;
+ xlnx,mem1-width = <0x20>;
+ xlnx,mem2-type = <0x0>;
+ xlnx,mem2-width = <0x20>;
+ xlnx,mem3-type = <0x0>;
+ xlnx,mem3-width = <0x20>;
+ xlnx,num-banks-mem = <0x1>;
+ xlnx,parity-type-mem-0 = <0x0>;
+ xlnx,parity-type-mem-1 = <0x0>;
+ xlnx,parity-type-mem-2 = <0x0>;
+ xlnx,parity-type-mem-3 = <0x0>;
+ xlnx,s-axi-en-reg = <0x0>;
+ xlnx,s-axi-mem-addr-width = <0x20>;
+ xlnx,s-axi-mem-data-width = <0x20>;
+ xlnx,s-axi-mem-id-width = <0x1>;
+ xlnx,s-axi-mem-protocol = "AXI4LITE";
+ xlnx,s-axi-reg-addr-width = <0x5>;
+ xlnx,s-axi-reg-data-width = <0x20>;
+ xlnx,s-axi-reg-protocol = "axi4";
+ xlnx,synch-pipedelay-0 = <0x2>;
+ xlnx,synch-pipedelay-1 = <0x2>;
+ xlnx,synch-pipedelay-2 = <0x2>;
+ xlnx,synch-pipedelay-3 = <0x2>;
+ xlnx,tavdv-ps-mem-0 = <0x1fbd0>;
+ xlnx,tavdv-ps-mem-1 = <0x3a98>;
+ xlnx,tavdv-ps-mem-2 = <0x3a98>;
+ xlnx,tavdv-ps-mem-3 = <0x3a98>;
+ xlnx,tcedv-ps-mem-0 = <0x1fbd0>;
+ xlnx,tcedv-ps-mem-1 = <0x3a98>;
+ xlnx,tcedv-ps-mem-2 = <0x3a98>;
+ xlnx,tcedv-ps-mem-3 = <0x3a98>;
+ xlnx,thzce-ps-mem-0 = <0x88b8>;
+ xlnx,thzce-ps-mem-1 = <0x1b58>;
+ xlnx,thzce-ps-mem-2 = <0x1b58>;
+ xlnx,thzce-ps-mem-3 = <0x1b58>;
+ xlnx,thzoe-ps-mem-0 = <0x1b58>;
+ xlnx,thzoe-ps-mem-1 = <0x1b58>;
+ xlnx,thzoe-ps-mem-2 = <0x1b58>;
+ xlnx,thzoe-ps-mem-3 = <0x1b58>;
+ xlnx,tlzwe-ps-mem-0 = <0x88b8>;
+ xlnx,tlzwe-ps-mem-1 = <0x0>;
+ xlnx,tlzwe-ps-mem-2 = <0x0>;
+ xlnx,tlzwe-ps-mem-3 = <0x0>;
+ xlnx,tpacc-ps-flash-0 = <0x61a8>;
+ xlnx,tpacc-ps-flash-1 = <0x61a8>;
+ xlnx,tpacc-ps-flash-2 = <0x61a8>;
+ xlnx,tpacc-ps-flash-3 = <0x61a8>;
+ xlnx,twc-ps-mem-0 = <0x11170>;
+ xlnx,twc-ps-mem-1 = <0x3a98>;
+ xlnx,twc-ps-mem-2 = <0x3a98>;
+ xlnx,twc-ps-mem-3 = <0x3a98>;
+ xlnx,twp-ps-mem-0 = <0x11170>;
+ xlnx,twp-ps-mem-1 = <0x2ee0>;
+ xlnx,twp-ps-mem-2 = <0x2ee0>;
+ xlnx,twp-ps-mem-3 = <0x2ee0>;
+ xlnx,twph-ps-mem-0 = <0x2ee0>;
+ xlnx,twph-ps-mem-1 = <0x2ee0>;
+ xlnx,twph-ps-mem-2 = <0x2ee0>;
+ xlnx,twph-ps-mem-3 = <0x2ee0>;
+ xlnx,wr-rec-time-mem-0 = <0x186a0>;
+ xlnx,wr-rec-time-mem-1 = <0x186a0>;
+ xlnx,wr-rec-time-mem-2 = <0x186a0>;
+ xlnx,wr-rec-time-mem-3 = <0x186a0>;
+ partition@0x00000000 {
+ label = "rootfs";
+ reg = <0x00000000 0x02000000>;
+ };
+ } ;
+ microblaze_0_intc: interrupt-controller@81800000 {
+ #interrupt-cells = <0x2>;
+ compatible = "xlnx,axi-intc-1.02.a", "xlnx,xps-intc-1.00.a";
+ interrupt-controller ;
+ reg = < 0x81800000 0x10000 >;
+ xlnx,kind-of-intr = <0x0>;
+ xlnx,num-intr-inputs = <0x7>;
+ } ;
+ system_timer: system-timer@83c00000 {
+ clock-frequency = <100000000>;
+ compatible = "xlnx,axi-timer-1.03.a", "xlnx,xps-timer-1.00.a";
+ interrupt-parent = <&microblaze_0_intc>;
+ interrupts = < 2 2 >;
+ reg = < 0x83c00000 0x10000 >;
+ xlnx,count-width = <0x20>;
+ xlnx,family = "virtex6";
+ xlnx,gen0-assert = <0x1>;
+ xlnx,gen1-assert = <0x1>;
+ xlnx,instance = "system_timer";
+ xlnx,one-timer-only = <0x0>;
+ xlnx,trig0-assert = <0x1>;
+ xlnx,trig1-assert = <0x1>;
+ } ;
+ axi_pcie_0: axi-pcie@80000000 {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ compatible = "xlnx,axi-pcie-1.05.a";
+ interrupt-parent = <&microblaze_0_intc>;
+ interrupts = < 6 2 >;
+ ranges = < 0x00000002 0x00000000 0x40000000 0x70000000 0x00000000 0x00000000 0x10000000 >;
+ reg = < 0x80000000 0x1000000 >;
+ xlnx,axi-aclk-freq-hz = <0x7735940>;
+ xlnx,axibar-0 = <0x70000000>;
+ xlnx,axibar-1 = <0xffffffff>;
+ xlnx,axibar-2 = <0xffffffff>;
+ xlnx,axibar-3 = <0xffffffff>;
+ xlnx,axibar-4 = <0xffffffff>;
+ xlnx,axibar-5 = <0xffffffff>;
+ xlnx,axibar-as-0 = <0x0>;
+ xlnx,axibar-as-1 = <0x0>;
+ xlnx,axibar-as-2 = <0x0>;
+ xlnx,axibar-as-3 = <0x0>;
+ xlnx,axibar-as-4 = <0x0>;
+ xlnx,axibar-as-5 = <0x0>;
+ xlnx,axibar-highaddr-0 = <0x7fffffff>;
+ xlnx,axibar-highaddr-1 = <0x0>;
+ xlnx,axibar-highaddr-2 = <0x0>;
+ xlnx,axibar-highaddr-3 = <0x0>;
+ xlnx,axibar-highaddr-4 = <0x0>;
+ xlnx,axibar-highaddr-5 = <0x0>;
+ xlnx,axibar-num = <0x1>;
+ xlnx,axibar2pciebar-0 = <0x40000000>;
+ xlnx,axibar2pciebar-1 = <0x0>;
+ xlnx,axibar2pciebar-2 = <0x0>;
+ xlnx,axibar2pciebar-3 = <0x0>;
+ xlnx,axibar2pciebar-4 = <0x0>;
+ xlnx,axibar2pciebar-5 = <0x0>;
+ xlnx,class-code = <0x60400>;
+ xlnx,comp-timeout = <0x1>;
+ xlnx,device-id = <0x705>;
+ xlnx,family = "virtex6";
+ xlnx,include-baroffset-reg = <0x0>;
+ xlnx,include-rc = <0x1>;
+ xlnx,instance = "axi_pcie_0";
+ xlnx,interrupt-pin = <0x0>;
+ xlnx,max-link-speed = <0x0>;
+ xlnx,no-of-lanes = <0x1>;
+ xlnx,num-msi-req = <0x0>;
+ xlnx,pcie-cap-slot-implemented = <0x0>;
+ xlnx,pcie-use-mode = "1.0";
+ xlnx,pciebar-as = <0x0>;
+ xlnx,pciebar-len-0 = <0x1c>;
+ xlnx,pciebar-len-1 = <0xd>;
+ xlnx,pciebar-len-2 = <0xd>;
+ xlnx,pciebar-num = <0x1>;
+ xlnx,pciebar2axibar-0 = <0xc0000000>;
+ xlnx,pciebar2axibar-0-sec = <0x0>;
+ xlnx,pciebar2axibar-1 = <0xffffffff>;
+ xlnx,pciebar2axibar-1-sec = <0x0>;
+ xlnx,pciebar2axibar-2 = <0xffffffff>;
+ xlnx,pciebar2axibar-2-sec = <0x0>;
+ xlnx,ref-clk-freq = <0x0>;
+ xlnx,ref-clk-freq-hz = <0x5f5e100>;
+ xlnx,rev-id = <0x0>;
+ xlnx,s-axi-ctl-aclk-freq-hz = <0x7735940>;
+ xlnx,s-axi-ctl-protocol = "AXI4LITE";
+ xlnx,s-axi-id-width = <0x1>;
+ xlnx,s-axi-support-threads = <0x1>;
+ xlnx,s-axi-supports-narrow-burst = <0x0>;
+ xlnx,s-axi-supports-read = <0x1>;
+ xlnx,s-axi-supports-write = <0x1>;
+ xlnx,subsystem-id = <0x0>;
+ xlnx,subsystem-vendor-id = <0x0>;
+ xlnx,vendor-id = <0x10ee>;
+ } ;
+
+ } ;
+} ;
diff --git a/target/microblaze/sys-available/qemu-microblaze b/target/microblaze/sys-available/qemu-microblaze
index 49e2c000e..8f35db842 100644
--- a/target/microblaze/sys-available/qemu-microblaze
+++ b/target/microblaze/sys-available/qemu-microblaze
@@ -5,11 +5,9 @@ config ADK_TARGET_SYSTEM_QEMU_MICROBLAZE
select ADK_qemu_microblaze
select ADK_KERNEL_CPU_BIG_ENDIAN
select ADK_HARDWARE_QEMU
- select ADK_TARGET_WITH_VGA
- select ADK_TARGET_WITH_INPUT
- select ADK_TARGET_WITH_PCI
- select ADK_TARGET_WITH_HDD
select ADK_TARGET_KERNEL_LINUXBIN
+ select ADK_USE_KERNEL_MINICONFIG
+ select ADK_TOOLCHAIN_GCC_SJLJ
help
Qemu support for microblaze big endian architecture.
diff --git a/target/microblaze/sys-available/qemu-microblazeel b/target/microblaze/sys-available/qemu-microblazeel
index 9c02185e8..a577d340a 100644
--- a/target/microblaze/sys-available/qemu-microblazeel
+++ b/target/microblaze/sys-available/qemu-microblazeel
@@ -5,11 +5,8 @@ config ADK_TARGET_SYSTEM_QEMU_MICROBLAZEEL
select ADK_little
select ADK_KERNEL_CPU_LITTLE_ENDIAN
select ADK_HARDWARE_QEMU
- select ADK_TARGET_WITH_VGA
- select ADK_TARGET_WITH_INPUT
- select ADK_TARGET_WITH_PCI
- select ADK_TARGET_WITH_HDD
select ADK_TARGET_KERNEL_LINUXBIN
+ select ADK_USE_KERNEL_MINICONFIG
help
Qemu support for microblaze little endian architecture.
diff --git a/target/tools/mtd-utils/Makefile b/target/tools/mtd-utils/Makefile
new file mode 100644
index 000000000..3c90f81c8
--- /dev/null
+++ b/target/tools/mtd-utils/Makefile
@@ -0,0 +1,24 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= mtd-utils
+PKG_VERSION:= 1.5
+PKG_RELEASE:= 1
+PKG_MD5SUM:= fbc1e3560a2c941ed2c94a73ae74348c
+PKG_SITES:= http://openadk.org/distfiles/
+
+include ../rules.mk
+
+all: ${STAGING_HOST_DIR}/bin/mkfs.jffs2
+
+$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
+ ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}' CPPFLAGS='-DWITHOUT_XATTR=1 -D_GNU_SOURCE -I./include'
+ touch $@
+
+${STAGING_HOST_DIR}/bin/mkfs.jffs2: $(WRKBUILD)/.compiled
+ $(INSTALL_BIN) $(WRKBUILD)/mkfs.jffs2 \
+ ${STAGING_HOST_DIR}/bin
+
+include $(TOPDIR)/mk/tools.mk
diff --git a/target/tools/mtd-utils/patches/lzo.patch b/target/tools/mtd-utils/patches/lzo.patch
new file mode 100644
index 000000000..6d6469ef6
--- /dev/null
+++ b/target/tools/mtd-utils/patches/lzo.patch
@@ -0,0 +1,80 @@
+diff -Nur mtd-utils-1.5.orig/compr.c mtd-utils-1.5/compr.c
+--- mtd-utils-1.5.orig/compr.c 2013-12-24 10:42:36.000000000 +0100
++++ mtd-utils-1.5/compr.c 2013-12-25 22:18:17.000000000 +0100
+@@ -517,9 +517,6 @@
+ #ifdef CONFIG_JFFS2_RTIME
+ jffs2_rtime_init();
+ #endif
+-#ifdef CONFIG_JFFS2_LZO
+- jffs2_lzo_init();
+-#endif
+ return 0;
+ }
+
+@@ -531,8 +528,5 @@
+ #ifdef CONFIG_JFFS2_ZLIB
+ jffs2_zlib_exit();
+ #endif
+-#ifdef CONFIG_JFFS2_LZO
+- jffs2_lzo_exit();
+-#endif
+ return 0;
+ }
+diff -Nur mtd-utils-1.5.orig/Makefile mtd-utils-1.5/Makefile
+--- mtd-utils-1.5.orig/Makefile 2013-12-24 10:42:36.000000000 +0100
++++ mtd-utils-1.5/Makefile 2013-12-25 22:22:52.000000000 +0100
+@@ -26,18 +26,12 @@
+ rfddump rfdformat \
+ serve_image recv_image \
+ sumtool jffs2reader
+-UBI_BINS = \
+- ubiupdatevol ubimkvol ubirmvol ubicrc32 ubinfo ubiattach \
+- ubidetach ubinize ubiformat ubirename mtdinfo ubirsvol
+
+ BINS = $(MTD_BINS)
+-BINS += mkfs.ubifs/mkfs.ubifs
+-BINS += $(addprefix ubi-utils/,$(UBI_BINS))
+ SCRIPTS = flash_eraseall
+
+ TARGETS = $(BINS)
+ TARGETS += lib/libmtd.a
+-TARGETS += ubi-utils/libubi.a
+
+ OBJDEPS = $(BUILDDIR)/include/version.h
+
+@@ -84,12 +78,12 @@
+ #
+ # Utils in top level
+ #
+-obj-mkfs.jffs2 = compr_rtime.o compr_zlib.o compr_lzo.o compr.o rbtree.o
+-LDFLAGS_mkfs.jffs2 = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
+-LDLIBS_mkfs.jffs2 = -lz $(LZOLDLIBS)
++obj-mkfs.jffs2 = compr_rtime.o compr_zlib.o compr.o rbtree.o
++LDFLAGS_mkfs.jffs2 = $(ZLIBLDFLAGS)
++LDLIBS_mkfs.jffs2 = -lz
+
+-LDFLAGS_jffs2reader = $(ZLIBLDFLAGS) $(LZOLDFLAGS)
+-LDLIBS_jffs2reader = -lz $(LZOLDLIBS)
++LDFLAGS_jffs2reader = $(ZLIBLDFLAGS)
++LDLIBS_jffs2reader = -lz
+
+ $(foreach v,$(MTD_BINS),$(eval $(call mkdep,,$(v))))
+
+@@ -104,8 +98,8 @@
+ #
+ obj-mkfs.ubifs = crc16.o lpt.o compr.o devtable.o \
+ hashtable/hashtable.o hashtable/hashtable_itr.o
+-LDFLAGS_mkfs.ubifs = $(ZLIBLDFLAGS) $(LZOLDFLAGS) $(UUIDLDFLAGS)
+-LDLIBS_mkfs.ubifs = -lz -llzo2 -lm -luuid
++LDFLAGS_mkfs.ubifs = $(ZLIBLDFLAGS) $(UUIDLDFLAGS)
++LDLIBS_mkfs.ubifs = -lz -lm -luuid
+ $(call mkdep,mkfs.ubifs/,mkfs.ubifs,,ubi-utils/libubi.a)
+
+ #
+@@ -119,6 +113,3 @@
+ obj-mtdinfo = libubigen.a
+ obj-ubinize = libubigen.a libiniparser.a
+ obj-ubiformat = libubigen.a libscan.a
+-
+-$(foreach v,libubi.a libubigen.a libiniparser.a libscan.a,$(eval $(call _mkdep,ubi-utils/,$(v))))
+-$(foreach v,$(UBI_BINS),$(eval $(call mkdep,ubi-utils/,$(v),libubi.a ubiutils-common.o)))
diff --git a/target/tools/squashfs/Makefile b/target/tools/squashfs/Makefile
index bcc966274..94b3a0115 100644
--- a/target/tools/squashfs/Makefile
+++ b/target/tools/squashfs/Makefile
@@ -4,9 +4,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:= squashfs
-PKG_VERSION:= 4.0
-PKG_RELEASE:= 2
-PKG_MD5SUM:= a3c23391da4ebab0ac4a75021ddabf96
+PKG_VERSION:= 4.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 1b7a781fb4cf8938842279bd3e8ee852
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=squashfs/}
DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz
@@ -17,7 +17,9 @@ include ../rules.mk
all: ${STAGING_HOST_DIR}/bin/mksquashfs
$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
- ${MAKE} -C ${WRKBUILD}/squashfs-tools CC='${CC_FOR_BUILD}'
+ ${MAKE} -C ${WRKBUILD}/squashfs-tools CC='${CC_FOR_BUILD}' \
+ XZ_SUPPORT=1 CPPFLAGS_FOR_BUILD=$(CPPFLAGS_FOR_BUILD) \
+ EXTRA_LDFLAGS=$(LDFLAGS_FOR_BUILD)
touch $@
${STAGING_HOST_DIR}/bin/mksquashfs: $(WRKBUILD)/.compiled
diff --git a/target/tools/squashfs/patches/cppflags.patch b/target/tools/squashfs/patches/cppflags.patch
new file mode 100644
index 000000000..1432ea3cf
--- /dev/null
+++ b/target/tools/squashfs/patches/cppflags.patch
@@ -0,0 +1,12 @@
+diff -Nur squashfs4.2.orig/squashfs-tools/Makefile squashfs4.2/squashfs-tools/Makefile
+--- squashfs4.2.orig/squashfs-tools/Makefile 2011-02-28 21:04:15.000000000 +0100
++++ squashfs4.2/squashfs-tools/Makefile 2013-12-27 13:49:22.000000000 +0100
+@@ -93,7 +93,7 @@
+ # End of BUILD options section #
+ ###############################################
+
+-INCLUDEDIR = -I.
++INCLUDEDIR = -I. $(CPPFLAGS_FOR_BUILD)
+ INSTALL_DIR = /usr/local/bin
+
+ MKSQUASHFS_OBJS = mksquashfs.o read_fs.o sort.o swap.o pseudo.o compressor.o
diff --git a/target/tools/squashfs/patches/honour-cflags.patch b/target/tools/squashfs/patches/honour-cflags.patch
deleted file mode 100644
index a50d94263..000000000
--- a/target/tools/squashfs/patches/honour-cflags.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- squashfs4.0/squashfs-tools/Makefile~ Sun Apr 5 02:03:12 2009
-+++ squashfs4.0/squashfs-tools/Makefile Fri Jan 7 16:16:46 2011
-@@ -2,7 +2,7 @@ INSTALL_DIR = /usr/local/bin
-
- INCLUDEDIR = .
-
--CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2
-+CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2 ${CFLAGS_FOR_BUILD}
-
- all: mksquashfs unsquashfs
-
diff --git a/target/tools/squashfs/patches/squashfs-bsd.patch b/target/tools/squashfs/patches/squashfs-bsd.patch
deleted file mode 100644
index 578b9017f..000000000
--- a/target/tools/squashfs/patches/squashfs-bsd.patch
+++ /dev/null
@@ -1,245 +0,0 @@
---- squashfs4.0~/squashfs-tools/mksquashfs.c Sun Apr 5 21:22:24 2009
-+++ squashfs4.0/squashfs-tools/mksquashfs.c Fri Jan 7 20:36:08 2011
-@@ -24,6 +24,7 @@
- #define FALSE 0
- #define TRUE 1
-
-+#include <sys/param.h>
- #include <pwd.h>
- #include <grp.h>
- #include <time.h>
-@@ -3688,23 +3689,9 @@ void initialise_threads()
- signal(SIGUSR1, sigusr1_handler);
-
- if(processors == -1) {
--#ifndef linux
-- int mib[2];
-- size_t len = sizeof(processors);
--
-- mib[0] = CTL_HW;
--#ifdef HW_AVAILCPU
-- mib[1] = HW_AVAILCPU;
-+#if defined(BSD)
-+ processors = 1;
- #else
-- mib[1] = HW_NCPU;
--#endif
--
-- if(sysctl(mib, 2, &processors, &len, NULL, 0) == -1) {
-- ERROR("Failed to get number of available processors. "
-- "Defaulting to 1\n");
-- processors = 1;
-- }
--#else
- processors = get_nprocs();
- #endif
- }
-@@ -3974,9 +3961,15 @@ int excluded(struct pathnames *paths, ch
- int match = use_regex ?
- regexec(path->name[i].preg, name, (size_t) 0,
- NULL, 0) == 0 :
-+#if defined(BSD)
- fnmatch(path->name[i].name, name,
-+ FNM_PATHNAME|FNM_PERIOD) ==
-+ 0;
-+#else
-+ fnmatch(path->name[i].name, name,
- FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) ==
- 0;
-+#endif
-
- if(match && path->name[i].paths == NULL) {
- /* match on a leaf component, any subdirectories
---- squashfs4.0~/squashfs-tools/mksquashfs.h Thu Feb 19 18:30:44 2009
-+++ squashfs4.0/squashfs-tools/mksquashfs.h Fri Jan 7 20:40:01 2011
-@@ -24,7 +24,9 @@
- *
- */
-
--#if __BYTE_ORDER == __BIG_ENDIAN
-+#ifndef __BYTE_ORDER
-+#error Which endianness? __BYTE_ORDER is not defined.
-+#elif __BYTE_ORDER == __BIG_ENDIAN
- #define SQUASHFS_SWAP_SHORTS(s, d, n) swap_le16_num(s, d, n)
- #define SQUASHFS_SWAP_INTS(s, d, n) swap_le32_num(s, d, n)
- #define SQUASHFS_SWAP_LONG_LONGS(s, d, n) swap_le64_num(s, d, n)
-@@ -34,11 +36,13 @@
- #define SWAP_LE64(s, d, field) swap_le64(&((s)->field), &((d)->field))
- #define SWAP_LES16(s, d, field) swap_le16((unsigned short *) &((s)->field), \
- (unsigned short *) &((d)->field))
--#else
-+#elif __BYTE_ORDER == __LITTLE_ENDIAN
- #define SQUASHFS_MEMCPY(s, d, n) memcpy(d, s, n)
- #define SQUASHFS_SWAP_SHORTS(s, d, n) memcpy(d, s, n * sizeof(short))
- #define SQUASHFS_SWAP_INTS(s, d, n) memcpy(d, s, n * sizeof(int))
- #define SQUASHFS_SWAP_LONG_LONGS(s, d, n) \
- memcpy(d, s, n * sizeof(long long))
-+#else
-+#error Which endianness (PDP endian? Worse?)
- #endif
- #endif
---- squashfs4.0~/squashfs-tools/pseudo.c Sun Apr 5 02:01:34 2009
-+++ squashfs4.0/squashfs-tools/pseudo.c Fri Jan 7 20:35:31 2011
-@@ -30,6 +30,11 @@
- #include <string.h>
- #include <stdlib.h>
- #include <sys/types.h>
-+#include <sys/param.h>
-+
-+#if defined(BSD)
-+#include <sys/stat.h>
-+#endif
-
- #include "pseudo.h"
-
---- squashfs4.0~/squashfs-tools/read_fs.h Thu Feb 19 18:28:56 2009
-+++ squashfs4.0/squashfs-tools/read_fs.h Fri Jan 7 20:40:00 2011
-@@ -24,7 +24,9 @@
- *
- */
-
--#if __BYTE_ORDER == __BIG_ENDIAN
-+#ifndef __BYTE_ORDER
-+#error Which endianness? __BYTE_ORDER is not defined.
-+#elif __BYTE_ORDER == __BIG_ENDIAN
- #define SQUASHFS_SWAP_SHORTS(d, s, n) swap_le16_num(s, d, n)
- #define SQUASHFS_SWAP_INTS(d, s, n) swap_le32_num(s, d, n)
- #define SQUASHFS_SWAP_LONG_LONGS(d, s, n) swap_le64_num(s, d, n)
-@@ -34,11 +36,13 @@
- #define SWAP_LE64(d, s, field) swap_le64(&((s)->field), &((d)->field))
- #define SWAP_LES16(d, s, field) swap_le16((unsigned short *) &((s)->field), \
- (unsigned short *) &((d)->field))
--#else
-+#elif __BYTE_ORDER == __LITTLE_ENDIAN
- #define SQUASHFS_MEMCPY(d, s, n) memcpy(d, s, n)
- #define SQUASHFS_SWAP_SHORTS(d, s, n) memcpy(d, s, n * sizeof(short))
- #define SQUASHFS_SWAP_INTS(d, s, n) memcpy(d, s, n * sizeof(int))
- #define SQUASHFS_SWAP_LONG_LONGS(d, s, n) \
- memcpy(d, s, n * sizeof(long long))
-+#else
-+#error Which endianness (PDP endian? Worse?)
- #endif
- #endif
---- squashfs4.0~/squashfs-tools/squashfs_compat.h Mon Mar 16 04:27:03 2009
-+++ squashfs4.0/squashfs-tools/squashfs_compat.h Fri Jan 7 20:39:59 2011
-@@ -768,12 +768,16 @@ typedef union squashfs_inode_header_2 sq
- * macros used to swap each structure entry, taking into account
- * bitfields and different bitfield placing conventions on differing architectures
- */
--#if __BYTE_ORDER == __BIG_ENDIAN
-+#ifndef __BYTE_ORDER
-+#error Which endianness? __BYTE_ORDER is not defined.
-+#elif __BYTE_ORDER == __BIG_ENDIAN
- /* convert from big endian to little endian */
- #define SQUASHFS_SWAP(value, p, pos, tbits) _SQUASHFS_SWAP(value, p, pos, tbits, b_pos)
--#else
-+#elif __BYTE_ORDER == __LITTLE_ENDIAN
- /* convert from little endian to big endian */
- #define SQUASHFS_SWAP(value, p, pos, tbits) _SQUASHFS_SWAP(value, p, pos, tbits, 64 - tbits - b_pos)
-+#else
-+#error Which endianness (PDP endian? Worse?)
- #endif
-
- #define _SQUASHFS_SWAP(value, p, pos, tbits, SHIFT) {\
---- squashfs4.0~/squashfs-tools/squashfs_swap.h Fri Feb 20 19:41:56 2009
-+++ squashfs4.0/squashfs-tools/squashfs_swap.h Fri Jan 7 20:39:59 2011
-@@ -27,7 +27,9 @@
- * macros to convert each stucture from big endian to little endian
- */
-
--#if __BYTE_ORDER == __BIG_ENDIAN
-+#ifndef __BYTE_ORDER
-+#error Which endianness? __BYTE_ORDER is not defined.
-+#elif __BYTE_ORDER == __BIG_ENDIAN
- extern void swap_le16(unsigned short *, unsigned short *);
- extern void swap_le32(unsigned int *, unsigned int *);
- extern void swap_le64(long long *, long long *);
-@@ -256,7 +258,7 @@ extern void inswap_le64_num(long long *,
- #define SQUASHFS_INSWAP_SHORTS(s, n) inswap_le16_num(s, n)
- #define SQUASHFS_INSWAP_INTS(s, n) inswap_le32_num(s, n)
- #define SQUASHFS_INSWAP_LONG_LONGS(s, n) inswap_le64_num(s, n)
--#else
-+#elif __BYTE_ORDER == __LITTLE_ENDIAN
- #define SQUASHFS_SWAP_SUPER_BLOCK(s, d) \
- SQUASHFS_MEMCPY(s, d, sizeof(*(s)))
- #define SQUASHFS_SWAP_DIR_INDEX(s, d) \
-@@ -308,5 +310,7 @@ extern void inswap_le64_num(long long *,
- #define SQUASHFS_INSWAP_SHORTS(s, n)
- #define SQUASHFS_INSWAP_INTS(s, n)
- #define SQUASHFS_INSWAP_LONG_LONGS(s, n)
-+#else
-+#error Which endianness (PDP endian? Worse?)
- #endif
- #endif
---- squashfs4.0~/squashfs-tools/swap.c Thu Mar 26 04:39:52 2009
-+++ squashfs4.0/squashfs-tools/swap.c Fri Jan 7 20:40:00 2011
-@@ -27,7 +27,9 @@
- #include <endian.h>
- #endif
-
--#if __BYTE_ORDER == __BIG_ENDIAN
-+#ifndef __BYTE_ORDER
-+#error Which endianness? __BYTE_ORDER is not defined.
-+#elif __BYTE_ORDER == __BIG_ENDIAN
- void swap_le16(unsigned short *src, unsigned short *dest)
- {
- unsigned char *s = (unsigned char *) src;
-@@ -120,4 +122,6 @@ void inswap_le##BITS##_num(TYPE *s, int
- INSWAP_LE_NUM(16, unsigned short)
- INSWAP_LE_NUM(32, unsigned int)
- INSWAP_LE_NUM(64, long long)
-+#elif __BYTE_ORDER != __LITTLE_ENDIAN
-+#error Which endianness (PDP endian? Worse?)
- #endif
---- squashfs4.0~/squashfs-tools/unsquashfs.c Sun Apr 5 21:22:42 2009
-+++ squashfs4.0/squashfs-tools/unsquashfs.c Fri Jan 7 20:35:31 2011
-@@ -21,6 +21,8 @@
- * unsquashfs.c
- */
-
-+#include <sys/param.h>
-+
- #include "unsquashfs.h"
- #include "squashfs_swap.h"
- #include "squashfs_compat.h"
-@@ -1193,10 +1195,17 @@ int matches(struct pathnames *paths, cha
- struct pathname *path = paths->path[n];
- for(i = 0; i < path->names; i++) {
- int match = use_regex ?
-+#if defined(BSD)
- regexec(path->name[i].preg, name, (size_t) 0,
- NULL, 0) == 0 : fnmatch(path->name[i].name,
-+ name, FNM_PATHNAME|FNM_PERIOD) ==
-+ 0;
-+#else
-+ regexec(path->name[i].preg, name, (size_t) 0,
-+ NULL, 0) == 0 : fnmatch(path->name[i].name,
- name, FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) ==
- 0;
-+#endif
- if(match && path->name[i].paths == NULL)
- /*
- * match on a leaf component, any subdirectories
-@@ -1795,21 +1804,7 @@ void initialise_threads(int fragment_buf
-
- if(processors == -1) {
- #ifndef linux
-- int mib[2];
-- size_t len = sizeof(processors);
--
-- mib[0] = CTL_HW;
--#ifdef HW_AVAILCPU
-- mib[1] = HW_AVAILCPU;
--#else
-- mib[1] = HW_NCPU;
--#endif
--
-- if(sysctl(mib, 2, &processors, &len, NULL, 0) == -1) {
-- ERROR("Failed to get number of available processors. "
-- "Defaulting to 1\n");
-- processors = 1;
-- }
-+ processors = 1;
- #else
- processors = get_nprocs();
- #endif
diff --git a/target/tools/squashfs/patches/uClibc-compat.patch b/target/tools/squashfs/patches/uClibc-compat.patch
deleted file mode 100644
index 00f2b22c0..000000000
--- a/target/tools/squashfs/patches/uClibc-compat.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -Nur squashfs4.0.orig/squashfs-tools/mksquashfs.c squashfs4.0/squashfs-tools/mksquashfs.c
---- squashfs4.0.orig/squashfs-tools/mksquashfs.c 2009-04-05 23:22:48.000000000 +0200
-+++ squashfs4.0/squashfs-tools/mksquashfs.c 2011-03-18 22:04:00.000000000 +0100
-@@ -3705,7 +3705,7 @@
- processors = 1;
- }
- #else
-- processors = get_nprocs();
-+ processors = sysconf(_SC_NPROCESSORS_CONF);
- #endif
- }
-
-diff -Nur squashfs4.0.orig/squashfs-tools/unsquashfs.c squashfs4.0/squashfs-tools/unsquashfs.c
---- squashfs4.0.orig/squashfs-tools/unsquashfs.c 2009-04-05 23:23:06.000000000 +0200
-+++ squashfs4.0/squashfs-tools/unsquashfs.c 2011-03-18 22:03:31.000000000 +0100
-@@ -1811,7 +1811,7 @@
- processors = 1;
- }
- #else
-- processors = get_nprocs();
-+ processors = sysconf(_SC_NPROCESSORS_CONF);
- #endif
- }
-
diff --git a/target/tools/xz/Makefile b/target/tools/xz/Makefile
new file mode 100644
index 000000000..6cefbb476
--- /dev/null
+++ b/target/tools/xz/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= xz
+PKG_VERSION:= 5.0.5
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 1b7a781fb4cf8938842279bd3e8ee852
+PKG_SITES:= http://tukaani.org/xz/
+
+include ../rules.mk
+
+all: $(WRKBUILD)/.installed
+
+$(WRKBUILD)/.configured: ${WRKDIST}/.prepared
+ (cd ${WRKBUILD}; ./configure --prefix=$(STAGING_HOST_DIR)/usr)
+ touch $@
+
+$(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
+ ${MAKE} -C ${WRKBUILD}
+ touch $@
+
+$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
+ ${MAKE} -C ${WRKBUILD} install
+ touch $@
+
+include $(TOPDIR)/mk/tools.mk
diff --git a/target/x86/Makefile b/target/x86/Makefile
index a3dc8ae70..b228810c7 100644
--- a/target/x86/Makefile
+++ b/target/x86/Makefile
@@ -66,3 +66,7 @@ ifeq ($(ADK_HARDWARE_QEMU),y)
@echo 'qemu-system-i386 -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/$(TARGET_KERNEL)'
endif
endif
+ifeq (${ADK_TARGET_FS},iso)
+imageinstall: ${BIN_DIR}/${ROOTFSISO}
+ @echo 'ISO image is at $<'
+endif
diff --git a/target/x86/sys-available/ibm-x40 b/target/x86/sys-available/ibm-x40
index 1327fb922..7dc75ebf4 100644
--- a/target/x86/sys-available/ibm-x40
+++ b/target/x86/sys-available/ibm-x40
@@ -1,6 +1,5 @@
config ADK_TARGET_SYSTEM_IBM_X40
bool "IBM X40 laptop"
- depends on ADK_BROKEN
select ADK_x86
select ADK_ibm_x40
select ADK_CPU_PENTIUM_M
@@ -22,6 +21,7 @@ config ADK_TARGET_SYSTEM_IBM_X40
select ADK_TARGET_WITH_ACPI
# with docking station
select ADK_TARGET_WITH_PP
+ select ADK_TARGET_KERNEL_BZIMAGE
help
System profile for IBM X40 laptop.
diff --git a/toolchain/eglibc/Makefile b/toolchain/eglibc/Makefile
index 12f193c3b..276b468d4 100644
--- a/toolchain/eglibc/Makefile
+++ b/toolchain/eglibc/Makefile
@@ -8,6 +8,9 @@ include ../rules.mk
ifeq ($(ADK_LINUX_SPARC),y)
TARGET_CFLAGS_LIBC:= $(subst Os,O2,$(TARGET_CFLAGS))
endif
+ifeq ($(ADK_LINUX_MICROBLAZE),y)
+TARGET_CFLAGS_LIBC:= $(subst Os,O2,$(TARGET_CFLAGS))
+endif
# ssp not supported
TARGET_CFLAGS_LIBC:= $(filter-out -fstack-protector,$(TARGET_CFLAGS_LIBC))
diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile
index 2cce6bebc..44ee75775 100644
--- a/toolchain/musl/Makefile
+++ b/toolchain/musl/Makefile
@@ -12,6 +12,12 @@ endif
ifeq ($(CPU_ARCH),mips64el)
REAL_GNU_TARGET_NAME:= $(subst mips64el,mips,$(REAL_GNU_TARGET_NAME))
endif
+ifeq ($(CPU_ARCH),mips64)
+REAL_GNU_TARGET_NAME:= $(subst mips64,mips,$(REAL_GNU_TARGET_NAME))
+endif
+ifeq ($(CPU_ARCH),microblazeel)
+REAL_GNU_TARGET_NAME:= $(subst microblazeel,microblaze,$(REAL_GNU_TARGET_NAME))
+endif
$(WRKBUILD)/.headers:
(cd $(WRKBUILD); CC='$(TARGET_CC)' CROSS_COMPILE='$(TARGET_CROSS)' \
@@ -24,6 +30,13 @@ $(WRKBUILD)/.headers:
touch $@
$(WRKBUILD)/.compiled:
+ # reconfigure musl, otherwise linking with libgcc or libgcc_eh is disabled
+ $(MAKE) CFLAGS='$(TARGET_CFLAGS)' -C $(WRKBUILD) clean
+ (cd $(WRKBUILD); CC='$(TARGET_CC)' CROSS_COMPILE='$(TARGET_CROSS)' \
+ ./configure --prefix=/usr \
+ --target=$(REAL_GNU_TARGET_NAME) \
+ --disable-gcc-wrapper \
+ )
$(MAKE) CFLAGS='$(TARGET_CFLAGS)' -C $(WRKBUILD) all
touch $@
diff --git a/toolchain/musl/Makefile.inc b/toolchain/musl/Makefile.inc
index 37bd7a981..506280532 100644
--- a/toolchain/musl/Makefile.inc
+++ b/toolchain/musl/Makefile.inc
@@ -2,8 +2,8 @@
# material, please see the LICENCE file in the top-level directory.
PKG_NAME:= musl
-PKG_VERSION:= 0.9.14
+PKG_VERSION:= 0.9.15
PKG_RELEASE:= 1
-PKG_MD5SUM:= bfb685695aa942e64c63170589e575b2
+PKG_MD5SUM:= 06f590a38c85722ee9343db2416425f4
PKG_SITES:= http://www.musl-libc.org/releases/
DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
diff --git a/toolchain/musl/patches/i386-syscall.patch b/toolchain/musl/patches/i386-syscall.patch
deleted file mode 100644
index d70701983..000000000
--- a/toolchain/musl/patches/i386-syscall.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff -Nur musl-0.9.14.orig/arch/i386/bits/syscall.h musl-0.9.14/arch/i386/bits/syscall.h
---- musl-0.9.14.orig/arch/i386/bits/syscall.h 2013-09-23 23:01:11.000000000 +0200
-+++ musl-0.9.14/arch/i386/bits/syscall.h 2013-10-22 10:36:44.000000000 +0200
-@@ -333,6 +333,11 @@
- #define __NR_inotify_init1 332
- #define __NR_preadv 333
- #define __NR_pwritev 334
-+#define __NR_rt_tgsigqueueinfo 335
-+#define __NR_perf_event_open 336
-+#define __NR_recvmmsg 337
-+#define __NR_fanotify_init 338
-+#define __NR_fanotify_mark 339
- #define __NR_prlimit64 340
- #define __NR_name_to_handle_at 341
- #define __NR_open_by_handle_at 342
-@@ -683,6 +688,11 @@
- #define SYS_inotify_init1 332
- #define SYS_preadv 333
- #define SYS_pwritev 334
-+#define SYS_rt_tgsigqueueinfo 335
-+#define SYS_perf_event_open 336
-+#define SYS_recvmmsg 337
-+#define SYS_fanotify_init 338
-+#define SYS_fanotify_mark 339
- #define SYS_prlimit64 340
- #define SYS_name_to_handle_at 341
- #define SYS_open_by_handle_at 342
diff --git a/tools/Makefile b/tools/Makefile
index ee096db61..e644efbb1 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -4,6 +4,12 @@
include $(TOPDIR)/rules.mk
TARGETS:=adk mkcrypt cpio mkimage genext2fs
+ifeq ($(ADK_TARGET_ROOTFS_ISO),y)
+TARGETS+=cdrtools syslinux
+endif
+ifeq ($(ADK_TARGET_LIB_EGLIBC),y)
+TARGETS+=gperf
+endif
TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
diff --git a/tools/cdrtools/Makefile b/tools/cdrtools/Makefile
new file mode 100644
index 000000000..965e3553d
--- /dev/null
+++ b/tools/cdrtools/Makefile
@@ -0,0 +1,25 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= cdrtools
+PKG_VERSION:= 3.00
+PKG_RELEASE:= 1
+PKG_MD5SUM:= bb21cefefcfbb76cf249120e8978ffdd
+PKG_SITES:= ftp://ftp.berlios.de/pub/cdrecord/
+
+include ../rules.mk
+
+install: ${TOOLS_DIR}/mkisofs
+
+$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
+ #(cd ${WRKBUILD}; ./configure)
+ ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}'
+ touch $@
+
+${TOOLS_DIR}/mkisofs: $(WRKBUILD)/.compiled
+ $(INSTALL_BIN) $(WRKBUILD)/mkisofs/OBJ/*/mkisofs \
+ ${TOOLS_DIR}
+
+include $(TOPDIR)/mk/tools.mk
diff --git a/tools/gperf/Makefile b/tools/gperf/Makefile
new file mode 100644
index 000000000..2d811932b
--- /dev/null
+++ b/tools/gperf/Makefile
@@ -0,0 +1,25 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= gperf
+PKG_VERSION:= 3.0.4
+PKG_RELEASE:= 1
+PKG_MD5SUM:= c1f1db32fb6598d6a93e6e88796a8632
+PKG_SITES:= http://ftp.gnu.org/pub/gnu/gperf/
+
+include ../rules.mk
+
+install: ${TOOLS_DIR}/gperf
+
+$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
+ (cd ${WRKBUILD}; ./configure)
+ ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}'
+ touch $@
+
+${TOOLS_DIR}/gperf: $(WRKBUILD)/.compiled
+ $(INSTALL_BIN) $(WRKBUILD)/src/gperf \
+ ${TOOLS_DIR}
+
+include $(TOPDIR)/mk/tools.mk
diff --git a/tools/syslinux/Makefile b/tools/syslinux/Makefile
new file mode 100644
index 000000000..1ac6ef672
--- /dev/null
+++ b/tools/syslinux/Makefile
@@ -0,0 +1,38 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= syslinux
+PKG_VERSION:= 6.02
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 086ac1c569d226a5e2ae3d605de09a1d
+PKG_SITES:= http://www.kernel.org/pub/linux/utils/boot/syslinux/
+
+include ../rules.mk
+WRKINST:= ${WRKBUILD}/openadk_installroot
+
+install: ${TOOLS_DIR}/extlinux ${STAGING_HOST_DIR}/usr/share/syslinux/.installed
+
+$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
+ #(cd ${WRKBUILD}; ./configure)
+ ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}' bios installer
+ touch $@
+
+$(WRKBUILD)/.installed: ${WRKBUILD}/.compiled
+ mkdir -p ${WRKINST}
+ ${MAKE} -C ${WRKBUILD} CC='${CC_FOR_BUILD}' \
+ INSTALLROOT='${WRKINST}' \
+ bios install
+ touch $@
+
+${TOOLS_DIR}/extlinux: $(WRKBUILD)/.installed
+ $(INSTALL_BIN) ${WRKINST}/sbin/extlinux \
+ ${TOOLS_DIR}
+
+${STAGING_HOST_DIR}/usr/share/syslinux/.installed: ${WRKBUILD}/.installed
+ mkdir -p ${STAGING_HOST_DIR}/usr/share
+ ${CP} ${WRKINST}/usr/share/syslinux ${STAGING_HOST_DIR}/usr/share
+ touch ${STAGING_HOST_DIR}/usr/share/syslinux/.installed
+
+include $(TOPDIR)/mk/tools.mk