Patch also makes it possible to compile i686 on 64bit machine.
CONFIG_CRYPTO_MPILIB=y
CONFIG_CRYPTO_SIGNATURE=y
CONFIG_CRYPTO_SIGNATURE_DSA=y
+
+
+# CONFIG_SCx200 is not set
+# CONFIG_BAYCOM_EPP is not set
+# CONFIG_TOSHIBA_FIR is not set
+# CONFIG_MTD_NAND_CS553X is not set
+# CONFIG_SCSI_NSP32 is not set
+# CONFIG_PATA_CS5535 is not set
+# CONFIG_INPUT_WISTRON_BTNS is not set
+# CONFIG_SBC7240_WDT is not set
+# CONFIG_AGP_ALI is not set
+# CONFIG_AGP_ATI is not set
+# CONFIG_AGP_AMD is not set
+# CONFIG_AGP_NVIDIA is not set
+# CONFIG_AGP_SWORKS is not set
+# CONFIG_AGP_EFFICEON is not set
+# CONFIG_FB_I810 is not set
+# CONFIG_SND_SIS7019 is not set
+# CONFIG_DEBUG_HIGHMEM is not set
+# CONFIG_CRYPTO_SALSA20_586 is not set
+CONFIG_X86_32=y
+# CONFIG_64BIT is not set
+CONFIG_X86_32=y
+# # CONFIG_X86_64 is not set
+CONFIG_X86=y
+CONFIG_OUTPUT_FORMAT="elf32-i386"
+CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig"
+
+
CONFIG_UID16=y
# CONFIG_64BIT is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
CONFIG_X86_BIGSMP=y
-# CONFIG_X86_VISWS is not set
-# CONFIG_X86_RDC321X is not set
-# CONFIG_X86_ES7000 is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
+# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
-# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
+# CONFIG_MGEODEGX1 is not set
+# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
+# CONFIG_MVIAC7 is not set
+# CONFIG_MCORE2 is not set
+# CONFIG_MATOM is not set
+# CONFIG_X86_RDC321X is not set
+# CONFIG_X86_ES7000 is not set
+
CONFIG_SMP=y
+CONFIG_X86_MINIMUM_CPU_FAMILY=5
CONFIG_NR_CPUS=32
CONFIG_X86_GENERIC=y
CONFIG_X86_CMPXCHG=y
# CONFIG_HIGHMEM64G is not set
CONFIG_HIGHMEM=y
CONFIG_HIGHPTE=y
+CONFIG_X86_PAE=y
+CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
+CONFIG_ARCH_DMA_ADDR_T_64BIT=y
+CONFIG_NUMA is not set
+CONFIG_NEED_NODE_MEMMAP_SIZE=y
+CONFIG_ARCH_FLATMEM_ENABLE=y
+CONFIG_ARCH_SPARSEMEM_ENABLE=y
+CONFIG_ARCH_SELECT_MEMORY_MODEL=y
+CONFIG_ILLEGAL_POINTER_VALUE=0
+CONFIG_SELECT_MEMORY_MODEL=y
+# CONFIG_FLATMEM_MANUAL is not set
+CONFIG_SPARSEMEM_MANUAL=y
+CONFIG_SPARSEMEM=y
+CONFIG_HAVE_MEMORY_PRESENT=y
+CONFIG_SPARSEMEM_STATIC=y
+CONFIG_HAVE_MEMBLOCK=y
+
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
CONFIG_MTD_CK804XROM=m
CONFIG_MTD_NAND_CAFE=m
-#CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_CPU_IDLE=y
# CONFIG_CPU_IDLE_GOV_LADDER is not set
# CONFIG_X86_MCE_INJECT is not set
CONFIG_ACERHDF=m
+
+# CONFIG_LBDAF is not set
+# CONFIG_X86_MRST is not set
+# CONFIG_X86_32_IRIS is not set
+# CONFIG_MCA is not set
CONFIG_UID16=y
# CONFIG_KERNEL_LZMA is not set
+CONFIG_X86_MINIMUM_CPU_FAMILY=64
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
CONFIG_GENERIC_CPU=y
%define vdso_arches ppc ppc64
%endif
-%if %{nopatches}%{using_upstream_branch}
-# Ignore unknown options in our config-* files.
-# Some options go with patches we're not applying.
-%define oldconfig_target oldconfig
-%else
-%define oldconfig_target oldconfig
-%endif
+%define oldconfig_target oldnoconfig
# To temporarily exclude an architecture from being built, add it to
# %nobuildarches. Do _NOT_ use the ExclusiveArch: line, because if we
if [ `make ARCH=$Arch listnewconfig 2>/dev/null | grep -c CONFIG` -ne 0 ]; then
echo "Following config options are unconfigured"
make ARCH=$Arch listnewconfig 2> /dev/null
- echo "Error: Kernel version and config file missmatch"
- echo "Please fix $TestConfig"
- exit 1
+ echo "WARNING: Kernel version and config file missmatch"
+ echo "WARNING: This options will be unset by default in config file"
fi
}
%if %{with_firmware}
mkdir -p $RPM_BUILD_ROOT/lib/firmware
-make INSTALL_FW_PATH=$RPM_BUILD_ROOT/lib/firmware firmware_install
+Arch=`head -n 3 .config |grep -e "Linux.*Kernel" |cut -d '/' -f 2 | cut -d ' ' -f 1`
+make ARCH=$Arch INSTALL_FW_PATH=$RPM_BUILD_ROOT/lib/firmware firmware_install
%endif
%if %{with_bootwrapper}
-make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
+Arch=`head -n 3 .config |grep -e "Linux.*Kernel" |cut -d '/' -f 2 | cut -d ' ' -f 1`
+make ARCH=$Arch DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
%endif
###
CONFIG_CRYPTO_MPILIB=y
CONFIG_CRYPTO_SIGNATURE=y
CONFIG_CRYPTO_SIGNATURE_DSA=y
+
+
+# CONFIG_SCx200 is not set
+# CONFIG_BAYCOM_EPP is not set
+# CONFIG_TOSHIBA_FIR is not set
+# CONFIG_MTD_NAND_CS553X is not set
+# CONFIG_SCSI_NSP32 is not set
+# CONFIG_PATA_CS5535 is not set
+# CONFIG_INPUT_WISTRON_BTNS is not set
+# CONFIG_SBC7240_WDT is not set
+# CONFIG_AGP_ALI is not set
+# CONFIG_AGP_ATI is not set
+# CONFIG_AGP_AMD is not set
+# CONFIG_AGP_NVIDIA is not set
+# CONFIG_AGP_SWORKS is not set
+# CONFIG_AGP_EFFICEON is not set
+# CONFIG_FB_I810 is not set
+# CONFIG_SND_SIS7019 is not set
+# CONFIG_DEBUG_HIGHMEM is not set
+# CONFIG_CRYPTO_SALSA20_586 is not set
+CONFIG_X86_32=y
+# CONFIG_64BIT is not set
+CONFIG_X86_32=y
+# # CONFIG_X86_64 is not set
+CONFIG_X86=y
+CONFIG_OUTPUT_FORMAT="elf32-i386"
+CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig"
+
+
CONFIG_UID16=y
# CONFIG_64BIT is not set
# CONFIG_KERNEL_LZMA is not set
CONFIG_X86_GENERICARCH=y
CONFIG_X86_EXTENDED_PLATFORM=y
CONFIG_X86_32_NON_STANDARD=y
-
# CONFIG_X86_ELAN is not set
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
CONFIG_X86_BIGSMP=y
-# CONFIG_X86_VISWS is not set
-# CONFIG_X86_RDC321X is not set
-# CONFIG_X86_ES7000 is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
+# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
-# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
+# CONFIG_MGEODEGX1 is not set
+# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
+# CONFIG_MVIAC7 is not set
+# CONFIG_MCORE2 is not set
+# CONFIG_MATOM is not set
+# CONFIG_X86_RDC321X is not set
+# CONFIG_X86_ES7000 is not set
+
CONFIG_SMP=y
+CONFIG_X86_MINIMUM_CPU_FAMILY=5
CONFIG_NR_CPUS=32
CONFIG_X86_GENERIC=y
CONFIG_X86_CMPXCHG=y
# CONFIG_HIGHMEM64G is not set
CONFIG_HIGHMEM=y
CONFIG_HIGHPTE=y
+CONFIG_X86_PAE=y
+CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
+CONFIG_ARCH_DMA_ADDR_T_64BIT=y
+CONFIG_NUMA is not set
+CONFIG_NEED_NODE_MEMMAP_SIZE=y
+CONFIG_ARCH_FLATMEM_ENABLE=y
+CONFIG_ARCH_SPARSEMEM_ENABLE=y
+CONFIG_ARCH_SELECT_MEMORY_MODEL=y
+CONFIG_ILLEGAL_POINTER_VALUE=0
+CONFIG_SELECT_MEMORY_MODEL=y
+# CONFIG_FLATMEM_MANUAL is not set
+CONFIG_SPARSEMEM_MANUAL=y
+CONFIG_SPARSEMEM=y
+CONFIG_HAVE_MEMORY_PRESENT=y
+CONFIG_SPARSEMEM_STATIC=y
+CONFIG_HAVE_MEMBLOCK=y
+
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
CONFIG_MTD_CK804XROM=m
CONFIG_MTD_NAND_CAFE=m
-#CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_CPU_IDLE=y
# CONFIG_CPU_IDLE_GOV_LADDER is not set
# CONFIG_X86_MCE_INJECT is not set
CONFIG_ACERHDF=m
+
+# CONFIG_LBDAF is not set
+# CONFIG_X86_MRST is not set
+# CONFIG_X86_32_IRIS is not set
+# CONFIG_MCA is not set
CONFIG_UID16=y
# CONFIG_KERNEL_LZMA is not set
+CONFIG_X86_MINIMUM_CPU_FAMILY=64
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
CONFIG_GENERIC_CPU=y
%define vdso_arches ppc ppc64
%endif
-%if %{nopatches}%{using_upstream_branch}
-# Ignore unknown options in our config-* files.
-# Some options go with patches we're not applying.
-%define oldconfig_target oldconfig
-%else
-%define oldconfig_target oldconfig
-%endif
+%define oldconfig_target oldnoconfig
# To temporarily exclude an architecture from being built, add it to
# %nobuildarches. Do _NOT_ use the ExclusiveArch: line, because if we
if [ `make ARCH=$Arch listnewconfig 2>/dev/null | grep -c CONFIG` -ne 0 ]; then
echo "Following config options are unconfigured"
make ARCH=$Arch listnewconfig 2> /dev/null
- echo "Error: Kernel version and config file missmatch"
- echo "Please fix $TestConfig"
- exit 1
+ echo "WARNING: Kernel version and config file missmatch"
+ echo "WARNING: This options will be unset by default in config file"
fi
}
%if %{with_firmware}
mkdir -p $RPM_BUILD_ROOT/lib/firmware
-make INSTALL_FW_PATH=$RPM_BUILD_ROOT/lib/firmware firmware_install
+Arch=`head -n 3 .config |grep -e "Linux.*Kernel" |cut -d '/' -f 2 | cut -d ' ' -f 1`
+make ARCH=$Arch INSTALL_FW_PATH=$RPM_BUILD_ROOT/lib/firmware firmware_install
%endif
%if %{with_bootwrapper}
-make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
+Arch=`head -n 3 .config |grep -e "Linux.*Kernel" |cut -d '/' -f 2 | cut -d ' ' -f 1`
+make ARCH=$Arch DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
%endif
###