Hello,
I'm creating a custom package "from scratch"
I copied the debootstrap package in the make-dir because this is the only packing with .c src files (all others download them from sites), and called the new dir [barcodereader].
The package shows up in make menuconfig.
The package compiles during make and the folder with all the right contents shows up in: packages\target-mipsel_uClibc-0.9.29\barcodereader-1.0.28
including a dir packages\target-mipsel_uClibc-0.9.29\barcodereader-1.0.28\root\usr\lib\barcodereader
but the directory root\usr\lib\barcodereader wont show in de build directory, and is not available in the image.
What to do? What im a doing wrong.
I also noticed that after my build, there is no barcodereader -entry in the .packes files in de freetz-dir , but there is a debootstrap entry in that file
Here are the contents of package my files:
Config.in:
Makefile.inCode:config FREETZ_PACKAGE_BARECODEREADER bool "Barcodereader 1.0.28" default n help Barcodereader is used to read from a barcode scanner and post its values online
barcodereader.mk:Code:ifeq ($(strip $(FREETZ_PACKAGE_BARECODEREADER)),y) PACKAGES+=barcodereader endif
Code:$(call PKG_INIT_BIN, 1.0.28) $(PKG)_BINARY_SOURCE:=$($(PKG)_MAKE_DIR)/src/blink2.c $(PKG)_BINARY:=$($(PKG)_DIR)/blink2 $(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/lib/barcodereader/blink2 #$(PKG_LOCALSOURCE_PACKAGE) $(PKG_UNPACKED) $(PKG_CONFIGURED_NOP) $($(PKG)_BINARY): $($(PKG)_BINARY_SOURCE) $($(PKG)_DIR)/.configured mkdir -p $(BARCODEREADER_DIR) echo $(BARCODEREADER_DIR) cp -a $< $(BARCODEREADER_DIR) cd $(BARCODEREADER_DIR) && $(TARGET_CONFIGURE_ENV) \ $(TARGET_CC) $(TARGET_CFLAGS) -lusb -o blink2 blink2.c $($(PKG)_TARGET_BINARY): $($(PKG)_BINARY) $(INSTALL_BINARY_STRIP) $(pkg): $(pkg)-precompiled: $($(PKG)_TARGET_BINARY) $(pkg)-clean: -$(SUBMAKE) -C $(BARCODEREADER_DIR) clean $(pkg)-uninstall: $(RM) $(BARCODEREADER_TARGET_BINARY) $(PKG_FINISH)


Zitieren