From 2865f7cd786a5ff015a9e988f0eebb5498deab2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Wed, 11 Mar 2015 10:55:55 +0100 Subject: [PATCH] packaging: linux kernel-stable 3.19.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I667b8ce5f3d77ad3cebd51678d87acb833a800ba Signed-off-by: José Bollo --- .gbs.conf | 3 + .gitignore | 1 + arch/arm/configs/vexpress_defconfig | 53 ++--- arch/x86/configs/i386_defconfig | 52 ++--- arch/x86/configs/x86_64_defconfig | 52 ++--- packaging/README.update_kernel-profile | 81 +++++++ packaging/README.update_linux-stable | 96 ++++++++ packaging/linux-stable.spec | 393 +++++++++++++++++++++++++++++++++ 8 files changed, 618 insertions(+), 113 deletions(-) create mode 100644 .gbs.conf create mode 100644 packaging/README.update_kernel-profile create mode 100644 packaging/README.update_linux-stable create mode 100644 packaging/linux-stable.spec diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 index 0000000..2290232 --- /dev/null +++ b/.gbs.conf @@ -0,0 +1,3 @@ +[general] +upstream_branch = upstream +upstream_tag = v${upstreamversion} diff --git a/.gitignore b/.gitignore index ce57b79..6d8ced8 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,7 @@ Module.symvers /vmlinuz /System.map /Module.markers +/defconfig # # Debian directory (make deb-pkg) diff --git a/arch/arm/configs/vexpress_defconfig b/arch/arm/configs/vexpress_defconfig index f489fda..3220721 100644 --- a/arch/arm/configs/vexpress_defconfig +++ b/arch/arm/configs/vexpress_defconfig @@ -1,43 +1,25 @@ # CONFIG_LOCALVERSION_AUTO is not set CONFIG_SYSVIPC=y +CONFIG_FHANDLE=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=14 CONFIG_CGROUPS=y CONFIG_CPUSETS=y +CONFIG_CGROUP_SCHED=y # CONFIG_UTS_NS is not set # CONFIG_IPC_NS is not set # CONFIG_PID_NS is not set -# CONFIG_NET_NS is not set CONFIG_BLK_DEV_INITRD=y CONFIG_PROFILING=y CONFIG_OPROFILE=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y -# CONFIG_LBDAF is not set -# CONFIG_BLK_DEV_BSG is not set # CONFIG_IOSCHED_DEADLINE is not set # CONFIG_IOSCHED_CFQ is not set -CONFIG_ARCH_VEXPRESS=y -CONFIG_ARCH_VEXPRESS_CA9X4=y -CONFIG_ARCH_VEXPRESS_DCSCB=y -CONFIG_ARCH_VEXPRESS_TC2_PM=y -# CONFIG_SWP_EMULATE is not set -CONFIG_SMP=y -CONFIG_HAVE_ARM_ARCH_TIMER=y -CONFIG_MCPM=y -CONFIG_VMSPLIT_2G=y -CONFIG_NR_CPUS=8 -CONFIG_ARM_PSCI=y -CONFIG_AEABI=y CONFIG_CMA=y -CONFIG_ZBOOT_ROM_TEXT=0x0 -CONFIG_ZBOOT_ROM_BSS=0x0 -CONFIG_CMDLINE="console=ttyAMA0" +CONFIG_SECCOMP=y CONFIG_CPU_IDLE=y -CONFIG_CPU_IDLE_MULTIPLE_DRIVERS=y -CONFIG_VFP=y -CONFIG_NEON=y # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set CONFIG_NET=y CONFIG_PACKET=y @@ -47,11 +29,9 @@ CONFIG_IP_PNP=y CONFIG_IP_PNP_DHCP=y CONFIG_IP_PNP_BOOTP=y # CONFIG_INET_LRO is not set -# CONFIG_IPV6 is not set # CONFIG_WIRELESS is not set CONFIG_NET_9P=y CONFIG_NET_9P_VIRTIO=y -CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" CONFIG_DEVTMPFS=y CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y @@ -60,10 +40,8 @@ CONFIG_MTD_CFI=y CONFIG_MTD_CFI_INTELEXT=y CONFIG_MTD_CFI_AMDSTD=y CONFIG_MTD_PHYSMAP=y -CONFIG_MTD_PHYSMAP_OF=y CONFIG_MTD_PLATRAM=y CONFIG_MTD_UBI=y -CONFIG_PROC_DEVICETREE=y CONFIG_VIRTIO_BLK=y # CONFIG_SCSI_PROC_FS is not set CONFIG_BLK_DEV_SD=y @@ -72,25 +50,21 @@ CONFIG_ATA=y # CONFIG_SATA_PMP is not set CONFIG_NETDEVICES=y CONFIG_VIRTIO_NET=y -CONFIG_SMC91X=y CONFIG_SMSC911X=y # CONFIG_WLAN is not set CONFIG_INPUT_EVDEV=y # CONFIG_SERIO_SERPORT is not set -CONFIG_SERIO_AMBAKMI=y CONFIG_LEGACY_PTY_COUNT=16 -CONFIG_SERIAL_AMBA_PL011=y -CONFIG_SERIAL_AMBA_PL011_CONSOLE=y CONFIG_VIRTIO_CONSOLE=y CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y CONFIG_I2C=y -CONFIG_I2C_VERSATILE=y -CONFIG_SENSORS_VEXPRESS=y +CONFIG_POWER_RESET=y +CONFIG_THERMAL=y +CONFIG_THERMAL_GOV_USER_SPACE=y CONFIG_REGULATOR=y -CONFIG_REGULATOR_VEXPRESS=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_FB=y -CONFIG_FB_ARMCLCD=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_LOGO=y # CONFIG_LOGO_LINUX_MONO is not set @@ -100,7 +74,6 @@ CONFIG_SND=y CONFIG_SND_MIXER_OSS=y CONFIG_SND_PCM_OSS=y # CONFIG_SND_DRIVERS is not set -CONFIG_SND_ARMAACI=y CONFIG_HID_DRAGONRISE=y CONFIG_HID_GYRATION=y CONFIG_HID_TWINHAN=y @@ -121,15 +94,12 @@ CONFIG_USB_MON=y CONFIG_USB_ISP1760_HCD=y CONFIG_USB_STORAGE=y CONFIG_MMC=y -CONFIG_MMC_ARMMMCI=y CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y -CONFIG_LEDS_GPIO=y CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_HEARTBEAT=y CONFIG_LEDS_TRIGGER_CPU=y CONFIG_RTC_CLASS=y -CONFIG_RTC_DRV_PL031=y CONFIG_VIRTIO_BALLOON=y CONFIG_VIRTIO_MMIO=y CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y @@ -138,8 +108,12 @@ CONFIG_EXT3_FS=y # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set # CONFIG_EXT3_FS_XATTR is not set CONFIG_EXT4_FS=y +CONFIG_EXT4_FS_POSIX_ACL=y +CONFIG_EXT4_FS_SECURITY=y +CONFIG_AUTOFS4_FS=y CONFIG_VFAT_FS=y CONFIG_TMPFS=y +CONFIG_TMPFS_POSIX_ACL=y CONFIG_JFFS2_FS=y CONFIG_UBIFS_FS=y CONFIG_CRAMFS=y @@ -155,7 +129,8 @@ CONFIG_DEBUG_FS=y CONFIG_MAGIC_SYSRQ=y CONFIG_DEBUG_KERNEL=y CONFIG_DETECT_HUNG_TASK=y -# CONFIG_SCHED_DEBUG is not set -CONFIG_DEBUG_USER=y +CONFIG_SCHEDSTATS=y +CONFIG_SECURITY=y +CONFIG_SECURITY_SMACK=y # CONFIG_CRYPTO_ANSI_CPRNG is not set # CONFIG_CRYPTO_HW is not set diff --git a/arch/x86/configs/i386_defconfig b/arch/x86/configs/i386_defconfig index 419819d..94d6108 100644 --- a/arch/x86/configs/i386_defconfig +++ b/arch/x86/configs/i386_defconfig @@ -1,23 +1,21 @@ -# CONFIG_64BIT is not set -CONFIG_EXPERIMENTAL=y # CONFIG_LOCALVERSION_AUTO is not set CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y +CONFIG_FHANDLE=y +CONFIG_AUDIT=y +CONFIG_AUDITSYSCALL=y +CONFIG_NO_HZ=y +CONFIG_HIGH_RES_TIMERS=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_TASKSTATS=y CONFIG_TASK_DELAY_ACCT=y CONFIG_TASK_XACCT=y CONFIG_TASK_IO_ACCOUNTING=y -CONFIG_FHANDLE=y -CONFIG_AUDIT=y -CONFIG_NO_HZ=y -CONFIG_HIGH_RES_TIMERS=y CONFIG_LOG_BUF_SHIFT=18 CONFIG_CGROUPS=y CONFIG_CGROUP_FREEZER=y CONFIG_CPUSETS=y CONFIG_CGROUP_CPUACCT=y -CONFIG_RESOURCE_COUNTERS=y CONFIG_CGROUP_SCHED=y CONFIG_BLK_DEV_INITRD=y # CONFIG_COMPAT_BRK is not set @@ -37,14 +35,13 @@ CONFIG_UNIXWARE_DISKLABEL=y CONFIG_SGI_PARTITION=y CONFIG_SUN_PARTITION=y CONFIG_KARMA_PARTITION=y -CONFIG_EFI_PARTITION=y CONFIG_SMP=y +CONFIG_IOSF_MBI=m CONFIG_X86_GENERIC=y CONFIG_HPET_TIMER=y CONFIG_SCHED_SMT=y CONFIG_PREEMPT_VOLUNTARY=y CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y -CONFIG_X86_MCE=y CONFIG_X86_REBOOTFIXUPS=y CONFIG_MICROCODE=y CONFIG_MICROCODE_AMD=y @@ -54,10 +51,10 @@ CONFIG_HIGHPTE=y CONFIG_X86_CHECK_BIOS_CORRUPTION=y # CONFIG_MTRR_SANITIZER is not set CONFIG_EFI=y +CONFIG_EFI_STUB=y CONFIG_HZ_1000=y CONFIG_KEXEC=y CONFIG_CRASH_DUMP=y -# CONFIG_COMPAT_VDSO is not set CONFIG_HIBERNATION=y CONFIG_PM_DEBUG=y CONFIG_PM_TRACE_RTC=y @@ -101,10 +98,9 @@ CONFIG_TCP_CONG_ADVANCED=y # CONFIG_TCP_CONG_WESTWOOD is not set # CONFIG_TCP_CONG_HTCP is not set CONFIG_TCP_MD5SIG=y -CONFIG_IPV6=y -CONFIG_INET6_AH=y -CONFIG_INET6_ESP=y -CONFIG_NETLABEL=y +CONFIG_INET6_AH=m +CONFIG_INET6_ESP=m +CONFIG_NETWORK_SECMARK=y CONFIG_NETFILTER=y # CONFIG_NETFILTER_ADVANCED is not set CONFIG_NF_CONNTRACK=y @@ -115,7 +111,6 @@ CONFIG_NF_CT_NETLINK=y CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=y CONFIG_NETFILTER_XT_TARGET_NFLOG=y CONFIG_NETFILTER_XT_TARGET_SECMARK=y -CONFIG_NETFILTER_XT_TARGET_TCPMSS=y CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y CONFIG_NETFILTER_XT_MATCH_POLICY=y CONFIG_NETFILTER_XT_MATCH_STATE=y @@ -123,25 +118,14 @@ CONFIG_NF_CONNTRACK_IPV4=y CONFIG_IP_NF_IPTABLES=y CONFIG_IP_NF_FILTER=y CONFIG_IP_NF_TARGET_REJECT=y -CONFIG_IP_NF_TARGET_ULOG=y -CONFIG_NF_NAT=y -CONFIG_IP_NF_TARGET_MASQUERADE=y CONFIG_IP_NF_MANGLE=y -CONFIG_NF_CONNTRACK_IPV6=y -CONFIG_IP6_NF_IPTABLES=y -CONFIG_IP6_NF_MATCH_IPV6HEADER=y -CONFIG_IP6_NF_FILTER=y -CONFIG_IP6_NF_TARGET_REJECT=y -CONFIG_IP6_NF_MANGLE=y CONFIG_NET_SCHED=y CONFIG_NET_EMATCH=y CONFIG_NET_CLS_ACT=y -CONFIG_HAMRADIO=y CONFIG_CFG80211=y CONFIG_MAC80211=y CONFIG_MAC80211_LEDS=y CONFIG_RFKILL=y -CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_DEBUG_DEVRES=y @@ -191,7 +175,6 @@ CONFIG_INPUT_JOYSTICK=y CONFIG_INPUT_TABLET=y CONFIG_INPUT_TOUCHSCREEN=y CONFIG_INPUT_MISC=y -CONFIG_VT_HW_CONSOLE_BINDING=y # CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_NONSTANDARD=y CONFIG_SERIAL_8250=y @@ -210,7 +193,6 @@ CONFIG_I2C_I801=y CONFIG_WATCHDOG=y CONFIG_AGP=y CONFIG_AGP_AMD64=y -CONFIG_AGP_INTEL=y CONFIG_DRM=y CONFIG_DRM_I915=y CONFIG_FB_MODE_HELPERS=y @@ -253,7 +235,6 @@ CONFIG_USB_OHCI_HCD=y CONFIG_USB_UHCI_HCD=y CONFIG_USB_PRINTER=y CONFIG_USB_STORAGE=y -CONFIG_USB_LIBUSUAL=y CONFIG_EDAC=y CONFIG_RTC_CLASS=y # CONFIG_RTC_HCTOSYS is not set @@ -276,6 +257,7 @@ CONFIG_VFAT_FS=y CONFIG_PROC_KCORE=y CONFIG_TMPFS_POSIX_ACL=y CONFIG_HUGETLBFS=y +CONFIG_EFIVAR_FS=y CONFIG_NFS_FS=y CONFIG_NFS_V3_ACL=y CONFIG_NFS_V4=y @@ -288,25 +270,21 @@ CONFIG_NLS_UTF8=y CONFIG_PRINTK_TIME=y # CONFIG_ENABLE_WARN_DEPRECATED is not set CONFIG_FRAME_WARN=2048 -CONFIG_MAGIC_SYSRQ=y # CONFIG_UNUSED_SYMBOLS is not set +CONFIG_MAGIC_SYSRQ=y CONFIG_DEBUG_KERNEL=y -# CONFIG_SCHED_DEBUG is not set +CONFIG_DEBUG_STACK_USAGE=y +CONFIG_DEBUG_STACKOVERFLOW=y CONFIG_SCHEDSTATS=y CONFIG_TIMER_STATS=y -CONFIG_DEBUG_STACK_USAGE=y CONFIG_BLK_DEV_IO_TRACE=y CONFIG_PROVIDE_OHCI1394_DMA_INIT=y CONFIG_EARLY_PRINTK_DBGP=y -CONFIG_DEBUG_STACKOVERFLOW=y # CONFIG_DEBUG_RODATA_TEST is not set CONFIG_DEBUG_BOOT_PARAMS=y CONFIG_OPTIMIZE_INLINING=y CONFIG_KEYS_DEBUG_PROC_KEYS=y CONFIG_SECURITY=y -CONFIG_SECURITY_NETWORK=y -CONFIG_SECURITY_SELINUX=y -CONFIG_SECURITY_SELINUX_BOOTPARAM=y -CONFIG_SECURITY_SELINUX_DISABLE=y +CONFIG_SECURITY_SMACK=y CONFIG_CRYPTO_AES_586=y # CONFIG_CRYPTO_ANSI_CPRNG is not set diff --git a/arch/x86/configs/x86_64_defconfig b/arch/x86/configs/x86_64_defconfig index 4c311dd..2bafa8d 100644 --- a/arch/x86/configs/x86_64_defconfig +++ b/arch/x86/configs/x86_64_defconfig @@ -1,22 +1,21 @@ -CONFIG_EXPERIMENTAL=y # CONFIG_LOCALVERSION_AUTO is not set CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y +CONFIG_FHANDLE=y +CONFIG_AUDIT=y +CONFIG_AUDITSYSCALL=y +CONFIG_NO_HZ=y +CONFIG_HIGH_RES_TIMERS=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_TASKSTATS=y CONFIG_TASK_DELAY_ACCT=y CONFIG_TASK_XACCT=y CONFIG_TASK_IO_ACCOUNTING=y -CONFIG_FHANDLE=y -CONFIG_AUDIT=y -CONFIG_NO_HZ=y -CONFIG_HIGH_RES_TIMERS=y CONFIG_LOG_BUF_SHIFT=18 CONFIG_CGROUPS=y CONFIG_CGROUP_FREEZER=y CONFIG_CPUSETS=y CONFIG_CGROUP_CPUACCT=y -CONFIG_RESOURCE_COUNTERS=y CONFIG_CGROUP_SCHED=y CONFIG_BLK_DEV_INITRD=y # CONFIG_COMPAT_BRK is not set @@ -36,14 +35,13 @@ CONFIG_UNIXWARE_DISKLABEL=y CONFIG_SGI_PARTITION=y CONFIG_SUN_PARTITION=y CONFIG_KARMA_PARTITION=y -CONFIG_EFI_PARTITION=y CONFIG_SMP=y +CONFIG_IOSF_MBI=m CONFIG_CALGARY_IOMMU=y CONFIG_NR_CPUS=64 CONFIG_SCHED_SMT=y CONFIG_PREEMPT_VOLUNTARY=y CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y -CONFIG_X86_MCE=y CONFIG_MICROCODE=y CONFIG_MICROCODE_AMD=y CONFIG_X86_MSR=y @@ -52,10 +50,10 @@ CONFIG_NUMA=y CONFIG_X86_CHECK_BIOS_CORRUPTION=y # CONFIG_MTRR_SANITIZER is not set CONFIG_EFI=y +CONFIG_EFI_STUB=y CONFIG_HZ_1000=y CONFIG_KEXEC=y CONFIG_CRASH_DUMP=y -# CONFIG_COMPAT_VDSO is not set CONFIG_HIBERNATION=y CONFIG_PM_DEBUG=y CONFIG_PM_TRACE_RTC=y @@ -100,10 +98,9 @@ CONFIG_TCP_CONG_ADVANCED=y # CONFIG_TCP_CONG_WESTWOOD is not set # CONFIG_TCP_CONG_HTCP is not set CONFIG_TCP_MD5SIG=y -CONFIG_IPV6=y -CONFIG_INET6_AH=y -CONFIG_INET6_ESP=y -CONFIG_NETLABEL=y +CONFIG_INET6_AH=m +CONFIG_INET6_ESP=m +CONFIG_NETWORK_SECMARK=y CONFIG_NETFILTER=y # CONFIG_NETFILTER_ADVANCED is not set CONFIG_NF_CONNTRACK=y @@ -114,7 +111,6 @@ CONFIG_NF_CT_NETLINK=y CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=y CONFIG_NETFILTER_XT_TARGET_NFLOG=y CONFIG_NETFILTER_XT_TARGET_SECMARK=y -CONFIG_NETFILTER_XT_TARGET_TCPMSS=y CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y CONFIG_NETFILTER_XT_MATCH_POLICY=y CONFIG_NETFILTER_XT_MATCH_STATE=y @@ -122,25 +118,14 @@ CONFIG_NF_CONNTRACK_IPV4=y CONFIG_IP_NF_IPTABLES=y CONFIG_IP_NF_FILTER=y CONFIG_IP_NF_TARGET_REJECT=y -CONFIG_IP_NF_TARGET_ULOG=y -CONFIG_NF_NAT=y -CONFIG_IP_NF_TARGET_MASQUERADE=y CONFIG_IP_NF_MANGLE=y -CONFIG_NF_CONNTRACK_IPV6=y -CONFIG_IP6_NF_IPTABLES=y -CONFIG_IP6_NF_MATCH_IPV6HEADER=y -CONFIG_IP6_NF_FILTER=y -CONFIG_IP6_NF_TARGET_REJECT=y -CONFIG_IP6_NF_MANGLE=y CONFIG_NET_SCHED=y CONFIG_NET_EMATCH=y CONFIG_NET_CLS_ACT=y -CONFIG_HAMRADIO=y CONFIG_CFG80211=y CONFIG_MAC80211=y CONFIG_MAC80211_LEDS=y CONFIG_RFKILL=y -CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_DEBUG_DEVRES=y @@ -183,7 +168,6 @@ CONFIG_INPUT_JOYSTICK=y CONFIG_INPUT_TABLET=y CONFIG_INPUT_TOUCHSCREEN=y CONFIG_INPUT_MISC=y -CONFIG_VT_HW_CONSOLE_BINDING=y # CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_NONSTANDARD=y CONFIG_SERIAL_8250=y @@ -204,10 +188,8 @@ CONFIG_I2C_I801=y CONFIG_WATCHDOG=y CONFIG_AGP=y CONFIG_AGP_AMD64=y -CONFIG_AGP_INTEL=y CONFIG_DRM=y CONFIG_DRM_I915=y -CONFIG_DRM_I915_KMS=y CONFIG_FB_MODE_HELPERS=y CONFIG_FB_TILEBLITTING=y CONFIG_FB_EFI=y @@ -248,7 +230,6 @@ CONFIG_USB_OHCI_HCD=y CONFIG_USB_UHCI_HCD=y CONFIG_USB_PRINTER=y CONFIG_USB_STORAGE=y -CONFIG_USB_LIBUSUAL=y CONFIG_EDAC=y CONFIG_RTC_CLASS=y # CONFIG_RTC_HCTOSYS is not set @@ -275,6 +256,7 @@ CONFIG_VFAT_FS=y CONFIG_PROC_KCORE=y CONFIG_TMPFS_POSIX_ACL=y CONFIG_HUGETLBFS=y +CONFIG_EFIVAR_FS=y CONFIG_NFS_FS=y CONFIG_NFS_V3_ACL=y CONFIG_NFS_V4=y @@ -286,24 +268,20 @@ CONFIG_NLS_ISO8859_1=y CONFIG_NLS_UTF8=y CONFIG_PRINTK_TIME=y # CONFIG_ENABLE_WARN_DEPRECATED is not set -CONFIG_MAGIC_SYSRQ=y # CONFIG_UNUSED_SYMBOLS is not set +CONFIG_MAGIC_SYSRQ=y CONFIG_DEBUG_KERNEL=y -# CONFIG_SCHED_DEBUG is not set +CONFIG_DEBUG_STACK_USAGE=y +CONFIG_DEBUG_STACKOVERFLOW=y CONFIG_SCHEDSTATS=y CONFIG_TIMER_STATS=y -CONFIG_DEBUG_STACK_USAGE=y CONFIG_BLK_DEV_IO_TRACE=y CONFIG_PROVIDE_OHCI1394_DMA_INIT=y CONFIG_EARLY_PRINTK_DBGP=y -CONFIG_DEBUG_STACKOVERFLOW=y # CONFIG_DEBUG_RODATA_TEST is not set CONFIG_DEBUG_BOOT_PARAMS=y CONFIG_OPTIMIZE_INLINING=y CONFIG_KEYS_DEBUG_PROC_KEYS=y CONFIG_SECURITY=y -CONFIG_SECURITY_NETWORK=y -CONFIG_SECURITY_SELINUX=y -CONFIG_SECURITY_SELINUX_BOOTPARAM=y -CONFIG_SECURITY_SELINUX_DISABLE=y +CONFIG_SECURITY_SMACK=y # CONFIG_CRYPTO_ANSI_CPRNG is not set diff --git a/packaging/README.update_kernel-profile b/packaging/README.update_kernel-profile new file mode 100644 index 0000000..9592ea3 --- /dev/null +++ b/packaging/README.update_kernel-profile @@ -0,0 +1,81 @@ +How to bump kernel for a profile +================================ + +1. define your profile +---------------------- + +# profile=common +or +# profile=ivi +.. + + +1. Clone kernel-$profile +------------------------ + +# git clone review.tizen.org:profile/$profile/kernel-$profile +# cd kernel-$profile + +2. add platform/upstream/linux-stable as a new remote and fetch +--------------------------------------------------------------- + +# git remote add linux_stable review.tizen.org:platform/kernel/linux-stable.git +# git fetch linux_stable + +3. import upstream and tizen branches and push to tizen.org +----------------------------------------------------------- + +# git fetch origin +# git checkout -B upstream linux_stable/upstream +# git push --tags origin HEAD:upstream +# git checkout -B tizen linux_stable/tizen +# git push --tags origin +HEAD:tizen + +4. rebase tizen_ branch +-------------------------------- + +# git checkout tizen_${profile} +# git rebase origin/tizen +# git push origin +HEAD:tizen_${profile} + +5. Updating kernel configurations (optional) +-------------------------------------------- + +# function adjustconfig() { + arch=$1 + + case $arch in + i386|i486|i586|i686|x86) + cfgpath=arch/x86/configs + arch=i386 + platform=i386 + ;; + x86_64) + cfgpath=arch/x86/configs + arch=x86_64 + platform=x86_64 + ;; + arm|vexpress) + cfgpath=arch/arm/configs + arch=arm + platform=vexpress + ;; + *) + echo "Unknown arch" + return 1 + ;; + esac + + rm -f .config + make ARCH=$arch ${platform}_defconfig || return $? + make ARCH=$arch menuconfig || return $? + make ARCH=$arch savedefconfig || return $? + mv -v defconfig $cfgpath/${platform}_defconfig +} + +# adjustconfig x86 +# adjustconfig x86_64 +# adjustconfig arm + + + diff --git a/packaging/README.update_linux-stable b/packaging/README.update_linux-stable new file mode 100644 index 0000000..9c85735 --- /dev/null +++ b/packaging/README.update_linux-stable @@ -0,0 +1,96 @@ +How to bump kernel version +========================== + +Parameters: +----------- +* branch to upgrade to (example: linux-3.14.y as defined on git.kernel.org) +* tag to upgrade to (example: v3.14.20) +* kernel version + +Define variables: +# linux_branch=linux-3.14.y +# linux_tag=v3.14.20 + + +1. Clone linux-stable from tizen.org +------------------------------------ + +# git clone review.tizen.org:platform/kernel/linux-stable +# cd linux-stable + + +2. add kernel.org as new origin and fetch it +-------------------------------------------- + +# git remote add kernel_org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git +# git fetch kernel_org + + +3. import on upstream branch until given revision and push to tizen.org +----------------------------------------------------------------------- + +# git checkout upstream +# git rebase kernel_org/${linux_branch} +# git push --tags origin HEAD:upstream + + +4. rebase tizen branch +---------------------- + +# git checkout -B tizen origin/tizen +# git rebase -i ${linux_tag} + + +5. Bump the kernel version in the spec file +------------------------------------------- + +# sed -ri "s/^(%define upstream_version).*$/\1 $(make kernelversion)/" packaging/*.spec +# git commit -sam "packaging: bump to $(make kernelversion)" + + +6. Push the tizen branch +------------------------ + +# git push origin +HEAD:tizen + + +7. Updating kernel configurations (optional) +-------------------------------------------- + +# function adjustconfig() { + arch=$1 + + case $arch in + i386|i486|i586|i686|x86) + cfgpath=arch/x86/configs + arch=i386 + platform=i386 + ;; + x86_64) + cfgpath=arch/x86/configs + arch=x86_64 + platform=x86_64 + ;; + arm|vexpress) + cfgpath=arch/arm/configs + arch=arm + platform=vexpress + ;; + *) + echo "Unknown arch" + return 1 + ;; + esac + + rm -f .config + make ARCH=$arch ${platform}_defconfig || return $? + make ARCH=$arch menuconfig || return $? + make ARCH=$arch savedefconfig || return $? + mv -v defconfig $cfgpath/${platform}_defconfig +} + +# adjustconfig x86 +# adjustconfig x86_64 +# adjustconfig arm + + diff --git a/packaging/linux-stable.spec b/packaging/linux-stable.spec new file mode 100644 index 0000000..1149051 --- /dev/null +++ b/packaging/linux-stable.spec @@ -0,0 +1,393 @@ +# +# Spec written for Tizen Mobile, some bits and pieces originate +# from MeeGo/Moblin/Fedora +# + +%define extraversion .rc3 +%define upstream_version 4.0%{extraversion} + +%if !%{defined platform} +%define platform default +%endif + +%define variant %{profile}-%{_arch}-%{platform} +%define kernel_version %{version}-%{release} +%define kernel_full_version %{version}-%{release}-%{variant} +%define arch_32bits i386 i586 i686 %{ix86} + +# Default arch config for tizen per arch (unless overiden after) +%define kernel_image bzImage + +%define dtbs_supported 0 +%define modules_supported 1 +%define trace_supported 1 +%define uboot_supported 0 +%define vdso_supported 1 + + +# Overide per configuration + +%ifarch %{arch_32bits} +%define kernel_arch i386 +%define kernel_arch_subdir arch/x86 +%define defconfig i386_defconfig +%endif + +%ifarch x86_64 +%define kernel_arch x86_64 +%define kernel_arch_subdir arch/x86 +%define defconfig x86_64_defconfig +%endif + +%ifarch %arm +%define kernel_arch arm +%define kernel_arch_subdir arch/%{kernel_arch} +%define defconfig vexpress_defconfig +%define kernel_image zImage +%define vdso_supported 0 +%define modules_supported 0 +%endif + + +Name: linux-stable +Summary: Tizen kernel +Group: System/Kernel +License: GPL-2.0 +URL: http://www.kernel.org/ +Version: %{upstream_version} + +# The below is used when we are on an -rc version +#%#define rc_num 6 +#%#define release_ver 0 +#%#define rc_str %{?rc_num:0.rc%{rc_num}}%{!?rc_num:1} +#%if ! 0%{?opensuse_bs} +#Release: 0 +#%else +#Release: 0 +#%endif +Release: 0 + +BuildRequires: module-init-tools +BuildRequires: findutils +BuildRequires: libelf-devel +BuildRequires: binutils-devel +BuildRequires: which +BuildRequires: bc +# net-tools provides the 'hostname' utility which kernel build wants +BuildRequires: net-tools +# The below is required for building perf +BuildRequires: flex +BuildRequires: bison +BuildRequires: libdw-devel +BuildRequires: python-devel +%if %{uboot_supported} +BuildRequires: u-boot-tools +%endif + +ExclusiveArch: %{arch_32bits} x86_64 armv7l + +Source0: %{name}-%{version}.tar.bz2 + +%description +This package contains the Linux kernel for Tizen. + + +%package -n kernel-%{variant} +Summary: Tizen kernel +Group: System/Kernel +Provides: kernel-profile-%{profile} = %{version}-%{release} +Provides: kernel-uname-r = %{kernel_full_version} +Requires(post): /usr/bin/ln +Requires(post): /usr/bin/sort +Requires(post): rpm + +# We use 'setup-scripts-bootloader-conf' in post and postun, so ideally we need to +# have the below here, but this causes gbs/obs build failures like this: +# "have choice for virtual-setup-scripts-bootloader needed by kernel-x86-scripts: setup-extlinux setup-gummiboot" +# The reason is that it will try to install the kernel to the build root, and +# fail with the above error. To fix it one would need to add 'setup-extlinux' +# or 'setup-gummiboot' to 'review.tizen.org/gerrit/scm/meta/build-config'. But +# it is probably not worth the trouble, so I commented out the below two lines. +# -- Artem +#Requires(post): virtual-setup-scripts-bootloader +#Requires(postun): virtual-setup-scripts-bootloader + +#Requires(post): setup-gummiboot +#Requires(postun): setup-gummiboot + +Requires(post): /usr/sbin/depmod +Requires(post): /usr/bin/dracut +Requires(post): /usr/bin/kmod + +Requires(postun): /usr/bin/ln +Requires(postun): /usr/bin/sed +Requires(postun): rpm + +# We can't let RPM do the dependencies automatic because it'll then pick up +# a correct but undesirable perl dependency from the module headers which +# isn't required for the kernel proper to function +AutoReq: no +AutoProv: yes + +%description -n kernel-%{variant} +This package contains the Linux kernel for Tizen (%{profile} profile, architecure %{_arch}) + +%package -n kernel-%{variant}-devel +Summary: Development package for building kernel modules +Group: Development/System +Provides: kernel-devel = %{kernel_full_version} +Provides: kernel-devel-uname-r = %{kernel_full_version} +Requires(post): /usr/bin/find +Requires: kernel-%{variant} = %{version}-%{release} +AutoReqProv: no + +%description -n kernel-%{variant}-devel +This package provides kernel headers and makefiles sufficient to build modules +against the %{variant} kernel package. + + +%package -n perf +Summary: The 'perf' performance counter tool +Group: System/Kernel +Provides: perf = %{kernel_full_version} +Requires: kernel-%{variant} = %{version}-%{release} + +%description -n perf +This package provides the "perf" tool that can be used to monitor performance +counter events as well as various kernel internal events. + + + +### +### PREP +### +%prep +# Unpack the kernel tarball +%setup -q -n %{name}-%{version} + + + +### +### BUILD +### +%build +# Make sure EXTRAVERSION says what we want it to say +sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}-%{variant}/" Makefile + +# Build perf +make -s -C tools/lib/traceevent ARCH=%{kernel_arch} %{?_smp_mflags} +make -s -C tools/perf WERROR=0 ARCH=%{kernel_arch} + +%if %{defined loadaddr} +export LOADADDR=%{loadaddr} +%endif + +# Build kernel and modules +make -s ARCH=%{kernel_arch} %{defconfig} +make %{?_smp_mflags} %{kernel_image} ARCH=%{kernel_arch} + +%if %modules_supported +make -s ARCH=%{kernel_arch} %{?_smp_mflags} modules +%endif + +%if %dtbs_supported +make -s ARCH=%{kernel_arch} %{?_smp_mflags} dtbs +%endif + + + +### +### INSTALL +### +%install +install -d %{buildroot}/boot + +install -m 644 .config %{buildroot}/boot/config-%{kernel_full_version} +install -m 644 System.map %{buildroot}/boot/System.map-%{kernel_full_version} +install -m 755 %{kernel_arch_subdir}/boot/%{kernel_image} %{buildroot}/boot/vmlinuz-%{kernel_full_version} +# Dummy initrd, will not be included in the actual package but needed for files +touch %{buildroot}/boot/initrd-%{kernel_full_version}.img + +%if %modules_supported +make -s ARCH=%{kernel_arch} INSTALL_MOD_PATH=%{buildroot} modules_install KERNELRELEASE=%{kernel_full_version} +%endif + +%if %vdso_supported +make -s ARCH=%{kernel_arch} INSTALL_MOD_PATH=%{buildroot} vdso_install KERNELRELEASE=%{kernel_full_version} +%endif + +%if %dtbs_supported +install -d "%{buildroot}/boot/" +find "arch/%{kernel_arch}/" -iname "*.dtb" -exec install "{}" "%{buildroot}/boot/" \; +%endif + +rm -rf %{buildroot}/lib/firmware + +# And save the headers/makefiles etc for building modules against +# +# This all looks scary, but the end result is supposed to be: +# * all arch relevant include/ files +# * all Makefile/Kconfig files +# * all script/ files + +# Remove existing build/source links and create pristine dirs +rm -f %{buildroot}/lib/modules/%{kernel_full_version}/build +rm -f %{buildroot}/lib/modules/%{kernel_full_version}/source +install -d %{buildroot}/lib/modules/%{kernel_full_version}/build +ln -fs build %{buildroot}/lib/modules/%{kernel_full_version}/source + + +# First, copy all dirs containing Makefile of Kconfig files +cp --parents `find -type f -name "Makefile*" -o -name "Kconfig*"` %{buildroot}/lib/modules/%{kernel_full_version}/build +install Module.symvers %{buildroot}/lib/modules/%{kernel_full_version}/build/ +install System.map %{buildroot}/lib/modules/%{kernel_full_version}/build/ + +# Then, drop all but the needed Makefiles/Kconfig files +rm -rf %{buildroot}/lib/modules/%{kernel_full_version}/build/Documentation +rm -rf %{buildroot}/lib/modules/%{kernel_full_version}/build/scripts +rm -rf %{buildroot}/lib/modules/%{kernel_full_version}/build/include + +# Copy config and scripts +install .config %{buildroot}/lib/modules/%{kernel_full_version}/build/ +cp -a scripts %{buildroot}/lib/modules/%{kernel_full_version}/build +if [ -d %{kernel_arch_subdir}/scripts ]; then + cp -a %{kernel_arch_subdir}/scripts %{buildroot}/lib/modules/%{kernel_full_version}/build/%{kernel_arch_subdir}/ || : +fi +if [ -f %{kernel_arch_subdir}/*lds ]; then + cp -a %{kernel_arch_subdir}/*lds %{buildroot}/lib/modules/%{kernel_full_version}/build/%{kernel_arch_subdir}/ || : +fi +rm -f %{buildroot}/lib/modules/%{kernel_full_version}/build/scripts/*.o +rm -f %{buildroot}/lib/modules/%{kernel_full_version}/build/scripts/*/*.o +cp -a --parents %{kernel_arch_subdir}/include %{buildroot}/lib/modules/%{kernel_full_version}/build + +# Copy include files +mkdir -p %{buildroot}/lib/modules/%{kernel_full_version}/build/include +find include/ -mindepth 1 -maxdepth 1 -type d | xargs -I{} cp -a {} %{buildroot}/lib/modules/%{kernel_full_version}/build/include + +# Save the vmlinux file for kernel debugging into the devel package +cp vmlinux %{buildroot}/lib/modules/%{kernel_full_version} + +# Mark modules executable so that strip-to-file can strip them +find %{buildroot}/lib/modules/%{kernel_full_version} -name "*.ko" -type f | xargs --no-run-if-empty chmod 755 + +# Move the devel headers out of the root file system +install -d %{buildroot}/usr/src/kernels +mv %{buildroot}/lib/modules/%{kernel_full_version}/build %{buildroot}/usr/src/kernels/%{kernel_full_version} + +ln -sf /usr/src/kernels/%{kernel_full_version} %{buildroot}/lib/modules/%{kernel_full_version}/build + +# Install perf +install -d %{buildroot} +make -s -C tools/perf DESTDIR=%{buildroot} install +install -d %{buildroot}%{_bindir} +install -d %{buildroot}%{_libexecdir} +mv %{buildroot}/bin/* %{buildroot}%{_bindir} +mv %{buildroot}/libexec/* %{buildroot}%{_libexecdir} +rm %{buildroot}/etc/bash_completion.d/perf + +# Dont package debug files +rm -rf %{buildroot}/usr/lib/debug/.build-id +rm -rf %{buildroot}/usr/lib/debug/lib/traceevent/plugins/*.debug + + + +### +### SCRIPTS +### + +%post -n kernel-%{variant} +if [ -f "/boot/loader/loader.conf" ]; then + # EFI boot with gummiboot + INSTALLERFW_MOUNT_PREFIX="/" /usr/sbin/setup-scripts-gummiboot-conf + # "/etc/installerfw-environment" does not exist in MIC environment, when it + # builds the image. MIC will add boot-loader entries later using the + # 'setup-scripts-boot' script. + if [ -f "/etc/installerfw-environment" ] && \ + [ -x "/usr/sbin/setup-scripts-bootloader-conf" ]; then + /usr/sbin/setup-scripts-bootloader-conf add -f vmlinuz-%{kernel_full_version} + /usr/sbin/setup-scripts-bootloader-conf default -f vmlinuz-%{kernel_full_version} + fi +else + # Legacy boot + last_installed_ver="$(rpm -q --qf '%{INSTALLTIME}: %{VERSION}-%{RELEASE}\n' kernel-%{variant} | sort -r | sed -e 's/[^:]*: \(.*\)/\1/g' | sed -n -e "1p")" + ln -sf vmlinuz-$last_installed_ver-%{variant} /boot/vmlinuz + + if [ -z "$last_installed_ver" ]; then + # Something went wrong, print some diagnostics + printf "%s\n" "Error: cannot find kernel version" 1>&2 + printf "%s\n" "The command was: rpm -q --qf '%{INSTALLTIME}: %{VERSION}-%{RELEASE}\n' kernel-%{variant} | sort -r | sed -e 's/[^:]*: \(.*\)/\1/g' | sed -n -e \"1p\"" 1>&2 + printf "%s\n" "Output of the \"rpm -q --qf '%{INSTALLTIME}: %{VERSION}-%{RELEASE}\n' kernel-%{variant}\" is:" 1>&2 + result="$(rpm -q --qf '%{INSTALLTIME}: %{VERSION}-%{RELEASE}\n' kernel-%{variant})" + printf "%s\n" "$result" 1>&2 + fi +fi + +%{_bindir}/dracut /boot/initrd-%{kernel_full_version}.img %{kernel_full_version} + +%post -n kernel-%{variant}-devel +if [ -x /usr/sbin/hardlink ]; then + cd /usr/src/kernels/%{kernel_full_version} + /usr/bin/find . -type f | while read f; do + hardlink -c /usr/src/kernels/*/$f $f + done +fi + +%postun -n kernel-%{variant} +if [ -f "/boot/loader/loader.conf" ]; then + # EFI boot with gummiboot + INSTALLERFW_MOUNT_PREFIX="/" /usr/sbin/setup-scripts-gummiboot-conf + if [ -f "/etc/installerfw-environment" ] && \ + [ -x "/usr/sbin/setup-scripts-bootloader-conf" ]; then + /usr/sbin/setup-scripts-bootloader-conf remove -f vmlinuz-%{kernel_full_version} + fi + +else + last_installed_ver="$(rpm -q --qf '%{INSTALLTIME}: %{VERSION}-%{RELEASE}\n' kernel-%{variant} | sort -r | sed -e 's/[^:]*: \(.*\)/\1/g' | sed -n -e "1p")" + if [ -n "$last_installed_ver" ]; then + ln -sf vmlinuz-$last_installed_ver-%{variant} /boot/vmlinuz + else + rm -rf /boot/vmlinuz + fi +fi + + + +### +### FILES +### +%files -n kernel-%{variant} +%license COPYING +/boot/vmlinuz-%{kernel_full_version} +/boot/System.map-%{kernel_full_version} +/boot/config-%{kernel_full_version} +%if %modules_supported +%dir /lib/modules/%{kernel_full_version} +/lib/modules/%{kernel_full_version}/kernel +/lib/modules/%{kernel_full_version}/modules.* +%endif +/lib/modules/%{kernel_full_version}/build +/lib/modules/%{kernel_full_version}/source + +%if %vdso_supported +/lib/modules/%{kernel_full_version}/vdso +%endif +%if %dtbs_supported +/boot/*.dtb +%endif +%ghost /boot/initrd-%{kernel_full_version}.img + + +%files -n kernel-%{variant}-devel +%license COPYING +%verify(not mtime) /usr/src/kernels/%{kernel_full_version} +/lib/modules/%{kernel_full_version}/vmlinux + + +%files -n perf +%license COPYING +%{_bindir}/perf +%{_libexecdir}/perf-core +%if %trace_supported +%{_bindir}/trace +/%{_lib}/traceevent/plugins/*.so +%endif -- 2.7.4