Commit aee07e18 authored by Mike Hibler's avatar Mike Hibler

More changes for frisupload in Linux MFS.

parent 0c558bb4
......@@ -2,7 +2,7 @@ include ../../variables.mk
BUILDROOT := $(PWD)/$(BUILDROOT)
PROGS := imageunzip imagezip frisbee growdisk tmcc.bin binoffset groklilo teachswitch dhcp_packet_dump sethostname.dhclient
PROGS := imageunzip imagezip frisbee frisupload growdisk tmcc.bin binoffset groklilo teachswitch dhcp_packet_dump sethostname.dhclient
BUILD_TARGETS := $(PROGS)
INSTALL_TARGETS := $(addsuffix -install,$(PROGS))
......@@ -24,7 +24,7 @@ DHCP_PACKET_DUMP_PATH = $(TESTBED_PATH)/tools/dhcp_packet_dump
CFLAGS = -Os
INSTALLED_BINS := $(addprefix $(TARGET_PATH)/usr/, \
$(addprefix bin/, binoffset imagezip imageunzip tmcc.bin frisbee teachswitch dhcp_packet_dump) \
$(addprefix bin/, binoffset imagezip imageunzip tmcc.bin frisbee frisupload teachswitch dhcp_packet_dump) \
$(addprefix sbin/, groklilo growdisk))
all: $(BUILD_TARGETS)
......@@ -106,6 +106,8 @@ imagezip-install: $(TARGET_PATH)/usr/bin/imagezip
frisbee-install: $(TARGET_PATH)/usr/bin/frisbee
frisupload-install: $(TARGET_PATH)/usr/bin/frisupload
growdisk-install: $(TARGET_PATH)/usr/sbin/growdisk
binoffset-install: $(TARGET_PATH)/usr/bin/binoffset
......@@ -201,6 +203,17 @@ $(TESTBED_BUILD_PATH)/frisbee: $(SYSROOT_ZLIB_SHARED)
$(MAKE) -C $(FRISBEE_PATH) -f Makefile-linux.sa clean
$(STRIPCMD) --strip-unneeded $@
$(TESTBED_BUILD_PATH)/frisupload: $(SYSROOT_ZLIB_SHARED)
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
C_INCLUDE_PATH=$(STAGING_DIR)/usr/include/openssl \
$(MAKE) -C $(FRISBEE_PATH) -f Makefile-linux.sa \
CC=$(CROSS_COMPILER_PREFIX)gcc \
PATH=$(STAGING_DIR)/usr/bin:$(PATH) frisupload
mkdir -p $(dir $@)
mv $(FRISBEE_PATH)/frisupload $@
$(MAKE) -C $(FRISBEE_PATH) -f Makefile-linux.sa clean
$(STRIPCMD) --strip-unneeded $@
$(TESTBED_BUILD_PATH)/imageunzip: $(SYSROOT_ZLIB_SHARED)
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
C_INCLUDE_PATH=$(STAGING_DIR)/usr/include/openssl \
......
......@@ -110,7 +110,8 @@ trace.o: decls.h trace.h log.h
install:
$(INSTALL) frisbee $(DESTDIR)$(BINDIR)/frisbee
$(INSTALL) frisupload $(DESTDIR)$(BINDIR)/frisupload
$(INSTALL) frisbeed $(DESTDIR)$(SBINDIR)/frisbeed
clean:
rm -f *.o *.a frisbee frisbeed frisbee.debug frisbeed.debug
rm -f *.o *.a frisbee frisupload frisbeed frisbee.debug frisupload.debug frisbeed.debug
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment