• 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 
  • 相关阅读:
    js正则表达式
    js遍历对象属性
    C# 带Cookies发送请求
    C# Cookies设置和读取
    C# ref 和 out 的使用
    jq 禁用复选框 和输入框
    C++学习之嵌套类和局部类
    C++学习之this指针
    C++学习之运算符重载的总结
    Labview中引用,属性节点,局部变量之间的区别
  • 原文地址:https://www.cnblogs.com/ouuy/p/3415443.html
Copyright © 2020-2023  润新知