ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] new LTIB platform diffs for submission


From: Kevin Wells
Subject: [Ltib] new LTIB platform diffs for submission
Date: Tue, 13 Jan 2009 20:12:06 +0100

 

I've got LTIB platform additions ready for submission. I didn't need to make any changes to the existing files. Only new platform files and 2 new spec files were added. The CVS diffs and new files are attached. The kernel, busybox, and LTIB config files are not attached. Sorry about attaching too much, but I'd rather be safe than checking in something I'm probably not supposed to.

 

address@hidden ltib]$ cvs diff

? config/platform/phy3250

? dist/lfs-5.1/kernel/kernel-2.6.27.8-phy3250.spec.in

? dist/lfs-5.1/u-boot/u-boot-1.3.3-phy3250.spec.in

cvs diff: Diffing .

cvs diff: Diffing bin

cvs diff: Diffing config

cvs diff: Diffing config/defaults

cvs diff: Diffing config/platform

cvs diff: Diffing config/platform/cobra5475

cvs diff: Diffing config/platform/cobra5475/merge

cvs diff: Diffing config/platform/cobra5475/merge/etc

...

...

cvs diff: Diffing dist/lfs-5.1/zlib

cvs diff: Diffing doc

cvs diff: Diffing internal

 

****************************************************************

Here is the list of new files in the paltform area……

 

address@hidden ltib]$ ls -la config/platform/phy3250/

total 92

drwxrwxr-x  2 usb10132 usb10132  4096 2009-01-13 11:35 .

drwxrwxr-x 31 usb10132 usb10132  4096 2009-01-07 13:45 ..

-rw-rw-r--  1 usb10132 usb10132 22950 2009-01-07 13:45 busybox.config

-rw-rw-r--  1 usb10132 usb10132 13222 2009-01-12 17:34 defconfig

-rw-r--r--  1 usb10132 usb10132 32609 2009-01-13 09:43 linux-2.6.27.8-phy3250.config

-rw-rw-r--  1 usb10132 usb10132  4127 2009-01-13 10:29 main.lkc

-rw-rw-r--  1 usb10132 usb10132    48 2009-01-07 13:45 packages.lkc

address@hidden ltib]$

 

****************************************************************

Here is main.lkc

 

# constants (forced values)

config CONFIG_TITLE

    string

    default "LTIB: NXP LPX3XXX on the Phytec 3250 board"

 

config CPU

    string

    default "LPC3XXX"

 

config PLATFORM_COMMENT

    string

    default "Phytec 3250 board with the NXP LPC32XX SoC"

 

config VENDOR

    string

    default "NXP"

 

config PLATFORM

    string

    default "phy3250"

 

config GNUTARCH

    string

    default arm

 

config LINTARCH

    string

    default arm

 

config CFGHOST

    string

    default arm-linux-gnu

 

# capabilities if different from defaults.lkc

 

source ../../userspace/endian.lkc

source ../../userspace/libc_type.lkc

 

comment "Choose your toolchain"

choice

    prompt "Toolchain"

    default TOOLCHAIN1

    help

        This menu will help you choose the cross toolchain to use to build

        your packages with.  If you choose none, you can enter the

        path to your toolchain by hand.

 

    config TOOLCHAIN1

        bool "gcc-4.3.2-glibc-2.7 (VFP with soft-float)" if GLIBC

 

    config TOOLCHAIN_CUSTOM

        bool "custom"

endchoice

 

config TOOLCHAIN

    string

    default tc-nxp-lnx-armvfp-4.3.2-1.i386.rpm if TOOLCHAIN1

 

config TOOLCHAIN_PATH

    string

    default "/opt/nxp/gcc-4.3.2-glibc-2.7" if TOOLCHAIN1

    string "Supply your toolchain path" if TOOLCHAIN_CUSTOM

 

config CUSTOM_TOOLCHAIN_PREFIX

    depends TOOLCHAIN_CUSTOM

    default "arm-vfp-linux-gnu-"

    string  "Enter your cross tools prefix"

    help

        For example arm-linux-gnu-

 

config TOOLCHAIN_PREFIX

    string

    default "arm-vfp-linux-gnu-" if TOOLCHAIN1

    default CUSTOM_TOOLCHAIN_PREFIX if TOOLCHAIN_CUSTOM

 

config TOOLCHAIN_CFLAGS

    string "Enter any CFLAGS for gcc/g++"

    help

        This option lets you set flags that will be passed to gcc/g++

        when you use the specified compiler in your RPM spec files.

 

comment "Bootloader"

 

