Permalink
Checking mergeability…
Don’t worry, you can still create the pull request.
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also .
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
5
contributors
Commits on Jan 22, 2013
Commits on Jul 20, 2013
Commits on Sep 09, 2013
Commits on Sep 10, 2013
Commits on Jun 13, 2014
The original patch in the gcc mainline tree was written by Benjamin Kosnik <bkoz@redhat.com> at 2009-09-28. The patch can be found at the SHA1 b66f4546f26d22917c3642862a390b485ae5f9b7.
The original patch in the gcc mainline tree was written by Benjamin Kosnik <bkoz@redhat.com> at 2009-09-28. The patch can be found at the SHA1 b66f4546f26d22917c3642862a390b485ae5f9b7.
Conflicts: Makefile
Commits on Jun 14, 2014
Commits on Jun 15, 2014
…arget binary size when dynamic memory is used. Also, remove --enable-sjlj-exceptions as a test as it increases binary size.
Commits on Oct 21, 2014
Commits on Jun 26, 2015
Commits on Jul 18, 2015
Commits on Jul 19, 2015
Commits on Feb 23, 2016
Commits on Feb 19, 2018
Commits on Feb 20, 2018
Unified
Split
Showing
with
407,812 additions
and 44 deletions.
- +27 −23 Makefile
- +21 −21 README.asciidoc → README.md
- +254 −0 headers/avr32/abdac_101.h
- +78 −0 headers/avr32/abi.h
- +983 −0 headers/avr32/ac97c_210.h
- +1,210 −0 headers/avr32/ac97c_220.h
- +894 −0 headers/avr32/acifa_100.h
- +1,913 −0 headers/avr32/acifb_201.h
- +1,957 −0 headers/avr32/acifb_202.h
- +1,124 −0 headers/avr32/adc_102.h
- +1,124 −0 headers/avr32/adc_110.h
- +1,123 −0 headers/avr32/adc_200.h
- +1,911 −0 headers/avr32/adcifa_100.h
- +1,652 −0 headers/avr32/adcifb_100.h
- +1,652 −0 headers/avr32/adcifb_101.h
- +702 −0 headers/avr32/aes_1231.h
- +1,367 −0 headers/avr32/ap7000.h
- +1,139 −0 headers/avr32/ap7001.h
- +1,263 −0 headers/avr32/ap7002.h
- +2,186 −0 headers/avr32/ap7200.h
- +642 −0 headers/avr32/ast_100.h
- +1,045 −0 headers/avr32/ast_200.h
- +1,021 −0 headers/avr32/ast_300.h
- +1 −0 headers/avr32/avr32headers-version.txt
- +441 −0 headers/avr32/aw_200.h
- +441 −0 headers/avr32/aw_201.h
- +441 −0 headers/avr32/aw_210.h
- +315 −0 headers/avr32/busmon_100.h
- +1,127 −0 headers/avr32/canif_100.h
- +1,104 −0 headers/avr32/cat_100.h
- +1,325 −0 headers/avr32/cat_200.h
- +746 −0 headers/avr32/core_c3_100.h
- +750 −0 headers/avr32/core_c3_200.h
- +1,233 −0 headers/avr32/core_sc0_100.h
- +1,806 −0 headers/avr32/core_sc0_130.h
- +1,806 −0 headers/avr32/core_sc0_140.h
- +1,719 −0 headers/avr32/core_sc0_142.h
- +1,840 −0 headers/avr32/core_sc0_143.h
- +1,901 −0 headers/avr32/core_sc0_200.h
- +1,889 −0 headers/avr32/core_sc0_210.h
- +796 −0 headers/avr32/dacifb_100.h
- +2,167 −0 headers/avr32/dmaca_206a.h
- +210 −0 headers/avr32/ecc_100.h
- +353 −0 headers/avr32/ecc_200.h
- +4,330 −0 headers/avr32/ecchrs_100.h
- +407 −0 headers/avr32/eic_100.h
- +961 −0 headers/avr32/eic_200.h
- +961 −0 headers/avr32/eic_210.h
- +961 −0 headers/avr32/eic_230.h
- +961 −0 headers/avr32/eic_231.h
- +962 −0 headers/avr32/eic_2311.h
- +1,629 −0 headers/avr32/eic_300.h
- +1,729 −0 headers/avr32/eic_301.h
- +606 −0 headers/avr32/flashc_100.h
- +907 −0 headers/avr32/flashc_200.h
- +922 −0 headers/avr32/flashc_210.h
- +914 −0 headers/avr32/flashc_212.h
- +961 −0 headers/avr32/flashc_300.h
- +1,027 −0 headers/avr32/flashcdw_100.h
- +983 −0 headers/avr32/flashcdw_101.h
- +1,042 −0 headers/avr32/flashcdw_102.h
- +131 −0 headers/avr32/flashvault.h
- +322 −0 headers/avr32/freqm_200.h
- +322 −0 headers/avr32/freqm_210.h
- +322 −0 headers/avr32/freqm_230.h
- +322 −0 headers/avr32/freqm_231.h
- +311 −0 headers/avr32/freqm_2311.h
- +329 −0 headers/avr32/freqm_300.h
- +605 −0 headers/avr32/freqm_301.h
- +198 −0 headers/avr32/gpio_100.h
- +281 −0 headers/avr32/gpio_110.h
- +300 −0 headers/avr32/gpio_200.h
- +360 −0 headers/avr32/gpio_210.h
- +375 −0 headers/avr32/gpio_211.h
- +243 −0 headers/avr32/gpio_local_100.h
- +2,135 −0 headers/avr32/hmatrix_220.h
- +2,135 −0 headers/avr32/hmatrix_230.h
- +189 −0 headers/avr32/intc_101.h
- +1,138 −0 headers/avr32/intc_102.h
- +276 −0 headers/avr32/io.h
- +351 −0 headers/avr32/ioap7000.h
- +333 −0 headers/avr32/ioap7001.h
- +339 −0 headers/avr32/ioap7002.h
- +351 −0 headers/avr32/ioap7200.h
- +1,297 −0 headers/avr32/ioavr32.h
- +336 −0 headers/avr32/iouc3a0128.h
- +336 −0 headers/avr32/iouc3a0256.h
- +336 −0 headers/avr32/iouc3a0512.h
- +326 −0 headers/avr32/iouc3a0512es.h
- +328 −0 headers/avr32/iouc3a1128.h
- +328 −0 headers/avr32/iouc3a1256.h
- +328 −0 headers/avr32/iouc3a1512.h
- +318 −0 headers/avr32/iouc3a1512es.h
- +336 −0 headers/avr32/iouc3a3128.h
- +336 −0 headers/avr32/iouc3a3128s.h
- +336 −0 headers/avr32/iouc3a3256.h
- +336 −0 headers/avr32/iouc3a3256s.h
- +336 −0 headers/avr32/iouc3a364.h
- +336 −0 headers/avr32/iouc3a364s.h
- +304 −0 headers/avr32/iouc3b0128.h
- +304 −0 headers/avr32/iouc3b0256.h
- +300 −0 headers/avr32/iouc3b0256es.h
- +304 −0 headers/avr32/iouc3b064.h
- +298 −0 headers/avr32/iouc3b1128.h
- +298 −0 headers/avr32/iouc3b1256.h
- +294 −0 headers/avr32/iouc3b1256es.h
- +298 −0 headers/avr32/iouc3b164.h
- +378 −0 headers/avr32/iouc3c0128c.h
- +378 −0 headers/avr32/iouc3c0256c.h
- +378 −0 headers/avr32/iouc3c0512c.h
- +378 −0 headers/avr32/iouc3c064c.h
- +378 −0 headers/avr32/iouc3c1128c.h
- +378 −0 headers/avr32/iouc3c1256c.h
- +378 −0 headers/avr32/iouc3c1512c.h
- +378 −0 headers/avr32/iouc3c164c.h
- +378 −0 headers/avr32/iouc3c2128c.h
- +378 −0 headers/avr32/iouc3c2256c.h
- +378 −0 headers/avr32/iouc3c2512c.h
- +378 −0 headers/avr32/iouc3c264c.h
- +347 −0 headers/avr32/iouc3l016.h
- +347 −0 headers/avr32/iouc3l032.h
- +347 −0 headers/avr32/iouc3l064.h
- +877 −0 headers/avr32/isi_005.h
- +877 −0 headers/avr32/isi_0051.h
- +786 −0 headers/avr32/keypad_100.h
- +2,222 −0 headers/avr32/lcdc_170.h
- +2,222 −0 headers/avr32/lcdc_172.h
- +1,621 −0 headers/avr32/macb_112.h
- +1,612 −0 headers/avr32/macb_1121.h
- +1,233 −0 headers/avr32/mci_210.h
- +1,740 −0 headers/avr32/mci_300.h
- +1,728 −0 headers/avr32/mci_303.h
- +935 −0 headers/avr32/mdma_100.h
- +1,545 −0 headers/avr32/mpop_100.h
- +726 −0 headers/avr32/msi_210.h
- +1,053 −0 headers/avr32/ocd_o3_100.h
- +1,037 −0 headers/avr32/ocd_o3_200.h
- +838 −0 headers/avr32/ocd_s0_100.h
- +833 −0 headers/avr32/ocd_s0_130.h
- +834 −0 headers/avr32/ocd_s0_140.h
- +812 −0 headers/avr32/ocd_s0_142.h
- +962 −0 headers/avr32/ocd_s0_143.h
- +990 −0 headers/avr32/ocd_s0_200.h
- +990 −0 headers/avr32/ocd_s0_210.h
- +492 −0 headers/avr32/pdca_100.h
- +492 −0 headers/avr32/pdca_102.h
- +602 −0 headers/avr32/pdca_110.h
- +676 −0 headers/avr32/pdca_120.h
- +3,220 −0 headers/avr32/pdca_121.h
- +3,220 −0 headers/avr32/pdca_122.h
- +578 −0 headers/avr32/pevc_100.h
- +5,155 −0 headers/avr32/pio_202.h
- +848 −0 headers/avr32/pm_100.h
- +1,297 −0 headers/avr32/pm_200.h
- +1,316 −0 headers/avr32/pm_210.h
- +1,315 −0 headers/avr32/pm_230.h
- +1,315 −0 headers/avr32/pm_231.h
- +1,311 −0 headers/avr32/pm_2311.h
- +1,703 −0 headers/avr32/pm_300.h
- +1,215 −0 headers/avr32/pm_400.h
- +1,282 −0 headers/avr32/pm_410.h
- +1,160 −0 headers/avr32/pm_411.h
- +713 −0 headers/avr32/psif_100.h
- +875 −0 headers/avr32/pwm_120.h
- +875 −0 headers/avr32/pwm_130.h
- +3,355 −0 headers/avr32/pwm_410.h
- +484 −0 headers/avr32/pwma_100.h
- +484 −0 headers/avr32/pwma_101.h
- +985 −0 headers/avr32/qdec_100.h
- +231 −0 headers/avr32/rtc_100.h
- +249 −0 headers/avr32/rtc_200.h
- +249 −0 headers/avr32/rtc_210.h
- +259 −0 headers/avr32/rtc_230.h
- +259 −0 headers/avr32/rtc_231.h
- +246 −0 headers/avr32/rtc_2311.h
- +661 −0 headers/avr32/sau_100.h
- +703 −0 headers/avr32/sau_110.h
- +1,986 −0 headers/avr32/scif_100.h
- +1,571 −0 headers/avr32/scif_101.h
- +2,092 −0 headers/avr32/scif_102.h
- +851 −0 headers/avr32/sdc_100.h
- +568 −0 headers/avr32/sdramc_200.h
- +568 −0 headers/avr32/sdramc_201.h
- +568 −0 headers/avr32/sdramc_220.h
- +942 −0 headers/avr32/smc_104.h
- +878 −0 headers/avr32/smc_106.h
- +930 −0 headers/avr32/spi_171.h
- +929 −0 headers/avr32/spi_192.h
- +921 −0 headers/avr32/spi_1922.h
- +941 −0 headers/avr32/spi_199.h
- +942 −0 headers/avr32/spi_1991.h
- +1,036 −0 headers/avr32/spi_200.h
- +1,044 −0 headers/avr32/spi_210.h
- +1,193 −0 headers/avr32/spi_211.h
- +1,218 −0 headers/avr32/ssc_220.h
- +1,069 −0 headers/avr32/ssc_301.h
- +1,069 −0 headers/avr32/ssc_310.h
- +1,050 −0 headers/avr32/ssc_320.h
- +1,036 −0 headers/avr32/ssc_330.h
- +1,739 −0 headers/avr32/tc_221.h
- +1,745 −0 headers/avr32/tc_222.h
- +1,709 −0 headers/avr32/tc_223.h
- +1,813 −0 headers/avr32/tc_2231.h
- +1,119 −0 headers/avr32/tsadcc_101.h
- +460 −0 headers/avr32/twi_180.h
- +728 −0 headers/avr32/twi_202.h
- +728 −0 headers/avr32/twi_211.h
- +728 −0 headers/avr32/twi_300.h
- +853 −0 headers/avr32/twim_100.h
- +897 −0 headers/avr32/twim_101.h
- +956 −0 headers/avr32/twis_100.h
- +980 −0 headers/avr32/twis_110.h
- +972 −0 headers/avr32/twis_112.h
- +1,347 −0 headers/avr32/uc3a0128.h
- +1,347 −0 headers/avr32/uc3a0256.h
- +1,347 −0 headers/avr32/uc3a0512.h
- +1,137 −0 headers/avr32/uc3a0512es.h
- +991 −0 headers/avr32/uc3a1128.h
- +991 −0 headers/avr32/uc3a1256.h
- +991 −0 headers/avr32/uc3a1512.h
- +922 −0 headers/avr32/uc3a1512es.h
- +1,620 −0 headers/avr32/uc3a3128.h
- +1,634 −0 headers/avr32/uc3a3128s.h
- +1,622 −0 headers/avr32/uc3a3256.h
- +1,634 −0 headers/avr32/uc3a3256s.h
- +1,620 −0 headers/avr32/uc3a364.h
- +1,634 −0 headers/avr32/uc3a364s.h
- +899 −0 headers/avr32/uc3b0128.h
- +899 −0 headers/avr32/uc3b0256.h
- +847 −0 headers/avr32/uc3b0256es.h
- +940 −0 headers/avr32/uc3b0512.h
- +899 −0 headers/avr32/uc3b064.h
- +747 −0 headers/avr32/uc3b1128.h
- +747 −0 headers/avr32/uc3b1256.h
- +719 −0 headers/avr32/uc3b1256es.h
- +852 −0 headers/avr32/uc3b1512.h
- +747 −0 headers/avr32/uc3b164.h
- +2,223 −0 headers/avr32/uc3c0128c.h
- +2,222 −0 headers/avr32/uc3c0256c.h
- +2,227 −0 headers/avr32/uc3c0512c.h
- +2,227 −0 headers/avr32/uc3c0512crevc.h
- +2,226 −0 headers/avr32/uc3c064c.h
- +1,930 −0 headers/avr32/uc3c1128c.h
- +1,932 −0 headers/avr32/uc3c1256c.h
- +1,934 −0 headers/avr32/uc3c1512c.h
- +1,934 −0 headers/avr32/uc3c1512crevc.h
- +1,930 −0 headers/avr32/uc3c164c.h
- +1,613 −0 headers/avr32/uc3c2128c.h
- +1,610 −0 headers/avr32/uc3c2256c.h
- +1,610 −0 headers/avr32/uc3c2512c.h
- +1,610 −0 headers/avr32/uc3c2512crevc.h
- +1,611 −0 headers/avr32/uc3c264c.h
- +1,451 −0 headers/avr32/uc3l016.h
- +1,450 −0 headers/avr32/uc3l032.h
- +1,440 −0 headers/avr32/uc3l064.h
- +1,434 −0 headers/avr32/uc3l064revb.h
- +1,126 −0 headers/avr32/uc3l116.h
- +1,126 −0 headers/avr32/uc3l132.h
- +1,127 −0 headers/avr32/uc3l164.h
- +1,057 −0 headers/avr32/uc3l216.h
- +1,057 −0 headers/avr32/uc3l232.h
- +1,057 −0 headers/avr32/uc3l264.h
- +1,284 −0 headers/avr32/uc3l316.h
- +1,281 −0 headers/avr32/uc3l332.h
- +1,282 −0 headers/avr32/uc3l364.h
- +1,571 −0 headers/avr32/usart_302.h
- +1,370 −0 headers/avr32/usart_319.h
- +1,773 −0 headers/avr32/usart_400.h
- +1,773 −0 headers/avr32/usart_410.h
- +1,796 −0 headers/avr32/usart_420.h
- +2,227 −0 headers/avr32/usart_440.h
- +16,428 −0 headers/avr32/usb_320.h
- +5,254 −0 headers/avr32/usba_140.h
- +14,272 −0 headers/avr32/usbb_260.h
- +14,272 −0 headers/avr32/usbb_270.h
- +14,494 −0 headers/avr32/usbb_310.h
- +14,838 −0 headers/avr32/usbb_3101.h
- +14,494 −0 headers/avr32/usbb_311.h
- +14,494 −0 headers/avr32/usbb_3112.h
- +14,495 −0 headers/avr32/usbb_320.h
- +1,866 −0 headers/avr32/usbh_291a.h
- +124 −0 headers/avr32/wdt_100.h
- +125 −0 headers/avr32/wdt_200.h
- +125 −0 headers/avr32/wdt_210.h
- +125 −0 headers/avr32/wdt_230.h
- +125 −0 headers/avr32/wdt_231.h
- +101 −0 headers/avr32/wdt_2311.h
- +230 −0 headers/avr32/wdt_300.h
- +507 −0 headers/avr32/wdt_400.h
- +503 −0 headers/avr32/wdt_401.h
- +503 −0 headers/avr32/wdt_402.h
- BIN headers/headers.zip
- +764 −0 patches/binutils/00-texinfo-5.0-support.patch
- +189 −0 patches/gcc/02-libstdc++-libsupc++-with-fno-exceptions.patch
- +17 −0 patches/gcc/03-libstdc++-with-fno-exceptions.patch
- +89 −0 patches/gcc/04-texinfo-5.0-support.patch
- +24 −0 patches/gcc/05-gperf-3.0.4.patch
- +17 −0 patches/gcc/06-gcc.texi.diff
| @@ -24,9 +24,9 @@ | ||
|
|
||
| GCC_VERSION = 4.4.7 | ||
| BINUTILS_VERSION = 2.23.1 | ||
| NEWLIB_VERSION = 1.16.0 | ||
| NEWLIB_VERSION = 1.19.0 | ||
| DFU_VERSION = 0.5.4 | ||
| AVR32_PATCH_REV = 3.4.2 | ||
| AVR32_PATCH_REV = 3.4.3 | ||
| ATMEL_HEADER_REV = 6.1.3.1475 | ||
|
|
||
|
|
||
| @@ -73,13 +73,13 @@ BINUTILS_MD5 = 33adb18c3048d057ac58d07a3f1adb38 | ||
|
|
||
| NEWLIB_ARCHIVE = newlib-$(NEWLIB_VERSION).tar.gz | ||
| NEWLIB_URL = ftp://sources.redhat.com/pub/newlib/$(NEWLIB_ARCHIVE) | ||
| NEWLIB_MD5 = bf8f1f9e3ca83d732c00a79a6ef29bc4 | ||
| NEWLIB_MD5 = 0966e19f03217db9e9076894b47e6601 | ||
|
|
||
| AVR32PATCHES_ARCHIVE = avr32-patches.tar.gz | ||
| AVR32PATCHES_URL = http://distribute.atmel.no/tools/opensource/Atmel-AVR-Toolchain-$(AVR32_PATCH_REV)/avr32/$(AVR32PATCHES_ARCHIVE) | ||
| AVR32PATCHES_URL = http://distribute.atmel.no/tools/opensource/Atmel-AVR32-GNU-Toolchain/$(AVR32_PATCH_REV)/$(AVR32PATCHES_ARCHIVE) | ||
| AVR32PATCHES_MD5 = 99b2f4497d264c9200538bb1229fdef9 | ||
|
|
||
| AVR32HEADERS_ARCHIVE = atmel-headers-$(ATMEL_HEADER_REV).zip | ||
| AVR32HEADERS_ARCHIVE = headers.zip | ||
| AVR32HEADERS_URL = http://www.atmel.com/Images/$(AVR32HEADERS_ARCHIVE) | ||
| AVR32HEADERS_MD5 = d69e8e188470e4fea68a4650442b5750 | ||
|
|
||
| @@ -228,20 +228,18 @@ extract-avr32patches stamps/extract-avr32patches : downloads/$(AVR32PATCHES_ARCH | ||
|
|
||
| .PHONY: download-avr32headers | ||
| downloads/$(AVR32HEADERS_ARCHIVE) download-avr32headers: | ||
| cd downloads && curl -LO $(AVR32HEADERS_URL) | ||
| cd downloads && cp ../headers/headers.zip . | ||
|
|
||
| .PHONY: extract-headers | ||
| extract-headers stamps/extract-headers : downloads/$(AVR32HEADERS_ARCHIVE) | ||
| @(t1=`openssl md5 $< | cut -f 2 -d " " -` && \ | ||
| [ "$$t1" = "$(AVR32HEADERS_MD5)" ] || \ | ||
| ( echo "Bad Checksum! Please remove the following file and retry: $<" && false )) | ||
| unzip -o $< | ||
| cd downloads/ && unzip -o $(notdir $<) | ||
| mkdir -p stamps | ||
| touch stamps/extract-headers | ||
|
|
||
| .PHONY: install-headers | ||
| install-headers stamps/install-headers : stamps/extract-headers stamps/install-final-gcc | ||
| cp -r atmel-headers-$(ATMEL_HEADER_REV)/$(TARGET) $(PREFIX)/$(TARGET)/include/$(TARGET) | ||
| cp -r downloads/headers/* $(PREFIX)/$(TARGET)/include/ | ||
| cp -r headers/avr32 $(PREFIX)/$(TARGET)/include/ | ||
| mkdir -p stamps | ||
| touch stamps/install-headers | ||
|
|
||
| @@ -349,6 +347,7 @@ patch-binutils stamps/patch-binutils: stamps/extract-binutils stamps/extract-avr | ||
| for f in ../avr32-patches/binutils/*.patch; do \ | ||
| patch -N -p0 <$${f} ; \ | ||
| done ; \ | ||
| patch -N -p1 <../patches/binutils/00-texinfo-5.0-support.patch ; \ | ||
| popd ; \ | ||
| [ -d stamps ] || mkdir stamps | ||
| touch stamps/patch-binutils; | ||
| @@ -379,7 +378,7 @@ build-binutils stamps/build-binutils: stamps/regen-binutils stamps/install-supp- | ||
| --disable-shared --disable-werror \ | ||
| --with-sysroot="$(PREFIX)/$(TARGET)" --with-bugurl=$(BUG_URL) && \ | ||
| $(MAKE) all-bfd TARGET-bfd=headers; \ | ||
| rm bfd/Makefile; \ | ||
| rm -f bfd/Makefile; \ | ||
| make configure-bfd; \ | ||
| $(MAKE) | ||
| [ -d stamps ] || mkdir stamps ; | ||
| @@ -453,13 +452,19 @@ patch-gcc stamps/patch-gcc: stamps/extract-gcc stamps/extract-avr32patches | ||
| done ; \ | ||
| patch -N -p0 <../patches/gcc/00-libstdc++-shared_ptr-without-rtti-bug-42019.patch ; \ | ||
| patch -N -p0 <../patches/gcc/01-gcc-floor_log2-error.patch ; \ | ||
| patch -N -p0 <../patches/gcc/02-libstdc++-libsupc++-with-fno-exceptions.patch ; \ | ||
| patch -N -p0 <../patches/gcc/03-libstdc++-with-fno-exceptions.patch ; \ | ||
| patch -N -p1 <../patches/gcc/04-texinfo-5.0-support.patch ; \ | ||
| patch -N -p1 <../patches/gcc/05-gperf-3.0.4.patch ; \ | ||
| patch -N -p0 < ../patches/gcc/06-gcc.texi.diff ; \ | ||
| popd ; | ||
| [ -d stamps ] || mkdir stamps | ||
| touch stamps/patch-gcc; | ||
|
|
||
| CFLAGS_FOR_TARGET="-ffunction-sections -fdata-sections \ | ||
| CFLAGS_FOR_TARGET=-ffunction-sections -fdata-sections \ | ||
| -fomit-frame-pointer -DPREFER_SIZE_OVER_SPEED -D__OPTIMIZE_SIZE__ -g \ | ||
| -Os -fno-unroll-loops" | ||
| -Os -fno-unroll-loops | ||
| CXXFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET) -fno-exceptions | ||
|
|
||
| .PHONY: build-gcc | ||
| build-gcc stamps/build-gcc: stamps/install-binutils stamps/prep-gcc | ||
| @@ -470,20 +475,19 @@ build-gcc stamps/build-gcc: stamps/install-binutils stamps/prep-gcc | ||
| ../../gcc-$(GCC_VERSION)/configure --prefix="$(PREFIX)" \ | ||
| --target=$(TARGET) --enable-languages="c" --with-gnu-ld \ | ||
| --with-gnu-as --with-newlib --disable-nls --disable-libssp \ | ||
| --with-dwarf2 --enable-sjlj-exceptions \ | ||
| --enable-version-specific-runtime-libs --disable-libstdcxx-pch \ | ||
| --with-dwarf2 --enable-version-specific-runtime-libs --disable-libstdcxx-pch \ | ||
| --disable-shared \ | ||
| --with-build-time-tools="$(PREFIX)/$(TARGET)/bin" \ | ||
| --enable-cxx-flags=$(CFLAGS_FOR_TARGET) \ | ||
| --enable-cxx-flags="$(CXXFLAGS_FOR_TARGET)" \ | ||
| --with-sysroot="$(PREFIX)/$(TARGET)" \ | ||
| --with-build-sysroot="$(PREFIX)/$(TARGET)" \ | ||
| --with-build-time-tools="$(PREFIX)/$(TARGET)/bin" \ | ||
| CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET) \ | ||
| CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | ||
| LDFLAGS_FOR_TARGET="--sysroot=\"$(PREFIX)/$(TARGET)\"" \ | ||
| CPPFLAGS_FOR_TARGET="--sysroot=\"$(PREFIX)/$(TARGET)\"" \ | ||
| --with-bugurl=$(BUG_URL) \ | ||
| --with-pkgversion=$(PKG_VERSION) && \ | ||
| rm ../../gcc-4.4.7/gcc/cp/cfns.h && \ | ||
| rm -f ../../gcc-4.4.7/gcc/cp/cfns.h && \ | ||
| $(MAKE) -j$(PROCS) | ||
| [ -d stamps ] || mkdir stamps | ||
| touch stamps/build-gcc; | ||
| @@ -513,15 +517,15 @@ build-final-gcc stamps/build-final-gcc: stamps/install-binutils stamps/install-g | ||
| ../../gcc-$(GCC_VERSION)/configure --prefix=$(PREFIX) \ | ||
| --target=$(TARGET) $(DEPENDENCIES) --enable-languages="c,c++" --with-gnu-ld \ | ||
| --with-gnu-as --with-newlib --disable-nls --disable-libssp \ | ||
| --with-dwarf2 --enable-sjlj-exceptions \ | ||
| --enable-version-specific-runtime-libs --disable-libstdcxx-pch \ | ||
| --with-dwarf2 --enable-version-specific-runtime-libs --disable-libstdcxx-pch \ | ||
| --disable-shared --enable-__cxa_atexit \ | ||
| --with-build-time-tools=$(PREFIX)/$(TARGET)/bin \ | ||
| --enable-cxx-flags=$(CFLAGS_FOR_TARGET) \ | ||
| --enable-cxx-flags="$(CXXFLAGS_FOR_TARGET)" \ | ||
| --with-sysroot=$(PREFIX)/$(TARGET) \ | ||
| --with-build-sysroot=$(PREFIX)/$(TARGET) \ | ||
| --with-build-time-tools=$(PREFIX)/$(TARGET)/bin \ | ||
| CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET) \ | ||
| --disable-libstdcxx-verbose \ | ||
| CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \ | ||
| LDFLAGS_FOR_TARGET="--sysroot=$(PREFIX)/$(TARGET)" \ | ||
| CPPFLAGS_FOR_TARGET="--sysroot=$(PREFIX)/$(TARGET)" \ | ||
| --with-bugurl=$(BUG_URL) \ | ||
| @@ -11,9 +11,9 @@ Note: If you have previously built a toolchain of another version, out | ||
| of the same builder directory, make sure to do the following first | ||
| before building with newer sources: | ||
|
|
||
| ---- | ||
| ```bash | ||
| make clean | ||
| ---- | ||
| ``` | ||
|
|
||
| === Requirements (OS X) === | ||
|
|
||
| @@ -32,46 +32,46 @@ I'll add these to the Makefile once I have a consistent configuration | ||
| that can be used for both Linux & OS X. | ||
|
|
||
| With homebrew you can install those dependencies like this: | ||
| ---- | ||
| ```bash | ||
| brew install mpfr gmp libmpc texinfo | ||
| ---- | ||
| ``` | ||
|
|
||
| If you would like to build dfu-programmer, also install libusb: | ||
|
|
||
| ---- | ||
| ```bash | ||
| brew install libusb-compat | ||
| ---- | ||
| ``` | ||
|
|
||
|
|
||
| === Requirements (Ubuntu) === | ||
|
|
||
| These instructions should now also work on Ubuntu Linux, provided the | ||
| following packages have been installed prior to attempting the build: | ||
|
|
||
| ---- | ||
| sudo apt-get install curl flex bison libgmp3-dev libmpfr-dev autoconf build-essential libncurses5-dev libmpc-dev texinfo | ||
| ---- | ||
| ```bash | ||
| sudo apt-get install curl flex bison libgmp3-dev libmpfr-dev autoconf build-essential libncurses5-dev libmpc-dev texinfo gperf | ||
| ``` | ||
|
|
||
| If you would like to build dfu-programmer, also install libusb: | ||
|
|
||
| ---- | ||
| ```bash | ||
| sudo apt-get install libusb-dev | ||
| ---- | ||
| ``` | ||
|
|
||
| === Main Build Instructions === | ||
|
|
||
| Next build the toolchain: | ||
|
|
||
| ---- | ||
| ```bash | ||
| make install-cross | ||
| ---- | ||
| ``` | ||
|
|
||
| You should be able to also specify a specific install/prefix location | ||
| by building using the following type of invokation: | ||
|
|
||
| ---- | ||
| ```bash | ||
| PREFIX=$HOME/avr32-tools make install-cross | ||
| ---- | ||
| ``` | ||
|
|
||
| If you do this, make sure you have permissions to create a directory | ||
| at this location and/or to create directories within this location if | ||
| @@ -83,9 +83,9 @@ the directory already exists. | ||
| is fixed in Apple's distribution of llvm-gcc, use the following | ||
| command instead of the above to build. | ||
|
|
||
| ---- | ||
| ```bash | ||
| CC=gcc-4.2 make install-cross | ||
| ---- | ||
| ``` | ||
|
|
||
|
|
||
|
|
||
| @@ -101,24 +101,24 @@ location, which will be based on the git revision if you cloned the | ||
| repository or the current date if you grabbed a tarball and/or you | ||
| don't have the git binary. The message should look like the following: | ||
|
|
||
| ---- | ||
| ```bash | ||
| ====== INSTALLATION NOTE ====== | ||
| Your tools have now been installed at the following prefix: | ||
| /Users/jsnyder/avr32-tools-bd2485b | ||
| Please be sure to add something similar to the following to your .bash_profile, .zshrc, etc: | ||
| export PATH=/Users/jsnyder/avr32-tools-bd2485b/bin:$PATH | ||
| ---- | ||
| ``` | ||
|
|
||
| If it uses the date instead the the git short revision will bve | ||
| replaced with a date number like: 20110726. | ||
|
|
||
| If you also would like dfu-programmer installed intalled (make sure | ||
| you have previously installed libusb as described in requirements): | ||
|
|
||
| ---- | ||
| ```bash | ||
| make install-dfu | ||
| ---- | ||
| ``` | ||
|
|
||
| === Special Thanks === | ||
|
|
||
Oops, something went wrong.