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 
  • 相关阅读:
    [hihocoder-1974] 智能分包 状态压缩dp
    2018北京ICPC D. Frog and Portal 斐波那契数 构造
    [hdu-6621]K-th Closest Distance 主席树 线段树 2019 多校4
    [POJ 2104]K-th Number 主席树 可持久化线段树 入门
    [hdu-6623]Minimal Power of Prime
    [hdu-6608] Fansblog 威尔逊定理 质数的密度分布 2019 多校 3
    [codeforces1000F] One Occurrence
    [python] 机器学习 卷积神经网络 用迁移学习实现人脸识别
    [python] 安装TensorFlow问题 解决Cannot uninstall 'wrapt'. It is a distutils installed project
    浅谈getResource方法
  • 原文地址:https://www.cnblogs.com/ouuy/p/3415443.html
Copyright © 2011-2022 走看看