mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-29 13:49:21 +08:00
Build freebsd-userspace
This commit is contained in:
parent
1b13f6981a
commit
514a0e5841
9
Makefile
9
Makefile
@ -443,14 +443,17 @@ C_D_FILES = $(C_FILES:%.c=%.d)
|
|||||||
|
|
||||||
LIB = libbsd.a
|
LIB = libbsd.a
|
||||||
|
|
||||||
all: lib_usb
|
all: lib_bsd lib_user
|
||||||
|
|
||||||
$(LIB): $(C_O_FILES)
|
$(LIB): $(C_O_FILES)
|
||||||
$(AR) rcu $@ $^
|
$(AR) rcu $@ $^
|
||||||
|
|
||||||
lib_usb:
|
lib_bsd:
|
||||||
$(MAKE) $(LIB)
|
$(MAKE) $(LIB)
|
||||||
|
|
||||||
|
lib_user:
|
||||||
|
$(MAKE) -C freebsd-userspace
|
||||||
|
|
||||||
CPU_SED = sed
|
CPU_SED = sed
|
||||||
CPU_SED += -e '/arm/d'
|
CPU_SED += -e '/arm/d'
|
||||||
CPU_SED += -e '/i386/d'
|
CPU_SED += -e '/i386/d'
|
||||||
@ -468,11 +471,13 @@ install: $(LIB)
|
|||||||
install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
|
install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
|
||||||
cd freebsd/$(RTEMS_CPU)/include ; for i in `find . -name '*.h'` ; do \
|
cd freebsd/$(RTEMS_CPU)/include ; for i in `find . -name '*.h'` ; do \
|
||||||
install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
|
install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
|
||||||
|
$(MAKE) -C freebsd-userspace clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f -r $(PROJECT_INCLUDE)/rtems/freebsd
|
rm -f -r $(PROJECT_INCLUDE)/rtems/freebsd
|
||||||
rm -f $(LIB) $(C_O_FILES) $(C_D_FILES)
|
rm -f $(LIB) $(C_O_FILES) $(C_D_FILES)
|
||||||
rm -f libbsd.html
|
rm -f libbsd.html
|
||||||
|
$(MAKE) -C freebsd-userspace clean
|
||||||
|
|
||||||
-include $(C_D_FILES)
|
-include $(C_D_FILES)
|
||||||
|
|
||||||
|
@ -362,14 +362,17 @@ class ModuleManager:
|
|||||||
'\n' \
|
'\n' \
|
||||||
'LIB = libbsd.a\n' \
|
'LIB = libbsd.a\n' \
|
||||||
'\n' \
|
'\n' \
|
||||||
'all: lib_usb\n' \
|
'all: lib_bsd lib_user\n' \
|
||||||
'\n' \
|
'\n' \
|
||||||
'$(LIB): $(C_O_FILES)\n' \
|
'$(LIB): $(C_O_FILES)\n' \
|
||||||
'\t$(AR) rcu $@ $^\n' \
|
'\t$(AR) rcu $@ $^\n' \
|
||||||
'\n' \
|
'\n' \
|
||||||
'lib_usb:\n' \
|
'lib_bsd:\n' \
|
||||||
'\t$(MAKE) $(LIB)\n' \
|
'\t$(MAKE) $(LIB)\n' \
|
||||||
'\n' \
|
'\n' \
|
||||||
|
'lib_user:\n' \
|
||||||
|
'\t$(MAKE) -C freebsd-userspace\n' \
|
||||||
|
'\n' \
|
||||||
'CPU_SED = sed\n' \
|
'CPU_SED = sed\n' \
|
||||||
'CPU_SED += -e \'/arm/d\'\n' \
|
'CPU_SED += -e \'/arm/d\'\n' \
|
||||||
'CPU_SED += -e \'/i386/d\'\n' \
|
'CPU_SED += -e \'/i386/d\'\n' \
|
||||||
@ -387,11 +390,13 @@ class ModuleManager:
|
|||||||
'\t install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done\n' \
|
'\t install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done\n' \
|
||||||
'\tcd freebsd/$(RTEMS_CPU)/include ; for i in `find . -name \'*.h\'` ; do \\\n' \
|
'\tcd freebsd/$(RTEMS_CPU)/include ; for i in `find . -name \'*.h\'` ; do \\\n' \
|
||||||
'\t install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done\n' \
|
'\t install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done\n' \
|
||||||
|
'\t$(MAKE) -C freebsd-userspace clean\n' \
|
||||||
'\n' \
|
'\n' \
|
||||||
'clean:\n' \
|
'clean:\n' \
|
||||||
'\trm -f -r $(PROJECT_INCLUDE)/rtems/freebsd\n' \
|
'\trm -f -r $(PROJECT_INCLUDE)/rtems/freebsd\n' \
|
||||||
'\trm -f $(LIB) $(C_O_FILES) $(C_D_FILES)\n' \
|
'\trm -f $(LIB) $(C_O_FILES) $(C_D_FILES)\n' \
|
||||||
'\trm -f libbsd.html\n' \
|
'\trm -f libbsd.html\n' \
|
||||||
|
'\t$(MAKE) -C freebsd-userspace clean\n' \
|
||||||
'\n' \
|
'\n' \
|
||||||
'-include $(C_D_FILES)\n' \
|
'-include $(C_D_FILES)\n' \
|
||||||
'\n' \
|
'\n' \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user