choice

    prompt "bootloader choice"

    default BOOTLOADER1

    config BOOTLOADER1

        bool "u-boot 1.3.3"

    config BOOTLOADER_NONE

        bool "Don't build a bootloader"

endchoice

 

config PKG_U_BOOT

    string

    default "u-boot-1.3.3-phy3250" if BOOTLOADER1

    default "" if BOOTLOADER_NONE

 

config PKG_U_BOOT_CONFIG_TYPE

    string

    default "phy3250_config" if BOOTLOADER1

 

config PKG_U_BOOT_BUILD_ARGS

    depends ! BOOTLOADER_NONE

    string "u-boot flags"

    default ""

 

comment "Choose your Kernel"

choice

    prompt "kernel"

    default PHY_KERNEL_2_6_27_8

    help

        This menu will let you choose the kernel to use with your board.

        If you don't want to build a kernel, unselect this option.

 

    config PHY_KERNEL_2_6_27_8

        bool "Linux 2.6.27.8 for LPC3250/Phytec 3250"

        help

            This is the 2.6.27.8 kernel with the 3250 patches

 

    config KERNEL_DIR_BUILD

        bool "Local Linux directory build"

        help

            Build using a local copy of the kernel sources

 

    config KERNEL_NONE

        bool "Dont build the Linux kernel"

        help

            Select this if you dont want to build the kernel

endchoice

 

config PKG_KERNEL

    string

    default "kernel-2.6.27.8-phy3250" if PHY_KERNEL_2_6_27_8

 

source ../../userspace/kernel_dir_build.lkc

 

config PKG_KERNEL_PRECONFIG

    string "Kernel preconfig"

    default "linux-2.6.27.8-phy3250.config" if PHY_KERNEL_2_6_27_8

 

config PKG_KERNEL_WANT_HEADERS

    depends ! KERNEL_NONE

    bool "Include kernel headers"

    help

        Selecting this will copy kernel headers to rootfs/usr/src/linux/include

 

config PKG_KERNEL_WANT_CF

    depends ! KERNEL_NONE

    bool "Configure the kernel"

    default n

 

config PKG_KERNEL_LEAVESRC

    depends ! KERNEL_NONE

    bool "Leave the kernel sources after building"

    default n

    help

      This is a one shot option that can be used to build the kernel and

      leave the build source tree in rpm/BUILD in place

 

config SYSCFG_KTARG

    string

    default "uImage"

 

config SYSCFG_BOOT_KERNEL

    string

    default "arch/arm/boot/uImage"

 

source ../../userspace/distro.lkc

source ../../userspace/packages.lkc

source ../../userspace/sysconfig.lkc

source ../../userspace/deployment.lkc

source ../../userspace/defaults.lkc

 

****************************************************************

Here is packages.lkc. It's really just a spaceholder for now.

 

comment 'Platform specific package selection'

 

****************************************************************

Here is kernel-2.6.27.8-phy3250.spec.in

 

# Template = kernel-common.tmpl

 

%define pfx /opt/nxp/rootfs/%{_target_cpu}

%define dversion 2.6.27.8

%define pkg_name linux

 

Summary         : Linux kernel (core of the Linux operating system)

Name            : kernel

Version         : 2.6.27.8

Release         : 1

License         : GPL

Vendor          : Kernel.org + NXP lpc32xx patches

Packager        : Kevin Wells

Group           : System Environment/Kernel

Source          : %{pkg_name}-%{dversion}.tar.bz2

Patch1            : kernel-arm-2.6.27.8-lpc32xx.patch

BuildRoot       : %{_tmppath}/%{name}

Prefix          : %{pfx}

 

%Description

%{summary}

 

Linux 2.6.27.8 kernel from kernel.org + NXP LPC32XX patches

 

%Prep

%setup -n %{pkg_name}-%{dversion}

%patch1 -p1

 

****************************************************************

Here is u-boot-1.3.3-phy3250.spec.in

 

# template = u-boot-common.tmpl

%define pfx /opt/nxp/rootfs/%{_target_cpu}

 

Summary         : Universal Bootloader firmware

Name            : u-boot

Version         : 1.3.3

Release         : 1

License         : GPL

Vendor          : NXP

Packager        : Kevin Wells

Group           : Applications/System

Source          : %{name}-%{version}.tar.bz2

Patch0            : u-boot-1.3.3-phy3250.patch

BuildRoot       : %{_tmppath}/%{name}

Prefix          : %{pfx}

 

%Description

%{summary}

 

This specfile attempts to recreate the u-boot binaries

needed for the Phytec LPC3250 board.

 

%Prep

%setup -n %{name}-%{version}

%patch0 -p1

 

****************************************************************

Thanks,

Kevin Wells

NXP

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]