1 Star 0 Fork 108

tmddriver/lmosem

forked from lmnos/lmosem 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile.arm 2.72 KB
一键复制 编辑 原始数据 按行查看 历史
LMOS 提交于 2017-03-06 22:02 . 增加了x86hal层
###################################################################
# 主控自动化编译配置文件 Makefile #
# 彭东 @ 2012.08.13.23.50 #
###################################################################
MAKEFLAGS =-sR
MKDIR = mkdir
RMDIR = rmdir
CP = cp
CD = cd
DD = dd
RM = rm
VM = qemu-system-arm -M mini2440 -kernel lmosemkrnl.uimg -serial stdio -mtdblock ndflash -show-cursor -usb -usbdevice keyboard -usbdevice mouse -net nic,vlan=0 -net tap,vlan=0,ifname=tap1,script=qemu-ifup,downscript=qemu-ifdown -monitor telnet::5555,server,nowait #-nographic
MAKE = make
MKIMAGE =mkimage
SUPERUSER =sudo
DKAPP =./dnw2
DKAPFLAGES = lmosemkrnl.bin
PREMENTMFLGS = -C $(BUILD_PATH) -f pretreatment.mk
ARMHALYMFLGS = -C $(BUILD_PATH) -f lmosemhal.mk
ARMKRNLMFLGS = -C $(BUILD_PATH) -f lmosemkrl.mk
ARMDRIVMFLGS = -C $(BUILD_PATH) -f lmosemdrv.mk
ARMLIBSMFLGS = -C $(BUILD_PATH) -f lmosemlib.mk
ARMTASKMFLGS = -C $(BUILD_PATH) -f lmosemtask.mk
ARMLINKMFLGS = -C $(BUILD_PATH) -f lmosemlink.mk
CPFLAGES=
VMFLAGES =
MGFLAGES = -A arm -T kernel -C none -a 30007eb0 -e 30008000 -d lmosemkrnl.bin lmosemkrnl.uimg
#-c skyeye.confqemu-system-arm -M mini2440 -kernel E-menu/uImage -serial stdio -mtdblock E-menu/mini2440_nand64.bin -show-cursor -usb -usbdevice keyboard -usbdevice mouse -net nic,vlan=0 -net tap,vlan=0,ifname=tap1,script=E-menu/qemu-ifup,downscript=E-menu/qemu-ifdown -monitor telnet::5555,server,nowait
# # versatilepb # -e lmosem.elf -pflash lmosem.bin -mtdblock flash.img skyeye #
LMINITLDR_PATH =./lminitldr/
DSTPATH = ../exckrnl
RELEDSTPATH = ../release
SRCFILE = lmosemkrnl.bin lmosemkrnl.elf
BUILD_PATH = ./build
EXKNL_PATH = ./exckrnl
BOOTEXCIMG = lmosem.bin
DSKIMG =flash.img
.PHONY : build print clean all cpkrnl knlexc writekrl downkrnl
build: clean print all
all:
#$(CD) $(LMINITLDR_PATH) && $(MAKE)
$(MAKE) $(PREMENTMFLGS)
$(MAKE) $(ARMHALYMFLGS)
$(MAKE) $(ARMKRNLMFLGS)
$(MAKE) $(ARMDRIVMFLGS)
$(MAKE) $(ARMLIBSMFLGS)
$(MAKE) $(ARMTASKMFLGS)
$(MAKE) $(ARMLINKMFLGS)
@echo '恭喜我,系统编译构建完成! ^_^'
clean:
$(CD) $(BUILD_PATH); $(RM) -f *.mkh *.lds *.o *.bin *.i *.elf *.krnl *.s *.map *.lib *.btoj *.vdi *vmdk
$(CD) $(EXKNL_PATH); $(RM) -f *.mkh *.lds *.o *.bin *.i *.elf *.krnl *.s *.map *.lib *.btoj *.vdi *vmdk
@echo '清理全部已构建文件... ^_^'
print:
@echo '*********正在开始编译构建系统*************'
knlexc: cpkrnl downkrnl #writekrl cpkrnlUIMAGE
#$(CD) $(EXKNL_PATH) && $(VM) $(VMFLAGES)
cpkrnl:
$(CD) $(BUILD_PATH) && $(CP) $(CPFLAGES) $(SRCFILE) $(DSTPATH)
writekrl:
$(CD) $(EXKNL_PATH) && $(DD) bs=512 if=$(BOOTEXCIMG) of=$(DSKIMG) conv\=notrunc
UIMAGE:
$(CD) $(EXKNL_PATH) && $(MKIMAGE) $(MGFLAGES)
downkrnl:
$(CD) $(EXKNL_PATH) && $(SUPERUSER) $(DKAPP) $(DKAPFLAGES)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/tmddriver/lmosem.git
git@gitee.com:tmddriver/lmosem.git
tmddriver
lmosem
lmosem
master

搜索帮助