Error message when porting MP3 player libmad-0.15.1b with ARM-LINUX-GNUEABIHF

Source: Internet
Author: User
Tags diff

Diff--git A/package/libmad/libmad-0.15.1b-thumb2-fixed-arm.patch b/package/libmad/ Libmad-0.15.1b-thumb2-fixed-arm.patchnew file Mode 100644Index 0000000..befda48---/dev/null+ + B/package/libmad/libmad-0.15.1b-thumb2-fixed-arm.patch@@ -0,0 +1,40 @@+fixes thumb2-related Build Failure++patch below comes from the Debian Libmad package.++signed-off-by:thomas Petazzoni <[email protected]>++from:dave Martin+subject: "RSC" doesnt exist anymore in thumb2++diff--git a/fixed.h B/fixed.h+index 4B58ABF. Ba4bc26 100644+---A/fixed.h++++ B/fixed.h[Email protected]@ -275,12 +275,25 @@ mad_fixed_t mad_f_mul_inline (mad_fixed_t x, mad_fixed_t y)+: "+r" (LO), "+r" (HI)+: "%r" (x), "R" (y))++ + #ifdef __thumb__++/* in Thumb-2, the rsb-immediate instruction are only allowed with a zero+ + operand. If needed This code can also support Thumb-1+ + (simply append "s" to the end of the second of the instructions). */++# define MAD_F_MLN (Hi, lo)+ + ASM ("Rsbs%0,%0, #0 \n\t"+ + "SBC%1,%1,%1\n\t"+ + "Sub% 1,% 1,%2"+ +: "+&r" (LO), "=&r" (HI)+ +: "R" (HI)+ +: "CC")+ + #else/*! __thumb__ * *+ # define MAD_F_MLN (Hi, lo)+ ASM ("Rsbs%0,%2, #0 \n\t"+ "RSC%1,%3, #0"+-: "=r" (LO), "=r" (HI)+ +: "=&r" (LO), "=r" (HI)+: "0" (LO), "1" (HI)+: "CC")+ + #endif/* __thumb__ */++ # define MAD_F_SCALE64 (Hi, lo)+ ({mad_fixed_t __result;Diff--git A/package/libmad/libmad-0.15.1b-thumb2-imdct-arm.patch b/package/libmad/ Libmad-0.15.1b-thumb2-imdct-arm.patchnew file Mode 100644Index 0000000..414b9c8---/dev/null+ + B/package/libmad/libmad-0.15.1b-thumb2-imdct-arm.patch@@ -0,0 +1,20 @@+fixes THUMB2 Related Build failure++patch below comes from the Debian Libmad package.++signed-off-by:thomas petazzoni <[email protected]>++from:konstantinos margaritis <[email Protected]>+subject:use "ADR" instead of "add" to make code ready for THUMB2++---./imdct_l_arm. S.orig 2010-02-25 13:25:23.000000000 +0100++++./imdct_l_arm. S 2010-02-25 13:27:26.000000000 +0100[email protected]@ -468,7+468,7 @@ + + @----+ + -add R2, PC, # (Imdct36_long_karray-.-8) @ r2 = Base address of Knn array (PIC safe?) + + ADR R2, Imdct36_long_karray + + +  loop:          
  Pro-Test available

Error message when porting MP3 player libmad-0.15.1b with ARM-LINUX-GNUEABIHF

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.