aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-nios2_2.6.28.bb
blob: 031f4f55928172b53d05a8e47fc2ebf8f1963899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
INHIBIT_DEFAULT_DEPS = "1"
DEPENDS += "unifdef-native"
PR = "r3"

FILESPATH = "${FILE_DIRNAME}/${PN}/${PV}"

#SRC_URI = "git://sopc.et.ntust.edu.tw/git/linux-2.6.git;branch=test-nios2;tags=3146b39c185f8a436d430132457e84fa1d8f8208 \
SRC_URI = "http://127.0.0.1/linux-nios2-2.6.28-git.tbz \
           file://procinfo.h \
           file://system.ptf"
SRC_URI += "file://defconfig"

S = "${WORKDIR}/linux-2.6"

COMPATIBLE_HOST = 'nios2.*-linux.*'
COMPATIBLE_MACHINE = '(nios2|sygeg1)'

inherit kernel

ARCH = "nios2"
KERNEL_IMAGETYPE = "zImage"


do_configure() {
        rm -f ${S}/.config

        if [ ! -e ${WORKDIR}/defconfig ]; then
                die "No default configuration for ${MACHINE} available."
        fi
        
	echo "CONFIG_INITRAMFS_SOURCE=\"${DEPLOY_DIR_IMAGE}/initramfs_root.cpio\""   >> ${S}/.config
        sed -e '/CONFIG_INITRAMFS_SOURCE/d' '${WORKDIR}/defconfig' >>'${S}/.config'

	oe_runmake hwselect SYSPTF=../system.ptf CPU_SELECTION=1 MEM_SELECTION=2 ARCH=$ARCH
        yes '' | oe_runmake oldconfig
}