summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/image
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2013-08-29 18:39:39 +0300
committerRoman Yeryomin <roman@advem.lv>2013-08-29 18:39:39 +0300
commite72c70157d1102b1aa4d718178343535228b1aa2 (patch)
treea4aedefddff73cd33da158bf77bbfec907248270 /target/linux/realtek/image
parentbad24f47b7d7197326b97d61fd2534bf5bee7c4d (diff)
Fix subtargets, profiling and profiled image generation.
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/image')
-rw-r--r--target/linux/realtek/image/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/target/linux/realtek/image/Makefile b/target/linux/realtek/image/Makefile
index d0dc6ab7e..4fff911e1 100644
--- a/target/linux/realtek/image/Makefile
+++ b/target/linux/realtek/image/Makefile
@@ -10,8 +10,6 @@ include $(INCLUDE_DIR)/image.mk
JFFS2_BLOCKSIZE=4k
#OBJCOPY=$(TARGET_CROSS)objcopy
-# define subtarget, should be replaced with $(SUBTARGET) when more chips will be introduced
-STARGET=rtl8196c
COMMA:=,
define mkcmdline
@@ -25,8 +23,8 @@ define Image/Prepare
endef
define Image/BuildKernel
- $(call Image/BuildLoader,loader-$(STARGET),bin,$(call mkcmdline,$(PROFILE),ttyS0,38400) root=/dev/mtdblock2,${CONFIG_REALTEK_KERNEL_LOAD_ADDRESS},$(shell dd if=$(KDIR)/vmlinux.elf skip=24 bs=1 count=4 conv=swab 2>/dev/null | hexdump -v -e '"0x" 2/2 "%X"'))
- cvimg linux $(KDIR)/loader-$(STARGET).bin \
+ $(call Image/BuildLoader,loader-$(SUBTARGET),bin,$(call mkcmdline,$(PROFILE),ttyS0,38400) root=/dev/mtdblock2,${CONFIG_REALTEK_KERNEL_LOAD_ADDRESS},$(shell dd if=$(KDIR)/vmlinux.elf skip=24 bs=1 count=4 conv=swab 2>/dev/null | hexdump -v -e '"0x" 2/2 "%X"'))
+ cvimg linux $(KDIR)/loader-$(SUBTARGET).bin \
$(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-kernel.bin \
${CONFIG_REALTEK_KERNEL_LOAD_ADDRESS} \
${CONFIG_REALTEK_KERNEL_OFFSET}