⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 bootup code for Barebone, it s useful for bring up new chip
💻
字号:
# A brief explanation.#  # Copyright (C) 2001 MontaVista Software Inc.# Author: Jun Sun, jsun@mvista.com or jsun@junsun.net# # This program is free software; you can redistribute  it and/or modify it# under  the terms of  the GNU General  Public License as published by the# Free Software Foundation;  either version 2 of the  License, or (at your# option) any later version.######## CONFIGURATION #########LOADADDR = 0xa0040000RAMSIZE = 0x00100000		# 1MBCROSS_COMPILE = mipsel-linux-######## END OF CONFIGURATION #########.S.s:	$(CPP) $(CFLAGS) $< -o $*.s.S.o:	$(CC) $(CFLAGS) -c $< -o $*.o.c.o:	$(CC) $(CFLAGS) -c $< -o $*.oCC =       $(CROSS_COMPILE)gccLD =       $(CROSS_COMPILE)ldOBJCOPY =  $(CROSS_COMPILE)objcopyOBJDUMP =  $(CROSS_COMPILE)objdumpCFLAGS = -O -G 0 -mno-abicalls -fno-pic -Wall -DRAMSIZE=${RAMSIZE}# Drop some uninteresting sections in the kernel.# This is only relevant for ELF kernels but doesn't hurt a.outdrop-sections   = .reginfo .mdebugstrip-flags     = $(addprefix --remove-section=,$(drop-sections))all : elf srec binsrec : barebone.srecelf : barebone.elfbin : barebone.binbarebone.elf : start.o main.o uart16550.o print.o printf.o	$(LD) -o barebone.elf -N -Tbarebone.lds -Ttext $(LOADADDR) $^barebone.srec : barebone.elf	$(OBJCOPY) -S -O srec $(strip-flags) barebone.elf barebone.srecbarebone.bin : barebone.elf	$(OBJCOPY) -S -O binary $(strip-flags) barebone.elf barebone.binclean:	rm -f *.o barebone.elf barebone.srec barebone.bin

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -