zoukankan      html  css  js  c++  java
  • LTIB for ubuntu12.04

     在 ltib 目录中执行以下代码:

    cd <your ltib folder>
    ./patch-ltib-ubuntu12.04.sh
    patch -p1 < patch-dist-ubuntu12.04.patch

    其中 patch-ltib-ubuntu12.04.sh 与 patch-dist-ubuntu12.04.patch 见下文

    patch-ltib-ubuntu12.04.sh

    #!/usr/bin/env bash
    
    # get the patch tarball and untar it
    wget -O ubuntu-ltib-patch.tgz https://community.freescale.com/servlet/JiveServlet/downloadBody/93454-102-3-2834/ubuntu-ltib-patch.tgz
    tar -xzvf ubuntu-ltib-patch.tgz
    
    # execute the script which do the patching
    ltibDir=`pwd`
    cd ubuntu-ltib-patch
    ./install-patches.sh $ltibDir

    patch-dist-ubuntu12.04.patch

    diff -uNr old/dist/lfs-5.1/base_libs/base_libs.spec new/dist/lfs-5.1/base_libs/base_libs.spec
    --- old/dist/lfs-5.1/base_libs/base_libs.spec    2013-11-09 11:08:21.897348939 +0800
    +++ new/dist/lfs-5.1/base_libs/base_libs.spec    2013-11-08 15:18:58.175937281 +0800
    @@ -296,7 +296,7 @@
     
     # remove absolute paths from text search files (if they exist)
     perl -w -e '
    -    @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;
    +    @ARGV = grep { `file $_` =~ m,ASCIIs+.*text, } @ARGV;
         exit(0) unless @ARGV;
         $^I = ".bak";
         while(<>) {
    diff -uNr old/dist/lfs-5.1/glibc/glibc-2.3.2.spec new/dist/lfs-5.1/glibc/glibc-2.3.2.spec
    --- old/dist/lfs-5.1/glibc/glibc-2.3.2.spec    2013-11-09 11:08:13.149349103 +0800
    +++ new/dist/lfs-5.1/glibc/glibc-2.3.2.spec    2013-11-08 15:19:22.835937109 +0800
    @@ -192,7 +192,7 @@
     
     # remove absolute paths from text search files (if they exist)
     perl -w -e '
    -    @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;
    +    @ARGV = grep { `file $_` =~ m,ASCIIs+.*text, } @ARGV;
         exit(0) unless @ARGV;
         $^I = ".bak";
         while(<>) {
    diff -uNr old/dist/lfs-5.1/glibc/glibc.spec new/dist/lfs-5.1/glibc/glibc.spec
    --- old/dist/lfs-5.1/glibc/glibc.spec    2013-11-09 11:08:13.145349103 +0800
    +++ new/dist/lfs-5.1/glibc/glibc.spec    2013-11-08 15:19:48.431936930 +0800
    @@ -97,7 +97,7 @@
     
     # remove absolute paths from text search files (if they exist)
     perl -w -e '
    -    @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;
    +    @ARGV = grep { `file $_` =~ m,ASCIIs+.*text, } @ARGV;
         exit(0) unless @ARGV;
         $^I = ".bak";
         while(<>) {
    diff -uNr old/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec new/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec
    --- old/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec    2013-11-09 11:07:59.141349366 +0800
    +++ new/dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec    2013-11-08 17:40:10.143878188 +0800
    @@ -21,9 +21,6 @@
     %patch1 -p1
     
     %Build
    -#export CAIRO_CFLAGS="-I${DEV_IMAGE}/usr/include/cairo"
    -#export CAIRO_LIBS="-L${DEV_IMAGE}/usr/lib/cairo"
    -#export LIBS="-lcairo"
     
     ./configure --prefix=%{_prefix} --host=$CFGHOST 
             --build=%{_build} --without-check 
  • 相关阅读:
    [考试反思]1108csp-s模拟测试105: 傀儡
    [考试反思]1107csp-s模拟测试104: 速度
    联赛前的咕咕咕(小计划)
    [考试反思]1106csp-s模拟测试103: 渺茫
    csp-s模拟测试101的T3代码+注释
    [考试反思]1105csp-s模拟测试102: 贪婪
    [考试反思]1105csp-s模拟测试101: 临别
    [考试反思]1104csp-s模拟测试100: 终结
    [考试反思]1103csp-s模拟测试99: 美梦
    [考试反思]1102csp-s模拟测试98:苟活
  • 原文地址:https://www.cnblogs.com/ouuy/p/3415443.html
Copyright © 2011-2022 走看看