Showing posts with label gcc. Show all posts
Showing posts with label gcc. Show all posts

2014-03-13

Tiny Core Linux Dev

PPPP=/mnt/sdc1/opt/tcz
PPPF=/mnt/tcz/font
PPPR=3.8.13-tinycore
PPPV=5.x
PPPm=i686
PPPM=x86
PPPL=/opt/tcz/tcz
PPPT=/mnt/tcz/i686/5.x
PPPC=Test
PPPI=eth0
PPPX=7.7
PPPG=32.0.1700.77



        st2 python.tcz

# http://www.tinycorelinux.net/5.x/x86/release/src/kernel/linux-3.8.13-patched.txz
# http://www.tinycorelinux.net/5.x/x86/release/src/kernel/config-3.8.13-tinycore
# http://www.tinycorelinux.net/5.x/x86/release/src/kernel/Module.symvers-3.8.13-tinycore

        st2 linux-kernel-sources-env.tcz
        st2 autoconf.tcz
        st2 automake.tcz
        st2 binutils.tcz
        st2 bison.tcz
        st2 cloog.tcz
        st2 compiletc.tcz
        st2 diffutils.tcz
        st2 e2fsprogs_base-dev.tcz
        st2 expat2.tcz
        st2 file.tcz
        st2 findutils.tcz
        st2 flex.tcz
        st2 gawk.tcz
        st2 gcc.tcz
        st2 gcc_base-dev.tcz
        st2 gcc_libs-dev.tcz
        st2 gcc_libs.tcz
        st2 glibc_base-dev.tcz
        st2 gmp.tcz
        st2 grep.tcz
        if [ "$PPPM" = "x86" ]; then
                st2 linux-3.8.3_api_headers.tcz
        else
                st2 linux-3.8.10_api_headers.tcz
        fi
        st2 m4.tcz
        st2 make.tcz
        st2 mpc.tcz
        st2 mpfr.tcz
        st2 ncurses-common.tcz
        st2 ncurses-dev.tcz
        st2 ncurses.tcz
        st2 patch.tcz
        st2 perl5.tcz
        st2 perl_xml_parser.tcz
        st2 pkg-config.tcz
        st2 ppl.tcz
        st2 sed.tcz
        st2 util-linux_base-dev.tcz
        st2 zlib_base-dev.tcz

if [ 1 = 1 ]; then
        tmp=/mnt/tcz/tool/kernel.src/${PPPM}
        /bin/cp ${tmp}/Module.symvers-${PPPR} \
                ${tmp}/config-${PPPR} \
                ${tmp}/linux-3.8.13-patched.txz \
                /tmp
fi
        sudo linux-kernel-sources-env.sh

        CC=/usr/local/bin/cc
        CPP=/usr/local/bin/cpp
        export CC
        export CPP
        CPPFLAGS="-I/usr/local/src/linux-headers-${PPPR}/include -I/usr/local/src/linux-headers-${PPPR}/arch/${PPPM}/include"
        export CPPFLAGS

        updateFile /home/tc/.ashrc "CC=/usr/local/bin/cc"
        updateFile /home/tc/.ashrc "CPP=/usr/local/bin/cpp"
        updateFile /home/tc/.ashrc "export CC"
        updateFile /home/tc/.ashrc "export CPP"
        updateFile /home/tc/.ashrc "CPPFLAGS=\"-I/usr/local/src/linux-headers-${PPPR}/include -I/usr/local/src/linux-headers-${PPPR}/arch/${PPPM}/include\""
        updateFile /home/tc/.ashrc "export CPPFLAGS"